/* ==========================================================================
   PERCEPTIVE ARCHITECTS — DESIGN SYSTEM & STYLESHEET
   Architectural Dual-Theme Engine (Light & Dark Modes + Filament Admin Control)
   ========================================================================== */

/* ===== CSS Variables — Dark Theme (Pure Black) ===== */
:root, [data-theme="dark"] {
    /* Pure Black Architecture Palette */
    --bg-dark:          #000000;
    --bg-light-surface: #0a0a0a;
    --bg-card:          #111111;
    --bg-card-hover:    #181818;
    --bg-surface:       rgba(255, 255, 255, 0.04);
    --bg-surface-hover: rgba(255, 255, 255, 0.07);
    --bg-surface-active:rgba(255, 255, 255, 0.11);

    --border-glass:       rgba(255, 255, 255, 0.07);
    --border-glass-light: rgba(255, 255, 255, 0.11);
    --border-glass-focus: rgba(74, 124, 247, 0.55);
    --border-cyan:        rgba(74, 124, 247, 0.28);

    --text-main:  #f0ede8;
    --text-muted: #a8a39a;
    --text-dim:   #5e5a55;

    /* Brand Blue */
    --brand-cyan:      #4a7cf7;
    --brand-sky:       #6b9aff;
    --brand-blue-dark: #3060d4;

    --header-bg:      rgba(0, 0, 0, 0.75);
    --header-scrolled:rgba(0, 0, 0, 0.97);
    --footer-bg:      #000000;

    --logo-badge-bg:     rgba(255, 255, 255, 0.05);
    --logo-badge-border: rgba(74, 124, 247, 0.18);
    --logo-badge-shadow: 0 4px 18px rgba(0, 0, 0, 0.7), 0 0 12px rgba(74, 124, 247, 0.08);

    --gradient-primary:       linear-gradient(135deg, #4a7cf7 0%, #3060d4 100%);
    --gradient-primary-hover: linear-gradient(135deg, #6b9aff 0%, #4a7cf7 100%);
    --gradient-accent:        linear-gradient(135deg, #6b9aff 0%, #4a7cf7 100%);
    --gradient-title:         linear-gradient(135deg, #f0ede8 30%, #c8c2ba 70%, #4a7cf7 100%);

    --shadow-glass: 0 20px 48px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    --shadow-glow:  0 0 30px rgba(74, 124, 247, 0.18);
    --shadow-card:  0 12px 48px rgba(0, 0, 0, 0.85);

    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   20px;
    --radius-xl:   32px;
    --radius-full: 9999px;

    --font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
    --font-display:'Playfair Display', Georgia, serif;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== Light Theme Overrides ===== */
[data-theme="light"] {
    --bg-dark:          #f8fafc;
    --bg-light-surface: #f1f5f9;
    --bg-card:          #ffffff;
    --bg-card-hover:    #f8fafc;
    --bg-surface:       #f1f5f9;
    --bg-surface-hover: #e2e8f0;
    --bg-surface-active:#cbd5e1;

    --border-glass:       #e2e8f0;
    --border-glass-light: #cbd5e1;
    --border-glass-focus: rgba(2, 169, 234, 0.8);
    --border-cyan:        rgba(2, 169, 234, 0.35);

    --text-main:  #0f172a;
    --text-muted: #475569;
    --text-dim:   #64748b;

    --brand-cyan:      #0284c7;
    --brand-sky:       #0284c7;
    --brand-blue-dark: #0064a8;

    --header-bg:      rgba(255, 255, 255, 0.95);
    --header-scrolled:rgba(255, 255, 255, 0.99);
    --footer-bg:      #0f172a;

    --logo-badge-bg:     transparent;
    --logo-badge-border: transparent;
    --logo-badge-shadow: none;

    --gradient-primary:       linear-gradient(135deg, #0284c7 0%, #0064a8 100%);
    --gradient-primary-hover: linear-gradient(135deg, #0369a1 0%, #004f87 100%);
    --gradient-accent:        linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    --gradient-title:         linear-gradient(135deg, #0f172a 30%, #0284c7 75%, #0ea5e9 100%);

    --shadow-glass: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04);
    --shadow-glow:  0 0 30px rgba(2, 169, 234, 0.15);
    --shadow-card:  0 4px 24px rgba(15, 23, 42, 0.08);
}

/* ===== Reset & Base Rules ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-base), color var(--transition-base);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea, select {
    font-family: inherit;
    color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--brand-cyan); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-sky); }

/* ===== Ambient Lighting Blobs (GPU-Optimized Soft Radial Diffusion) ===== */
.bg-blob-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.55;
    will-change: transform;
    animation: floatBlob 24s ease-in-out infinite alternate;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}

[data-theme="light"] .bg-blob { opacity: 0.18; }

.bg-blob--1 {
    width: 50vw; height: 50vw;
    top: -18%; left: -12%;
    background: radial-gradient(circle, rgba(74, 124, 247, 0.32) 0%, rgba(48, 96, 212, 0.12) 40%, transparent 70%);
}
.bg-blob--2 {
    width: 42vw; height: 42vw;
    bottom: -12%; right: -8%;
    background: radial-gradient(circle, rgba(107, 154, 255, 0.30) 0%, rgba(74, 124, 247, 0.10) 40%, transparent 70%);
    animation-delay: -6s; animation-duration: 28s;
}
.bg-blob--3 {
    width: 32vw; height: 32vw;
    top: 38%; left: 45%;
    background: radial-gradient(circle, rgba(74, 124, 247, 0.20) 0%, rgba(48, 96, 212, 0.08) 40%, transparent 70%);
    animation-delay: -12s; animation-duration: 22s;
}

[data-theme="light"] .bg-blob--1 {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.2) 0%, rgba(2, 132, 199, 0.06) 40%, transparent 70%);
}
[data-theme="light"] .bg-blob--2 {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(2, 132, 199, 0.06) 40%, transparent 70%);
}
[data-theme="light"] .bg-blob--3 {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(2, 132, 199, 0.04) 40%, transparent 70%);
}

@keyframes floatBlob {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(3%, -4%, 0) scale(1.05); }
    66% { transform: translate3d(-3%, 3%, 0) scale(0.95); }
    100% { transform: translate3d(4%, 2%, 0) scale(1.03); }
}

@media (max-width: 768px) {
    .bg-blob {
        animation-duration: 36s;
    }
}

/* ===== Scroll Progress Indicator ===== */
.scroll-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8 0%, #4a7cf7 50%, #2563eb 100%);
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    -webkit-transform: scaleX(0);
    z-index: 99999;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.9), 0 0 24px rgba(74, 124, 247, 0.7);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}
.preloader-brand {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: pulseLogo 2s infinite ease-in-out;
}
.preloader-spinner {
    width: 48px; height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--brand-cyan);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}
@keyframes pulseLogo {
    0%, 100% { opacity: 0.7; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Layout Containers ===== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.75rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 6.5rem 0;
    position: relative;
    z-index: 1;
}
.section-sm { padding: 3.5rem 0; }
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem auto;
}

/* ===== Glass / Studio Card ===== */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
    position: relative;
    overflow: hidden;
}
.glass-card:hover {
    border-color: rgba(74, 124, 247, 0.35);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
}
.glass-card--static:hover {
    transform: none;
    box-shadow: var(--shadow-glass);
}

/* Light theme glass card adjustments */
[data-theme="light"] .glass-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}
[data-theme="light"] .glass-card:hover {
    border-color: rgba(2, 169, 234, 0.4);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10), 0 0 20px rgba(2, 169, 234, 0.08);
}

/* ===== Typography Components ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 124, 247, 0.12);
    border: 1px solid rgba(74, 124, 247, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-sky);
    margin-bottom: 1.25rem;
}
[data-theme="light"] .badge {
    background: rgba(2, 133, 199, 0.08);
    border-color: rgba(2, 133, 199, 0.25);
    color: #0369a1;
}

.badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-cyan);
    box-shadow: 0 0 8px var(--brand-cyan);
}

.title-gradient {
    background: var(--gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.heading-xl {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}
.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.heading-md {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}
.subhead {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Section label (line accent style from reference) */
.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--brand-sky);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--brand-cyan), transparent);
    max-width: 70px;
}
.section-label.centered { justify-content: center; }
.section-label.centered::after { max-width: 50px; }

[data-theme="light"] .section-label { color: #0369a1; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 8px 25px -5px rgba(74, 124, 247, 0.4);
}
.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 32px -5px rgba(74, 124, 247, 0.55);
    color: #ffffff;
}
.btn-primary:active { transform: scale(0.98); }

.btn-glass {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1.5px solid var(--border-glass-light);
}
.btn-glass:hover {
    background: rgba(74, 124, 247, 0.12);
    border-color: rgba(74, 124, 247, 0.4);
    transform: translateY(-2px);
    color: var(--text-main);
}

/* Light theme btn-glass */
[data-theme="light"] .btn-glass {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}
[data-theme="light"] .btn-glass:hover {
    background: rgba(2, 133, 199, 0.08);
    border-color: rgba(2, 133, 199, 0.5);
    color: #0369a1;
}

.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.82rem; }
.btn-lg { padding: 1.1rem 2.8rem; font-size: 1rem; }

/* Hero outline btn (dark theme) */
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-base);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.btn-outline-dark:hover {
    border-color: var(--brand-cyan);
    color: var(--brand-sky);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(74, 124, 247, 0.12);
}
[data-theme="light"] .btn-outline-dark {
    border-color: #cbd5e1;
    color: #334155;
}
[data-theme="light"] .btn-outline-dark:hover {
    border-color: #0284c7;
    color: #0284c7;
}

/* ===== Theme Switcher Button ===== */
.theme-toggle-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass-light);
    color: var(--text-main);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
    background: rgba(74, 124, 247, 0.15);
    border-color: var(--brand-cyan);
    transform: scale(1.08);
}

/* ===== Standard Fixed Header & Navigation (Other Pages) ===== */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.1rem 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.site-header.scrolled {
    padding: 0.75rem 0;
    background: var(--header-scrolled);
    border-bottom: 1px solid rgba(74, 124, 247, 0.65) !important;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.8), 0 1px 12px rgba(74, 124, 247, 0.35) !important;
}

[data-theme="light"] .site-header {
    border-bottom-color: #e2e8f0;
}
[data-theme="light"] .site-header.scrolled {
    border-bottom: 1px solid rgba(74, 124, 247, 0.55) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08), 0 1px 10px rgba(74, 124, 247, 0.25) !important;
}

[data-theme="dark"] .site-header {
    background: rgba(0,0,0,0.78);
    border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .site-header.scrolled {
    background: rgba(0,0,0,0.98);
    border-bottom: 1px solid rgba(74, 124, 247, 0.65) !important;
    box-shadow: 0 4px 40px rgba(0,0,0,1), 0 1px 12px rgba(74, 124, 247, 0.35) !important;
}

/* ===== Homepage Only Transparent Absolute Header ===== */
.site-header--home-transparent,
.site-header--home-transparent.scrolled,
[data-theme="light"] .site-header--home-transparent,
[data-theme="light"] .site-header--home-transparent.scrolled,
[data-theme="dark"] .site-header--home-transparent,
[data-theme="dark"] .site-header--home-transparent.scrolled {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: padding var(--transition-base);
}

.site-header--home-transparent .nav-link,
[data-theme="light"] .site-header--home-transparent .nav-link,
[data-theme="dark"] .site-header--home-transparent .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.site-header--home-transparent .nav-link:hover,
.site-header--home-transparent .nav-link.active,
[data-theme="light"] .site-header--home-transparent .nav-link:hover,
[data-theme="light"] .site-header--home-transparent .nav-link.active,
[data-theme="dark"] .site-header--home-transparent .nav-link:hover,
[data-theme="dark"] .site-header--home-transparent .nav-link.active {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(74, 124, 247, 0.9);
}

.site-header--home-transparent .site-logo-img,
[data-theme="light"] .site-header--home-transparent .site-logo-img,
[data-theme="dark"] .site-header--home-transparent .site-logo-img {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.site-header--home-transparent .mobile-toggle,
[data-theme="light"] .site-header--home-transparent .mobile-toggle,
[data-theme="dark"] .site-header--home-transparent .mobile-toggle,
.site-header--home-transparent .theme-toggle-btn,
[data-theme="light"] .site-header--home-transparent .theme-toggle-btn,
[data-theme="dark"] .site-header--home-transparent .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px) !important;
}

.site-header--home-transparent .btn-header-cta,
[data-theme="light"] .site-header--home-transparent .btn-header-cta,
[data-theme="dark"] .site-header--home-transparent .btn-header-cta {
    background: var(--brand-cyan) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(74, 124, 247, 0.4) !important;
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo-img {
    height: 52px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform var(--transition-fast);
}
[data-theme="light"] .site-logo-img {
    padding: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.site-logo:hover .site-logo-img { transform: scale(1.03); }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-link:hover, .nav-link.active { color: var(--text-main); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%;
    height: 1.5px;
    background: var(--brand-cyan);
    transition: width var(--transition-fast);
    border-radius: 2px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

[data-theme="light"] .nav-link { color: #475569; }
[data-theme="light"] .nav-link:hover { color: #0f172a; }

/* Mega Menu Dropdown — Architectural Showcase */
.nav-item-dropdown { position: relative; }
.mega-menu--showcase {
    position: absolute;
    top: 100%;
    left: -200px;
    width: 960px;
    max-width: 92vw;
    background: rgba(10, 12, 16, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 1.5rem;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.nav-item-dropdown:hover .mega-menu--showcase,
.nav-item-dropdown:focus-within .mega-menu--showcase {
    opacity: 1;
    visibility: visible;
    transform: translateY(6px);
}

/* Left List Navigation */
.mega-showcase-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 1.25rem;
}

.mega-showcase-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
}

.mega-showcase-item {
    margin: 0;
    padding: 0;
}

.mega-showcase-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.6rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}

.mega-showcase-text {
    white-space: normal;
    line-height: 1.35;
}

.mega-showcase-arrow {
    font-size: 1.05rem;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    color: #ffffff;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

/* When hovering anywhere in the list, remove highlight from unhovered active item */
.mega-showcase-list:hover .mega-showcase-link.active:not(:hover) {
    color: rgba(255, 255, 255, 0.45);
    border-bottom-color: transparent;
}
.mega-showcase-list:hover .mega-showcase-link.active:not(:hover) .mega-showcase-arrow {
    opacity: 0;
    transform: translate(-3px, 3px);
}

/* Highlight currently hovered or active item */
.mega-showcase-link:hover,
.mega-showcase-link.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.mega-showcase-link:hover .mega-showcase-arrow,
.mega-showcase-link.active .mega-showcase-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* Right Showcase Preview Image */
.mega-showcase-preview {
    display: flex;
    align-items: center;
}

.mega-preview-container {
    position: relative;
    width: 100%;
    height: 330px;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-preview-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    pointer-events: none;
}

.mega-preview-layer.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    z-index: 1;
}

.mega-preview-container:hover .mega-preview-layer.active {
    transform: scale(1.03);
}

.mega-preview-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem 0.85rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: center;
}

.mega-caption-tag {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* Light Theme Overrides */
[data-theme="light"] .mega-menu--showcase {
    background: rgba(255, 255, 255, 0.98);
    border-color: #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .mega-showcase-nav {
    border-right-color: #e2e8f0;
}
[data-theme="light"] .mega-showcase-link {
    color: #64748b;
}
[data-theme="light"] .mega-showcase-link:hover,
[data-theme="light"] .mega-showcase-link.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
}
[data-theme="light"] .mega-showcase-link:hover .mega-showcase-arrow,
[data-theme="light"] .mega-showcase-link.active .mega-showcase-arrow {
    color: #0f172a;
}

/* Mobile Toggle (hamburger — hidden on desktop, shown on tablet/mobile) */
.mobile-toggle {
    display: none;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), border-color var(--transition-fast);
    flex-shrink: 0;
}
.mobile-toggle:hover {
    background: rgba(74,124,247,0.12);
    border-color: var(--brand-cyan);
}

/* Nav controls wrapper (theme toggle + CTA + hamburger) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mobile Drawer Navigation */
.mobile-drawer {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    transform: translate3d(100%, 0, 0);
    -webkit-transform: translate3d(100%, 0, 0);
    transition: transform var(--transition-base), visibility var(--transition-base);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    pointer-events: none;
}
.mobile-drawer.active {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-shrink: 0;
}
.drawer-close {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-fast);
}
.drawer-close:hover { background: rgba(74,124,247,0.15); }
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}
.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-glass);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    color: var(--brand-sky);
    padding-left: 8px;
}

/* ===== Form Controls ===== */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}
.form-control {
    width: 100%;
    padding: 0.95rem 1.4rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control:focus {
    border-color: var(--border-glass-focus);
    background: var(--bg-surface-hover);
    box-shadow: 0 0 0 4px rgba(74, 124, 247, 0.12);
}

[data-theme="light"] .form-control {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}
[data-theme="light"] .form-control::placeholder { color: #94a3b8; }
[data-theme="light"] .form-control:focus {
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(2, 133, 199, 0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234a7cf7' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    padding-right: 2.8rem;
}
select.form-control option { background-color: var(--bg-card); color: var(--text-main); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ===== Breadcrumbs ===== */
.breadcrumb-wrap { padding: 1.5rem 0; margin-top: 5.5rem; }
.breadcrumb-list {
    display: flex; align-items: center; gap: 0.6rem;
    list-style: none; font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--brand-cyan); }
.breadcrumb-separator { color: var(--text-dim); font-size: 0.75rem; }

/* ===== HERO SECTION (Premium Architecture Layout) ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    background: #000000;
}

/* Hero Background Slideshow */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease;
    transform: scale(1.03);
}
.hero-bg-slide.active { opacity: 1; }
.hero-bg-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.80) 0%,
        rgba(10, 10, 10, 0.50) 50%,
        rgba(10, 10, 10, 0.75) 100%
    );
}

/* Light theme hero */
[data-theme="light"] .hero-section {
    background: #1a2035;
}
[data-theme="light"] .hero-bg-slide::after {
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(15, 23, 42, 0.55) 50%,
        rgba(15, 23, 42, 0.80) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.75rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero badge pill */
.hero-badge {
    display: inline-block;
    background: rgba(74, 124, 247, 0.15);
    color: #6b9aff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 6px 22px;
    border-radius: 40px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(74, 124, 247, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Hero heading */
.hero-heading {
    font-family: var(--font-display), 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.8rem, 6.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 0;
}
.hero-heading .highlight {
    color: var(--brand-cyan);
    display: block;
}
.hero-text-line {
    display: block;
    overflow: hidden;
}

/* Hero paragraph */
.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 440px;
    margin: 1.5rem 0 2.2rem;
    line-height: 1.8;
}

/* Hero action buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Hero stats row */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stat-number {
    font-family: var(--font-display), 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-cyan);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.hero-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero right image card */
.hero-image-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #1c1c1c;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-image-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-floating-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    padding: 0.75rem 1.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-floating-badge i { color: var(--brand-cyan); }

/* ===== Cards & Grid Layouts ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

/* Project Card */
.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(74, 124, 247, 0.25);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
    will-change: transform;
}
[data-theme="light"] .project-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .project-card:hover {
    border-color: rgba(2, 133, 199, 0.35);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 0 20px rgba(2, 133, 199, 0.08);
}

.project-thumb {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--bg-light-surface);
}
.project-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-thumb img { transform: scale(1.08); }

.project-badge {
    position: absolute;
    top: 1rem; left: 1rem;
    background: var(--brand-cyan);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(74, 124, 247, 0.3);
}

.project-body { padding: 1.8rem; }
.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
[data-theme="light"] .project-title { color: #0f172a; }

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}
[data-theme="light"] .project-meta {
    color: #475569;
    border-top-color: #e2e8f0;
}

/* ===== Service Card ===== */
.service-card { padding: 2.2rem; }
.service-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(74, 124, 247, 0.4);
    transition: transform var(--transition-fast);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(4deg); }

/* Service card text for light theme */
[data-theme="light"] .service-card .heading-md { color: #0f172a; }
[data-theme="light"] .service-card p { color: #475569; }
[data-theme="light"] .service-card a { color: #0284c7; }

/* ===== Services Carousel (reference style) ===== */
.services-carousel-section {
    padding: 6.5rem 0 5rem;
    background: var(--bg-light-surface);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}
[data-theme="light"] .services-carousel-section {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.services-carousel-section .section-header { margin-bottom: 3.5rem; }

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}
.carousel-track {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    justify-content: center;
}
.carousel-item {
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    transition: all 0.6s ease;
}
.carousel-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}
.carousel-item:hover img { transform: scale(1.06); }
.carousel-item .carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.carousel-item:hover .carousel-overlay { opacity: 1; }
.carousel-overlay h4 {
    font-family: var(--font-display), 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.carousel-overlay p { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.carousel-item.size-sm { width: 180px; height: 240px; }
.carousel-item.size-md { width: 240px; height: 300px; }
.carousel-item.size-lg {
    width: 320px; height: 360px;
    box-shadow: 0 16px 56px rgba(0,0,0,0.5);
    border-color: rgba(74,124,247,0.2);
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2.5rem;
}
.carousel-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-glass-light);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    padding: 0;
}
.carousel-dot.active {
    background: var(--brand-cyan);
    width: 30px;
    border-radius: 10px;
}

/* ===== Team Card ===== */
.team-card { text-align: center; padding: 2.2rem; }
.team-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
    border: 2px solid var(--border-glass-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition-base);
}
.team-card:hover .team-avatar {
    border-color: var(--brand-cyan);
    transform: scale(1.04);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-role {
    font-size: 0.82rem;
    color: var(--brand-sky);
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
[data-theme="light"] .team-role { color: #0284c7; }
[data-theme="light"] .team-card h4 { color: #0f172a; }
[data-theme="light"] .team-card p { color: #475569; }

.team-socials {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.2rem;
}
.social-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}
.social-icon:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ===== Blog Card ===== */
.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}
.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 124, 247, 0.2);
    box-shadow: var(--shadow-glass);
}
[data-theme="light"] .blog-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(15,23,42,0.05);
}
[data-theme="light"] .blog-card:hover {
    border-color: rgba(2, 133, 199, 0.3);
    box-shadow: 0 10px 32px rgba(15,23,42,0.1);
}

.blog-thumb { height: 220px; overflow: hidden; background: var(--bg-light-surface); }
.blog-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-content { padding: 1.8rem; }
.blog-date { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.5rem; }

[data-theme="light"] .blog-content h4 { color: #0f172a; }
[data-theme="light"] .blog-content p { color: #475569; }

/* Filter Tabs */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}
.filter-btn {
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(74, 124, 247, 0.35);
}
[data-theme="light"] .filter-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #475569;
}

/* Search Bar */
.search-box {
    position: relative;
    max-width: 480px;
    margin: 0 auto 3rem auto;
}
.search-input {
    width: 100%;
    padding: 1rem 1.4rem 1rem 3.2rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    outline: none;
}
[data-theme="light"] .search-input {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}
.search-icon {
    position: absolute;
    left: 1.2rem; top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 3.5rem;
}
.page-item {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    cursor: pointer;
}
.page-item:hover, .page-item.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}
[data-theme="light"] .page-item { background: #ffffff; border-color: #e2e8f0; color: #475569; }

/* ===== Floating Quick Action Buttons ===== */
.floating-actions {
    position: fixed;
    bottom: 2rem; right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 999;
}
.float-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.float-btn:hover { transform: scale(1.1); }
.float-whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.float-call { background: linear-gradient(135deg, #4a7cf7, #3060d4); }
.float-top {
    background: var(--bg-card);
    border: 1px solid var(--border-glass-light);
    color: var(--text-main);
    opacity: 0; visibility: hidden;
}
.float-top.visible { opacity: 1; visibility: visible; }

/* Modal Popup */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem;
    opacity: 0; visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glass-light);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 600px; width: 100%;
    text-align: center;
    box-shadow: var(--shadow-glass);
    position: relative;
}

/* Step Wizard */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}
.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%; left: 0;
    width: 100%; height: 2px;
    background: var(--border-glass);
    z-index: 0;
    transform: translateY(-50%);
}
.step-circle {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-glass-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    color: var(--text-dim);
    position: relative; z-index: 1;
    transition: all var(--transition-fast);
}
.step-circle.active, .step-circle.completed {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(74, 124, 247, 0.5);
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== About Section ===== */
[data-theme="light"] .about-section {
    background: #f8fafc;
}
[data-theme="light"] .about-section h2 { color: #0f172a; }
[data-theme="light"] .about-section p { color: #475569; }
[data-theme="light"] .about-section .section-label { color: #0369a1; }

/* Stats */
.stat-item { text-align: center; }
.stat-number {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--brand-cyan);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
}
[data-theme="light"] .stat-label { color: #64748b; }

/* Hero stats (always white since on dark bg) */
.hero-stats .hero-stat-label { color: rgba(255,255,255,0.5); }

/* ===== Consultation/Form Page ===== */
[data-theme="light"] .form-group label { color: #0f172a; }
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 { color: #0f172a; }
[data-theme="light"] p { color: #475569; }
[data-theme="light"] .heading-xl,
[data-theme="light"] .heading-lg,
[data-theme="light"] .heading-md { color: #0f172a; }
[data-theme="light"] .subhead { color: #475569; }
[data-theme="light"] .text-muted { color: #64748b; }
[data-theme="light"] .section-header p { color: #475569; }

/* ===== Footer (Always Dark) ===== */
.site-footer {
    background: var(--footer-bg);
    color: #f0ede8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 2rem 0;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer-col-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.4rem;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.footer-link { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-link:hover { color: var(--brand-sky); padding-left: 4px; transition: all 0.2s; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

/* ===== Service & About page specific ===== */
[data-theme="light"] .section { background: transparent; }
[data-theme="light"] .glass-card h3,
[data-theme="light"] .glass-card h4 { color: #0f172a; }
[data-theme="light"] .glass-card p { color: #475569; }
[data-theme="light"] .glass-card .team-role { color: #0284c7; }

/* Process steps light theme */
[data-theme="light"] .glass-card [style*="font-size: 2.5rem"] { color: #0284c7; }

/* Advantage / process cards */
[data-theme="light"] .glass-card > div[style*="font-size: 2"] { color: unset; }

/* ===== About page image ===== */
[data-theme="light"] .about-visual {
    border-color: #e2e8f0;
    background: #f1f5f9;
}

/* ===== Contact page ===== */
[data-theme="light"] .contact-info-item h5 { color: #0f172a; }
[data-theme="light"] .contact-info-item p { color: #475569; }

/* ===== Breadcrumb light ===== */
[data-theme="light"] .breadcrumb-list { color: #64748b; }
[data-theme="light"] .breadcrumb-item a { color: #64748b; }
[data-theme="light"] .breadcrumb-item a:hover { color: #0284c7; }

/* ================================================================
   RESPONSIVE DESIGN SYSTEM
   Breakpoints: 1280 | 1024 | 768 | 480 | 360
   ================================================================ */

/* ---- Base overflow guard (all viewports) ---- */
html, body {
    overflow-x: hidden;
    width: 100%;
}
img, video, iframe {
    max-width: 100%;
    height: auto;
}
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.75rem;
    box-sizing: border-box;
}

/* ---- 1280px: Large laptops ---- */
@media (max-width: 1280px) {
    .hero-heading { font-size: clamp(2.4rem, 5vw, 4rem); }
    .mega-menu { width: 560px; left: -100px; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
}

/* ---- 1024px: Tablets landscape / small laptops ---- */
@media (max-width: 1024px) {
    /* Navigation */
    .nav-menu    { display: none !important; }
    .mobile-toggle { display: flex !important; align-items: center; justify-content: center; }

    /* Hide desktop CTA on very small laptops */
    .nav-cta-desktop { display: none; }

    /* Header container */
    .nav-container { padding: 0 1.25rem; }

    /* Hero — stack columns */
    .hero-container {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 5rem 1.5rem 4rem;
        text-align: left;
    }
    .hero-image-card {
        max-width: 600px;
        width: 100%;
    }
    .hero-image-col { display: flex; justify-content: center; }
    .hero-stats { gap: 2rem; }

    /* Grids */
    .grid-2  { grid-template-columns: 1fr !important; }
    .grid-3  { grid-template-columns: repeat(2, 1fr) !important; }
    .grid-4  { grid-template-columns: repeat(2, 1fr) !important; }

    /* About page split layout */
    .about-split { grid-template-columns: 1fr !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Carousel sizing — tablet */
    .carousel-item.size-sm { width: 150px; height: 200px; }
    .carousel-item.size-md { width: 200px; height: 260px; }
    .carousel-item.size-lg { width: 270px; height: 310px; }

    /* Mega menu  — disable on tablet, use drawer instead */
    .mega-menu { display: none !important; }

    /* Wizard steps label */
    .wizard-steps { flex-wrap: wrap; gap: 1rem; }
}

/* ---- 768px: Tablet portrait / large phones ---- */
@media (max-width: 768px) {
    /* Spacing */
    .section     { padding: 3.5rem 0; }
    .section-sm  { padding: 2rem 0; }
    .container   { padding: 0 1.1rem; }

    /* Header */
    .site-header  { padding: 0.85rem 0; }
    .site-logo-img { height: 34px; }

    /* Hero */
    .hero-section  { padding-top: 64px; min-height: 100dvh; }
    .hero-container {
        padding: 2.5rem 1.1rem 3.5rem;
        gap: 1.8rem;
    }
    .hero-badge    { font-size: 0.6rem; padding: 5px 16px; }
    .hero-heading  { font-size: clamp(2rem, 8vw, 2.8rem); }
    .hero-description { font-size: 0.95rem; }
    .hero-actions  {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .hero-actions .btn,
    .hero-actions .btn-outline-dark {
        width: 100%;
        justify-content: center;
    }
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        padding-top: 1.5rem;
    }
    .hero-stat-number { font-size: 1.6rem; }
    .hero-stat-label  { font-size: 0.62rem; }
    .hero-image-card  { aspect-ratio: 16/10; }
    .hero-floating-badge { font-size: 0.75rem; padding: 0.6rem 1.1rem; }

    /* Section headers */
    .section-header { margin-bottom: 2.5rem; }
    .heading-xl { font-size: clamp(1.7rem, 6vw, 2.4rem); }
    .heading-lg { font-size: clamp(1.4rem, 5vw, 1.9rem); }
    .heading-md { font-size: clamp(1.1rem, 4vw, 1.4rem); }
    .subhead    { font-size: 0.95rem; }

    /* Grids — single column on tablet portrait */
    .grid-3 { grid-template-columns: 1fr !important; }
    .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }

    /* Cards */
    .glass-card { padding: 1.6rem; }
    .service-card { padding: 1.5rem; }
    .project-thumb { height: 210px; }

    /* Services carousel */
    .services-carousel-section { padding: 3.5rem 0 2.5rem; }
    .carousel-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; }
    .carousel-track   { justify-content: flex-start; padding: 0.5rem 1rem; gap: 0.85rem; }
    .carousel-item.size-sm { width: 120px; height: 165px; }
    .carousel-item.size-md { width: 160px; height: 215px; }
    .carousel-item.size-lg { width: 210px; height: 260px; }

    /* Filter tabs */
    .filter-tabs { gap: 0.5rem; }
    .filter-btn  { padding: 0.5rem 1rem; font-size: 0.82rem; }

    /* Team card */
    .team-avatar { width: 100px; height: 100px; }

    /* Blog */
    .blog-thumb { height: 190px; }

    /* About page image */
    .glass-card img[style*="height: 400px"],
    .glass-card img[style*="height: 420px"] { height: 260px !important; }

    /* Footer */
    .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    .site-footer { padding: 3.5rem 0 1.5rem; }

    /* Timeline */
    .glass-card[style*="display: flex"][style*="gap: 1.5rem"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    /* Stats row (about page) */
    div[style*="display: flex; gap: 2rem"] {
        gap: 1.2rem !important;
        flex-wrap: wrap !important;
    }

    /* Floating action buttons */
    .floating-actions { bottom: 1rem; right: 1rem; gap: 0.6rem; }
    .float-btn { width: 44px; height: 44px; font-size: 1.1rem; }

    /* Breadcrumb */
    .breadcrumb-wrap { padding: 1rem 0; margin-top: 4.5rem; }

    /* Contact grid */
    .contact-grid-split { grid-template-columns: 1fr !important; }

    /* Consultation wizard */
    .wizard-steps { gap: 0.5rem; }
    .step-circle  { width: 32px; height: 32px; font-size: 0.8rem; }
    .modal-content { padding: 2rem 1.5rem; }
}

/* ---- 480px: Large phones ---- */
@media (max-width: 480px) {
    .container { padding: 0 0.9rem; }

    /* Header */
    .site-header { padding: 0.7rem 0; }
    .site-logo-img { height: 30px; max-width: 160px; }
    .theme-toggle-btn { width: 34px; height: 34px; font-size: 0.95rem; }
    .mobile-toggle { font-size: 1.4rem; }

    /* Nav CTA button — hide on very small screens to keep header clean */
    .btn-header-cta { display: none !important; }

    /* Hero */
    .hero-container { padding: 2rem 0.9rem 3rem; }
    .hero-heading  { font-size: clamp(1.7rem, 9vw, 2.2rem); line-height: 1.1; }
    .hero-badge    { font-size: 0.55rem; margin-bottom: 1rem; }
    .hero-description { font-size: 0.88rem; margin: 1rem 0 1.5rem; }
    .hero-stats    { gap: 1rem; }
    .hero-stat-number { font-size: 1.4rem; }
    .hero-image-card { border-radius: var(--radius-sm); }
    .hero-floating-badge { bottom: 0.8rem; left: 0.8rem; font-size: 0.7rem; padding: 0.5rem 0.9rem; gap: 0.5rem; }

    /* Section */
    .section { padding: 3rem 0; }
    .section-header { margin-bottom: 2rem; }
    .heading-xl { font-size: clamp(1.5rem, 8vw, 2rem); }
    .heading-lg { font-size: clamp(1.25rem, 6vw, 1.6rem); }

    /* Grid — all single col */
    .grid-3 { grid-template-columns: 1fr !important; }
    .grid-4 { grid-template-columns: 1fr !important; }

    /* Cards */
    .glass-card { padding: 1.25rem; border-radius: var(--radius-md); }
    .project-thumb { height: 185px; }
    .blog-thumb { height: 170px; }

    /* Services carousel */
    .carousel-item.size-sm { width: 95px;  height: 135px; }
    .carousel-item.size-md { width: 130px; height: 180px; }
    .carousel-item.size-lg { width: 170px; height: 220px; }
    .carousel-overlay h4 { font-size: 0.85rem; }
    .carousel-overlay p  { display: none; }

    /* Buttons */
    .btn    { padding: 0.8rem 1.6rem; font-size: 0.84rem; }
    .btn-sm { padding: 0.55rem 1.1rem; font-size: 0.78rem; }
    .btn-lg { padding: 0.9rem 2rem; font-size: 0.9rem; }

    /* About page inline stats */
    .glass-card img[style*="height: 400px"],
    .glass-card img[style*="height: 420px"] { height: 220px !important; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-col-title { font-size: 0.68rem; }

    /* Floating btns */
    .floating-actions { bottom: 0.8rem; right: 0.8rem; }
    .float-btn { width: 40px; height: 40px; font-size: 1rem; }

    /* Pagination */
    .pagination { gap: 0.4rem; }
    .page-item  { width: 36px; height: 36px; font-size: 0.82rem; }

    /* Filter tabs — scrollable row */
    .filter-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.5rem; justify-content: flex-start; }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-btn  { flex-shrink: 0; }

    /* Search */
    .search-box { max-width: 100%; }

    /* Team cards — 2 col */
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .team-avatar { width: 80px; height: 80px; }
    .team-card { padding: 1.2rem; }

    /* Mobile drawer */
    .mobile-drawer { padding: 2rem 1.25rem; }
    .mobile-nav-link { font-size: 1.15rem; }
    .mobile-nav-links { gap: 1.2rem; }
}

/* ---- 360px: Small phones ---- */
@media (max-width: 360px) {
    .container { padding: 0 0.75rem; }
    .hero-heading { font-size: 1.65rem; }
    .hero-badge { display: none; }  /* Sacrifice badge to save space */
    .hero-stats { gap: 0.8rem; }
    .hero-stat-number { font-size: 1.2rem; }
    .heading-xl { font-size: 1.4rem; }
    .heading-lg { font-size: 1.2rem; }
    .glass-card { padding: 1rem; }
    .btn, .btn-outline-dark { font-size: 0.8rem; padding: 0.75rem 1.3rem; }
    .carousel-item.size-sm { width: 80px;  height: 115px; }
    .carousel-item.size-md { width: 110px; height: 155px; }
    .carousel-item.size-lg { width: 145px; height: 190px; }
    .floating-actions { gap: 0.5rem; }
    .float-btn { width: 36px; height: 36px; font-size: 0.9rem; }
    .site-logo-img { max-width: 130px; }
}

/* ---- Mobile drawer scrollable nav list ---- */
@media (max-width: 1024px) {
    .mobile-drawer {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Theme toggle + hamburger always visible */
    .nav-controls { display: flex; align-items: center; gap: 0.6rem; }
}

/* ---- Touch targets: minimum 44px ---- */
@media (hover: none) and (pointer: coarse) {
    .nav-link, .footer-link, .mobile-nav-link { min-height: 44px; display: flex; align-items: center; }
    .btn, .btn-primary, .btn-glass, .btn-outline-dark { min-height: 44px; }
    .filter-btn, .carousel-dot, .page-item { min-height: 44px; min-width: 44px; }
    .float-btn { width: 48px; height: 48px; }
    .social-icon { width: 44px; height: 44px; }
}

/* ===== Light Theme: Inline-Style Overrides ===== */
/* Fix hardcoded white / dark-palette colors used on inner pages in light mode */
[data-theme="light"] .glass-card h3[style*="color: #fff"],
[data-theme="light"] .glass-card h4[style*="color: #fff"],
[data-theme="light"] .glass-card p[style*="color: #fff"],
[data-theme="light"] h4[style*="color: #fff"],
[data-theme="light"] h3[style*="color: #fff"] {
    color: #0f172a !important;
}

[data-theme="light"] div[style*="color: #38BDF8"],
[data-theme="light"] h3[style*="color: #38BDF8"],
[data-theme="light"] h4[style*="color: #38BDF8"],
[data-theme="light"] span[style*="color: #38BDF8"],
[data-theme="light"] div[style*="color: #38bdf8"] {
    color: #0284c7 !important;
}

[data-theme="light"] div[style*="color: #a5b4fc"],
[data-theme="light"] h3[style*="color: #a5b4fc"] {
    color: #4f46e5 !important;
}

/* Fix inline background rgba used in sections */
[data-theme="light"] section[style*="background: rgba(255, 255, 255, 0.01)"],
[data-theme="light"] section[style*="background: rgba(255,255,255,0.01)"] {
    background: #f8fafc !important;
}

/* Light theme card heading fallback */
[data-theme="light"] .glass-card > h3,
[data-theme="light"] .glass-card > h2,
[data-theme="light"] .glass-card > h4 {
    color: #0f172a;
}
[data-theme="light"] .glass-card > p {
    color: #475569;
}

/* Timeline year color */
[data-theme="light"] div[style*="color: #38BDF8"][style*="font-size: 1.8rem"] {
    color: #0284c7 !important;
}

/* Section backgrounds for light theme inner pages */
[data-theme="light"] .section {
    background: transparent;
}
[data-theme="light"] .services-carousel-section {
    background: #f1f5f9;
}

/* Blog category label */
[data-theme="light"] .blog-content a[style*="color: #38BDF8"],
[data-theme="light"] a[style*="color: #38BDF8"],
[data-theme="light"] a[style*="color: var(--brand-sky)"] {
    color: #0284c7 !important;
}

/* Project meta link light */
[data-theme="light"] .project-meta a { color: #0284c7; }
[data-theme="light"] .project-meta a:hover { color: #0369a1; }

/* CTA card gradient in light mode */
[data-theme="light"] .glass-card[style*="radial-gradient"] {
    background: linear-gradient(135deg, rgba(2, 133, 199, 0.06) 0%, #ffffff 70%) !important;
    border-color: rgba(2, 133, 199, 0.2) !important;
}

/* Process step numbers light */
[data-theme="light"] div[style*="-webkit-text-fill-color: transparent"] {
    background: linear-gradient(135deg, #0f172a 20%, #0284c7 80%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* ======================================================
   PURE BLACK DARK THEME — GLOBAL ENFORCEMENT
   Ensures every surface is pure black, not dark-grey,
   across all pages, sections, and components.
====================================================== */
[data-theme="dark"] body,
[data-theme="dark"] main,
[data-theme="dark"] .section,
[data-theme="dark"] section {
    background-color: #000000;
}

/* All sections with inline background styles → force black */
[data-theme="dark"] section[style*="background"] {
    background-color: #000000 !important;
    background-image: none !important;
}
/* Exception: hero keeps its slideshow */
[data-theme="dark"] .hero-section {
    background: #000000 !important;
}
/* Exception: services section gets near-black surface */
[data-theme="dark"] .services-carousel-section {
    background: #080808 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
/* Exception: advantage / alternating sections */
[data-theme="dark"] .section[style*="background: var(--bg-light-surface)"],
[data-theme="dark"] .section[style*="background: var(--bg-card)"] {
    background-color: #080808 !important;
}

/* Cards — pure black with subtle border */
[data-theme="dark"] .glass-card {
    background: #111111 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .glass-card:hover {
    background: #161616 !important;
    border-color: rgba(74,124,247,0.3) !important;
}

/* CTA card in dark mode — keep gradient but on black base */
[data-theme="dark"] .glass-card[style*="radial-gradient"] {
    background: radial-gradient(ellipse at center, rgba(74,124,247,0.12) 0%, #111111 70%) !important;
    border-color: rgba(74,124,247,0.18) !important;
}

/* Header — black glass (Other pages only) */
[data-theme="dark"] .site-header:not(.site-header--home-transparent) {
    background: rgba(0,0,0,0.78) !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
}
[data-theme="dark"] .site-header.scrolled:not(.site-header--home-transparent) {
    background: rgba(0,0,0,0.98) !important;
    border-bottom: 1px solid rgba(74, 124, 247, 0.65) !important;
    box-shadow: 0 4px 40px rgba(0,0,0,1), 0 1px 12px rgba(74, 124, 247, 0.35) !important;
}

/* Mega menu — black */
[data-theme="dark"] .mega-menu {
    background: #0d0d0d !important;
    border-color: rgba(255,255,255,0.08) !important;
}

/* Mobile drawer — black */
[data-theme="dark"] .mobile-drawer {
    background: #000000 !important;
}

/* Footer — solid black */
[data-theme="dark"] .site-footer {
    background: #000000 !important;
}

/* Preloader — black */
[data-theme="dark"] .preloader {
    background: #000000 !important;
}

/* Carousel items — black base */
[data-theme="dark"] .carousel-item {
    background: #111111 !important;
    border-color: rgba(255,255,255,0.07) !important;
}

/* Project cards */
[data-theme="dark"] .project-card {
    background: #111111 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
[data-theme="dark"] .project-card:hover {
    border-color: rgba(74,124,247,0.25) !important;
}

/* Blog cards */
[data-theme="dark"] .blog-card {
    background: #111111 !important;
    border-color: rgba(255,255,255,0.07) !important;
}

/* Form controls */
[data-theme="dark"] .form-control {
    background: rgba(255,255,255,0.04) !important;
    border-color: rgba(255,255,255,0.09) !important;
    color: #f0ede8 !important;
}

/* Scrollbar track */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #000000 !important;
}

/* Modal */
[data-theme="dark"] .modal-content {
    background: #111111 !important;
    border-color: rgba(255,255,255,0.08) !important;
}
[data-theme="dark"] .modal-overlay {
    background: rgba(0,0,0,0.92) !important;
}

/* ==========================================================================
   EXPANDABLE CARD STACK SLIDER (HERO REFERENCE REPLAY & ENHANCEMENT)
   ========================================================================== */
.expandable-hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 650px;
    max-height: none;
    background: var(--bg-dark);
    overflow: hidden;
    margin-bottom: 0;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.expandable-hero-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.expandable-hero-container .slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.expandable-hero-container .slide .item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.expandable-hero-container .slide .item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 13, 18, 0.88) 0%, rgba(11, 13, 18, 0.45) 50%, rgba(11, 13, 18, 0.92) 100%);
    transition: opacity 0.4s ease;
}

.expandable-hero-container .slide .item:nth-child(1),
.expandable-hero-container .slide .item:nth-child(2) {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 1;
}

/* Hide floating preview cards on the right */
.expandable-hero-container .slide .item:nth-child(n+3) {
    display: none !important;
}

/* Card Content Overlay & Text Reveal Animation */
.expandable-hero-container .item .content {
    position: absolute;
    bottom: 85px;
    left: 5%;
    width: 600px;
    max-width: 85%;
    text-align: left;
    color: var(--text-main);
    transform: none;
    display: none;
    z-index: 10;
}

.expandable-hero-container .slide .item:nth-child(2) .content {
    display: block;
}

.expandable-hero-container .content .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border-radius: 50px;
    background: rgba(74, 124, 247, 0.15);
    border: 1px solid rgba(74, 124, 247, 0.35);
    color: var(--brand-sky);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    opacity: 0;
    animation: animateBlurUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s 1 forwards;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.expandable-hero-container .content .name {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    opacity: 0;
    animation: animateBlurUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s 1 forwards;
    background: linear-gradient(135deg, #ffffff 40%, #c4d7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.expandable-hero-container .content .details {
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(240, 237, 232, 0.88);
    margin-bottom: 16px;
    max-width: 480px;
    opacity: 0;
    animation: animateBlurUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s 1 forwards;
}

.expandable-hero-container .content .hero-action-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    animation: animateBlurUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s 1 forwards;
}

/* Keyframes Blur-Up Animation */
@keyframes animateBlurUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Stack Slider Controls — Hide Arrow Buttons */
.expandable-hero-container .slider-controls {
    position: absolute;
    bottom: 28px;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 20;
}

.expandable-hero-container .slider-controls .prev-btn,
.expandable-hero-container .slider-controls .next-btn {
    display: none !important;
}

.expandable-hero-container .slider-controls button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(13, 13, 13, 0.65);
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.expandable-hero-container .slider-controls button:hover {
    background: var(--brand-cyan);
    border-color: var(--brand-cyan);
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(74, 124, 247, 0.55);
}

/* Counter indicator */
.slider-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    margin-left: 0;
}

/* Media Queries for Expandable Slider */
@media (max-width: 1200px) {
    .expandable-hero-container .slide .item:nth-child(n+3) {
        width: 190px;
        height: 280px;
    }
    .expandable-hero-container .slide .item:nth-child(3) {
        left: 50%;
    }
    .expandable-hero-container .slide .item:nth-child(4) {
        left: calc(50% + 205px);
    }
    .expandable-hero-container .slide .item:nth-child(5) {
        left: calc(50% + 410px);
    }
}

@media (max-width: 991px) {
    .expandable-hero-wrapper {
        height: 100vh;
        height: 100dvh;
        min-height: 580px;
    }
    .expandable-hero-container .slide .item:nth-child(n+3) {
        display: none !important;
    }
    .expandable-hero-container .item .content {
        left: 5%;
        bottom: 75px;
        width: 90%;
        max-width: 90%;
    }
}

@media (max-width: 767px) {
    .expandable-hero-wrapper {
        height: 100vh;
        height: 100dvh;
        min-height: 540px;
    }
    .expandable-hero-container .slide .item:nth-child(n+3) {
        display: none !important;
    }
    .expandable-hero-container .item .content {
        bottom: 60px;
        left: 5%;
        width: 90%;
        max-width: 90%;
    }
    .expandable-hero-container .content .hero-tag {
        font-size: 0.7rem;
        padding: 3px 12px;
        margin-bottom: 6px;
    }
    .expandable-hero-container .content .name {
        font-size: 1.45rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    .expandable-hero-container .content .details {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 12px;
        max-width: 100%;
    }
    .expandable-hero-container .content .hero-action-group {
        gap: 8px;
    }
    .expandable-hero-container .content .hero-action-group .btn {
        padding: 0.55rem 1rem;
        font-size: 0.78rem;
    }
    .expandable-hero-container .slider-controls {
        bottom: 18px;
        left: 5%;
    }
    .slider-indicator {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   3D CASINO REEL / ROLLING IMAGE CAROUSEL (SERVICES PAGE HERO)
   ========================================================================== */
.reel-section {
    position: relative;
    padding: 1.5rem 0 3.5rem 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, rgba(74, 124, 247, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

.reel-section-badge {
    text-align: center;
    margin-bottom: 1.5rem;
}

.reel-stage-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    height: 440px;
    margin: 0 auto;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

.reel-stage {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Individual Reel Card */
.reel-card {
    position: absolute;
    width: 380px;
    height: 380px;
    top: 50%;
    left: 50%;
    margin-top: -190px;
    margin-left: -190px;
    border-radius: 20px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d0d0d;
}

.reel-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.reel-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s ease;
}

/* Center Active Card Styling & Floating Glow */
.reel-card.is-center {
    border: 1.5px solid rgba(74, 124, 247, 0.7);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(74, 124, 247, 0.45), inset 0 0 20px rgba(255, 255, 255, 0.15);
    animation: floatingReel 3.5s ease-in-out infinite alternate;
}

.reel-card.is-center .reel-card-img {
    filter: brightness(1.08) contrast(1.05);
}

@keyframes floatingReel {
    0% {
        transform: translate3d(0, 0, 180px) scale(1.15) rotateY(0deg) translateY(0px);
    }
    100% {
        transform: translate3d(0, 0, 180px) scale(1.15) rotateY(0deg) translateY(-10px);
    }
}

/* Overlay & Title Badge on Active Card */
.reel-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    pointer-events: none;
    border-radius: 20px;
}

.reel-card.is-center .reel-card-overlay {
    opacity: 1;
}

.reel-card-title {
    color: #ffffff;
    font-family: var(--font-family);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.reel-card-category {
    color: #6b9aff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* Casino Reel Side Edge Gradient Shadows */
.reel-frame-glow-left,
.reel-frame-glow-right {
    position: absolute;
    top: 50%;
    width: 140px;
    height: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 40;
}
.reel-frame-glow-left {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}
.reel-frame-glow-right {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Controls & Indicators */
.reel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
    z-index: 50;
    position: relative;
}

.reel-dot-nav {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.reel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reel-dot.active {
    width: 32px;
    border-radius: 12px;
    background: var(--gradient-primary);
    box-shadow: 0 0 14px rgba(74, 124, 247, 0.7);
    border-color: transparent;
}

.reel-status-badge {
    font-size: 0.75rem;
    color: #a5b4fc;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    background: rgba(74, 124, 247, 0.1);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(74, 124, 247, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reel-status-spinner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a7cf7;
    box-shadow: 0 0 8px #4a7cf7;
}

.reel-status-spinner.spinning {
    animation: statusPulse 0.8s ease-in-out infinite alternate;
}

@keyframes statusPulse {
    0% { transform: scale(0.7); opacity: 0.4; }
    100% { transform: scale(1.4); opacity: 1; }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .reel-stage-wrapper {
        height: 380px;
    }
    .reel-card {
        width: 320px;
        height: 320px;
        margin-top: -160px;
        margin-left: -160px;
    }
}

@media (max-width: 768px) {
    .reel-section {
        padding: 1rem 0 2.5rem 0;
    }
    .reel-stage-wrapper {
        height: 300px;
    }
    .reel-card {
        width: 240px;
        height: 240px;
        margin-top: -120px;
        margin-left: -120px;
    }
}

/* ==========================================================================
   SERVICES PAGE FEATURED IMAGE CARDS & HOVER ZOOM EFFECT
   ========================================================================== */
.service-card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img {
    transform: scale(1.08);
}

/* ==========================================================================
   CAREER PAGE STYLING & RESPONSIVE GRID TIMELINE
   ========================================================================== */
.grid-5-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.grid-5-timeline .glass-card {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.grid-5-timeline .glass-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 124, 247, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.job-card {
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1024px) {
    .grid-5-timeline {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .grid-5-timeline {
        grid-template-columns: 1fr;
    }
    .career-hero-card {
        padding: 2.5rem 1.5rem !important;
    }
/* ==========================================================================
   MOBILE RENDERING & GPU COMPOSITING STABILITY HELPERS
   ========================================================================== */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

@media (max-width: 768px) {
    /* Stabilize fixed/sticky composite layers on mobile WebKit */
    .site-header,
    .scroll-progress-bar,
    .bg-blob-container,
    .floating-actions {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* ==========================================================================
   ARCHITECTURAL VISUAL GALLERY & FULLSCREEN LIGHTBOX
   ========================================================================== */

/* 1. Gallery Card — Zero extra padding or black empty space below image */
.gallery-card {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    margin: 0;
    padding: 0;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: rgba(74, 124, 247, 0.55);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 22px rgba(74, 124, 247, 0.25);
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.gallery-card:hover .gallery-card-img {
    transform: scale(1.05);
    filter: brightness(1.04);
}

/* 2. Expand Icon — Inside image at bottom-right corner */
.gallery-expand-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(8, 10, 16, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
    pointer-events: none;
}

.gallery-card:hover .gallery-expand-btn {
    background: #4a7cf7;
    border-color: #4a7cf7;
    color: #ffffff;
    transform: scale(1.12);
    box-shadow: 0 0 18px rgba(74, 124, 247, 0.8);
}

/* 3. Fullscreen Lightbox Modal Container */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

/* Dark Backdrop */
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: zoom-out;
    z-index: 1;
}

/* Top-Left Image Counter */
.lightbox-counter {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(74, 124, 247, 0.4);
    padding: 0.45rem 1.1rem;
    border-radius: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.lightbox-counter span {
    color: #38bdf8;
    font-weight: 700;
}

/* Top-Right RED Circular Close Button */
.lightbox-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.7), 0 0 15px rgba(239, 68, 68, 0.5);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-close-btn:hover {
    background: #dc2626;
    transform: scale(1.12);
    box-shadow: 0 0 26px rgba(239, 68, 68, 0.95), 0 6px 18px rgba(0, 0, 0, 0.8);
}

.lightbox-close-btn:active {
    transform: scale(0.95);
}

/* Fullscreen Stage */
.lightbox-stage {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5rem;
    box-sizing: border-box;
}

/* Floating Navigation Buttons (Prev / Next) */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(18, 22, 34, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(74, 124, 247, 0.5);
    color: #ffffff;
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.65);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lightbox-prev-btn {
    left: 2rem;
}

.lightbox-next-btn {
    right: 2rem;
}

.lightbox-nav-btn:hover {
    background: #4a7cf7;
    border-color: #4a7cf7;
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 0 25px rgba(74, 124, 247, 0.75);
}

.lightbox-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Center Image Box */
.lightbox-image-box {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 95vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.95), 0 0 35px rgba(74, 124, 247, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: scale(0.97);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    cursor: default;
}

.lightbox-image.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox-caption {
    margin-top: 0.85rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    max-width: 800px;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Responsive Mobile Rules */
@media (max-width: 768px) {
    .gallery-card {
        height: 220px;
    }
    .lightbox-stage {
        padding: 3.5rem 1rem 1.5rem;
    }
    .lightbox-counter {
        top: 1rem;
        left: 1rem;
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }
    .lightbox-close-btn {
        top: 1rem;
        right: 1rem;
        width: 42px;
        height: 42px;
        font-size: 1.15rem;
    }
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .lightbox-prev-btn {
        left: 0.6rem;
    }
    .lightbox-next-btn {
        right: 0.6rem;
    }
    .lightbox-image {
        max-width: 95vw;
        max-height: 74vh;
    }
    .lightbox-caption {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    .gallery-expand-btn {
        bottom: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   10. KINETIC SCROLL TEXT COLOR WAVE (NON-HOME PAGES ONLY)
   ========================================================================== */
.page-inner .heading-xl,
.page-inner .heading-lg,
.page-inner .heading-md,
.page-inner h1,
.page-inner h2,
.page-inner h3,
.page-inner .section-header h1,
.page-inner .section-header h2,
.page-inner .section-header h3,
.page-inner .subhead,
.page-inner .section-header p,
.page-inner .glass-card p,
.page-inner .section p,
.page-inner .project-body p,
.page-inner .service-card p,
.page-inner p {
    transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.35s ease, -webkit-text-fill-color 0.35s ease;
    will-change: color;
}

/* Vivid Active Blue Highlight for Top Lines as they Scroll Up */
.scroll-text-blue-active,
.page-inner .scroll-text-blue-active,
.page-inner h1.scroll-text-blue-active,
.page-inner h2.scroll-text-blue-active,
.page-inner h3.scroll-text-blue-active,
.page-inner p.scroll-text-blue-active,
.page-inner .heading-xl.scroll-text-blue-active,
.page-inner .heading-lg.scroll-text-blue-active,
.page-inner .heading-md.scroll-text-blue-active,
.page-inner .subhead.scroll-text-blue-active {
    color: #38bdf8 !important;
    -webkit-text-fill-color: #38bdf8 !important;
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.45) !important;
}

/* Ensure inner spans and gradient text also turn theme blue */
.scroll-text-blue-active *,
.scroll-text-blue-active .title-gradient,
.page-inner .scroll-text-blue-active .title-gradient {
    color: #38bdf8 !important;
    -webkit-text-fill-color: #38bdf8 !important;
    background: none !important;
}

/* Light Theme overrides */
[data-theme="light"] .scroll-text-blue-active,
[data-theme="light"] .page-inner .scroll-text-blue-active,
[data-theme="light"] .scroll-text-blue-active * {
    color: #0284c7 !important;
    -webkit-text-fill-color: #0284c7 !important;
    text-shadow: none !important;
    background: none !important;
}

/* ==========================================================================
   11. CHARACTER-BY-CHARACTER INCREMENTAL SCROLL REVEAL (.scroll-blue-300 / .scroll-char-reveal)
   ========================================================================== */
.char-unit {
    display: inline;
    transition: color 0.22s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.22s ease, -webkit-text-fill-color 0.22s ease;
    will-change: color;
}

/* Incremental active character turned blue on scroll */
.char-unit.char-blue {
    color: #38bdf8 !important;
    -webkit-text-fill-color: #38bdf8 !important;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.6) !important;
}

[data-theme="light"] .char-unit.char-blue {
    color: #0284c7 !important;
    -webkit-text-fill-color: #0284c7 !important;
    text-shadow: none !important;
}




