:root {
    /* Clean Light Theme */
    --primary: #1E3A5F;
    /* Deep Navy Blue */
    --primary-light: #2C4A6E;
    --secondary: #B8860B;
    /* Darker gold for better contrast (WCAG AAA compliant) */
    --secondary-light: #D4A537;
    /* Original gold for backgrounds */
    --accent: #E67E22;
    /* Orange for CTAs */
    --text-main: #333333;
    /* Dark gray for readability */
    --text-muted: #666666;
    --white: #ffffff;
    --bg-light: #F8F9FA;
    /* Light gray background */
    --bg-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(30, 58, 95, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
    /* Consistent spacing scale */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 60px;
    --spacing-xl: 80px;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    /* Force scrollbar to prevent layout shift */
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--primary);
    margin-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Navigation Bar */
/* Navigation Bar - Modern Glass Design */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Ultra-premium glass effect */
    background: rgba(255, 255, 255, 0.95);
    /* Cleaner white */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 50px;
    /* Slightly larger logo */
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.site-name {
    color: var(--primary);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    /* More prominent */
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 40px;
    /* More spacing */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Center-out underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
    /* Use darker gold for better contrast */
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--secondary);
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background: var(--primary);
        flex-direction: column;
        padding: 80px 30px 30px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links::before {
        content: '✕';
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: var(--secondary);
        cursor: pointer;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }

    .nav-links::before:hover {
        background: var(--secondary);
        color: var(--primary);
        transform: rotate(90deg);
    }

    /* Overlay backdrop */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    color: var(--primary);
    text-align: center;
    position: relative;
    font-size: 2.5rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-transform: uppercase;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-light);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

/* Products Section (Subtle Tech Grid/Gradient) */
#products {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
    border-top: 1px solid rgba(30, 58, 95, 0.05);
}

/* Optional faint pattern for products */
#products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
}

/* Industries & Products */
.industries-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    /* 3D Context for items */
    perspective: 1000px;
}

.industry-card,
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(30, 58, 95, 0.08);
    /* Subtle border */
    position: relative;
    overflow: hidden;
    /* 3D Performance Optimization */
    transform-style: preserve-3d;
    will-change: transform;
}

/* Premium Hover Effect */
.industry-card:hover,
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(30, 58, 95, 0.12);
    border-color: rgba(212, 165, 55, 0.3);
}

/* Gold Bottom "Tab" Highlight on Hover */
.industry-card::after,
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.industry-card:hover::after,
.product-card:hover::after {
    transform: scaleX(1);
}

.industry-card h3,
.product-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin: 20px 0 15px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

.industry-card p,
.product-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Icon Container */
.icon-container,
.product-icon-container,
.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(30, 58, 95, 0.03);
    /* Very subtle fill */
    transition: all 0.4s ease;
    border: none;
}

/* Icon Hover Pulse */
.industry-card:hover .icon-container,
.product-card:hover .product-icon-container,
.contact-card:hover .contact-icon {
    background: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 0 8px rgba(30, 58, 95, 0.05);
    /* Pulse ring */
}

.industry-icon {
    width: 40px;
    height: 40px;
    filter: none;
    transition: var(--transition);
}

/* Make icons white on hover */
.industry-card:hover .industry-icon,
.product-card:hover .industry-icon {
    filter: brightness(0) invert(1);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    /* 3D Context for items */
    perspective: 1000px;
}

.contact-card {
    background: var(--bg-white);
    backdrop-filter: none;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    /* 3D Performance Optimization */
    transform-style: preserve-3d;
    will-change: transform;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    background: transparent;
    border: 1px solid var(--secondary);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background: var(--secondary);
    color: var(--primary);
    transform: scale(1.1);
}

.contact-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-info p {
    color: var(--text-muted);
}

.contact-info a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.skip-link {
    background: var(--secondary);
    color: var(--primary);
}


/* Navigation Bar */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav a {
    color: #333;
    /* Dark text on white background */
}

nav a:hover {
    background: rgb(14, 71, 146);
}

.menu-toggle {
    color: #333;
}


.product-icon img {
    max-width: 40px;
    max-height: 40px;
    filter: brightness(0) invert(1);
    /* White icon on colored background */
}


/* Add this to your existing media query */
@media (max-width: 768px) {
    .product-icon {
        width: 50px;
        height: 50px;
    }

    .product-icon img {
        max-width: 35px;
        max-height: 35px;
    }
}


.client-carousel {
    position: relative;
    overflow: hidden;
    margin: 60px 0;
    /* Premium Glass Strip */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 40px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.carousel-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: var(--transition);
    opacity: 0.6;
}

.carousel-item:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes track content is duplicated once */
}

/* Hide Navigation Buttons (in case any remain) */
.nav-button {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .client-carousel {
        margin: 40px 0;
        padding: 20px 0;
    }

    .carousel-item {
        width: 120px;
        height: 80px;
    }

    .carousel-track {
        gap: 30px;
    }
}


.contact-icon img {
    max-width: 40px;
    max-height: 40px;
    /* Gold/secondary color filter - matches the border */
    filter: invert(69%) sepia(52%) saturate(497%) hue-rotate(7deg) brightness(91%) contrast(89%);
    transition: var(--transition);
}

.contact-card:hover .contact-icon img {
    /* White icon when background turns gold on hover */
    filter: brightness(0) invert(1);
}



/* Footer Base Styles */
.site-footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
    /* Increased padding */
    text-align: center;
    border-top: none;
    position: relative;
}

/* Footer Top Gradient Border */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1200px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1em;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.social-icons a {
    display: block;
    width: 25px;
    height: 25px;
}

.social-icons a:hover {
    transform: translateY(-3px);
    color: var(--secondary);
}

.social-icons img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
    /* Invert to make icons white */
    transition: var(--transition);
}

.social-icons a:hover img {
    filter: none;
    /* Reset filter or apply specific color filter if needed */
    opacity: 0.8;
}

/* Turn gold on hover */


/* Legal Section */
.footer-bottom {
    background: #020c1b;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--primary-light);
    margin-top: 20px;
}

.copyright {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 20px;
    text-align: center;
    background: #081832;
    /* Solid fallback deep blue */
    overflow: hidden;
}

/* Background Image with animated overlay - NO PARALLAX */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Lighter, More Vibrant Gradient + Image */
    background: linear-gradient(135deg, rgba(8, 24, 50, 0.85) 0%, rgba(30, 80, 140, 0.8) 100%), url('images/hero_premium.png') center/cover no-repeat;
    z-index: 0;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    color: var(--secondary);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Clickable only when visible */
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

#back-to-top:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 165, 55, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    /* Wider for impact */
    padding: 20px;
    /* Removed boxy container styles for open, immersive look */
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    animation: fadeInUp 1s ease-out;
}

.hero-logo {
    margin-bottom: 40px;
}

.animated-logo {
    width: 220px;
    /* Slightly larger */
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.25));
    /* Brighter glow */
    animation: float 5s ease-in-out infinite;
}

.hero h1 {
    font-size: 5rem;
    /* Massive impact */
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -2px;
    /* Tight, modern tracking */
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /* Softer, more diffuse shadow */
    background: linear-gradient(to right, #ffffff, #f0f8ff);
    /* Brighter white */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Modern text gradient */
}

/* Premium Cinematic Fade Up */
.fade-up-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpText 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

@keyframes fadeUpText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif;
    /* Switch to Inter for clean contrast */
    text-transform: uppercase;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    /* Widely tracked for elegance */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: inline-block;
    position: relative;
}

/* Decorative line for subtitle */
.subtitle::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--secondary);
    margin: 10px auto 0;
    opacity: 0.8;
}

.description {
    font-size: 1.35rem;
    color: #E2E8F0;
    /* Brighter cool gray */
    max-width: 750px;
    margin: 0 auto 3.5rem;
    font-weight: 300;
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-button {
    font-family: 'Oswald', sans-serif;
    background: rgba(212, 165, 55, 0.05);
    /* Very subtle glass */
    color: var(--secondary);
    padding: 18px 50px;
    border: 1px solid var(--secondary);
    border-radius: 4px;
    /* Sharp technical look */
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(212, 165, 55, 0.1);
    /* Subtle default glow */
}

.cta-button:hover {
    background: var(--secondary);
    color: #051020;
    /* Dark contrast text */
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 50px rgba(212, 165, 55, 0.5);
    /* Intense glow */
    border-color: var(--secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Typing Effect (simplified for better performance) */
.typing-text {
    border-right: none;
    /* Removed the cursor for cleaner look */
    animation: none;
}

#hero-heading {
    padding: 0;
}

.product-icon-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
        /* Better tablet sizing */
    }
}

@media (max-width: 768px) {
    .hero-logo {
        margin-bottom: 20px;
    }

    .animated-logo {
        width: 150px;
    }

    .hero h1 {
        font-size: 2.8rem;
        /* Increased from 2.5rem */
    }

    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 15px 35px;
    }

    .hero {
        min-height: 80vh;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
        /* Increased from 2rem */
        max-width: 100%;
        margin: 0 auto 10px;
        letter-spacing: -1px;
    }

    .animated-logo {
        width: 120px;
    }

    .hero {
        min-height: 70vh;
        /* improved */
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* .typing-text {
    white-space: normal;
    overflow-wrap: break-word;
} */


@media (max-width: 768px) {

    .industry-card,
    .product-card {
        padding: 20px;
    }

    .industry-card h3,
    .product-card h3 {
        font-size: 1.2rem;
    }

    .industry-card p,
    .product-card p {
        font-size: 0.9rem;
    }
    
    /* Mobile hover effect - subtle grow */
    .industry-card:hover,
    .product-card:hover {
        transform: scale(1.03);
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-width: 100px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .contact-card {
        padding: 20px;
    }

    .contact-info h3 {
        font-size: 1.2rem;
    }

    .contact-info p {
        font-size: 0.9rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .typing-text {
        white-space: normal;
        overflow-wrap: break-word;
        font-size: 2.5rem;
        /* Already set, but ensuring it scales down */
    }
}

@media (max-width: 480px) {
    .typing-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 90%;
    }
}



@media (max-width: 768px) {
    .nav-links {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        /* Match header height */
    }
}

/* ================================================
   SCROLL-TRIGGERED ANIMATIONS (HOME PAGE)
   ================================================ */

/* Initial hidden states for animatable elements */
#industries .section-title,
#products .section-title,
#clients .section-title,
#contact .section-title {
    opacity: 0;
    transform: translateY(30px);
}

#industries .industry-card,
#products .product-card,
.contact-card {
    opacity: 0;
    transform: translateY(40px);
}

.icon-container,
.product-icon-container {
    opacity: 0;
    transform: scale(0.8);
}

.client-carousel {
    opacity: 0;
    transform: translateY(20px);
}

/* Footer sections animation */
.footer-section {
    opacity: 0;
    transform: translateY(25px);
}

/* ================================================
   ANIMATED STATE - Applied by Intersection Observer
   ================================================ */

.section-title.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section-title.animate-in::after {
    animation: underline-grow 0.6s ease-out 0.3s forwards;
    width: 0;
}

@keyframes underline-grow {
    to {
        width: 80px;
    }
}

/* Cards animation */
#industries .industry-card.animate-in,
#products .product-card.animate-in,
.contact-card.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Staggered delays for industry cards */
#industries .industry-card:nth-child(1).animate-in {
    transition-delay: 0.1s;
}

#industries .industry-card:nth-child(2).animate-in {
    transition-delay: 0.2s;
}

#industries .industry-card:nth-child(3).animate-in {
    transition-delay: 0.3s;
}

/* Staggered delays for product cards */
#products .product-card:nth-child(1).animate-in {
    transition-delay: 0.1s;
}

#products .product-card:nth-child(2).animate-in {
    transition-delay: 0.2s;
}

#products .product-card:nth-child(3).animate-in {
    transition-delay: 0.3s;
}

/* Staggered delays for contact cards */
.contact-card:nth-child(1).animate-in {
    transition-delay: 0.1s;
}

.contact-card:nth-child(2).animate-in {
    transition-delay: 0.2s;
}

.contact-card:nth-child(3).animate-in {
    transition-delay: 0.3s;
}

.contact-card:nth-child(4).animate-in {
    transition-delay: 0.4s;
}

/* Icon containers animation with scale and slight rotation */
.icon-container.animate-in,
.product-icon-container.animate-in {
    opacity: 1 !important;
    transform: scale(1) rotate(0deg) !important;
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-container:nth-child(1).animate-in {
    transition-delay: 0.15s;
}

.icon-container:nth-child(2).animate-in {
    transition-delay: 0.25s;
}

.icon-container:nth-child(3).animate-in {
    transition-delay: 0.35s;
}

/* Client carousel animation */
.client-carousel.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Footer sections animation */
.footer-section.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.footer-section.quick-links.animate-in {
    transition-delay: 0.1s;
}

.footer-section.services.animate-in {
    transition-delay: 0.2s;
}

.footer-section.social.animate-in {
    transition-delay: 0.3s;
}

/* ================================================
   ENHANCED HOVER EFFECTS
   ================================================ */

/* Improved card hover with subtle shadow pulse */
.industry-card:hover,
.product-card:hover {
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.15);
}

/* Contact icon pulse animation on page load */
@keyframes icon-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(212, 165, 55, 0);
    }
}

.contact-icon.animate-in {
    animation: icon-pulse 2s ease-in-out 0.5s;
}

/* Hero content staggered animation enhancement */
.hero-content .subtitle {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 0.8s ease-out 0.3s forwards;
}

.hero-content .description {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 0.8s ease-out 0.5s forwards;
}

.hero-content .cta-button {
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 0.8s ease-out 0.7s forwards;
}

@keyframes hero-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   REDUCED MOTION PREFERENCE
   ================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .section-title,
    .industry-card,
    .product-card,
    .contact-card,
    .icon-container,
    .product-icon-container,
    .client-carousel,
    .footer-section {
        opacity: 1 !important;
        transform: none !important;
    }
}