/* =========================================
   CORE VARIABLES (DARK THEME - GLASSMORPHISM)
========================================= */
:root {
    /* Converted to transparent RGBA for global glass effect */
    --bg-white: rgba(11, 14, 20, 0.7);   /* Main Background */
    --bg-light: rgba(22, 27, 34, 0.7);  /* Card Background */
    --bg-dark: rgba(5, 7, 10, 0.7);     /* Deepest Background (Footer) */
    
    --text-main: #ffffff;  /* Primary Text */
    --text-dim: #94a3b8;   /* Secondary Text */
    
    --accent: #4f46e5; 
    --accent-glow: rgba(79, 70, 229, 0.4);
    --accent-gradient: linear-gradient(to right, var(--accent), #a855f7);
    
    --border-color: rgba(30, 41, 59, 0.6); /* Transparent borders for better blending */

    --hex-glow: rgba(6, 182, 212, 0.4);
    --hex-border: rgba(6, 182, 212, 0.2);

}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Update the Root and Body */
:root {
    --hex-size: 100px; /* Adjust this to make them larger or smaller */
    --hex-border: 1px;
    --hex-color: rgba(6, 182, 212, 0.15); /* The cyan glow from your image */
}

body {
    background-color: #020408; /* Deeper black for higher contrast[cite: 2] */
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;

    /* THE ELECTRIC SHIELD PATTERN */
    /* We use a thicker, brighter stroke (0.2 opacity) and a background gradient that 'lights up' the lines */
    background-image: 
        /* Central energy source */
        radial-gradient(circle at 50% 40%, rgba(6, 182, 212, 0.25) 0%, transparent 60%),
        /* The Hexagon Mesh */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%2306b6d4' stroke-width='1.5' stroke-opacity='0.3'/%3E%3C/svg%3E");
    
    background-size: auto, 56px 100px; 
    background-attachment: fixed;
    background-repeat: repeat;
}

/* Make the sections act like glass panels over the energy grid */
.section, .section-white, .section-light, .section-dark {
    background-color: rgba(5, 7, 10, 0.15) !important; /* Almost fully clear[cite: 2] */
    backdrop-filter: blur(2px) brightness(1.2); /* Brightens the grid behind the text */
    border-top: 1px solid rgba(6, 182, 212, 0.1) !important;
}

/* Give the Hexagons a "Neon" flicker/glow effect */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* This creates a secondary glow layer */
    background: radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.2) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* IMPORTANT: Ensure sections don't hide the pattern */
.section, .section-white, .section-light, .section-dark, .trust-bar {
    background-color: rgba(5, 7, 10, 0.3) !important; /* Very transparent */
    backdrop-filter: blur(1px); /* Keep it sharp so you see the 'chains' */
    border: none !important;
}

/* Hero overlay needs to be subtler to see the shield behind it */
.home-hero div[style*="background: linear-gradient"] {
    background: linear-gradient(to bottom, rgba(5,7,10,0.2) 0%, rgba(5,7,10,0.6) 100%) !important;
}

.home-hero {
    min-height: 100vh;
}

/* Container for the background hexagons */
.hex-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* The Hexagon Shape */
.hex-item {
    position: absolute;
    width: 100px;
    height: 115px;
    background: rgba(6, 182, 212, 0.03); /* Subtle fill */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid var(--hex-border);
    transition: all 0.5s ease;
}

/* Adding the "Glow" effect seen in the image */
.hex-item::before {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 15px var(--hex-glow);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.5;
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(5deg); }
}

/* The sweeping animation keyframes */
@keyframes glass-sweep {
    /* Starts off-screen to the left */
    0% { background-position: 0 0, -100% 0; }
    /* Sweeps all the way across to the right */
    100% { background-position: 0 0, 200% 0; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2;}
a, button { cursor: pointer; }

/* Invert main logo to white for dark mode */
.logo img { max-height: 35px; width: auto; display: block;  }

/* --- SECTION BACKGROUNDS & PATTERNS --- */
.section-white { background-color: var(--bg-white); }
.section-light { background-color: var(--bg-light); }
.section-dark { background-color: var(--bg-dark); }

/* Applies a soft blur to all main sections so text remains readable */
.section-white, .section-light, .section-dark {
    backdrop-filter: blur(4px);         /* Lowered from 8px */
    -webkit-backdrop-filter: blur(2px); 
}

/* --- INTERACTIVE DARK BLOCKS --- */
.dark-mouse-track {
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.05) 0%, transparent 60%);
}
.dark-mouse-track::before {
    content: '';
    position: absolute;
    top: var(--y, 50%); left: var(--x, 50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle closest-side, rgba(79, 70, 229, 0.15), transparent);
    transform: translate(-50%, -50%);
    pointer-events: none; z-index: 0; opacity: 0;
    transition: opacity 0.4s ease; 
}
.dark-mouse-track:hover::before { opacity: 1; }

/* --- BUTTONS --- */
.btn-sm { 
    background: var(--accent) !important; color: #fff !important; padding: 12px 26px; 
    border-radius: 50px; transition: 0.3s; display: inline-block; 
    border: none; font-weight: 600;
}
.btn-sm:hover { transform: translateY(-2px); box-shadow: 0 10px 20px var(--accent-glow); }

/* --- PREMIUM GRADIENT BUTTONS (Original Pill Shape) --- */
.btn-main {
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    padding: 20px 45px; /* Back to your original generous padding */
    border-radius: 50px; /* Back to your original pill shape */
    font-size: 1.1rem; /* Back to your original text size */
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    border: none !important;
    background: linear-gradient(to right, #4f46e5, #a855f7); /* The new gradient */
    color: #fff !important; 
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.3); /* The new subtle purple shadow */
}

.btn-main:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.5); /* The new premium hover glow */
}

.btn-outline {
    background: transparent !important; color: #fff !important;
    border: 1px solid var(--border-color) !important; box-shadow: none !important;
}
.btn-outline:hover { background: var(--accent) !important; border-color: var(--accent) !important; }

/* --- NAVIGATION --- */
nav {
    position: fixed; top: 0; width: 100%; z-index: 100; padding: 15px 0;
    background: rgba(11, 14, 20, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; gap: 40px; align-items: center; list-style: none; }
.nav-links > li > a { text-decoration: none; color: var(--text-main); font-size: 0.95rem; font-weight: 600; transition: color 0.3s; display: flex; align-items: center; gap: 5px;}
.nav-links > li > a:hover { color: var(--accent); }

/* Mega Menu Dropdown */
.has-mega-menu { position: relative; padding-bottom: 20px; margin-bottom: -20px; }
.mega-menu {
    position: absolute; top: calc(100% + 20px); left: 50%; width: 850px;
    background: rgba(0,0,0,0.95); border: 1px solid var(--border-color); border-radius: 20px;
    padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 200;
}
.mega-menu::before { content: ''; position: absolute; top: -1px; left: 10%; width: 80%; height: 1px; background: radial-gradient(circle, var(--accent) 0%, transparent 100%); }

@media (min-width: 901px) {
    .mega-menu { transform: translateX(-50%) translateY(15px); }
    .has-mega-menu:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}

.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.mega-item { display: flex; align-items: center; gap: 15px; padding: 12px; border-radius: 12px; text-decoration: none; transition: 0.3s; }
.mega-item:hover { background: rgba(255,255,255,0.03); }
.mega-item i { width: 40px; height: 40px; background: rgba(79, 70, 229, 0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 1.2rem; flex-shrink: 0;}
.mega-item:hover i { background: var(--accent); color: #fff; }
.mega-text h4 { font-size: 0.95rem; color: var(--text-main); margin-bottom: 2px; }
.mega-text p { font-size: 0.75rem; color: var(--text-dim); margin: 0; }

/* Mobile Nav Styles */

.mobile-logo-li { display: none; }
.mobile-menu-toggle { display: none; background: transparent; border: none; font-size: 1.8rem; color: var(--text-main); transition: 0.3s; }
.mobile-menu-toggle:hover { color: var(--accent); }
.mobile-icon { display: none; }
.mobile-back { display: none; }

@media (max-width: 900px) {
    .mobile-menu-toggle { display: block; z-index: 202; position: relative; }
    .desktop-arrow { display: none; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 100%;
        background: rgba(11, 14, 20, 0.98); backdrop-filter: blur(30px);
        padding: 100px 30px 40px; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200; overflow-x: hidden;
        display: grid !important; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 30px 15px;
    }
    .nav-links.active { right: 0; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 100%;
        background: rgba(11, 14, 20, 0.98); backdrop-filter: blur(30px);
        padding: 90px 30px 40px; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 200; 
        overflow-y: auto; /* ALLOW VERTICAL SCROLLING */
        overflow-x: hidden;
        display: grid !important; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 30px 15px;
        align-content: start; /* Pushes everything to the top so it scrolls naturally */
    }
    
    .mobile-icon {
        display: flex; width: 75px; height: 75px; 
        background: linear-gradient(135deg, #4f46e5, #a855f7); /* The new premium gradient */
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white; font-size: 1.8rem; border-radius: 20px; 
        align-items: center; justify-content: center; transition: 0.3s;
        box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2); /* Subtle glow */
    }

.mobile-logo-li {
        display: flex;
        grid-column: 1 / -1; /* Forces it to stretch across both columns of your grid */
        justify-content: center;
        margin-bottom: 20px;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle divider */
    }
    
    .mobile-logo-li img {
        max-height: 40px; 
        width: auto;
    }

    .nav-links > li > a:active .mobile-icon { 
        background: linear-gradient(135deg, #a855f7, #4f46e5); /* Reverses on tap */
        transform: scale(0.95);
    }
    
    .mobile-cta-li { grid-column: 1 / -1; margin-top: 20px; display: flex; justify-content: center; }
    .mobile-cta-li .btn-sm { width: 100%; padding: 18px; font-size: 1.1rem; text-align: center; display: block;}
    
    .has-mega-menu { position: static; }
    .mega-menu {
        position: absolute; top: 0; left: 100%; width: 100%; height: 100vh; 
        background: rgba(11, 14, 20, 0.98); z-index: 201; transition: left 0.3s ease; 
        padding: 100px 20px 40px; overflow-y: auto; border-radius: 0; border: none; transform: none;
    }
    .mega-menu.open { left: 0; opacity: 1; visibility: visible; }
    
    .mobile-back {
        display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--text-main); 
        cursor: pointer; margin-bottom: 30px; font-weight: 700; padding: 10px 15px; 
        background: rgba(255,255,255,0.05); border-radius: 50px;
    }
    
    .mega-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 15px !important; }
    .mega-item { flex-direction: column !important; text-align: center !important; padding: 15px 10px !important; border: 1px solid var(--border-color); background: var(--bg-light); border-radius: 16px;}
    .mega-text p { display: none !important; }
}

/* --- HERO SECTION --- */
.hero { padding: 220px 0 100px; text-align: center; position: relative; perspective: 1500px; }
.status-pill {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600;
    color: var(--text-main); background: rgba(255,255,255,0.05); border: 1px solid var(--border-color);
    padding: 8px 18px; border-radius: 50px; margin-bottom: 30px;
}
.status-pill .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

.hero h1 { font-size: 5.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 30px; color: var(--text-main); }
.hero p { font-size: 1.3rem; color: var(--text-dim); max-width: 650px; margin: 0 auto 50px; font-weight: 400; line-height: 1.6;}

/* HERO TEXT GRADIENT (Post-Animation Fix) */
.hero h1 .text-gradient {
    background: var(--accent-gradient) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
    display: inline-block;
}
.hero h1 .text-gradient .char {
    background: transparent !important;
    -webkit-background-clip: unset !important; background-clip: unset !important;
    color: inherit !important; -webkit-text-fill-color: inherit !important;
}



/* --- 3D TEXT ANIMATION & GRADIENT --- */

.char { 
    display: inline-block; 
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block; /* MUST be inline-block so it can slide up cleanly */
}


/* --- FIXED MARQUEE --- */
.trust-bar { padding: 40px 0; overflow: hidden; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background: var(--bg-light); }
.trust-bar p { text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 30px; text-transform: uppercase; letter-spacing: 2px;}
.marquee-wrapper { display: flex; width: 100%; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);}
.marquee-track { display: flex; gap: 80px; align-items: center; padding-right: 80px; flex-shrink: 0; animation: scroll-left 40s linear infinite; }
/* Invert logos for dark mode */
/* Base state: Faded and pure white for the dark theme */
.marquee-track img { 
    max-height: 40px; 
    max-width: 140px; 
    object-fit: contain; 
    filter: brightness(0) invert(1) opacity(0.4); 
    transition: all 0.4s ease; 
}

/* Hover state: Removes the white filter to reveal original colors */
.marquee-track img:hover { 
    filter: brightness(1) invert(0) opacity(1); 
    transform: scale(1.05); /* Adds a tiny pop effect on hover */
}
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* --- GENERAL SECTIONS --- */
.section { padding: 120px 0; position: relative; }
.section-title { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 60px; text-align: center; }

/* --- GLASS PANELS (Dark Mode) --- */
.glass-panel {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    
    backdrop-filter: blur(6px);         /* Lowered from 16px */
    -webkit-backdrop-filter: blur(2px);
}

.stat-card, .port-card, .review-box {
    backdrop-filter: blur(2px);         /* Lowered from 16px */
    -webkit-backdrop-filter: blur(62px);
}

/* --- SERVICES GRID --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.s-card {
    padding: 40px 30px; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    position: relative; overflow: hidden; text-align: left;
}
.s-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.6); border-color: var(--accent) !important; }


.icon-box {
    width: 55px; height: 55px; background: rgba(79, 70, 229, 0.1); color: var(--accent);
    display: flex; align-items: center; justify-content: center; border-radius: 14px;
    font-size: 1.4rem; margin-bottom: 25px; transition: 0.4s; border: 1px solid rgba(79, 70, 229, 0.2);
}
.s-card:hover .icon-box { background: var(--accent); color: #fff; transform: scale(1.1) rotate(-5deg); }

.s-card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 700; color: var(--text-main); }
.s-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }
.s-card ul { list-style: none; }
.s-card ul li { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 8px; display: flex; gap: 10px; font-weight: 500;}
.s-card ul li i { color: var(--accent); font-size: 0.8rem; margin-top: 3px;}

/* --- STATS SECTION --- */
.section-stats-dark { padding: 60px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);}
.stats-grid-dark { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 2; }
.stat-card {
    background: var(--bg-light); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 30px 15px; text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4); transition: transform 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.stat-card h3 { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 8px; color: #fff; }
.stat-card .stat-label { color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; }

/* --- REVIEWS --- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.review-box { padding: 40px; transition: transform 0.4s ease, border-color 0.4s ease; position: relative; overflow: hidden; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 20px;}
.review-box:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.stars { color: #f5c518; margin-bottom: 20px; font-size: 0.9rem;}
.review-box p { font-size: 1.05rem; color: var(--text-main); font-weight: 400; font-style: italic; margin-bottom: 25px; line-height: 1.6; }
.client strong { display: block; font-size: 1rem; font-weight: 700; color: #fff; }
.client { font-size: 0.85rem; color: var(--text-dim); }

/* --- EDITORIAL VALUE LIST (Service Pages) --- */
.editorial-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.editorial-left { position: sticky; top: 120px; }
.v-badge { background: rgba(79, 70, 229, 0.1); color: var(--accent); padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; display: inline-block; border: 1px solid rgba(79, 70, 229, 0.2);}
.editorial-left h2 { font-size: 3rem; font-weight: 800; line-height: 1.1; color: var(--text-main); letter-spacing: -0.03em;}
.editorial-item { display: flex; gap: 25px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border-color); }
.editorial-item:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0;}
.editorial-icon { width: 60px; height: 60px; background: var(--bg-light); color: var(--accent); display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 1.4rem; flex-shrink: 0; border: 1px solid var(--border-color);}
.editorial-text h4 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; color: var(--text-main); }
.editorial-text p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* --- PRO METHODOLOGY TIMELINE --- */
.methodology-container { max-width: 900px; margin: 0 auto; position: relative; }
.methodology-line { position: absolute; left: 34px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(to bottom, var(--accent) 0%, rgba(79,70,229,0.1) 100%); z-index: 1;}
.methodology-step { position: relative; display: flex; gap: 40px; margin-bottom: 50px; align-items: flex-start;}
.methodology-step:last-child { margin-bottom: 0; }
.m-step-node { width: 70px; height: 70px; background: var(--bg-white); border: 3px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; color: var(--accent); z-index: 2; flex-shrink: 0; box-shadow: 0 0 20px rgba(79,70,229,0.3); }
.m-step-content { padding: 40px; width: 100%; transition: all 0.3s ease; background: var(--bg-light) !important; border: 1px solid var(--border-color) !important;}
.m-step-content:hover { transform: translateX(10px); border-color: var(--accent) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.m-step-content h4 { font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 12px; }
.m-step-content p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* --- PORTFOLIO / SHOWCASE --- */
.portfolio-orb { position: absolute; width: auto; height: 600px; background: var(--accent); filter: blur(200px); border-radius: 50%; opacity: 0.1; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 1;}

.portfolio-compact, .portfolio-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; z-index: 2; }
.p-card, .port-card { 
    border-radius: 16px; overflow: hidden; background: var(--bg-light) !important; 
    border: 1px solid var(--border-color) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.4); 
    transition: all 0.4s ease; display: flex; flex-direction: column; position: relative; padding: 0 !important;
}
.p-card:hover, .port-card:hover { transform: translateY(-8px); border-color: var(--accent) !important; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }

/* Logo Showcase Box (Portfolio Page) */
.port-logo-box { height: 220px; width: 100%; background: #0d1117; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-color); padding: 30px;}
.port-logo-box img { max-width: 100%; max-height: 150px; object-fit: contain; filter: brightness(0) invert(1) opacity(0.5); transition: all 0.4s ease;}
.port-card:hover .port-logo-box img { opacity: 1; transform: scale(1.05); }

.p-img { height: 220px; width: 100%; background-size: cover; background-position: center; transition: transform 0.5s; border-bottom: 1px solid var(--border-color); }
.p-card:hover .p-img { transform: scale(1.05); } 
.p-info, .port-info { padding: 25px 30px; background: var(--bg-light); z-index: 2; position: relative; }
.p-info span { font-size: 0.75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.p-info h3, .port-info h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-main); margin: 0; margin-bottom: 15px;}

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: rgba(79, 70, 229, 0.1); color: var(--accent); padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(79, 70, 229, 0.2);}

/* Filter Buttons */
.filter-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 50px; }
.filter-btn { padding: 10px 24px; border-radius: 50px; border: 1px solid var(--border-color); background: var(--bg-light); color: var(--text-dim); font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.filter-btn:hover { border-color: var(--accent); color: var(--text-main); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 10px 20px var(--accent-glow); }


/* --- VIDEO BACKGROUND HERO --- */
.video-hero { position: relative; overflow: hidden; padding: 240px 0 140px; }
.hero-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: blur(8px); transform: scale(1.1); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(11, 14, 20, 0.8) 0%, rgba(11, 14, 20, 0.5) 50%, #0b0e14 100%); z-index: 1; }
.video-hero .text-white { color: #ffffff; }
.video-hero .hero-subtitle { color: rgba(255, 255, 255, 0.85); }


/* --- CONTACT PAGE --- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.contact-info h2 { font-size: 3rem; font-weight: 800; color: var(--text-main); letter-spacing: -0.03em; margin-bottom: 15px; }
.c-info-block { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.c-icon { width: 60px; height: 60px; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.c-info-block span { display: block; font-size: 0.85rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-bottom: 3px; }
.c-info-block strong { font-size: 1.1rem; color: var(--text-main); }

.contact-form-wrapper { padding: 50px; background: var(--bg-light) !important; border-color: var(--border-color) !important;}
.premium-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.premium-form .form-group { margin-bottom: 25px; }
.premium-form label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.premium-form input, .premium-form select, .premium-form textarea {
    width: 100%; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border-color);
    background: #0d1117; font-family: 'Inter', sans-serif; font-size: 1rem; color: #fff; outline: none; transition: all 0.3s ease;
}
.premium-form select option { background: var(--bg-light); color: white; }
.premium-form input:focus, .premium-form select:focus, .premium-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); background: var(--bg-light); }

.contact-socials .socials a {
    background: rgba(79, 70, 229, 0.3); 
    color: lightgray;
    text-decoration: none;
}


/* --- CATEGORIZED VIDEO SHOWCASE --- */
.showcase-category { margin-bottom: 80px; }
.showcase-category:last-child { margin-bottom: 0; }
.category-header { display: flex; align-items: center; gap: 25px; margin-bottom: 40px; }
.category-header h3 { font-size: 2rem; color: #fff; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; margin: 0;}
.category-line { flex-grow: 1; height: 1px; background: linear-gradient(90deg, rgba(79,70,229,0.5) 0%, transparent 100%); }

.v-image-box { border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.5); cursor: pointer; min-height: 350px; border: 1px solid var(--border-color); }
.v-image-box.featured { grid-column: 1 / -1; min-height: 550px; }
.v-img { position: absolute; top:0; left:0; width:100%; height:100%; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.v-image-box:hover .v-img { transform: scale(1.05); }

.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2rem; border: 1px solid rgba(255,255,255,0.2); transition: 0.3s; z-index: 3; }
.v-image-box:hover .play-btn { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 15px 40px var(--accent-glow); }

.v-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 30px; background: linear-gradient(to top, rgba(5, 7, 10, 0.95) 0%, transparent 100%); z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; }
.v-overlay span { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 10px; display: inline-block; background: rgba(0,0,0,0.6); padding: 6px 14px; border-radius: 50px; width: fit-content; }
.v-overlay h3 { color: #fff; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0;}





/* =========================================
   INDIVIDUAL SERVICE PAGE STYLES (DARK)
========================================= */

/* --- PRICING / ARCHITECTURE GRID --- */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 950px;
    margin: 0 auto;
}
.price-card {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
}
.premium-card {
    border-color: var(--accent) !important;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.1);
}
.premium-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 18px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}
.card-header {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
    margin-bottom: 30px;
}
.card-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.card-header p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Pros and Cons List */
.pros-cons { list-style: none; padding: 0; }
.pros-cons li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}
.pros-cons .pro { color: var(--text-main); font-weight: 500; }
.pros-cons .pro i { color: #22c55e; margin-top: 4px; } /* Green Plus */
.pros-cons .con { color: var(--text-dim); }
.pros-cons .con i { color: #ef4444; margin-top: 4px; } /* Red Minus */


/* --- SEO BANNER SECTION --- */
.seo-banner-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}
.seo-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.seo-list li {
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.seo-list li i { color: #22c55e; }


/* --- HOW IT WORKS (PROCESS GRID) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.process-step {
    padding: 40px 30px;
    text-align: left;
    position: relative;
    padding-top: 50px; /* Space for the number */
}
.step-num {
    font-size: 3.5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-color);
    position: absolute;
    top: 20px;
    right: 25px;
    line-height: 1;
    transition: all 0.4s ease;
}
.process-step:hover .step-num {
    -webkit-text-stroke: 1px var(--accent);
    color: rgba(79, 70, 229, 0.1);
    transform: scale(1.1) rotate(5deg);
}
.process-step h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--text-main);
}
.process-step p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- CTA BANNER --- */
.cta-banner {
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.9) 0%, rgba(5, 7, 10, 0.9) 100%) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.15);
}
.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}
.cta-banner p {
    color: var(--text-dim);
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 600px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .seo-banner-grid { grid-template-columns: 1fr; text-align: center; }
    .seo-list { grid-template-columns: 1fr; justify-content: center; }
    .seo-list li { justify-content: center; }
    .process-grid { grid-template-columns: 1fr; }
    .cta-banner h2 { font-size: 2rem; }
}


/* =========================================
   SEO DATA TABLE STYLES
========================================= */
.table-wrapper {
    overflow-x: auto;
    padding: 20px;
}
.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}
.premium-table th {
    padding: 20px;
    background: rgba(255,255,255,0.03);
    color: var(--text-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}
.premium-table td {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 1rem;
    vertical-align: top;
}
.premium-table tr:last-child td {
    border-bottom: none;
}
.premium-table tr {
    transition: background 0.3s ease;
}
.premium-table tr:hover {
    background: rgba(255,255,255,0.02);
}

/* Trajectory Trend Badges */
.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.trend-badge.neutral { background: rgba(148, 163, 184, 0.1); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.2); }
.trend-badge.slow { background: rgba(34, 197, 94, 0.1); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.2); }
.trend-badge.steady { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.trend-badge.aggressive { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); box-shadow: 0 0 15px rgba(234, 179, 8, 0.2); }

/* --- 3-COLUMN PRICING GRID (Forced Horizontal) --- */
.pricing-grid-3 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid-3 .price-card {
    flex: 1;
    min-width: 0; /* Forces them to stay equal width side-by-side */
}

/* Only stack them on small mobile screens */
@media (max-width: 900px) {
    .pricing-grid-3 { 
        flex-direction: column; 
    }
}



/* --- FOOTER --- */
.footer-premium { background: var(--bg-dark); padding: 80px 0 0 0; color: #94a3b8; border-top: 1px solid var(--border-color);}
.footer-top-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 50px; position: relative; z-index: 2;}
.footer-premium h4 { font-size: 0.95rem; font-weight: 800; margin-bottom: 20px; color: #fff;}
.footer-premium p { font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; }
.footer-premium a { color: #94a3b8; text-decoration: none; transition: 0.3s; font-weight: 400;}
.footer-premium a:hover { color: var(--accent); }
.f-links a { display: block; margin-bottom: 12px; }
.f-contact ul { list-style: none; }
.f-contact ul li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 0.95rem;}
.f-contact ul li i { color: var(--accent); font-size: 1rem; width: 16px; text-align: center;}

.socials { display: flex; gap: 15px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; background: rgba(255,255,255,0.05); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; border: 1px solid var(--border-color);}
.socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); color: #fff !important;}

.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { padding: 12px 15px; border-radius: 8px; border: 1px solid var(--border-color); width: 100%; font-family: inherit; outline: none; background: #0d1117; color: white;}
.newsletter-form button { padding: 12px 20px; border-radius: 8px; background: var(--accent); color: #fff; border: none; cursor: pointer; transition: 0.3s; }
.newsletter-form button:hover { background: #6366f1; }

.footer-bottom { border-top: 1px solid var(--border-color); padding: 30px 0; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #94a3b8; position: relative; z-index: 2;}
.legal-links { display: flex; gap: 20px; }

/* GSAP Start State */
.gsap-reveal { opacity: 0; visibility: hidden; }

/* --- RESPONSIVE --- */
@media(max-width: 1024px) {
    .services-grid, .stats-grid-dark, .portfolio-compact, .portfolio-page-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 4.5rem; }
    .video-gallery-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .services-grid, .portfolio-compact, .portfolio-page-grid, .reviews-grid, .footer-top-grid, .stats-grid-dark { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3.5rem; }
    .nav-links { display: none; } 
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .video-gallery-grid, .process-grid { grid-template-columns: 1fr; }
    .v-image-box.featured { grid-column: auto; min-height: 300px; }
    .editorial-layout { grid-template-columns: 1fr; gap: 40px; }
    .editorial-left { position: static; }
}




/* =========================================
   FLOATING UI ELEMENTS
========================================= */

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #6366f1;
    box-shadow: 0 15px 30px var(--accent-glow);
    transform: translateY(-5px);
}

/* --- Sticky Language Switcher (Bottom Left) --- */
.lang-switcher {
    position: fixed;
    bottom: 30px;          /* Pinned to the bottom */
    left: 30px;            /* Pinned to the left */
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 5px 10px;
    display: flex;
    flex-direction: row;   /* Horizontal layout for the bottom corner */
    gap: 10px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .lang-switcher {
        bottom: 30px;
        left: 20px;
    }
}


/* =========================================
   MOBILE HERO OPTIMIZATIONS
========================================= */
@media (max-width: 768px) {
    /* 1. Crush the massive paddings */
    .hero {
        padding: 140px 0 60px !important;
        min-height: auto !important;
        height: auto !important;
    }

    .video-hero {
        padding: 150px 0 70px !important;
    }

    /* Let the home hero be prominent, but stop forcing 100vh which causes scroll bugs */
    .home-hero {
        padding: 140px 0 60px !important;
        height: auto !important;
        min-height: 80vh !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* 2. Scale down the typography */
    .hero h1 {
        font-size: 2.8rem !important; 
        margin-bottom: 15px !important;
        line-height: 1.15 !important;
    }

    .hero p {
        font-size: 1.05rem !important; 
        margin-bottom: 25px !important;
        padding: 0 10px; /* Prevents text from touching the edge of the glass */
    }

    /* 3. Tighten up the status pills */
    .status-pill {
        margin-bottom: 20px !important;
        padding: 6px 14px !important;
        font-size: 0.75rem !important;
    }
}

/* Extra small devices (older iPhones) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.4rem !important;
    }
    .hero p {
        font-size: 0.95rem !important;
    }
}


/* =========================================
   CONTACT PAGE MOBILE OPTIMIZATIONS
========================================= */
@media (max-width: 900px) {
    /* Stack the contact info and the form vertically */
    .contact-layout {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }

    /* Stack the bottom portal/hours cards vertically */
    .section-stats-dark .services-grid {
        grid-template-columns: 1fr !important;
    }

    /* Center the contact text and icons for a better mobile feel */
    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info p {
        margin-left: auto;
        margin-right: auto;
    }

    /* Adjust the icon blocks to sit nicely centered */
    .c-info-block {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        background: rgba(255, 255, 255, 0.1);
        padding: 25px;
        border-radius: 16px;
        width: 100%;
        max-width: 400px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .c-icon {
        margin: 0 auto;
    }

    /* Make the form inputs stack properly instead of sitting side-by-side */
    .premium-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    /* Reduce padding on the form container so it doesn't touch the screen edges */
    .contact-form-wrapper {
        padding: 30px 20px !important;
    }
}


/* =========================================
   NAVIGATION DESKTOP & MOBILE FIXES
========================================= */
/* Desktop Client Panel Icon */
.client-login-icon {
    font-size: 1.15rem !important;
    color: var(--text-dim) !important;
    transition: color 0.3s;
}
.client-login-icon:hover {
    color: var(--accent) !important;
}

/* Base states for our toggle classes */
.mobile-only { display: none !important; }

@media (max-width: 900px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }

    /* Force Mobile Links to stack Text UNDER the Icon */
    .nav-links > li > a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        text-align: center;
    }

    /* Mobile CTA Button gets the massive gradient, NOT desktop */
    .nav-cta-li {
        grid-column: 1 / -1;
        margin-top: 15px;
    }
    
    .nav-cta-li .nav-btn-sm {
        width: 100%;
        text-align: center;
        display: block;
        padding: 20px !important;
        font-size: 1.15rem !important;
        border-radius: 50px;
        background: linear-gradient(135deg, #4f46e5, #a855f7) !important;
        box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3) !important;
        border: none !important;
    }
}

