/* NexaCore Digital - Unified Global Style
    Theme: Futuristic Glossy Blue & Glassmorphism
*/

:root {
    /* Colors */
    --primary: #1E90FF;
    --primary-light: #3AA0FF;
    --accent: #FFD166;
    --text-primary: #F1F1F1;
    --text-secondary: #B8C0CC;
    
    --dark-secondary: rgba(255, 255, 255, 0.05); 
    --dark-tertiary: rgba(255, 255, 255, 0.02);
    --gradient-1: linear-gradient(135deg, #1E90FF 0%, #00D9FF 100%);
    --dark: #0A1128;
    
    /* Glassmorphism Elements */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    /* Backgrounds */
    --bg-glossy: linear-gradient(135deg, #0A1128 0%, #001F3F 50%, #081C33 100%);
    
    /* Spacing & Fonts */
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 3rem;
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --primary: #1E90FF;
--primary-light: #3AA0FF;



--text-primary: #FFFFFF;
--text-secondary: #B8C0CC;

--dark: #0A1128;

--bg-glossy:
linear-gradient(135deg,#0A1128 0%,#001F3F 50%,#081C33 100%);

--glass-bg: rgba(255,255,255,0.06);
--glass-border: rgba(255,255,255,0.08);

--gradient-1:
linear-gradient(135deg,#1E90FF,#00D9FF);
}

/* ========== Global Reset & Background ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-glossy);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* The Fixed Background Layer */
.main-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-gradient, .hero-gradient-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
}

.hero-gradient {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation: float 12s ease-in-out infinite;
}

.hero-gradient-2 {
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00D9FF 0%, transparent 70%);
    animation: float 15s ease-in-out infinite reverse;
}

.hero h1 {
    text-shadow:
        0 0 12px rgba(30,144,255,0.15),
        0 0 28px rgba(0,217,255,0.08);
}

/* ========== Particles ========== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particles span {
    position: absolute;
    bottom: -50px;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 10px white;
    animation: particleFloat linear infinite;
}

/* ========== Layout & Sections ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
    background: transparent !important; /* Forces transparency for all sections */
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.text-gradient {
    background: linear-gradient(90deg, #1E90FF, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========== Header & Nav ========== */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 17, 40, 0.7);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: 0.3s;
    background: transparent; /* Or rgba(10, 17, 40, 0.7) for a dark tint */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

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

/* ========== Hero Section ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    
    /* Darker, more solid center to act as a silhouette */
    background: rgba(5, 15, 40, 0.9); 
    
    /* Unique NexaCore shape */
    border-radius: 10px 20px 10px 20px; 
    
    /* Brighter, more saturated border */
    border: 1.5px solid #00D9FF; 
    
    color: #00D9FF; /* High-vibrancy text */
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 2rem;

    /* Multi-layered glow: 1. Inset glow, 2. Sharp border glow, 3. Soft outer aura */
    box-shadow: 
        inset 0 0 10px rgba(0, 217, 255, 0.2),
        0 0 10px rgba(0, 217, 255, 0.4),
        0 0 30px rgba(0, 217, 255, 0.1);

    animation: 
        badgePop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both,
        intensePulse 3s ease-in-out infinite;
}

/* Intense Breathing Glow Animation */
@keyframes intensePulse {
    0%, 100% { 
        box-shadow: 
            inset 0 0 10px rgba(0, 217, 255, 0.2),
            0 0 10px rgba(0, 217, 255, 0.4),
            0 0 20px rgba(0, 217, 255, 0.1);
        transform: scale(1);
    }
    50% { 
        box-shadow: 
            inset 0 0 15px rgba(0, 217, 255, 0.4),
            0 0 20px rgba(0, 217, 255, 0.6),
            0 0 40px rgba(0, 217, 255, 0.3);
        transform: scale(1.02); /* Slight organic breathing */
        border-color: #3AA0FF;
    }
}

/* The Live Signal Icon */
.hero-badge i {
    color: #00D9FF;
    filter: drop-shadow(0 0 5px #00D9FF);
    animation: signalBlink 1.5s infinite;
}

@keyframes signalBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

/* ========== Service Cards ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    overflow: hidden; /* Essential: keeps the light inside the card */
    background: rgba(10, 10, 10, 0.75); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1); 
    transition: all 0.4s ease;
}

/* 2. Create the "Light Beam" layer */
.service-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%; /* Start far to the left */
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        transparent, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
    transform: skewX(-25deg); /* Slants the light beam */
    transition: none;
}

/* 3. Animate the light on Hover (or loop it) */
.service-card:hover::after {
    left: 150%; /* Slide all the way to the right */
    transition: all 0.7s ease-in-out;
}
.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* ========== Refined Floating Features (The Suggestion) ========== */
.floating-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}



.floating-card {
    padding: 2rem 3rem;
    color: var(--text-primary);
    
    /* Slightly darker and more opaque base to 'catch' the frost */
    background: linear-gradient(
        145deg,
        rgba(20, 20, 20, 0.7), 
        rgba(10, 10, 10, 0.4)
    );
    
    /* Increased blur from 10px to 20px for a true frosted look */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-family: var(--font-display);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: float 5s ease-in-out infinite;
}

.floating-card:nth-child(2n) {
    animation-delay: 1s;
    /* Tinting the dark glass with a hint of Nexacore Blue */
    background: linear-gradient(
        145deg,
        rgba(30, 144, 255, 0.15), 
        rgba(10, 10, 10, 0.6)
    );
}

/* ========== Buttons ========== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
}




/* ========== Animations ========== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-110vh) translateX(50px); opacity: 0; }
}

/* ========== Footer ========== */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    background: transparent !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { 
        font-size: 2rem;
        line-height: 1.2;
        
    }
    .floating-cards { flex-direction: column; }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1400px;
    z-index: 1000;
    border-radius: 16px;

    backdrop-filter: blur(12px);
    background: rgba(10, 17, 40, 0.65);
    border: 1px solid rgba(255,255,255,0.08);

    transition: all 0.35s ease;
}

header.scrolled {
    top: 10px;
    transform: translateX(-50%) scale(0.98);

    background: rgba(10, 17, 40, 0.85);
    backdrop-filter: blur(16px);

    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 10px 35px rgba(0,0,0,0.45);
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    position: relative;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 12px;
    filter: blur(10px);
    opacity: 0.5;
    z-index: -1;
}

.logo-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.nav-link.active {
    color: var(--primary);
}

.nav-cta {
    padding: 0.75rem 1.6rem;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(225, 151, 65, 0.25);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(23, 26, 34, 0.95);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 0;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-link i {
    font-size: 1.5rem;
    color: var(--primary);
}

.dropdown-link div {
    flex: 1;
}

.dropdown-link strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
}

.dropdown-link:hover {
    background: rgba(124, 242, 255, 0.08);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


@media (max-width: 768px) {

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: relative;   /* 🔑 stop absolute positioning */
        top: 0;
        left: 0;

        min-width: 100%;
        width: 100%;
        max-width: 100%;

        margin-top: 0.5rem;
        padding: 0.5rem 0;

        border-radius: 12px;

        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;

        display: none; /* hidden by default on mobile */
    }

    /* Show dropdown when active */
    .dropdown.active .dropdown-menu {
        display: block;
    }
}
@media (max-width: 768px) {

    .dropdown-link {
        padding: 0.9rem 1rem;
    }

    .dropdown-link i {
        font-size: 1.2rem;
    }

    .dropdown-link strong {
        font-size: 0.95rem;
    }
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Adjust as needed */
    width: auto;
    object-fit: contain;
}

/* Optional: Add spacing if you want text next to it */
.logo-text {
    margin-left: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}


/* Footer Specific Styles */
        footer {
            background: transparent;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            position: relative;
            overflow: hidden;
        }
        
        .footer-glow {
            position: absolute;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            width: 800px;
            height: 400px;
            
            pointer-events: none;
        }
        
        .footer-content {
            padding: var(--spacing-xl) 0 var(--spacing-md);
            position: relative;
            z-index: 1;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: var(--spacing-lg);
            margin-bottom: var(--spacing-lg);
        }
        
        .footer-brand {
            max-width: 350px;
        }
        
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: var(--spacing-md);
            text-decoration: none;
            color: var(--text-primary);
        }
        
        .footer-logo-icon {
            width: 45px;
            height: 45px;
            background: var(--gradient-1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }
        
        .footer-logo-text {
            font-family: var(--font-display);
            font-size: 1.75rem;
            font-weight: 800;
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .footer-description {
            color: var(--text-secondary);
            margin-bottom: var(--spacing-md);
            line-height: 1.7;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
        }
        
        .social-link {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .social-link:hover {
            background: var(--gradient-1);
            color: var(--text-primary);
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }
        
        .footer-column h4 {
            font-family: var(--font-display);
            font-size: 1.25rem;
            margin-bottom: var(--spacing-md);
            color: var(--text-primary);
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 0.75rem;
        }
        
        .footer-link {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
        }
        
        .footer-link:hover {
            color: var(--primary);
            transform: translateX(5px);
        }
        
        .footer-contact-item {
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            margin-bottom: 1rem;
            color: var(--text-secondary);
        }
        
        .footer-contact-item i {
            color: var(--primary);
            margin-top: 3px;
            font-size: 1.1rem;
        }
        
        .footer-bottom {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding: var(--spacing-md) 0;
            text-align: center;
        }
        
        .footer-bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .copyright {
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
        
        .footer-bottom-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        
        .footer-bottom-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.95rem;
            transition: color 0.3s ease;
        }
        
        .footer-bottom-link:hover {
            color: var(--primary);
        }
        
        /* Newsletter Section */
        .newsletter-section {
            background: rgba(10, 132, 255, 0.05);
            border-radius: 20px;
            padding: var(--spacing-md);
            margin-bottom: var(--spacing-lg);
            border: 1px solid rgba(10, 132, 255, 0.1);
        }
        
        .newsletter-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: var(--spacing-md);
        }
        
        .newsletter-text h3 {
            font-family: var(--font-display);
            font-size: 1.75rem;
            margin-bottom: 0.5rem;
        }
        
        .newsletter-text p {
            color: var(--text-secondary);
            margin: 0;
        }
        
        .newsletter-form {
            display: flex;
            gap: 1rem;
            flex: 1;
            max-width: 500px;
        }
        
        .newsletter-input {
            flex: 1;
            padding: 1rem 1.5rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            color: var(--text-primary);
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .newsletter-input:focus {
            outline: none;
            border-color: var(--primary);
            background: rgba(255, 255, 255, 0.08);
        }
        
        .newsletter-input::placeholder {
            color: var(--text-secondary);
        }
        
        .newsletter-btn {
            padding: 1rem 2rem;
            background: var(--gradient-1);
            color: var(--text-primary);
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
        }
        
        .newsletter-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        
        /* Responsive */
        @media (max-width: 1024px) {
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
            
            .footer-brand {
                max-width: 100%;
            }
            
            .newsletter-content {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .newsletter-form {
                width: 100%;
                max-width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            .footer-grid {
                grid-template-columns: 1fr;
                gap: var(--spacing-md);
            }
            
            .footer-bottom-content {
                flex-direction: column;
                text-align: center;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .newsletter-btn {
                width: 100%;
            }
        }
.cta-section {
    
    position: relative;
    overflow: hidden;
}




.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}       
.cta-buttons {
display: flex;
gap: 1.5rem;
justify-content: center;
flex-wrap: wrap;
}

.cta-container {
    
    padding: 4rem 2rem;
    border-radius: 30px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}


.hero-gradient, .hero-gradient-2 {
    /* ... existing styles ... */
    transition: transform 0.2s ease-out; /* Keeps movement buttery smooth */
}

.particles span {
    /* ... existing styles ... */
    transition: margin 0.3s ease-out; /* Makes particles feel weightless */
}

.hero-gradient, .hero-gradient-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    /* ADD THESE TWO LINES */
    transform: translate(0, 0); 
    transition: transform 0.2s cubic-bezier(0.2, 0.4, 0.3, 1);
    pointer-events: none; /* Ensures they don't block mouse clicks */
}

.particles span {
    position: absolute;
    bottom: -50px;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 10px white;
    animation: particleFloat linear infinite;
    /* ADD THIS LINE */
    transition: transform 0.4s ease-out; 
}

/* --- Reveal on Scroll Classes --- */

/* The initial hidden state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.4, 0.3, 1);
    will-change: transform, opacity;
}

/* The active state (added by JavaScript) */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Stagger the cards so they don't all pop in at once */
.grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.grid .service-card:nth-child(4) { transition-delay: 0.4s; }


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease;
}
.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    animation: slideInLeft 1s ease 0.6s both;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}
.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Hero Buttons Logic */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Primary Button (Get Started) */
.btn-primary {
    position: relative;
    background: transparent;
    color: white;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    background: linear-gradient(135deg,#1E90FF,#00D9FF);

    transition: all 0.4s cubic-bezier(0.42,0,0.58,1);
    z-index: -1;
}

.btn-primary:hover {
    color: white;
    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(0,217,255,0.35);
}

.btn-primary:hover::before {
    left: 0;
}

/* Secondary Button (Explore Services) - Added Hover Effect */
.btn-secondary {
    position: relative;
    background: transparent;
    color: white;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    z-index: 1;
    overflow: hidden;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    background: linear-gradient(135deg,#1E90FF,#00D9FF);

    transition: all 0.4s cubic-bezier(0.42,0,0.58,1);
    z-index: -1;
}

.btn-secondary:hover {
    color: white;
    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(0,217,255,0.35);
}

.btn-secondary:hover::before {
    left: 0;
}


/* CTA Buttons Logic */

/* Start Your Project (Solid White) */
.btn-white {
    background: #FFFFFF;
    color: #001F3F;
    border: 2px solid #FFFFFF;
    font-weight: 700;
}

.btn-white:hover {
    background: transparent; /* Becomes plain/transparent */
    color: #FFFFFF;           /* Text turns white */
    transform: translateY(-3px);
}

/* View Our Services (Outline) */
.btn-outline-white {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-weight: 700;
}

.btn-outline-white:hover {
    background: #FFFFFF;      /* Fills with white */
    color: #001F3F;           /* Text turns dark */
    transform: translateY(-3px);
}


/* ==============================
   WHO WE WORK WITH – AUDIENCE
================================ */

.audience-section {
    position: relative;
}

.audience-section .grid {
    gap: 24px;
}

.audience-card {
    position: relative;
    padding: 32px 24px;
    border-radius: 18px;
    text-align: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: all 0.4s ease;
}

/* Glow on hover */
.audience-card:hover {
    transform: translateY(-6px);
    border-color: rgba(140, 255, 0, 0.4);
    box-shadow:
        0 0 0 1px rgba(140,255,0,0.15),
        0 20px 40px rgba(0,0,0,0.4);
}

/* Optional subtle accent line */
.audience-card::after {
    content: "";
    position: absolute;
    bottom: 12px;
    left: 50%;
    width: 40px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 3px;
    background: var(--accent);
    opacity: 0.6;
}
.audience-card i {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}
/* ==============================
   TRUST / VALUE PILLARS
================================ */

.trust-section {
    position: relative;
}

.trust-section .grid {
    gap: 22px;
}

.trust-card {
    position: relative;
    padding: 28px 22px;
    border-radius: 16px;
    text-align: center;

    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;

    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: all 0.35s ease;
}

/* Reveal animation support */
.trust-card.reveal {
    opacity: 0;
    transform: translateY(24px);
}

.trust-card.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover interaction */
.trust-card:hover {
    transform: translateY(-6px);
    border-color: rgba(140, 255, 0, 0.4);
    box-shadow:
        0 0 0 1px rgba(140,255,0,0.15),
        0 18px 36px rgba(0,0,0,0.45);
}

/* Accent indicator */
.trust-card::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    width: 36px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 3px;
    background: var(--accent);
    opacity: 0.55;
}
.trust-card i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--accent);
}
/* Floating card icon enhancement */

.floating-card {
    display: flex;
    align-items: center;
    
    gap: 14px;
}

.floating-card i {
    font-size: 1.25rem;
    color: var(--accent);
    opacity: 0.85;
    flex-shrink: 0;
}

/* Slight icon glow on hover */
.floating-card:hover i {
    opacity: 1;
    text-shadow: 0 0 8px rgba(140, 255, 0, 0.6);
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.3s ease;
}

/* Underline (hidden by default) */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Hover effect */
.nav-link:hover {
    color: var(--primary);
}

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

/* Active link */
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    width: 100%;
}
.nav-link::after {
    left: 50%;
    transform: translateX(-50%);
}
/* Footer Logo */

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.footer-logo-img {
    width: 150px;       /* Adjust based on footer design */
    height: auto;       /* Maintain aspect ratio */
    display: block;
}

/* Optional subtle hover */
.footer-logo:hover .footer-logo-img {
    opacity: 0.9;
}
.footer-logo:hover .footer-logo-img {
    opacity: 0.9;
}


@media (max-width: 768px) {
    .footer-logo-img {
        max-width: 120px;
    }
}
.newsletter-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    /* Issue #1: Force Space Between Logo and Hamburger */
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center;
        width: 100%;
        padding: 0.5rem 0; /* Tighten up height on mobile */
    }

    /* Ensure the container inside the header doesn't restrict width too much */
    header .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .logo-img {
        height: 40px; /* Slightly smaller logo for mobile */
    }

    /* Issue #2: Fix Hero Overlap */
    .hero-section {
        padding-top: 140px !important; /* Pushes the content below the fixed header */
    }

    /* Navigation Menu Mobile Styling */
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 25, 50, 0.98); /* Solid dark blue for readability */
        padding: 2rem;
        border-radius: 0 0 20px 20px;
        z-index: 999;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex; /* Hamburger appears on mobile */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    /* Make sure hamburger bars are visible */
    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--text-primary);
        border-radius: 10px;
        transition: 0.3s;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column; /* Stacks buttons on top of each other */
        gap: 1rem;             /* Creates even space between them */
        width: 100%;
        max-width: 300px;      /* Prevents buttons from becoming too wide */
    }
    .btn-primary, .btn-secondary {
        margin-left: 0 !important; /* Force removal of any lingering margins */
        text-align: center;
        width: 100%;           /* Makes both buttons the same width */
    }
}





/* About Page Components (about.php) */
.page-header {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.overview-section {
    padding: var(--spacing-xl) 0;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.overview-text h2 {
    margin-bottom: var(--spacing-md);
}

.overview-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.overview-stat {
    background: var(--dark-secondary);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.overview-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

.overview-stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.overview-image {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--dark-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overview-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.1) 0%, rgba(0, 217, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.mission-vision-section {
    background: var(--dark-secondary);
    padding: var(--spacing-xl) 0;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.mission-vision-card {
    background: var(--dark-tertiary);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mission-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
}

.mission-vision-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.mission-vision-card h3 {
    margin-bottom: var(--spacing-md);
}

.mission-vision-card p {
    line-height: 1.8;
}

.leadership-section {
    padding: var(--spacing-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.team-member {
    background: var(--dark-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: rgba(10, 132, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.team-member-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(0, 217, 255, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.team-member-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--dark-secondary), transparent);
}

.team-member-info {
    padding: var(--spacing-md);
}

.team-member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-member-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.team-member-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.team-member-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
}

.why-choose-section {
    background: var(--dark-secondary);
    padding: var(--spacing-xl) 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.why-choose-card {
    background: var(--dark-tertiary);
    padding: var(--spacing-lg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.why-choose-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 132, 255, 0.3);
}

.why-choose-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-display);
    margin-bottom: var(--spacing-sm);
}

.why-choose-card h3 {
    margin-bottom: var(--spacing-sm);
}

.why-choose-card p {
    line-height: 1.7;
}

.approach-section {
    padding: var(--spacing-xl) 0;
}

.approach-timeline {
    position: relative;
    padding-left: 50px;
    margin-top: var(--spacing-lg);
}

.approach-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.approach-step {
    position: relative;
    margin-bottom: var(--spacing-lg);
    background: var(--dark-secondary);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.approach-step::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--dark);
}

.approach-step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.approach-step h4 {
    margin-bottom: var(--spacing-sm);
}

.overview-stat-number {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Standards-compliant version */
}


/* =========================
   About Page Enhancements
   ========================= */

/* Wave/Curve under header */
.header-wave {
    display: block;
    width: 100%;
    height: 80px;
    margin-top: -5px; /* Overlap header-bottom slightly */
}

/* Adjust page-header padding for wave */
.page-header {
    padding: 150px 0 50px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    position: relative;
    overflow: hidden;
}

/* Overview Section - Mobile adjustments */
@media (max-width: 768px) {
    .overview-content {
        display: block;
        text-align: center;
    }
    .overview-image {
        height: 300px;
        margin-top: var(--spacing-md);
    }
    .overview-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        grid-template-columns: 1fr 1fr;
        gap: 12px; /* force visible spacing */
        padding: 0 10px; /* space from screen edges */
    }
}

/* Mission & Vision - Mobile */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

/* Leadership Team - Mobile */
@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Why Choose Us - Mobile */
@media (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

/* Approach Timeline - Alternating steps on desktop */
@media (min-width: 992px) {
    .approach-step:nth-child(even) {
        margin-left: 80px;
        background: var(--dark-tertiary);
    }
    .approach-step:nth-child(odd) {
        margin-right: 80px;
    }
}

/* Enhance reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Overview Stats Numbers */
.overview-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* CTA Section - Buttons full width on mobile */
@media (max-width: 768px) {
    .cta-buttons a {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
}

/* Subtle hover enhancements */
.team-member:hover,
.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Parallax effect for hero/overview image */
.parallax {
    position: relative;
    overflow: hidden;
}

.parallax .featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateY(0px);
    transition: transform 0.2s linear;
}

.parallax .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 60%);
    pointer-events: none;
}






/* ========== Contact Page (contact.php) ========== */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info-card {
    background: var(--dark-secondary);
    /* Reduced vertical padding (1.2rem) while keeping side padding (2rem) */
    padding: 1.2rem 2rem; 
    border-radius: 20px;
    /* Reduced margin-bottom to pull cards closer together */
    margin-bottom: 1rem; 
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    /* Ensure the icon and text sit on the same line if desired */
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}
.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Remove any fixed heights or large margins here */
    height: auto; 
    margin: 0;
}

.contact-form {
    
    padding: var(--spacing-lg);
    border-radius: 20px;
    
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}


#successOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

#successOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-box {
    background: var(--dark-secondary);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    animation: scaleIn 0.5s ease;
}

.checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes scaleIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* ===============================
   Contact Page – Mobile: Section Flow
================================ */
@media (max-width: 768px) {

    /* One column, full width */
    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    /* Each block becomes a section */
    .contact-form,
    .contact-info {
        width: 100%;
    }

    /* Make form feel like its own section */
    .contact-form {
        padding: var(--spacing-lg);
        background: var(--dark-secondary);
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.06);
    }

    /* Contact info becomes stacked cards */
    .contact-info-card {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Section breathing room */
    .contact-section {
        padding: 60px 0;
    }
}

.service-intro {
    padding: var(--spacing-xl) 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.service-section {
    padding: var(--spacing-xl) 0;
}

.service-section:nth-child(even) {
    background: var(--dark-secondary);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}




.service-text h2 {
    margin-bottom: var(--spacing-md);
}

.service-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.service-features {
    list-style: none;
    margin-top: var(--spacing-md);
}

.service-features li {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.service-features li {
    display: flex;
    flex-direction: column; /* stack title & subtitle vertically */
    align-items: flex-start;
    gap: 0.25rem;
}
.feature-title { font-weight: 600; font-size: 1rem; }
.feature-subtitle { font-weight: 400; font-size: 0.9rem; color: var(--text-secondary); }
.service-features li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(10, 132, 255, 0.3);
    transform: translateX(5px);
}

.service-features li i {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 2px;
}



.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.benefit-card {
    background: var(--dark-tertiary);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 132, 255, 0.3);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto var(--spacing-sm);
}

.benefit-card h4 {
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.95rem;
}

/* ========== Products Page (products.php) ========== */
.content-section {
    padding: var(--spacing-xl) 0;
    min-height: 50vh;
}


.service-section {
    position: relative;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(10,132,255,0.4),
        transparent
    );
}


@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .service-visual {
        min-height: 220px;
        order: -1; /* visual first */
    }

    .service-text h2 {
        font-size: 1.6rem;
    }

    .service-section {
        padding: var(--spacing-lg) 0;
    }
}
.service-features li:hover {
    box-shadow: 0 0 0 1px rgba(10,132,255,0.3),
                0 10px 30px rgba(10,132,255,0.15);
}
.cta-section {
    background:
        radial-gradient(circle at top, rgba(10,132,255,0.25), transparent 60%),
        var(--dark);
}



.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-content: center;
}

.metric-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: float 5s ease-in-out infinite;
}

.metric-card:nth-child(2) { animation-delay: 1s; }
.metric-card:nth-child(3) { animation-delay: 2s; }



@keyframes scan {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.case-study-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.case-study-header .case-tag {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 50px;
    background: rgba(0,255,180,0.12);
    color: var(--accent);
    font-weight: 600;
}

.case-desc {
    color: var(--text-secondary);
    margin: 1rem 0;
}

.case-points {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.case-points li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.job-card {
    background: var(--dark);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
}

.job-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.job-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.featured-post {
    background: linear-gradient(
        135deg,
        rgba(10,132,255,0.15),
        rgba(0,0,0,0.6)
    );
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: var(--spacing-xl);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.featured-post h2 {
    font-size: 2rem;
    margin: var(--spacing-sm) 0;
}

.featured-post p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}
.insight-card {
    background: var(--dark-tertiary);
    padding: var(--spacing-md);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.insight-card:hover {
    transform: translateY(-6px);
    border-color: rgba(10,132,255,0.35);
    box-shadow: 0 10px 40px rgba(10,132,255,0.12);
}

.insight-card h3 {
    font-size: 1.25rem;
    margin: var(--spacing-sm) 0;
}

.insight-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.insight-card a {
    margin-top: var(--spacing-sm);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.insight-card a:hover {
    text-decoration: underline;
}
.post-tag {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(10,132,255,0.15);
    color: var(--primary);
    width: fit-content;
}
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article h1 {
    font-size: 2.4rem;
    margin-bottom: var(--spacing-sm);
}

.blog-article p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.blog-article h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}
.article-cta {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--dark-secondary);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.article-cta h3 {
    margin-bottom: 0.5rem;
}

.article-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}
@media (max-width: 768px) {
    .featured-post {
        padding: var(--spacing-lg);
    }

    .featured-post h2 {
        font-size: 1.6rem;
    }

    .insight-card h3 {
        font-size: 1.15rem;
    }
}
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.insight-card {
    background: var(--dark-tertiary);
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.insight-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10,132,255,0.3);
}

.insight-card h3 {
    margin: 0.5rem 0;
}

.insight-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.insight-card a {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.insight-details-section p, 
.insight-details-section ul {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.insight-details-section ul {
    list-style: disc;
    margin-left: 2rem;
}

.post-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}
.privacy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.privacy-content p, 
.privacy-content ul {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-content ul {
    list-style: disc;
    margin-left: 2rem;
}
.terms-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.terms-content p,
.terms-content ul {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.terms-content ul {
    list-style: disc;
    margin-left: 2rem;
}
.cookies-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.cookies-content p,
.cookies-content ul {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.cookies-content ul {
    list-style: disc;
    margin-left: 2rem;
}


/* Job Application Modal */
/* Job Application Modal - Dark Theme */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95); /* semi-dark overlay */
}

.modal-content {
    background-color: var(--dark-secondary); /* matches site dark background */
    color: #fff; /* white font */
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    font-family: var(--font-body); /* match website font */
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #fff;
}

.modal-content label {
    display: block;
    margin-top: 10px;
    color: #fff;
}

.modal-content input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #222; /* darker input background */
    color: #fff; /* text white */
}

.modal-content input::placeholder {
    color: #aaa;
}

.modal-content button {
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* Reduce card width/padding on mobile */
@media (max-width: 768px) {
    .mission-vision-section .container {
        padding-left: 10px;  /* reduce container padding */
        padding-right: 10px;
    }

    .mission-vision-card {
        padding: 15px 10px;  /* reduce card inner padding */
        margin-bottom: 20px; /* keep some spacing between cards */
    }

    .mission-vision-grid {
        grid-gap: 10px; /* reduce gap between cards */
    }
    .team-member-info {
        padding-left: 10px;  /* reduce container padding */
        padding-right: 10px;
    }
    .team-member-grid {
        grid-gap: 10px; /* reduce gap between cards */
    }
}


.main-page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1; /* Keeps it behind text */
    overflow: hidden;
}

/* Add a subtle dark overlay so text remains readable over the 3D lines */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
circle at center,
rgba(10,17,40,0.15) 0%,
rgba(10,17,40,0.65) 60%,
rgba(10,17,40,0.95) 100%
);
    pointer-events: none;
}
@media (max-width: 768px) {
    #vanta-canvas canvas {
        opacity: 0.6; /* Softens the background so text pops */
    }
}

.main-page-background {
    pointer-events: none; /* Critical: Allows users to click buttons THROUGH the 3D effect */
}

.gradient-text {
    background: linear-gradient(135deg, #1E90FF, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-cta.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 6px 18px rgba(30,144,255,0.4);
}



/* Container for the new animation */
.overview-section {
    position: relative;
    z-index: 5; /* This pushes the text AND the image in front of Vanta */
    background: transparent;
}

/* 2. Updated Image Wrapper with Solid Background */
.overview-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    border-radius: 0px;
    overflow: hidden;
    /* This solid color acts as a shield against the Vanta canvas */
    background: #050a18; 
    z-index: 6; 
    color: var(--text-primary);

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.06),
        rgba(255,255,255,0.02)
    );

    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.image-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    background: #050a18; 
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(30, 144, 255, 0.3);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), inset 0 0 30px rgba(30, 144, 255, 0.1);
}

/* 4. Ensure your text also stays in front */
.overview-text {
    position: relative;
    z-index: 6;
}

/* Rotating Ring */
.image-wrapper::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 1px dashed var(--primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: rotateCore 15s linear infinite;
}

/* Floating Internal Nodes (Animated via CSS) */
.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(1px) drop-shadow(0 0 5px var(--primary));
    opacity: 0.6;
}

/* Inner Pulsing Node */
.image-wrapper::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--primary);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic shape */
    box-shadow: 0 0 50px rgba(30, 144, 255, 0.3);
    animation: organicPulse 8s ease-in-out infinite;
}

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

@keyframes organicPulse {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: scale(1); }
    50% { border-radius: 50%; transform: scale(1.1); box-shadow: 0 0 80px rgba(30, 144, 255, 0.5); }
}


/* Container for the right-side visual */
.service-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* The Glass Metrics Hub */
.metrics-grid-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background: rgba(10, 17, 40, 0.6); /* Deep solid base */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Individual Metric Rows */
.metric-card-ai {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.metric-card-ai:hover {
    background: rgba(30, 144, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(10px);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SVG Sparkline Animation */
.metric-chart.bar-anim path {
    /* dasharray should be roughly the length of the path */
    stroke-dasharray: 200; 
    stroke-dashoffset: 200;
    /* 'infinite' ensures it doesn't stop after the 1st time */
    animation: drawTrendLine 4s ease-in-out infinite;
    filter: drop-shadow(0 0 3px var(--primary)); /* Adds a slight neon glow */
}
@keyframes drawTrendLine {
    0% {
        stroke-dashoffset: 200;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    40%, 70% {
        /* The line stays fully drawn for a while */
        stroke-dashoffset: 0;
        opacity: 1;
    }
    90%, 100% {
        /* The line fades out before restarting */
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes drawChart {
    to { stroke-dashoffset: 0; }
}

/* Chatbot Heartbeat Pulse */
.pulse-anim path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: heartbeat 3s linear infinite;
}

@keyframes heartbeat {
    0% { stroke-dashoffset: 1000; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1000; }
}
.service-content.reverse {
    flex-direction: row-reverse;
}
/* Ensure 'Reverse' content aligns the Hub correctly on the left */
.service-content.reverse .service-visual {
    order: 1;
}
.service-content.reverse .service-text {
    order: 2;
}

/* Responsive fix for the Hub */
@media (max-width: 992px) {
    .metrics-grid-wrapper {
        max-width: 100%;
        margin-top: 2rem;
    }
}


/* --- 1. RPA: Upward Trend Line --- */
.trend-up path {
    /* This creates the 'invisible' line that gets drawn */
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawTrend 3s ease-in-out infinite;
}

@keyframes drawTrend {
    0% { stroke-dashoffset: 200; opacity: 0; }
    20% { opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* --- 2. Analytics: Growing Bars --- */
.bar-anim {
    overflow: visible;
}

.bar-anim .bar {
    /* Forces the bar to grow UP from the bottom */
    transform-origin: bottom;
    transform: scaleY(0);
    animation: growBar 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Stagger the bars for a 'loading' data effect */
.bar-anim .bar:nth-child(1) { animation-delay: 0.1s; }
.bar-anim .bar:nth-child(2) { animation-delay: 0.3s; }
.bar-anim .bar:nth-child(3) { animation-delay: 0.5s; }
.bar-anim .bar:nth-child(4) { animation-delay: 0.7s; }

@keyframes growBar {
    0% { transform: scaleY(0); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* --- 3. Chatbot: Pulse (Kept for consistency) --- */
.pulse-anim path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: pulseStroke 2s linear infinite;
}

@keyframes pulseStroke {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: -100; }
}

.shield-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 1. Shield "Scanning" Pulse */
.shield-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.5));
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { opacity: 1; stroke-width: 2; }
    50% { opacity: 0.6; stroke-width: 2.5; filter: drop-shadow(0 0 12px rgba(76, 175, 80, 0.8)); }
}

/* 2. Drawing the Checkmark */
.check-path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawCheck 3s ease-in-out infinite;
}

@keyframes drawCheck {
    0%, 20% { stroke-dashoffset: 20; }
    50%, 80% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Add a subtle green background glow to the card on hover */
.metric-card-ai:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
    transform: translateX(10px);
}




.globe-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.globe-svg {
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.4));
    animation: globeRotate 15s linear infinite;
}

/* Vertical lines "rotating" effect */
.globe-line {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawGlobe 4s ease-in-out infinite;
    opacity: 0.6;
}

/* Horizontal lines "shimmer" effect */
.globe-line-h {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: drawGlobe 3s ease-in-out infinite;
    animation-delay: 1s;
    opacity: 0.4;
}

@keyframes drawGlobe {
    0% { stroke-dashoffset: 60; opacity: 0.2; }
    50% { stroke-dashoffset: 0; opacity: 1; stroke-width: 1.5; }
    100% { stroke-dashoffset: -60; opacity: 0.2; }
}

@keyframes globeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Adding a "Glow Ping" behind the globe */
.globe-container::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--primary);
    filter: blur(20px);
    opacity: 0.2;
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(0.8); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.3; }
}





.speed-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.speed-svg {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
}

/* 1. Electrical Flicker on the Bolt */
.bolt-path {
    animation: boltFlicker 2s ease-in-out infinite;
}

@keyframes boltFlicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    50% { opacity: 0.8; filter: brightness(1.5) drop-shadow(0 0 8px #FFD700); }
}

/* 2. Rapid Sonic Waves */
.speed-wave {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: wavePing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.speed-wave:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes wavePing {
    0% {
        stroke-dashoffset: 20;
        opacity: 0;
        transform: translateX(-2px);
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -20;
        opacity: 0;
        transform: translateX(5px);
    }
}

/* Hover effect for the whole card */
.metric-card-ai:hover .speed-svg {
    animation: fastJolt 0.2s ease-in-out double;
}

@keyframes fastJolt {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}






/* 1. Set the growth behavior */
.bar-anim .bar {
    transform-origin: bottom; /* Essential: makes them grow UP */
    transform: scaleY(0);    /* Start invisible */
    animation: growBars 2.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

/* 2. Stagger the animation for each bar */
.bar-anim .bar:nth-child(1) { animation-delay: 0.1s; }
.bar-anim .bar:nth-child(2) { animation-delay: 0.3s; }
.bar-anim .bar:nth-child(3) { animation-delay: 0.5s; }
.bar-anim .bar:nth-child(4) { animation-delay: 0.7s; }

/* 3. The Keyframes */
@keyframes growBars {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        transform: scaleY(1); /* Bar reaches full height */
        opacity: 1;
    }
    80% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(0); /* Reset for loop */
        opacity: 0;
    }
}

/* Optional: Add a glow to the tallest bar */
.bar-anim .bar:nth-child(4) {
    filter: drop-shadow(0 0 5px var(--primary));
}




.reduction-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 1. The Slicing Trend Line */
.drop-line {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: sliceDown 4s ease-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 75, 43, 0.3));
}

@keyframes sliceDown {
    0% {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    10%, 20% {
        opacity: 1;
    }
    50%, 80% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* 2. The Pulsing End Point */
.drop-point {
    opacity: 0;
    animation: pointPop 4s ease-out infinite;
}

@keyframes pointPop {
    0%, 45% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    60%, 80% { transform: scale(1); opacity: 1; filter: blur(1px); }
    100% { opacity: 0; }
}

/* Color adjustment for the card on hover */
.metric-card-ai:hover {
    border-color: #FF4B2B;
    background: rgba(255, 75, 43, 0.05);
}








/* --- Strategy Animations --- */
.vision-pulse {
    animation: pulseEye 2s infinite;
    transform-origin: center;
}
@keyframes pulseEye {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; filter: blur(1px); }
}

.road-path {
    animation: drawRoad 3s ease-in-out infinite;
}
@keyframes drawRoad {
    0% { stroke-dashoffset: 30; }
    50%, 100% { stroke-dashoffset: 0; }
}

.roi-arrow {
    animation: roiSlide 2s ease-out infinite;
}
@keyframes roiSlide {
    0% { transform: translate(-5px, 5px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(0, 0); opacity: 0; }
}

/* --- Infrastructure Animations --- */
.migrate-arrow {
    animation: arrowSlide 1.5s infinite;
}
@keyframes arrowSlide {
    0% { transform: translateX(-10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(10px); opacity: 0; }
}

.scale-box {
    animation: scaleBox 3s ease-in-out infinite;
    transform-origin: center;
}
@keyframes scaleBox {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); filter: drop-shadow(0 0 5px var(--primary)); }
}

.secure-shield {
    animation: shieldGlow 3s infinite;
}
@keyframes shieldGlow {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; stroke-width: 3px; }
}





/* --- Web & Mobile Animations --- */
.mobile-frame {
    animation: deviceFloat 3s ease-in-out infinite;
}
@keyframes deviceFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); filter: drop-shadow(0 5px 10px rgba(0,217,255,0.2)); }
}

.sync-path {
    animation: syncRotate 4s linear infinite;
    transform-origin: center;
}
@keyframes syncRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ux-ripple {
    animation: rippleEffect 2s ease-out infinite;
}
@keyframes rippleEffect {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(3); opacity: 0; }
}

/* --- Enterprise Animations --- */
.node-tl, .node-tr, .node-bl, .node-br {
    animation: nodeConnect 3s ease-in-out infinite;
}
@keyframes nodeConnect {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(3px, 3px); stroke-width: 3px; }
}
/* Note: Adjust translate directions for each node: TR:(-3,3), BL:(3,-3), BR:(-3,-3) */

.gear-large {
    animation: gearSpin 8s linear infinite;
    transform-origin: center;
}
@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



/* --- BI & Reporting --- */
.gauge-needle {
    transform-origin: 12px 12px;
    animation: needleSnap 3s ease-in-out infinite;
}
@keyframes needleSnap {
    0%, 100% { transform: rotate(-45deg); }
    30%, 70% { transform: rotate(45deg); }
}

.radar-ping {
    animation: radarRipple 2s ease-out infinite;
    transform-origin: center;
}
@keyframes radarRipple {
    0% { transform: scale(0.1); opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

.radar-sweep {
    transform-origin: 12px 12px;
    animation: rotateSweep 4s linear infinite;
}
@keyframes rotateSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Predictive AI --- */
.data-dot {
    animation: orbitData 5s linear infinite;
    transform-origin: 12px 12px;
}
@keyframes orbitData {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.forecast-line {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawForecast 4s ease-out infinite;
}
@keyframes drawForecast {
    0%, 20% { stroke-dashoffset: 40; }
    50%, 90% { stroke-dashoffset: 0; }
    100% { opacity: 0; }
}

.brain-pulse {
    animation: brainWave 2s ease-in-out infinite;
}
@keyframes brainWave {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-2px); }
}





/* 1. Animate the Bar growing up */
.action-bar {
    transform-origin: bottom;
    transform: scaleY(0);
    animation: growActionBar 3s ease-out infinite;
}

@keyframes growActionBar {
    0% { transform: scaleY(0); opacity: 0; }
    20%, 80% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* 2. Animate the Checkmark drawing after the bar grows */
.action-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: drawActionCheck 3s ease-in-out infinite;
}

@keyframes drawActionCheck {
    0%, 30% { 
        stroke-dashoffset: 20; 
        opacity: 0; 
    }
    50%, 80% { 
        stroke-dashoffset: 0; 
        opacity: 1; 
    }
    100% { 
        opacity: 0; 
    }
}





/* --- Finance --- */
.finance-pulse {
    animation: moveUp 2s ease-in-out infinite;
}
@keyframes moveUp {
    0% { transform: translateY(5px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-5px); opacity: 0; }
}

/* --- Wildlife Photography --- */
.tracking-dot {
    animation: trackBird 4s ease-in-out infinite;
}
@keyframes trackBird {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3px, -2px); }
    75% { transform: translate(-2px, 3px); }
}

.fast-check {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: checkSnap 2s ease-out infinite;
}
@keyframes checkSnap {
    0%, 20% { stroke-dashoffset: 20; }
    40%, 80% { stroke-dashoffset: 0; }
    100% { opacity: 0; }
}

/* --- Trading --- */
.candle {
    stroke-dasharray: 10;
    stroke-dashoffset: 10;
    animation: drawCandle 3s ease-in-out infinite;
}
@keyframes drawCandle {
    0% { stroke-dashoffset: 10; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: 0; }
}

.signal-core {
    animation: flashSignal 1.5s ease-in-out infinite;
}
@keyframes flashSignal {
    0%, 100% { fill: transparent; opacity: 0.5; }
    50% { fill: #FFD700; opacity: 1; filter: drop-shadow(0 0 8px #FFD700); }
}

.gear-rotate {
    animation: gearSpin 10s linear infinite;
    transform-origin: 8px 16px;
}


/* --- AI Categorization: Items sliding into the boxes --- */
.sort-item-1 {
    animation: sortSlide 3s ease-in-out infinite;
}
.sort-item-2 {
    animation: sortSlide 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes sortSlide {
    0% { transform: translateX(0); opacity: 0; }
    30% { opacity: 1; }
    60%, 100% { transform: translateX(10px); opacity: 0; }
}

/* --- Privacy Focused: Pulsing Biometric Glow --- */
.privacy-glow {
    transform-origin: center;
    animation: pulseGlowGreen 2.5s ease-in-out infinite;
}

@keyframes pulseGlowGreen {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(2.5); opacity: 0.4; }
}

/* --- Photographer Workflow: Moving Dashed Line (Data Flow) --- */
.flow-line-anim {
    stroke-dasharray: 4;
    /* This creates the 'conveyor belt' effect */
    animation: flowDash 1s linear infinite;
}

@keyframes flowDash {
    to {
        stroke-dashoffset: -8;
    }
}








/* --- 1. Location Pulse (Our Office) --- */
.ping-circle {
    animation: locationPing 2s ease-in-out infinite;
    transform-origin: center;
    fill: var(--primary);
}

@keyframes locationPing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.4; filter: blur(1px); }
}

/* --- 2. Email Glide (Email Us) --- */
.mail-flap {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: envelopeDraw 4s ease-in-out infinite;
}

@keyframes envelopeDraw {
    0%, 20% { stroke-dashoffset: 30; opacity: 0.3; }
    50%, 80% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -30; opacity: 0.3; }
}

/* --- 3. Call Waves (Call Us) --- */
.call-wave-1, .call-wave-2 {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    animation: signalWave 2.5s ease-in-out infinite;
}

.call-wave-2 {
    animation-delay: 0.4s;
    opacity: 0.6;
}

@keyframes signalWave {
    0% { stroke-dashoffset: 20; opacity: 0; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    80%, 100% { stroke-dashoffset: 0; opacity: 0; }
}



@media (max-width: 768px) {

    /* Stack all service sections vertically */
    .service-content,
    .service-content.reverse {
        flex-direction: column;
    }

    /* Always put text first, metrics second */
    .service-content .service-text,
    .service-content.reverse .service-text {
        order: 1;
    }

    .service-content .service-visual,
    .service-content.reverse .service-visual {
        order: 2;
        margin-top: 20px; /* spacing between text and metrics */
    }

}

/* Desktop: horizontal layout */
/* Desktop: horizontal layout */
@media (min-width: 768px) {
    .benefit-card {
        display: flex;
        flex-direction: row; /* icon left, content right */
        align-items: flex-start; 
        gap: var(--spacing-md);
        text-align: left;
    }

    .benefit-icon {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.75rem;
        border-radius: 15px;
    }

    .benefit-content h4 {
        margin: 0 0 0.25rem 0;
    }

    .benefit-content p {
        margin: 0;
        font-size: 0.95rem;
    }
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    .benefit-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .benefit-icon {
        margin-bottom: var(--spacing-sm);
    }
}


/* Make the left-right layout stack properly on mobile without extra space */
@media (max-width: 768px) {
    .service-content {
        display: flex;
        flex-direction: column; /* stack text first, visual second */
        gap: 0.3rem; /* space between text and metrics */
    }

    .service-text, 
    .service-visual {
        width: 100%; /* full width on mobile */
        margin: 0; /* remove any leftover desktop margin */
    }

    .metrics-grid-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem; /* adjust spacing between metrics */
        justify-content: flex-start; /* align to left, or center if you prefer */
    }

    .metric-card-ai {
        flex: 1 1 100%; /* full width for each metric */
        margin: 0;
        font-size: 0.9rem;
    }
}


@media (max-width: 480px) {
    .metric-card-ai {
        font-size: 0.9rem;
    }
}













/* Gauges & Speed */
.gauge-needle { transform-origin: 12px 12px; animation: needleSnap 3s ease-in-out infinite; }
@keyframes needleSnap { 0%, 100% { transform: rotate(-45deg); } 50% { transform: rotate(60deg); } }

/* Lightning */
.lightning { animation: flash 2s linear infinite; }
@keyframes flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* 24/7 Rotation */
.sync-rotate { transform-origin: 12px 12px; animation: spin 4s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Cost/Ticket Reduction */
.drop-line { animation: drawLine 3s ease-out infinite; }
@keyframes drawLine { 0% { stroke-dashoffset: 40; } 50%, 100% { stroke-dashoffset: 0; } }

/* Gears */
.gear-rotate { transform-origin: 12px 12px; animation: spin 8s linear infinite; }

/* Scalable Architecture */
.box-anim { animation: boxFloat 3s ease-in-out infinite; }
@keyframes boxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Radar/Visibility */
.radar-sweep { transform-origin: 12px 12px; animation: spin 3s linear infinite; }

/* Mobile Morph */
.mobile-morph { animation: morph 3s ease-in-out infinite; }
@keyframes morph { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Ripple/UI */
.click-ripple { animation: ripple 2s ease-out infinite; transform-origin: center; }
@keyframes ripple { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(3); opacity: 0; } }

/* Security Pulse */
.privacy-pulse { animation: pPulse 2s infinite; transform-origin: center; fill: #4CAF50; }
@keyframes pPulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }



/* Mobile tweaks for metric cards and main card */
@media (max-width: 768px) {
    .service-content {
        gap: 1rem; /* spacing between text and metrics */
    }

    .service-visual {
        width: 100%; /* take full width */
        margin: 0;   /* remove extra spacing */
    }

    .metrics-grid-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: stretch; /* make cards fill full width */
        gap: 0.75rem;
    }

     

    .metric-info {
        text-align: center; /* center label below icon */
        margin-bottom: 0.25rem;
    }
}


/* Mobile layout for metrics section */
@media (max-width: 768px) {
    /* Make the visual section full width */
    .service-visual {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Make the wrapper full width and stack vertically */
    .metrics-grid-wrapper {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
        align-items: stretch !important; /* full width for children */
    }

    /* Metric cards full width, reduce inner padding */
    .metric-card-ai {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    /* Center icon and info inside metric card */
    .metric-card-ai svg,
    .metric-info {
        display: block;
        margin: 0 auto 0.5rem auto;
        text-align: center;
    }

    .metric-info {
        margin-bottom: 0.25rem !important;
    }
}


@media (max-width: 768px) {
    /* Make the container flush to screen edges */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* Make the case-study card full width */
    .case-study-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;          /* remove default margin */
        padding: 1rem !important;      /* minimal padding inside the card */
        border-radius: 0 !important;   /* optional: remove round corners for edge-to-edge look */
        box-sizing: border-box;        /* include padding in width */
    }
}



@media (max-width: 768px) {
    .floating-cards {
        gap: 1rem;
        padding: 0 1rem;
    }

    .floating-card {
        padding: 1.5rem 2rem;
    }
}

a[href^="mailto:"] {
    color: #ffffff !important;
}

a[href^="mailto:"]:hover {
    color: #ffffff !important;
}



.drop-line {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawLine 2s ease forwards infinite;
}

@keyframes drawLine {
    0% {
        stroke-dashoffset: 40;
    }
    60% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 0;
    }
}


.metric-chart path {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
    animation: chartLine 3s ease forwards infinite;
}

@keyframes chartLine {
    0% {
        stroke-dashoffset: 120;
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.gear-rotate {
    transform-origin: center;
    animation: gearSpin 4s linear infinite;
}

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


.box-anim {
    animation: boxPulse 2s ease-in-out infinite;
}

.box-anim:nth-child(1) { animation-delay: 0s; }
.box-anim:nth-child(2) { animation-delay: 0.3s; }
.box-anim:nth-child(3) { animation-delay: 0.6s; }

@keyframes boxPulse {
    0%,100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.25);
        opacity: 1;
    }
}

.gear-icon {
    transform-origin: center;
    transform-box: fill-box;
    animation: gearSpin 5s linear infinite;
}

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


.pixel-pulse {
    transform-origin: center;
    animation: pixelPulse 1.5s ease-in-out infinite;
}

@keyframes pixelPulse {
    0%,100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(3);
        opacity: 1;
    }
}


.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-text {
    display: flex;
    flex-direction: column;
}

.benefit-text h4 {
    margin: 0;
}

.benefit-text p {
    margin: 0.25rem 0 0;
}


.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:2rem;
    margin-top:3rem;
}

.service-card{
    background:var(--dark-secondary);
    padding:2rem;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.05);
    transition:all 0.3s ease;
}

.service-card:hover{
    transform:translateY(-6px);
    border-color:var(--primary);
}

.service-icon{
    font-size:28px;
    color:var(--primary);
    margin-bottom:1rem;
}

.service-card h3{
    margin-bottom:0.5rem;
}

.service-card p{
    opacity:0.8;
    margin-bottom:1rem;
}

.service-link{
    color:var(--primary);
    font-weight:600;
}