/* 
   SOLPREC - Premium CSS Stylesheet
   Designed with Precision and Technology
   Fonts: Outfit (Headings), Inter (Body)
*/

/* ==========================================================================
   1. VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
    /* Brand HSL Colors */
    --primary: hsl(211, 100%, 31%);        /* #004b9c - Royal Blue */
    --primary-glow: hsla(211, 100%, 31%, 0.15);
    
    --secondary: hsl(24, 98%, 52%);       /* #f87014 - Safety Orange */
    --secondary-glow: hsla(24, 98%, 52%, 0.2);
    
    --accent: hsl(198, 90%, 55%);         /* #29b6f6 - Tech Light Blue */
    --accent-glow: hsla(198, 90%, 55%, 0.25);
    
    /* Neutral Palette */
    --bg-light: hsl(210, 20%, 98%);       /* #f8f9fa - Soft Neutral BG */
    --bg-white: hsl(0, 0%, 100%);         /* #ffffff - Pure White BG */
    
    --text-main: hsl(211, 40%, 15%);      /* #122338 - Main Body Text */
    --text-muted: hsl(211, 20%, 45%);     /* #5b6f84 - Secondary Text */
    --text-light: hsl(0, 0%, 100%);
    
    /* Layout Tokens */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 10px 40px -10px hsla(211, 40%, 15%, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    font-size: 1rem;
    color: var(--text-muted);
}

.text-center { text-align: center; }
.text-orange { color: var(--secondary) !important; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   4. BUTTONS & ACCENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    border: none;
    gap: 10px;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: hsl(211, 100%, 25%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-light);
    box-shadow: 0 4px 14px var(--secondary-glow);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: hsl(24, 98%, 45%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--secondary-glow);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translate(3px, -3px);
}

.badge-accent {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--secondary-glow);
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 20px;
}

.link-hover {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.link-hover:hover {
    color: var(--secondary);
}

/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-medium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 58px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-medium);
}

.logo-link:hover .logo-img {
    transform: scale(1.03);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition-fast);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary);
}

.btn-nav-cta {
    background-color: var(--primary);
    color: var(--text-light) !important;
    padding: 10px 20px !important;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px var(--primary-glow);
    transition: all var(--transition-fast) !important;
}

.btn-nav-cta::after {
    display: none !important;
}

.btn-nav-cta:hover {
    background-color: var(--secondary);
    box-shadow: 0 6px 14px var(--secondary-glow);
    transform: translateY(-1px);
}

/* Hamburger menu button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    outline: none;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
    transition: all var(--transition-medium);
}

/* Hamburger active transformation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 70px;
    background-color: var(--bg-white);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: all;
    background: radial-gradient(circle at 70% 30%, hsla(211, 100%, 31%, 0.04) 0%, transparent 65%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
    pointer-events: none; /* Let canvas read mouse move behind text boxes */
}

.hero-content, .hero-visual {
    pointer-events: auto; /* Re-enable clicks on active elements */
}

.hero-content {
    animation: fadeInUp var(--transition-slow) forwards;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--primary);
}

.dynamic-word {
    display: inline-block;
    position: relative;
    color: var(--secondary);
    text-shadow: 0 0 15px var(--secondary-glow);
    font-weight: 800;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn var(--transition-slow) 0.2s forwards;
    opacity: 0;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 45px rgba(18, 35, 56, 0.15);
    position: relative;
    z-index: 5;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%); /* Diagonal premium clip */
    border: 3px solid var(--bg-white);
    transform: translateZ(30px); /* 3D layer pop */
}

/* Background overlapping geometric accents with 3D translation */
.decorative-bg-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-md);
    z-index: 1;
}

.decorative-bg-shape.bg-blue {
    background-color: var(--primary);
    top: 15px;
    left: 15px;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    opacity: 0.15;
    transform: translateZ(-20px); /* Depth pop */
}

.decorative-bg-shape.bg-orange {
    background-color: var(--secondary);
    bottom: -15px;
    right: 15px;
    height: 30%;
    width: 60%;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    opacity: 0.8;
    z-index: 6; /* overlay cut */
    transform: translateZ(50px); /* Outer Layer pop forward */
}

/* Floating Tech Accents with CSS animations */
.floating-tech-accent {
    position: absolute;
    width: 46px;
    height: 46px;
    background-color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(18, 35, 56, 0.15);
    z-index: 8;
    border: 1.5px solid var(--secondary-glow);
    transition: all var(--transition-medium);
}

.tech-icon {
    width: 22px;
    height: 22px;
    animation: rotateSlow 25s linear infinite;
}

.floating-tech-accent.accent-1 {
    top: -20px;
    right: 40px;
    color: var(--secondary);
    border-color: var(--secondary-glow);
    animation: floatGently1 5s ease-in-out infinite;
    transform: translateZ(40px);
}

.floating-tech-accent.accent-2 {
    bottom: -10px;
    left: -20px;
    color: var(--accent);
    border-color: var(--accent-glow);
    animation: floatGently2 6s ease-in-out infinite;
    transform: translateZ(60px);
}

/* Diagonal Separator Element */
.section-divider-angled {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vw;
    background-color: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
    z-index: 8;
}

/* Animations for Floating Elements */
@keyframes floatGently1 {
    0%, 100% { transform: translateZ(40px) translateY(0) rotate(0deg); }
    50% { transform: translateZ(40px) translateY(-12px) rotate(10deg); }
}

@keyframes floatGently2 {
    0%, 100% { transform: translateZ(60px) translateY(0) rotate(0deg); }
    50% { transform: translateZ(60px) translateY(12px) rotate(-10deg); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   7. ABOUT SECTION ("¿Por qué elegir SOLPREC?")
   ========================================================================== */
.about-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 20px;
    color: var(--primary);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
}

.about-text-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--primary);
    font-weight: 500;
    border-left: 4px solid var(--secondary);
    padding-left: 20px;
}

.body-text {
    font-size: 1rem;
    color: var(--text-muted);
}

.about-cta-box {
    margin-top: 20px;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    border-left: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.about-cta-box::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box-title {
    margin-bottom: 10px;
    color: var(--primary);
}

.cta-box-desc {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-pillars-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pillar-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.pillar-card:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 35px -10px hsla(211, 40%, 15%, 0.08);
}

.pillar-icon-box {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background-color: var(--bg-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: background-color var(--transition-fast);
}

.pillar-card:hover .pillar-icon-box {
    background-color: var(--primary-glow);
}

.pillar-icon {
    width: 28px;
    height: 28px;
}

.pillar-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pillar-title {
    font-size: 1.15rem;
    color: var(--primary);
}

.pillar-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8. SERVICES SECTION ("Nuestros Servicios" - Interlocking Hexagon Honeycomb Grid)
   ========================================================================== */
.services-section {
    padding: 70px 0 90px 0;
    background-color: var(--bg-white);
    position: relative;
}

.services-section .section-divider-angled {
    background-color: var(--bg-white);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
    bottom: -1px;
}

.services-section .section-divider-angled.angled-reverse {
    background-color: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 100%);
}

.honeycomb-container {
    width: 100%;
    margin-top: 80px;
    display: flex;
    justify-content: center;
    overflow-x: visible;
}

/* Responsive Hexagon Math System */
.honeycomb {
    display: grid;
    grid-template-columns: repeat(3, 210px);
    gap: 20px 25px; /* Spaced out horizontally and vertically to prevent overlap */
    justify-content: center;
    padding-bottom: 20px;
}

.hex-item {
    width: 210px;
    height: 242px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--bg-light);
    position: relative;
    transition: all var(--transition-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    outline: none;
    border: none;
}

/* Inner box alignment to allow nice padding and placement */
.hex-content {
    width: 98%;
    height: 98%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: var(--bg-white);
    padding: 30px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all var(--transition-medium);
}

.hex-icon-wrapper {
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
}

.hex-icon {
    width: 32px;
    height: 32px;
}

.hex-title {
    font-size: 0.95rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
    line-height: 1.2;
}

.hex-desc {
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

/* Honeycomb Interlocking Columns Math Offset - Reset for spaced layout */
.hex-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
}

/* Dynamic 3D elevation hover style with HSL secondary glow */
.hex-item:hover, .hex-item:focus {
    transform: scale(1.07) translateY(-6px);
    z-index: 50;
    background: var(--secondary); /* Border glows orange on hover */
}

.hex-item:hover .hex-content, .hex-item:focus .hex-content {
    background: linear-gradient(135deg, var(--primary) 0%, hsl(211, 100%, 22%) 100%);
    box-shadow: 0 15px 35px var(--secondary-glow);
}

.hex-item:hover .hex-icon-wrapper, .hex-item:focus .hex-icon-wrapper {
    color: var(--secondary);
    transform: scale(1.1) rotate(10deg);
}

.hex-item:hover .hex-title, .hex-item:focus .hex-title {
    color: var(--text-light);
}

.hex-item:hover .hex-desc, .hex-item:focus .hex-desc {
    opacity: 1;
    max-height: 80px;
    color: hsl(210, 20%, 88%);
    margin-top: 4px;
}

/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 65px 0;
    background-color: var(--bg-light);
}

.contact-dashboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    align-items: stretch;
}

.social-panel-container {
    max-width: 450px;
    margin: 40px auto 0 auto;
    display: flex;
    justify-content: center;
}

.social-panel-container .social-panel {
    width: 100%;
    align-items: center;
    text-align: center;
}

.social-panel-container .social-links-grid {
    justify-content: center;
}

@media (max-width: 992px) {
    .contact-dashboard {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.info-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.info-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--primary-glow);
    color: var(--primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon {
    width: 24px;
    height: 24px;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-title {
    font-size: 1.1rem;
    color: var(--primary);
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.social-panel {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 30px var(--primary-glow);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.social-panel::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.social-panel-title {
    color: var(--text-light);
    font-size: 1.2rem;
}

.social-links-grid {
    display: flex;
    gap: 12px;
    z-index: 10;
}

.social-btn {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background-color: var(--secondary);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--secondary-glow);
}

.social-handle {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Right side Form Panel */
.contact-form-panel {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px 18px;
    border: 1.5px solid hsl(211, 20%, 88%);
    border-radius: var(--border-radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-textarea {
    resize: none;
}

/* Form Validation Styling */
.form-group.error .form-input {
    border-color: hsl(0, 84%, 60%);
    background-color: hsl(0, 84%, 98%);
}

.form-error-msg {
    display: none;
    font-size: 0.75rem;
    color: hsl(0, 84%, 60%);
    font-weight: 500;
}

.form-group.error .form-error-msg {
    display: block;
}

.form-actions-wrapper {
    margin-top: 32px;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 60px 0 20px 0;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    background-color: var(--bg-white);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-brand-desc {
    color: hsl(210, 20%, 85%);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: hsl(210, 20%, 85%);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-link:hover {
    color: var(--secondary);
    padding-left: 4px;
}

.footer-info p {
    color: hsl(210, 20%, 85%);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 20px;
}

.copyright-text {
    font-size: 0.85rem;
    color: hsl(210, 20%, 75%);
}

/* ==========================================================================
   11. TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--bg-white);
    border-left: 5px solid var(--secondary);
    padding: 20px 24px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(120px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-medium);
    z-index: 2000;
    max-width: 420px;
}

.toast-notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.toast-icon-box {
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-message-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-size: 1rem;
    color: var(--primary);
}

.toast-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toast-close-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    align-self: flex-start;
    margin-left: auto;
    transition: color var(--transition-fast);
}

.toast-close-btn:hover {
    color: var(--text-main);
}

/* ==========================================================================
   12. KEYFRAMES & RESPONSIVE DESIGN
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   Mobile & Tablet Queries (Responsive Adjustments)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .hero-container {
        gap: 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-dashboard {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Navbar Hamburger system */
    .hamburger-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-white);
        backdrop-filter: none;
        transition: left var(--transition-medium);
        padding: 50px 30px;
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    .btn-nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }

    /* Hero */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 20px;
    }

    /* Honeycomb Redirection to standard readable columns */
    .honeycomb-container {
        overflow-x: visible;
        justify-content: center;
        padding-bottom: 20px;
    }

    .honeycomb {
        grid-template-columns: repeat(2, 190px);
        gap: 15px 15px; /* Spaced out horizontally and vertically to prevent overlap */
        padding: 0 20px;
    }

    .hex-item {
        width: 190px;
        height: 219px;
    }

    .hex-content {
        padding: 20px 10px;
    }

    .hex-title {
        font-size: 0.85rem;
    }

    .hex-desc {
        font-size: 0.68rem;
    }

    /* Interlocking Columns Resets for 2-column mobile layout */
    .hex-item:nth-child(n) {
        margin-top: 0 !important;
        grid-row: auto !important;
        grid-column: auto !important;
    }

    /* Center the 9th hexagon nicely in the 5th row */
    .hex-item:nth-child(9) {
        grid-column: span 2 !important;
        justify-self: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    /* Standard Flex layout for Honeycomb on very small viewports */
    .honeycomb {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .hex-item {
        width: 240px;
        height: 277px;
        margin: 0 !important;
    }

    .hex-content {
        padding: 35px 20px;
    }

    .hex-title {
        font-size: 1rem;
    }

    .hex-desc {
        opacity: 1;
        max-height: 80px;
        display: block;
        margin-top: 6px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   13. SERVICE DETAIL MODAL
   ========================================================================== */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.service-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 35, 56, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-medium);
}

.modal-window {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.25);
    z-index: 10;
    overflow: hidden;
    transform: translateY(40px) scale(0.95);
    transition: transform var(--transition-medium);
    border: 1px solid var(--glass-border);
}

.service-modal.active .modal-window {
    transform: translateY(0) scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 15;
    outline: none;
}

.modal-close-btn:hover {
    background-color: var(--secondary-glow);
    color: var(--secondary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 0;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    min-height: 450px;
}

.modal-image-column {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-glow);
}

.modal-service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.service-modal.active .modal-service-image {
    transform: scale(1.03);
}

.modal-text-column {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.modal-service-title {
    color: var(--primary);
    margin-top: -5px;
}

.modal-service-content {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.modal-service-content ul {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-service-content li {
    font-size: 0.925rem;
    color: var(--text-muted);
}

.modal-actions {
    margin-top: 15px;
}

/* Modal Responsive Styles */
@media (max-width: 768px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-image-column {
        height: 220px;
    }
    
    .modal-text-column {
        padding: 30px;
    }
    
    .modal-window {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}
