/* =============================================
           DESIGN TOKENS & VARIABLES (UPDATED FOR VISIBILITY)
           ============================================= */
:root {
    --bg-body: #050505;
    --bg-surface: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-elevated: #242424;

    /* YELLOW / GOLD THEME ACCENTS */
    --accent-primary: #facc15;
    --accent-secondary: #fde047;
    --accent-tertiary: #eab308;

    --text-main: #ffffff;
    --text-muted: #d4d4d4;
    --text-subtle: #9ca3af;

    --glass-border: rgba(250, 204, 21, 0.25);
    --glass-bg: rgba(250, 204, 21, 0.08);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

        /* =============================================
           GLOBAL RESET & BASE
           ============================================= */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

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

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: var(--bg-body); }
        ::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 4px; }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: #fff;
        }

        /* =============================================
           DYNAMIC BACKGROUND ELEMENTS
           ============================================= */
        .bg-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
            background-size: 60px 60px;
            z-index: -2;
            pointer-events: none;
        }

        .gradient-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(120px);
            z-index: -1;
            opacity: 0.4;
            animation: orbFloat 20s infinite alternate;
        }

        @keyframes orbFloat {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(50px, -50px) scale(1.1); }
        }

        /* =============================================
           ANIMATIONS
           ============================================= */
/* Fix: Extend stagger animation to handle all 8 service cards */
@media (prefers-reduced-motion: no-preference) {
    .stagger-in > * {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .stagger-in.active > * {
        opacity: 1;
        transform: translateY(0);
    }

    /* Individual delays for up to 8 items */
    .stagger-in.active > *:nth-child(1) { transition-delay: 0.1s; }
    .stagger-in.active > *:nth-child(2) { transition-delay: 0.2s; }
    .stagger-in.active > *:nth-child(3) { transition-delay: 0.3s; }
    .stagger-in.active > *:nth-child(4) { transition-delay: 0.4s; }
    .stagger-in.active > *:nth-child(5) { transition-delay: 0.5s; }
    .stagger-in.active > *:nth-child(6) { transition-delay: 0.6s; }
    .stagger-in.active > *:nth-child(7) { transition-delay: 0.7s; }
    .stagger-in.active > *:nth-child(8) { transition-delay: 0.8s; }
}

        /* =============================================
           NAVBAR
           ============================================= */
        .navbar-main {
            padding: 1rem 0;
            transition: all 0.4s ease;
            background: transparent;
        }

        .navbar-main.scrolled {
            background: rgba(5, 5, 5, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
        }

        .brand-box {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
        }

        .brand-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            color: #000;
            font-size: 1.2rem;
        }

        .brand-text {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 600;
            font-size: 1.2rem;
            color: #fff;
        }

        .nav-link-custom {
            color: var(--text-muted);
            font-weight: 500;
            font-size: 0.95rem;
            padding: 0.5rem 1rem !important;
            position: relative;
            transition: color var(--transition-fast);
        }

        .nav-link-custom::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--accent-primary);
            transition: all var(--transition-fast);
            transform: translateX(-50%);
        }

/* Fix: Ensures active and hovered nav links remain white */
.nav-link-custom:hover, 
.nav-link-custom.active,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

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

        .dropdown-menu-custom {
            background: rgba(30, 30, 30, 0.98);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-md);
            padding: 0.75rem;
            margin-top: 0.5rem;
            min-width: 220px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        }

        .dropdown-item-custom {
            color: var(--text-muted);
            padding: 0.6rem 1rem;
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
            font-size: 0.9rem;
        }

        .dropdown-item-custom:hover {
            background: rgba(255, 255, 255, 0.08);
            color: var(--accent-primary);
            transform: translateX(4px);
        }

        /* =============================================
           HERO
           ============================================= */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: 100px;
        }

        .hero-content h1 {
            font-size: clamp(3rem, 8vw, 4rem);
            line-height: 1.05;
            margin-bottom: 1.5rem;
            color: #fff;
        }

        .gradient-text {
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-content p {
            font-size: 1.25rem;
            color: var(--text-muted);
            max-width: 500px;
            margin-bottom: 2.5rem;
        }

        .btn-glow {
            padding: 1rem 2rem;
            border-radius: var(--radius-md);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 0.9rem;
            border: none;
            position: relative;
            overflow: hidden;
            transition: all var(--transition-fast);
        }

        .btn-glow-primary {
            background: var(--accent-primary);
            color: #000;
            box-shadow: 0 0 20px rgba(0, 242, 234, 0.3);
        }

        .btn-glow-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(0, 242, 234, 0.5);
            color: #f4f1f1;
        }

        .btn-glow-outline {
            background: transparent;
            border: 1px solid var(--glass-border);
            color: #fff;
        }

        .btn-glow-outline:hover {
            background: rgba(255,255,255,0.08);
            border-color: #fff;
        }

        /* Hero Visual Mesh */
        .hero-visual {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .mesh-card {
            position: absolute;
            background: rgba(30, 30, 30, 0.6); /* Brighter background for cards */
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            color: #fff;
            transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .mesh-card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: var(--accent-primary);
            z-index: 10;
        }

        .mesh-card-1 { top: 10%; right: 10%; width: 300px; animation: float1 6s ease-in-out infinite; }
        .mesh-card-2 { bottom: 20%; left: 5%; width: 250px; animation: float2 8s ease-in-out infinite; }
        .mesh-card-3 { top: 40%; right: 1%; width: 150px; animation: float3 7s ease-in-out infinite; }

        @keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
        @keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }
        @keyframes float3 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

        /* =============================================
           ABOUT - Bento Grid
           ============================================= */
        .section-gap {
            padding: 8rem 0;
        }

        .section-title {
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1rem;
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 1.5rem;
        }

        .bento-item {
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 2rem;
            transition: all var(--transition-fast);
            overflow: hidden;
            position: relative;
        }

        .bento-item:hover {
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-5px);
        }

        .bento-large { grid-column: span 8; }
        .bento-small { grid-column: span 4; }
        .bento-full { grid-column: span 12; }
        .bento-half { grid-column: span 6; }

        @media (max-width: 992px) {
            .bento-large, .bento-small, .bento-full, .bento-half {
                grid-column: span 12;
            }
        }

        .stat-number {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 4rem;
            font-weight: 700;
            background: linear-gradient(180deg, #fff, #999);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .accent-bar {
            width: 40px;
            height: 4px;
            background: var(--accent-primary);
            margin-bottom: 1rem;
            border-radius: 2px;
        }

        /* =============================================
           SERVICES - Dynamic Cards
           ============================================= */
        .services-section {
            background: radial-gradient(circle at top, #141414 0%, var(--bg-body) 100%);
        }

        .service-card-new {
            background: rgba(20, 20, 20, 0.8);
            backdrop-filter: blur(10px);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 2rem;
            height: 100%;
            display: flex;
            flex-direction: column;
            transition: all var(--transition-fast);
            position: relative;
        }

        .service-card-new::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
            opacity: 0;
            transition: opacity var(--transition-fast);
        }

        .service-card-new:hover {
            transform: translateY(-8px);
            border-color: rgba(255,255,255,0.2);
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            background: rgba(30, 30, 30, 0.9);
        }

        .service-card-new:hover::before {
            opacity: 1;
        }

        .service-icon-box {
            width: 50px;
            height: 50px;
            background: rgba(255,255,255,0.08);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: var(--accent-primary);
            margin-bottom: 1.5rem;
            transition: all var(--transition-fast);
        }

        .service-card-new:hover .service-icon-box {
            background: var(--accent-primary);
            color: #000;
        }

        .service-list-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: auto;
            padding-top: 1.5rem;
        }

        .service-tag {
            font-size: 0.75rem;
            padding: 0.35rem 0.75rem;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 20px;
            color: #ccc;
            transition: all var(--transition-fast);
        }

        .service-tag:hover {
            background: rgba(0, 242, 234, 0.15);
            border-color: rgba(0, 242, 234, 0.4);
            color: #fff;
        }

        .service-card-new{
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 28px;
    border-radius: 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

.service-card-new:hover{
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.2);
}

.service-title{
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.service-desc{
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0;
}

.service-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item{
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid #0d9488;
}

.service-item span{
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.service-item p{
    font-size: 12.5px;
    margin: 0;
    color: rgba(255,255,255,0.65);
    line-height: 1.4;
}

        /* =============================================
           TESTIMONIALS
           ============================================= */
        .testimonial-new {
            background: var(--bg-card);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            padding: 2rem;
            height: 100%;
            position: relative;
        }

        .testimonial-new::after {
            content: '"';
            position: absolute;
            top: 20px;
            right: 30px;
            font-size: 8rem;
            font-family: serif;
            line-height: 1;
            color: rgba(255,255,255,0.05);
            pointer-events: none;
        }

        .t-client {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .t-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--accent-primary);
        }

        .t-name {
            font-weight: 700;
            color: #fff;
            margin-bottom: 0;
        }

        .t-role {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .t-text {
            font-size: 1rem;
            color: #ddd;
            line-height: 1.6;
            font-style: italic;
        }

        /* =============================================
           FAQ Accordion
           ============================================= */
        .accordion-new .accordion-item {
            background: transparent;
            border: none;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 0;
        }

        .accordion-new .accordion-button {
            background: transparent;
            color: #fff;
            font-weight: 600;
            font-size: 1.1rem;
            padding: 1.5rem 0;
            box-shadow: none;
        }

        .accordion-new .accordion-button:not(.collapsed) {
            color: var(--accent-primary);
            background: transparent;
        }

        .accordion-new .accordion-button::after {
            filter: brightness(0) invert(1);
        }
        
        .accordion-new .accordion-button:not(.collapsed)::after {
            filter: brightness(0) saturate(100%) invert(85%) sepia(56%) saturate(4000%) hue-rotate(130deg) brightness(105%) contrast(101%);
        }

        .accordion-new .accordion-body {
            background: transparent;
            color: var(--text-muted);
            padding: 0 0 1.5rem 0;
        }

        /* =============================================
           FORMS
           ============================================= */
        .form-control-dark {
            background: rgba(255,255,255,0.05);
            border: 1px solid rgba(255,255,255,0.15);
            color: #fff;
            padding: 0.875rem 1rem;
            border-radius: var(--radius-sm);
            transition: all var(--transition-fast);
        }

        .form-control-dark:focus {
            background: rgba(255,255,255,0.08);
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 2px rgba(0, 242, 234, 0.2);
            color: #fff;
        }

        .form-control-dark::placeholder {
            color: #666;
        }

        .form-label-dark {
            font-size: 0.9rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* =============================================
           FOOTER
           ============================================= */
        .footer-new {
            background: #0a0a0a;
            border-top: 1px solid var(--glass-border);
            padding: 5rem 0 2rem;
        }

        .footer-links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 2rem;
        }

        .footer-link {
            color: #aaa;
            text-decoration: none;
            display: block;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
            transition: all var(--transition-fast);
        }

        .footer-link:hover {
            color: var(--accent-primary);
            transform: translateX(5px);
        }

        /* =============================================
           RESPONSIVE
           ============================================= */
        @media (max-width: 768px) {
            .hero-visual {
                min-height: 400px;
                margin-top: 3rem;
            }
            .mesh-card { display: none; }
            .mesh-card-1 { display: block; position: relative; top: auto; right: auto; width: 100%; margin-bottom: 1rem; }
        }

:root {
        --bg-body: #050505;
        --bg-surface: #0f0f0f;
        --bg-card: #1a1a1a;
        --bg-elevated: #242424;

        /* YELLOW / GOLD THEME ACCENTS */
        --accent-primary: #facc15;
        --accent-secondary: #fde047;
        --accent-tertiary: #eab308;

        --text-main: #ffffff;
        --text-muted: #d4d4d4;
        --text-subtle: #9ca3af;

        --glass-border: rgba(250, 204, 21, 0.25);
        --glass-bg: rgba(250, 204, 21, 0.08);

        --radius-sm: 8px;
        --radius-md: 16px;
        --radius-lg: 24px;
        --radius-xl: 32px;

        --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Section Styling */
    #services {
        background-color: var(--bg-surface);
        padding: 100px 0;
    }

    .section-title {
        color: var(--text-main);
        font-weight: 800;
        margin-bottom: 15px;
        font-size: 2.5rem;
    }

    .text-accent {
        color: var(--accent-primary) !important;
    }

    .lead-text {
        color: var(--text-subtle);
        font-size: 1.1rem;
    }

    /* Tab Navigation */
    .services-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin-bottom: 3rem;
    }

    .tab-btn {
        background-color: var(--bg-card);
        color: var(--text-main);
        border: 1px solid var(--glass-border);
        padding: 10px 24px;
        border-radius: var(--radius-xl);
        font-weight: 600;
        transition: all var(--transition-fast);
        cursor: pointer;
    }

    .tab-btn:hover {
        background-color: var(--bg-elevated);
        border-color: var(--accent-tertiary);
        color: var(--accent-secondary);
    }

    .tab-btn.active {
        background-color: var(--accent-primary);
        border-color: var(--accent-primary);
        color: var(--bg-body);
    }

    /* Individual Service Cards */
    .service-card-new {
        background: var(--bg-card);
        border-radius: var(--radius-md);
        padding: 30px 25px;
        height: 100%;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        transition: transform var(--transition-bounce), background-color var(--transition-fast), border-color var(--transition-fast);
        border: 1px solid var(--bg-elevated);
        border-top: 4px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .service-card-new:hover {
        transform: translateY(-8px);
        background: var(--bg-elevated);
        border-top-color: var(--accent-primary);
        box-shadow: 0 12px 25px rgba(250, 204, 21, 0.05);
    }

    .service-icon-box {
        width: 70px;
        height: 70px;
        background-color: var(--glass-bg);
        color: var(--accent-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        margin-bottom: 20px;
        border: 1px solid var(--glass-border);
        transition: all var(--transition-fast);
    }

    .service-card-new:hover .service-icon-box {
        background-color: var(--accent-primary);
        color: var(--bg-body);
        box-shadow: 0 0 15px var(--glass-border);
    }

    .service-title {
        color: var(--text-main);
        font-weight: 700;
        margin-bottom: 15px;
        font-size: 1.25rem;
    }

    .service-desc {
        color: var(--text-muted);
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0;
    }

/* Shared multi-page additions */
.page-heading { padding: 150px 0 90px; background: var(--bg-surface); }
.page-heading h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 800; line-height: 1; }
.page-heading p { max-width: 720px; color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }
.legal-page { padding: 140px 0 100px; background: var(--bg-surface); color: var(--text-main); }
.legal-page .modal-body { max-height: none; }
@media (max-width: 768px) { .page-heading, .legal-page { padding-left: 20px; padding-right: 20px; } }


/* Privacy Policy and Terms & Conditions */
.legal-page {
    min-height: calc(100vh - 80px);
    padding: 140px 0 100px;
    background: var(--bg-surface);
    color: var(--text-main);
}

.legal-page .legal-card,
.legal-page .bento-item {
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.legal-page .section-title {
    color: var(--text-main);
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

.legal-page .modal-body {
    max-height: none;
    padding: 0;
    color: var(--text-muted) !important;
    line-height: 1.8;
    font-size: 1rem;
}

.legal-page .modal-body h6 {
    color: var(--accent-primary) !important;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 2rem 0 0.65rem;
}

.legal-page .modal-body h6:first-child {
    margin-top: 0;
}

.legal-page .modal-body p {
    color: var(--text-muted) !important;
    margin-bottom: 1.25rem;
}

/* Centered contact form */
#contact.contact-centered .container > .row {
    justify-content: center;
}

#contact.contact-centered .contact-form-column {
    width: 100%;
    max-width: 860px;
}

@media (max-width: 768px) {
    .legal-page { padding-top: 110px; }
    .legal-page .bento-item { padding: 1.5rem; }
}
