/* ===================================================
   ARGHANDHUB ENTERPRISE SYSTEMS DESIGN SYSTEM
   THEME: MIDNIGHT SLATE & EMERALD CYANGE GLOW
   =================================================== */

:root {
    --primary: #10b981;          /* Emerald Green Accent */
    --primary-hover: #059669;
    --primary-light: #34d399;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --secondary: #06b6d4;        /* Cyan / Electric Teal */
    --secondary-hover: #0891b2;
    --accent: #3b82f6;           /* Electric Indigo */
    --dark-bg: #090e1a;          /* Midnight void */
    --dark-surface: #0f172a;     /* Deep slate surface */
    --dark-card: #1e293b;        /* Card dark */
    --dark-card-hover: #243447;  /* Card hover */
    --light-bg: #f8fafc;
    --white: #ffffff;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    --text-dark-muted: #64748b;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.15);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #040914;
    background-image: radial-gradient(rgba(130, 200, 240, 0.30) 1.25px, transparent 1.25px);
    background-size: 14px 14px;
    background-position: 0 0;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip;
}

html.light body {
    background-color: #f8fafc;
    background-image: radial-gradient(rgba(2, 132, 199, 0.12) 1.25px, transparent 1.25px);
    background-size: 14px 14px;
    background-position: 0 0;
    background-attachment: fixed;
    color: #0f172a;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2.5vw, 36px);
}
@media (min-width: 1600px) {
    .container {
        max-width: 1560px;
    }
}

/* ================= TOPBAR ================= */
.topbar {
    background: #060913;
    color: #94a3b8;
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-info a {
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.topbar-info a:hover {
    color: var(--primary);
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-social a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.topbar-social a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* ================= FIXED STICKY SITE HEADER & NAVBAR ================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    transition: var(--transition);
}

body {
    padding-top: 118px; /* Offset for fixed topbar (38px) + navbar (80px) */
}

@media (max-width: 920px) {
    .topbar {
        display: none !important;
    }
    body {
        padding-top: 80px;
    }
}

.navbar {
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: relative;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled .navbar,
.navbar.scrolled {
    background: rgba(9, 14, 26, 0.98);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: clamp(10px, 1.5vw, 24px);
    width: 100%;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-right: auto; /* Pin company name to the far left */
}

.brand-logo-img {
    height: 44px;
    width: auto;
    border-radius: var(--radius-sm);
}

.brand-logo-fallback {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-title span {
    color: var(--primary);
}

.brand-tagline {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.75vw, 10px);
    list-style: none;
    margin: 0 clamp(6px, 1.2vw, 18px);
    padding: 0;
    flex-shrink: 1;
}

.nav-link {
    color: #cbd5e1;
    font-size: clamp(0.82rem, 0.88vw, 0.94rem);
    font-weight: 600;
    padding: 8px clamp(8px, 0.9vw, 14px);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
}

.nav-cta-wrapper {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    flex-shrink: 0;
    margin-left: 0; /* Pinned to far right */
}

.nav-cta-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.5);
}

.nav-login-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.nav-login-icon:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
}

/* ================= THEME TOGGLE BUTTON ================= */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    user-select: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px) scale(1.06);
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* Icon visibility per theme */
html:not(.light) .theme-toggle-btn .sun-icon {
    display: block;
    color: #fbbf24;
}
html:not(.light) .theme-toggle-btn .moon-icon {
    display: none;
}

html.light .theme-toggle-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
html.light .theme-toggle-btn:hover {
    background: #f1f5f9;
    border-color: #059669;
    color: #059669;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.2);
}
html.light .theme-toggle-btn .sun-icon {
    display: none;
}
html.light .theme-toggle-btn .moon-icon {
    display: block;
    color: #3b82f6;
}

.mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-wa-top-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff !important;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-wa-top-btn:hover,
.mobile-wa-top-btn:active {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.65);
    color: #ffffff !important;
}

.mobile-toggle {
    display: none !important;
}
html.light .mobile-toggle {
    display: none !important;
}

/* ================= HERO SECTION ================= */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.15), transparent 60%),
                radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.12), transparent 50%),
                linear-gradient(180deg, rgba(9, 14, 26, 0.85) 0%, rgba(9, 14, 26, 0.96) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 38px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.55);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ================= STATS BAR ================= */
.stats-banner {
    position: relative;
    z-index: 2;
    background: rgba(11, 19, 34, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px 36px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: var(--border);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.stat-number span {
    color: var(--primary);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 6px;
}

/* ================= SECTION HEADERS ================= */
.section {
    padding: 95px 0;
    position: relative;
}

.section-alt {
    background: rgba(12, 18, 34, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Section-Specific Atmospheric Ambient Glows */
#projects {
    background: radial-gradient(750px 480px at 0% 15%, rgba(16, 185, 129, 0.12), transparent 70%),
                radial-gradient(650px 450px at 100% 80%, rgba(6, 182, 212, 0.10), transparent 70%);
}

#services {
    background: radial-gradient(750px 480px at 100% 20%, rgba(99, 102, 241, 0.12), transparent 70%),
                radial-gradient(650px 450px at 0% 80%, rgba(34, 211, 238, 0.09), transparent 70%);
}

#stack {
    background: radial-gradient(700px 400px at 50% 50%, rgba(168, 85, 247, 0.10), transparent 70%);
}

#about {
    background: radial-gradient(750px 480px at 5% 30%, rgba(56, 189, 248, 0.12), transparent 70%),
                radial-gradient(650px 450px at 95% 70%, rgba(16, 185, 129, 0.09), transparent 70%);
}

#contact {
    background: radial-gradient(750px 480px at 90% 20%, rgba(16, 185, 129, 0.13), transparent 70%),
                radial-gradient(650px 450px at 10% 80%, rgba(6, 182, 212, 0.10), transparent 70%);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 55px;
}

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 50px;
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ================= 3D ELEVATED SECTION CONTAINER BOX ================= */
.section-3d-box {
    background: #09243f;
    background: linear-gradient(160deg, #0e3760 0%, #08243f 100%);
    background-image: 
        radial-gradient(rgba(125, 211, 252, 0.12) 1.25px, transparent 1.25px),
        linear-gradient(160deg, #0e3760 0%, #08243f 100%);
    background-size: 16px 16px, 100% 100%;
    background-position: 0 0, 0 0;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 28px;
    padding: clamp(32px, 4.5vw, 60px) clamp(22px, 4vw, 50px);
    box-shadow: 
        0 30px 80px -15px rgba(2, 12, 27, 0.8),
        0 16px 36px -8px rgba(2, 12, 27, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 40px rgba(56, 189, 248, 0.08);
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin: 10px 0;
}

/* Light mode 3D box appearance: ultra-clean, modern glassmorphic white card */
html.light .section-3d-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 
        0 24px 60px -12px rgba(15, 23, 42, 0.08),
        0 12px 28px -6px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.05);
}

/* Ensure all text inside .section-3d-box is crisp, bright, and legible in both modes */
.section-3d-box .section-title {
    color: #ffffff;
}
html.light .section-3d-box .section-title {
    color: #0f172a !important;
}

.section-3d-box .section-desc {
    color: #94a3b8;
}
html.light .section-3d-box .section-desc {
    color: #475569 !important;
}

.section-3d-box .section-tag {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--primary-light, #34d399);
}
html.light .section-3d-box .section-tag {
    background: rgba(5, 150, 105, 0.1) !important;
    border-color: rgba(5, 150, 105, 0.3) !important;
    color: #059669 !important;
}

/* Project Cards inside 3D Box */
.section-3d-box .project-card:not(.flip-card) {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.3);
}
html.light .section-3d-box .project-card:not(.flip-card) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 4px 10px rgba(15, 23, 42, 0.03) !important;
}
.section-3d-box .project-card:not(.flip-card):hover {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.7), 0 0 24px rgba(16, 185, 129, 0.22);
}
html.light .section-3d-box .project-card:not(.flip-card):hover {
    border-color: #059669 !important;
    box-shadow: 0 16px 36px -6px rgba(5, 150, 105, 0.18), 0 0 20px rgba(5, 150, 105, 0.12) !important;
}
.section-3d-box .project-title,
.section-3d-box .project-title a {
    color: #ffffff;
}
html.light .section-3d-box .project-title,
html.light .section-3d-box .project-title a {
    color: #0f172a !important;
}
.section-3d-box .project-title a:hover {
    color: var(--primary);
}
html.light .section-3d-box .project-title a:hover {
    color: #059669 !important;
}
.section-3d-box .tech-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
html.light .section-3d-box .tech-tag {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}
.section-3d-box .tech-tag:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--primary);
}
html.light .section-3d-box .tech-tag:hover {
    background: rgba(5, 150, 105, 0.12) !important;
    border-color: rgba(5, 150, 105, 0.35) !important;
    color: #059669 !important;
}
.section-3d-box .project-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .section-3d-box .project-footer {
    border-top: 1px solid #f1f5f9 !important;
}
.section-3d-box .project-details-link {
    color: var(--primary-light, #34d399);
}
html.light .section-3d-box .project-details-link {
    color: #059669 !important;
}
.section-3d-box .project-live-btn {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: var(--secondary);
}
html.light .section-3d-box .project-live-btn {
    background: rgba(2, 132, 199, 0.1) !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    color: #0284c7 !important;
}
.section-3d-box .project-live-btn:hover {
    background: var(--secondary);
    color: #090e1a;
}
html.light .section-3d-box .project-live-btn:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
}

/* Filter pills & search input inside 3D Box */
.section-3d-box .filter-pill {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}
html.light .section-3d-box .filter-pill {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.section-3d-box .filter-pill:hover {
    color: #ffffff;
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.15);
}
html.light .section-3d-box .filter-pill:hover {
    color: #059669 !important;
    border-color: #059669 !important;
    background: #f0fdf4 !important;
}
.section-3d-box .filter-pill.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}
html.light .section-3d-box .filter-pill.active {
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}
.section-3d-box .projects-search-input {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}
html.light .section-3d-box .projects-search-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.section-3d-box .projects-search-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
html.light .section-3d-box .projects-search-input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2) !important;
}
.section-3d-box .projects-search-wrapper .search-icon {
    color: #94a3b8;
}
html.light .section-3d-box .projects-search-wrapper .search-icon {
    color: #64748b !important;
}

/* Service cards inside 3D box */
.section-3d-box .service-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.section-3d-box .service-card:hover {
    background: linear-gradient(145deg, #152238 0%, #1e2e4a 100%) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.75), 0 0 35px rgba(56, 189, 248, 0.25) !important;
    transform: translateY(-6px);
}
html.light .section-3d-box .service-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06) !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
html.light .section-3d-box .service-card:hover {
    background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%) !important;
    border-color: #059669 !important;
    box-shadow: 0 18px 40px -8px rgba(16, 185, 129, 0.22), 0 0 25px rgba(16, 185, 129, 0.12) !important;
    transform: translateY(-6px);
}
.section-3d-box .service-title {
    color: #ffffff;
    transition: all 0.25s ease;
}
.section-3d-box .service-card:hover .service-title {
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
html.light .section-3d-box .service-title {
    color: #0f172a !important;
}
html.light .section-3d-box .service-card:hover .service-title {
    font-weight: 900 !important;
    color: #0f172a !important;
}
.section-3d-box .service-desc {
    color: #94a3b8;
    transition: all 0.25s ease;
}
.section-3d-box .service-card:hover .service-desc {
    font-weight: 600 !important;
    color: #f8fafc !important;
}
html.light .section-3d-box .service-desc {
    color: #475569 !important;
}
html.light .section-3d-box .service-card:hover .service-desc {
    font-weight: 700 !important;
    color: #1e293b !important;
}
.section-3d-box .service-features-list {
    transition: border-color 0.25s ease;
}
.section-3d-box .service-card:hover .service-features-list {
    border-top-color: rgba(56, 189, 248, 0.35) !important;
}
.section-3d-box .service-features-list li {
    color: #cbd5e1;
    transition: all 0.25s ease;
}
.section-3d-box .service-card:hover .service-features-list li {
    font-weight: 700 !important;
    color: #ffffff !important;
}
.section-3d-box .service-features-list li i {
    transition: transform 0.25s ease, color 0.25s ease;
}
.section-3d-box .service-card:hover .service-features-list li i {
    color: #38bdf8 !important;
    transform: scale(1.2);
}
html.light .section-3d-box .service-card:hover .service-features-list {
    border-top-color: #cbd5e1 !important;
}
html.light .section-3d-box .service-features-list li {
    color: #475569 !important;
}
html.light .section-3d-box .service-card:hover .service-features-list li {
    font-weight: 700 !important;
    color: #0f172a !important;
}
html.light .section-3d-box .service-card:hover .service-features-list li i {
    color: #059669 !important;
    transform: scale(1.2);
}

/* Founder card inside 3D box */
.section-3d-box .founder-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
html.light .section-3d-box .founder-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
}
.section-3d-box .founder-info h3 {
    color: #ffffff;
}
html.light .section-3d-box .founder-info h3 {
    color: #0f172a !important;
}
.section-3d-box .founder-bio {
    color: #94a3b8;
}
html.light .section-3d-box .founder-bio {
    color: #475569 !important;
}
.section-3d-box .founder-meta-item {
    color: #cbd5e1;
}
html.light .section-3d-box .founder-meta-item {
    color: #475569 !important;
}

/* Contact panels inside 3D box */
.section-3d-box .contact-info-panel {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.25);
}
html.light .section-3d-box .contact-info-panel {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(2, 132, 199, 0.06)) !important;
    border: 1px solid rgba(5, 150, 105, 0.25) !important;
    color: #0f172a !important;
}
html.light .section-3d-box .contact-info-panel h3,
html.light .section-3d-box .contact-info-panel h4 {
    color: #0f172a !important;
}
html.light .section-3d-box .contact-info-panel p {
    color: #475569 !important;
}
.section-3d-box .contact-form-panel {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
html.light .section-3d-box .contact-form-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
}
.section-3d-box .form-label {
    color: #ffffff;
}
html.light .section-3d-box .form-label {
    color: #0f172a !important;
}
.section-3d-box .form-control {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
html.light .section-3d-box .form-control {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
.section-3d-box .form-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    background: rgba(15, 23, 42, 0.95);
}
html.light .section-3d-box .form-control:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2) !important;
    background: #ffffff !important;
}

/* Stats Banner 3D box */
.stats-banner {
    background: #090e1c !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
html.light .stats-banner {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}
.stat-number {
    color: #10b981 !important;
}
html.light .stat-number {
    color: #059669 !important;
}
.stat-label {
    color: #94a3b8 !important;
}
html.light .stat-label {
    color: #64748b !important;
}

/* Portfolio Directory List, Trusted Companies, and Team Cards */
.portfolio-dir-row {
    background: #090e1a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    transition: all 0.2s ease;
}
.portfolio-dir-row:hover {
    transform: translateX(4px);
    border-color: rgba(56, 189, 248, 0.4);
}
.dir-row-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}
.dir-row-num {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.dir-row-text {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}
.dir-row-title {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: clamp(140px, 22vw, 320px);
    flex-shrink: 0;
}
.dir-row-badge {
    font-size: 0.70rem;
    padding: 2px 8px;
    flex-shrink: 0;
}
.dir-row-tech {
    color: #64748b;
    font-size: 0.80rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: clamp(110px, 18vw, 260px);
    flex-shrink: 1;
}
.dir-row-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    white-space: nowrap !important;
}
.dir-row-link {
    color: #38bdf8;
    font-size: 0.84rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-family: monospace;
    max-width: clamp(110px, 15vw, 190px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-dir-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.80rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-dir-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.80rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* LIGHT MODE DIRECTORY STYLING & BLUE BUTTONS */
html.light .portfolio-dir-row {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.06) !important;
}
html.light .portfolio-dir-row:hover {
    border-color: #2563eb !important;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.15) !important;
}
html.light .dir-row-title,
html.light .portfolio-dir-row strong {
    color: #0f172a !important;
}
html.light .dir-row-num {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}
html.light .dir-row-link {
    color: #0284c7 !important;
}

/* Light Mode Copy Button: Crisp Royal Blue Border & Text */
html.light .btn-dir-copy,
html.light .portfolio-dir-row .btn-dir-copy {
    background: #eff6ff !important;
    border: 1.5px solid #3b82f6 !important;
    color: #1d4ed8 !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12) !important;
}
html.light .btn-dir-copy:hover,
html.light .portfolio-dir-row .btn-dir-copy:hover {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    transform: translateY(-1px);
}

/* Light Mode Visit Website Button: Vibrant Royal / Electric Blue Gradient */
html.light .btn-dir-visit,
html.light .portfolio-dir-row .btn-dir-visit {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}
html.light .btn-dir-visit:hover,
html.light .portfolio-dir-row .btn-dir-visit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    border-color: #1e40af !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.48) !important;
    transform: translateY(-1px);
}
html.light #portfolioDirSearch {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.trusted-company-card,
.team-member-card {
    background: #090e1a;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    transition: all 0.2s;
}
html.light .trusted-company-card,
html.light .team-member-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05) !important;
}
html.light .trusted-company-card h4,
html.light .team-member-card h4 {
    color: #0f172a !important;
}
html.light .trusted-company-card p,
html.light .team-member-card p {
    color: #475569 !important;
}

/* Topbar & Modals in Light Mode */
html.light .topbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}
html.light .topbar a {
    color: #475569 !important;
}
html.light .modal-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
}
html.light .modal-card h2,
html.light .modal-card h3,
html.light .modal-card h4 {
    color: #0f172a !important;
}
html.light .modal-card p {
    color: #475569 !important;
}
html.light .modal-close {
    color: #64748b !important;
}
html.light .modal-close:hover {
    color: #0f172a !important;
}

/* ================= PROJECTS TOOLBAR (FILTER PILLS & SEARCH BAR) ================= */
.projects-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.projects-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.65);
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-pill:hover {
    color: #ffffff;
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
}

.filter-pill.active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.projects-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 260px;
    max-width: 380px;
    flex: 1 1 auto;
}

.projects-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.projects-search-input {
    width: 100%;
    padding: 9px 38px 9px 38px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.projects-search-input:focus {
    border-color: #10b981;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.clear-search-btn:hover {
    color: #ef4444;
}

/* ================= 4-COLUMN COMPACT PROJECT CARDS ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.project-card:not(.flip-card) {
    background: rgba(11, 19, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    position: relative;
}

.project-card:not(.flip-card):hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 18px 35px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(16, 185, 129, 0.15);
}

/* =====================================================================
   3D FLIP CARD SYSTEM (Covered Box -> Hover to Flip & Reveal System)
   Matching typegame.arghand.cloud design with ultra-smooth 3D flip
   ===================================================================== */
.project-card.flip-card,
.section-3d-box .project-card.flip-card {
    background: transparent !important;
    perspective: 1400px;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 320px;
    height: 100%;
    cursor: pointer;
    overflow: visible;
    transform: none !important; /* Completely removes the previous hover translateY(-5px) */
    transition: none !important;
}

.project-card.flip-card:hover,
.section-3d-box .project-card.flip-card:hover,
html.light .project-card.flip-card:hover,
html.light .section-3d-box .project-card.flip-card:hover {
    transform: none !important; /* Disables all previous hover jumping/translate */
    border: none !important;
    box-shadow: none !important;
}

/* Disable previous image zoom and overlay on whole card hover */
.project-card.flip-card:hover .project-banner {
    transform: none !important;
}
.project-card.flip-card .project-zoom-overlay {
    opacity: 0 !important;
    pointer-events: none;
}
.project-card.flip-card .flip-card-back:hover .project-zoom-overlay {
    opacity: 1 !important;
    pointer-events: auto;
}

/* The 3D rotating inner wrapper */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    transition: transform 0.75s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    border-radius: 20px;
    will-change: transform;
}

.project-card.flip-card:hover .flip-card-inner,
.project-card.flip-card:focus-within .flip-card-inner,
.project-card.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* FRONT: EXACT TYPEGAME.ARGHAND.CLOUD BOX DESIGN */
.flip-card-front.typegame-box {
    background: #131b2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 30px 20px 22px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

html.light .flip-card-front.typegame-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 10px rgba(15, 23, 42, 0.03);
}

.typegame-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 16px;
    border: 1px solid;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.typegame-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

html.light .typegame-card-title {
    color: #0f172a;
}

.typegame-card-desc {
    color: #38bdf8;
    font-size: 0.86rem;
    font-weight: 500;
    margin: 0 0 16px 0;
    line-height: 1.4;
}

html.light .typegame-card-desc {
    color: #0284c7;
}

.typegame-card-link-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 7px 16px;
    border-radius: 999px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.25s ease;
}

.typegame-card-link-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
}

html.light .typegame-card-link-pill {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

html.light .typegame-card-link-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.typegame-hover-hint {
    margin-top: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.typegame-hover-hint i {
    color: #38bdf8;
    font-size: 0.75rem;
}

/* BACK FACE: Revealed System with Screenshot, Tech tags & Actions */
.flip-card-back {
    background: #131b2e;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 24px rgba(56, 189, 248, 0.18);
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    z-index: 1;
}

html.light .flip-card-back {
    background: #ffffff;
    border: 1px solid #059669;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09), 0 0 20px rgba(5, 150, 105, 0.12);
}

.project-banner-wrapper {
    position: relative;
    height: 145px;
    background: #090e1a;
    overflow: hidden;
}

.project-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:not(.flip-card):hover .project-banner {
    transform: scale(1.05);
}

.project-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(9, 14, 26, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    color: var(--secondary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.project-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2.5px 7px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.project-status-dot {
    width: 5px;
    height: 5px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.project-content {
    padding: 14px 14px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
    line-height: 1.28;
}

.project-title a:hover {
    color: var(--primary);
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.tech-tag {
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #cbd5e1;
    padding: 2px 7px;
    border-radius: 4px;
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--primary);
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.project-details-link {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-details-link:hover {
    color: var(--primary-light);
    gap: 8px;
}

.project-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--secondary);
    padding: 3.5px 9px;
    border-radius: 5px;
    font-size: 0.74rem;
    font-weight: 700;
}

.project-live-btn:hover {
    background: var(--secondary);
    color: #090e1a;
}

/* Empty search / filter state */
.no-projects-state {
    text-align: center;
    padding: 44px 20px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    margin: 20px 0;
}

.no-projects-icon {
    font-size: 2.2rem;
    color: #64748b;
    margin-bottom: 12px;
}

.no-projects-state h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.no-projects-state p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= SERVICES SECTION: MODERN BENTO GRID ARCHITECTURE ================= */
.bento-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 24px auto 38px;
    max-width: 980px;
}

.bento-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bento-filter-btn:hover {
    color: #ffffff;
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

.bento-filter-btn.active {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.bento-filter-count {
    display: inline-block;
    padding: 1px 7px;
    font-size: 0.72rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
}

/* Bento Grid Container */
.bento-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

/* Bento Card Base */
.bento-card {
    background: linear-gradient(165deg, rgba(11, 22, 42, 0.88) 0%, rgba(7, 15, 28, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 24px;
    padding: clamp(24px, 2.5vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 20px 45px -12px rgba(0, 0, 0, 0.65),
        0 6px 18px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-sizing: border-box;
}

/* Hero Tile (Spans 2 columns on desktop) */
.bento-card.bento-hero-tile {
    grid-column: span 2;
    background: linear-gradient(165deg, rgba(14, 30, 56, 0.92) 0%, rgba(8, 18, 36, 0.96) 100%);
    border-color: rgba(56, 189, 248, 0.28);
}

/* Wide Tile (Spans 2 columns on desktop) */
.bento-card.bento-wide-tile {
    grid-column: span 2;
    background: linear-gradient(165deg, rgba(13, 28, 54, 0.90) 0%, rgba(8, 17, 34, 0.96) 100%);
    border-color: rgba(56, 189, 248, 0.28);
}

/* Ambient Bloom Behind Card */
.bento-ambient-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bento-card:hover .bento-ambient-glow {
    opacity: 1;
    transform: scale(1.2);
}

/* Hover States */
.bento-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 
        0 28px 65px -15px rgba(2, 12, 27, 0.85),
        0 0 35px rgba(56, 189, 248, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Top Meta Row */
.bento-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.bento-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(16, 185, 129, 0.16));
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.45rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.bento-card:hover .bento-icon-wrapper {
    background: linear-gradient(135deg, #0284c7, #10b981);
    color: #ffffff;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.45);
}

.bento-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 50px;
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.bento-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: bentoPulse 2s infinite;
}

@keyframes bentoPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Card Body Typography */
.bento-card-title {
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.bento-card:hover .bento-card-title {
    color: #38bdf8;
}

.bento-card-desc {
    font-size: 0.94rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* Telemetry Strip */
.bento-telemetry-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(4, 12, 24, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.16);
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
}

.bento-telemetry-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Technical Capabilities Pills Grid */
.bento-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.bento-card:not(.bento-hero-tile):not(.bento-wide-tile) .bento-features-grid {
    grid-template-columns: 1fr;
}

.bento-feature-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.83rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.25s ease;
}

.bento-card:hover .bento-feature-item {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.22);
    color: #ffffff;
}

.bento-check-bullet {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.bento-card:hover .bento-check-bullet {
    background: #10b981;
    color: #ffffff;
}

/* Bottom Action Footer */
.bento-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.bento-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #38bdf8;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
}

.bento-action-link i {
    transition: transform 0.25s ease;
}

.bento-card:hover .bento-action-link {
    color: #7dd3fc;
}

.bento-card:hover .bento-action-link i {
    transform: translateX(5px);
}

.bento-index-tag {
    font-size: 0.84rem;
    font-weight: 800;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 1px;
}

/* Light Mode Support */
html.light .bento-filter-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}
html.light .bento-filter-btn.active {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0284c7;
}
html.light .bento-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
}
html.light .bento-card.bento-hero-tile,
html.light .bento-card.bento-wide-tile {
    background: #f8fafc;
    border-color: #cbd5e1;
}
html.light .bento-card:hover {
    border-color: #0284c7;
    box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.12), 0 0 25px rgba(2, 132, 199, 0.15);
}
html.light .bento-card-title {
    color: #0f172a;
}
html.light .bento-card:hover .bento-card-title {
    color: #0284c7;
}
html.light .bento-card-desc {
    color: #475569;
}
html.light .bento-feature-item {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}
html.light .bento-card:hover .bento-feature-item {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0f172a;
}
html.light .bento-card-footer {
    border-top-color: #e2e8f0;
}
html.light .bento-index-tag {
    color: #94a3b8;
}

/* Responsive Breakpoints */
@media (max-width: 1080px) {
    .bento-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card.bento-hero-tile,
    .bento-card.bento-wide-tile {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-services-grid {
        grid-template-columns: 1fr;
    }
    .bento-card.bento-hero-tile,
    .bento-card.bento-wide-tile {
        grid-column: span 1;
    }
    .bento-card {
        padding: 22px 18px;
    }
    .bento-features-grid {
        grid-template-columns: 1fr !important;
    }
    .bento-filter-bar {
        gap: 6px;
    }
    .bento-filter-btn {
        padding: 6px 12px;
        font-size: 0.76rem;
    }
}

/* ================= SERVICES SECTION (LEGACY FALLBACK) ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: rgba(11, 19, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px -8px rgba(0, 0, 0, 0.70), 0 4px 14px rgba(0, 0, 0, 0.45);
}

.service-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(145deg, #152238 0%, #1e2e4a 100%) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.80), 0 0 35px rgba(56, 189, 248, 0.25) !important;
}

.service-card:hover .service-title {
    font-weight: 900 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.service-card:hover .service-desc {
    font-weight: 600 !important;
    color: #f8fafc !important;
}

.service-card:hover .service-features-list {
    border-top-color: rgba(56, 189, 248, 0.35) !important;
}

.service-card:hover .service-features-list li {
    font-weight: 700 !important;
    color: #ffffff !important;
}

.service-card:hover .service-features-list li i {
    color: #38bdf8 !important;
    transform: scale(1.2);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.service-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.service-features-list li {
    font-size: 0.85rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features-list li i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* ================= TECH STACK STRIP ================= */
.tech-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1040px;
    margin: 0 auto;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(11, 19, 34, 0.90);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: var(--transition);
}

.tech-pill:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.30);
}

.tech-pill i {
    font-size: 1.1rem;
    color: var(--secondary);
}

/* ================= FOUNDER / LEADERSHIP ================= */
.founder-card {
    background: rgba(11, 19, 34, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.founder-img-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.founder-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.founder-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.founder-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    display: inline-block;
}

.founder-bio {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.founder-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.founder-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.founder-meta-item i {
    color: var(--secondary);
}

/* ================= INQUIRY / CONTACT FORM ================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    background: rgba(11, 19, 34, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 55px -10px rgba(0, 0, 0, 0.75), 0 6px 20px rgba(0, 0, 0, 0.50);
}

.contact-info-panel {
    background: linear-gradient(135deg, #090e1a 0%, #064e3b 100%);
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.contact-info-panel h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.contact-info-panel p {
    color: #a7f3d0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-direct-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.direct-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.direct-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6ee7b7;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.direct-content h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.direct-content span, .direct-content a {
    color: #cbd5e1;
    font-size: 0.88rem;
}

.direct-content a:hover {
    color: #6ee7b7;
}

.contact-form-panel {
    padding: 44px 40px;
    background: #0f172a;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: #090e1a;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    background: #0d1527;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* ================= FOOTER (Solid Dark, No Dot Grid) ================= */
footer, .footer {
    background: #050811 !important;
    background-image: none !important;
    border-top: 1px solid var(--border);
    padding: 70px 0 30px;
    color: #94a3b8;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-col h5 {
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 14px;
}

/* ================= MODAL & FLASH ALERTS ================= */
.flash-container {
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 24px;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 0.3s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-info {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #67e8f9;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 16, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 34px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #cbd5e1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: #ffffff;
}

/* ================= PROJECT POPUP MODAL (BIG SCREEN OVERVIEW) ================= */
.project-card {
    cursor: pointer;
    position: relative;
}

.project-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 30, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 6;
    pointer-events: none;
}

.project-zoom-overlay i {
    font-size: 1.6rem;
    color: #10b981;
    transform: scale(0.8);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:not(.flip-card):hover .project-zoom-overlay {
    opacity: 1;
}

.project-card:not(.flip-card):hover .project-zoom-overlay i {
    transform: scale(1.1);
}

.project-popup-card {
    max-width: 860px;
    width: 100%;
    max-height: 90vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 90px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(16, 185, 129, 0.2);
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    background: #0b1120;
}

.modal-overlay.active .project-popup-card {
    transform: scale(1);
}

.popup-banner-wrapper {
    position: relative;
    width: 100%;
    height: 330px;
    background: #020617;
    overflow: hidden;
    flex-shrink: 0;
}

.popup-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s ease;
}

.popup-banner-wrapper:hover .popup-banner-img {
    transform: scale(1.02);
}

.popup-banner-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 17, 32, 0.1) 0%, rgba(11, 17, 32, 0.6) 60%, #0b1120 100%);
    pointer-events: none;
}

.popup-badges {
    position: absolute;
    bottom: 16px;
    left: 24px;
    display: flex;
    gap: 10px;
    z-index: 2;
    flex-wrap: wrap;
}

.project-popup-card .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-popup-card .modal-close:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: rotate(90deg) scale(1.05);
}

.popup-body {
    padding: 24px 30px 30px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.popup-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

.popup-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popup-section-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-desc-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
}

.popup-desc {
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0;
}

.popup-features-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
}

.popup-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px 16px;
}

.popup-features-list li {
    font-size: 0.92rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-features-list li i {
    color: #10b981;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popup-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.popup-action-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 8px;
    text-decoration: none;
}

/* ================= RESPONSIVE QUERIES ================= */
@media (max-width: 1024px) {
    .projects-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2)::after {
        display: none;
    }
    .founder-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .founder-img-wrapper {
        max-width: 260px;
        margin: 0 auto;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1150px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Responsive navbar squeeze handling */
@media (max-width: 1250px) {
    .nav-link i {
        display: none; /* Hide link icons to save room */
    }
    .nav-link {
        padding: 6px 10px;
        font-size: 0.88rem;
    }
    .nav-cta-btn {
        padding: 8px 16px;
        font-size: 0.86rem;
    }
}

@media (max-width: 1040px) {
    .nav-links {
        gap: 2px;
        margin: 0 6px;
    }
    .nav-link {
        padding: 5px 8px;
        font-size: 0.82rem;
    }
    .nav-cta-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 920px) {
    .nav-links, .nav-cta-wrapper {
        display: none;
    }
    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-left: auto; /* Keeps mobile controls at far right edge */
    }
    .mobile-wa-top-btn {
        display: inline-flex;
    }
    .mobile-toggle {
        display: none !important;
    }
    .floating-wa-wrapper,
    #floatingWaWrapper,
    .floating-whatsapp-btn,
    #floatingWhatsAppBtn {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .projects-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    .projects-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .projects-filter-pills {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .projects-search-wrapper {
        max-width: 100%;
        min-width: 100%;
    }
    .stats-banner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .stat-item::after {
        display: none;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

/* ========================================================
   SYSTEM-WIDE LIGHT MODE PALETTE & COMPONENT STYLING
   ======================================================== */
html.light {
    --primary: #059669;
    --primary-hover: #047857;
    --primary-light: #10b981;
    --primary-glow: rgba(5, 150, 105, 0.22);
    --secondary: #0284c7;
    --secondary-hover: #0369a1;
    --accent: #2563eb;
    --dark-bg: #f8fafc;
    --dark-surface: #ffffff;
    --dark-card: #ffffff;
    --dark-card-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dark: #0f172a;
    --text-dark-muted: #64748b;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.12);
}

html.light body {
    background-color: #f8fafc !important;
    background-image: radial-gradient(rgba(2, 132, 199, 0.12) 1.25px, transparent 1.25px) !important;
    background-size: 14px 14px !important;
    background-attachment: fixed !important;
    color: #0f172a !important;
}

/* Topbar Light */
html.light .topbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}
html.light .topbar-info a {
    color: #334155;
}
html.light .topbar-info a:hover {
    color: #059669;
}
html.light .topbar-social a {
    color: #64748b;
}
html.light .topbar-social a:hover {
    color: #059669;
}

/* Navbar Light */
html.light .navbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
html.light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}
html.light .brand-title {
    color: #0f172a;
}
html.light .nav-link {
    color: #334155;
}
html.light .nav-link:hover {
    color: #0f172a;
    background: #f1f5f9;
}
html.light .nav-link.active {
    color: #059669;
    background: rgba(16, 185, 129, 0.12);
}

/* Section Header Light */
html.light .section-title {
    color: #0f172a;
}
html.light .section-desc {
    color: #475569;
}
html.light .section-tag {
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    border-color: rgba(5, 150, 105, 0.28);
}

/* Stats Strip Light */
html.light .stats-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}
html.light .stat-number {
    color: #059669;
}
html.light .stat-label {
    color: #64748b;
}
html.light .stat-item::after {
    background: #e2e8f0;
}

/* Projects Section Light */
html.light .filter-pill {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
html.light .filter-pill:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: #f0f9ff;
}
html.light .filter-pill.active {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}
html.light .projects-search-input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
html.light .projects-search-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
    background: #ffffff;
}
html.light .projects-search-wrapper .search-icon {
    color: #64748b;
}
html.light .clear-search-btn {
    color: #94a3b8;
}
html.light .clear-search-btn:hover {
    color: #ef4444;
}

html.light .project-card:not(.flip-card) {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}
html.light .project-card:not(.flip-card):hover {
    border-color: #059669;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09), 0 0 20px rgba(5, 150, 105, 0.12);
}
html.light .project-banner-wrapper {
    background: #f1f5f9;
}
html.light .project-category-badge {
    background: rgba(255, 255, 255, 0.94);
    border-color: #e2e8f0;
    color: #0284c7;
}
html.light .project-title {
    color: #0f172a;
}
html.light .project-title a {
    color: #0f172a;
}
html.light .project-title a:hover {
    color: #059669;
}
html.light .tech-tag {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
html.light .tech-tag:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}
html.light .project-footer {
    border-top-color: #f1f5f9;
}
html.light .project-details-link {
    color: #059669;
}
html.light .project-details-link:hover {
    color: #047857;
}
html.light .project-live-btn {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0284c7;
}
html.light .project-live-btn:hover {
    background: #0284c7;
    color: #ffffff;
}
html.light .no-projects-state {
    background: #ffffff;
    border-color: #cbd5e1;
}
html.light .no-projects-state h3 {
    color: #0f172a;
}
html.light .no-projects-state p {
    color: #475569;
}

/* Services Section Light */
html.light .service-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
html.light .service-card:hover {
    border-color: #059669;
    box-shadow: 0 14px 34px rgba(0,0,0,0.09);
}
html.light .service-title {
    color: #0f172a;
}
html.light .service-desc {
    color: #475569;
}
html.light .service-feature-item {
    color: #334155;
}

/* Tech Stack Section Light */
html.light .tech-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
html.light .tech-card:hover {
    border-color: #059669;
}
html.light .tech-name {
    color: #0f172a;
}
html.light .tech-category-pill {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

/* About Section Light */
html.light .about-feature-box {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
html.light .about-feature-title {
    color: #0f172a;
}
html.light .about-feature-desc {
    color: #475569;
}
html.light .founder-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}
html.light .founder-name {
    color: #0f172a;
}
html.light .founder-role {
    color: #059669;
}
html.light .founder-bio {
    color: #475569;
}

/* Testimonials Light */
html.light .testimonial-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
html.light .testimonial-quote {
    color: #334155;
}
html.light .testimonial-name {
    color: #0f172a;
}
html.light .testimonial-company {
    color: #64748b;
}

/* Contact & Inquiry Light */
html.light .contact-card {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}
html.light .contact-item h4 {
    color: #0f172a;
}
html.light .contact-item p {
    color: #475569;
}
html.light .contact-form-panel {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}
html.light .form-label {
    color: #0f172a;
}
html.light .form-control {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
html.light .form-control:focus {
    background: #ffffff;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

/* Buttons & Actions Light Mode: White, Blue, Green, Gray */
html.light .btn-primary,
html.light a.btn-primary,
html.light button.btn-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb) !important;
    color: #ffffff !important;
    border: 1px solid #0284c7 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}
html.light .btn-primary:hover,
html.light a.btn-primary:hover,
html.light button.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1, #1d4ed8) !important;
    border-color: #0369a1 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45) !important;
    transform: translateY(-2px);
}
html.light .btn-outline,
html.light a.btn-outline,
html.light button.btn-outline {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
html.light .btn-outline:hover,
html.light a.btn-outline:hover,
html.light button.btn-outline:hover {
    background: #f1f5f9 !important;
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    transform: translateY(-2px);
}
html.light .btn-secondary,
html.light .btn-success,
html.light .nav-cta-btn {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    color: #ffffff !important;
    border: 1px solid #059669 !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}
html.light .btn-secondary:hover,
html.light .btn-success:hover,
html.light .nav-cta-btn:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Modal Light */
html.light .modal-card {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
}
html.light .modal-close {
    background: #f1f5f9;
    color: #475569;
}
html.light .modal-close:hover {
    background: #059669;
    color: #ffffff;
}

/* Project Popup Modal Light */
html.light .project-popup-card {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(5, 150, 105, 0.25);
}

html.light .popup-banner-wrapper::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.75) 60%, #ffffff 100%);
}

html.light .popup-title {
    color: #0f172a;
}

html.light .popup-desc-box,
html.light .popup-features-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html.light .popup-desc,
html.light .popup-features-list li {
    color: #334155;
}

html.light .popup-section-heading {
    color: #475569;
}

html.light .popup-footer {
    border-top-color: #e2e8f0;
}

html.light .project-popup-card .modal-close {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

html.light .project-popup-card .modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

@media (max-width: 640px) {
    .popup-banner-wrapper {
        height: 220px;
    }
    .popup-body {
        padding: 18px;
        gap: 16px;
    }
    .popup-title {
        font-size: 1.35rem;
    }
    .popup-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .popup-action-btn {
        justify-content: center;
        width: 100%;
    }
}


/* ========================================================================== */
/* 8. NAVBAR MEGA-DROPDOWN: SYSTEMS & PLATFORMS (ONBOARDREADY STYLE) */
/* ========================================================================== */
.nav-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.nav-dropdown-arrow {
    font-size: 0.70rem;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.75;
}
.nav-dropdown-wrapper:hover .nav-dropdown-arrow,
.nav-dropdown-wrapper.active .nav-dropdown-arrow,
.nav-dropdown-wrapper.open .nav-dropdown-arrow {
    transform: rotate(180deg) !important;
    opacity: 1 !important;
}

/* Mega Dropdown Panel */
.systems-mega-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: min(740px, 94vw);
    background: rgba(10, 17, 34, 0.98);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    z-index: 10001;
}

/* Invisible Hover Bridge: Eliminates mouse gap between button and dropdown */
.systems-mega-dropdown::before {
    content: '';
    position: absolute;
    top: -24px;
    left: 0;
    right: 0;
    height: 28px;
    background: transparent;
    cursor: default;
}

.nav-dropdown-wrapper:hover .systems-mega-dropdown,
.nav-dropdown-wrapper.active .systems-mega-dropdown,
.nav-dropdown-wrapper.open .systems-mega-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.mega-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mega-col-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #e2e8f0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mega-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.3px;
}
.mega-badge.live {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.mega-badge.db {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.mega-links-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mega-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.mega-link-item:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
    transform: translateX(3px);
}
.mega-icon-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.mega-icon-box.db {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}
.mega-link-meta {
    flex: 1;
    min-width: 0;
}
.mega-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.mega-sub {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.mega-open-pill {
    font-size: 0.70rem;
    font-weight: 600;
    color: #38bdf8;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.08);
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.mega-open-pill.db {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}
.mega-link-item:hover .mega-open-pill {
    background: #38bdf8;
    color: #040914;
}
.mega-link-item:hover .mega-open-pill.db {
    background: #10b981;
    color: #040914;
}

.mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
}
.mega-footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
}
.mega-footer-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.mega-footer-action:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* Light Mode for Mega Dropdown */
html.light .systems-mega-dropdown {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15), 0 0 25px rgba(37, 99, 235, 0.08);
}
html.light .mega-col-heading {
    color: #0f172a;
    border-bottom-color: #e2e8f0;
}
html.light .mega-link-item {
    background: #f8fafc;
}
html.light .mega-link-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}
html.light .mega-title {
    color: #0f172a;
}
html.light .mega-sub {
    color: #64748b;
}
html.light .mega-footer {
    border-top-color: #e2e8f0;
}
html.light .mega-footer-text {
    color: #64748b;
}
html.light .mega-footer-action {
    color: #2563eb;
}

/* ========================================================================== */
/* 9. INTERACTIVE PRODUCTION SYSTEMS EXPLORER & LIVE SANDBOX STUDIO */
/* ========================================================================== */
.systems-sandbox-studio {
    background: rgba(9, 15, 30, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 24px;
    padding: clamp(16px, 2.5vw, 28px);
    margin-bottom: 34px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7),
                0 0 35px rgba(6, 182, 212, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}
html.light .systems-sandbox-studio {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 22px 55px -15px rgba(15, 23, 42, 0.10),
                0 8px 24px -6px rgba(37, 99, 235, 0.06),
                inset 0 1px 0 #ffffff;
}

/* Top Controls Row */
.studio-top-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.studio-title-area {
    flex: 1;
    min-width: 260px;
}
.studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #38bdf8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
html.light .studio-badge {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: #2563eb;
}
.studio-heading {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}
html.light .studio-heading {
    color: #0b1530;
}
.studio-subtext {
    font-size: 0.88rem;
    color: #94a3b8;
    margin: 0;
    max-width: 620px;
}
html.light .studio-subtext {
    color: #4a5878;
}

/* Dropdown Selector Group */
.studio-selector-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 280px;
}
.studio-select-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}
html.light .studio-select-label {
    color: #334155;
}
.studio-select-wrapper {
    position: relative;
    width: 100%;
}
.studio-system-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #060b17;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 0.90rem;
    font-weight: 700;
    padding: 10px 38px 10px 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    outline: none;
    transition: all 0.2s ease;
}
.studio-system-select:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}
html.light .studio-system-select {
    background: #ffffff;
    border: 1.5px solid #3b82f6;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
html.light .studio-system-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.studio-select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #38bdf8;
    font-size: 0.85rem;
}
html.light .studio-select-chevron {
    color: #2563eb;
}

/* Horizontal Quick-Selection Chips Ribbon */
.studio-chips-ribbon {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.studio-chips-ribbon::-webkit-scrollbar {
    height: 4px;
}
.studio-chips-ribbon::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}
.studio-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.studio-chip-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(56, 189, 248, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}
.studio-chip-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(6, 182, 212, 0.25));
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}
html.light .studio-chip-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}
html.light .studio-chip-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}
html.light .studio-chip-btn.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}
.chip-icon {
    font-size: 0.85rem;
}
.chip-name {
    font-weight: 700;
}
.chip-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.chip-tag.tag-web {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
}
.chip-tag.tag-db {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
}
html.light .chip-tag.tag-web {
    background: #e0f2fe;
    color: #0284c7;
}
html.light .chip-tag.tag-db {
    background: #dcfce7;
    color: #059669;
}

/* 3. The macOS / Browser Studio Device Frame */
.studio-device-frame {
    background: #050a18;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.08);
}
html.light .studio-device-frame {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

/* Browser Chrome Header Bar */
.studio-chrome-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #0a1124;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}
html.light .studio-chrome-bar {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

/* macOS Traffic Lights */
.studio-mac-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
}
.mac-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

/* Viewport Switcher Buttons */
.studio-viewport-switchers {
    display: inline-flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}
html.light .studio-viewport-switchers {
    background: #ffffff;
    border-color: #cbd5e1;
}
.studio-viewport-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.studio-viewport-btn:hover {
    color: #ffffff;
}
.studio-viewport-btn.active {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
html.light .studio-viewport-btn {
    color: #64748b;
}
html.light .studio-viewport-btn:hover {
    color: #0f172a;
}
html.light .studio-viewport-btn.active {
    background: #eff6ff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15);
}

/* Live Address Bar */
.studio-address-bar {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #040813;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: monospace;
    font-size: 0.80rem;
    color: #94a3b8;
}
html.light .studio-address-bar {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
}
.pad-lock {
    color: #10b981;
    font-size: 0.75rem;
}
.address-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e2e8f0;
}
html.light .address-text {
    color: #0f172a;
    font-weight: 600;
}
.address-copy-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s;
}
.address-copy-btn:hover {
    color: #38bdf8;
}

/* Chrome Top Action Buttons */
.studio-chrome-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.studio-action-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.studio-action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
html.light .studio-action-icon-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}
html.light .studio-action-icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.studio-ext-launch-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.studio-ext-launch-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.5);
}

/* Studio Stage Viewport Area */
.studio-stage-wrapper {
    position: relative;
    width: 100%;
    min-height: 480px;
    max-height: 720px;
    background: #020611;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
html.light .studio-stage-wrapper {
    background: #e2e8f0;
}

/* Dynamic Viewport Container (Desktop / Tablet / Mobile) */
.studio-viewport-container {
    width: 100%;
    height: 100%;
    min-height: 480px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #040914;
}
html.light .studio-viewport-container {
    background: #ffffff;
}
.studio-viewport-container.desktop-mode {
    width: 100%;
}
.studio-viewport-container.tablet-mode {
    width: 768px;
    max-width: 100%;
    margin: 16px auto;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.15);
}
.studio-viewport-container.mobile-mode {
    width: 375px;
    max-width: 100%;
    margin: 16px auto;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.18);
}

/* Loading Spinner */
.studio-loader {
    position: absolute;
    inset: 0;
    background: rgba(3, 7, 18, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.studio-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: studioSpin 0.8s linear infinite;
}
@keyframes studioSpin {
    to { transform: rotate(360deg); }
}

/* Live Iframe */
.studio-live-iframe {
    width: 100%;
    height: 540px;
    border: none;
    display: block;
    background: #ffffff;
}

/* Screenshot View Area */
.studio-screenshot-view {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #020612;
}
html.light .studio-screenshot-view {
    background: #f1f5f9;
}
.studio-img-wrap {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #020612;
}
html.light .studio-img-wrap {
    background: #e2e8f0;
}
.studio-main-img {
    width: 100%;
    height: 100%;
    max-height: 480px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}
.studio-img-wrap:hover .studio-main-img {
    transform: scale(1.015);
}
.studio-zoom-lens {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(4, 9, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

/* Security Notice Pill (For DB Engines) */
.studio-security-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.12);
    border-top: 1px solid rgba(16, 185, 129, 0.25);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    color: #e2e8f0;
    font-size: 0.80rem;
    font-weight: 600;
    text-align: center;
}
html.light .studio-security-pill {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

/* SameOrigin Banner (For Websites with iframe restrictions) */
.studio-sameorigin-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(37, 99, 235, 0.12);
    border-top: 1px solid rgba(37, 99, 235, 0.3);
    border-bottom: 1px solid rgba(37, 99, 235, 0.3);
    flex-wrap: wrap;
}
html.light .studio-sameorigin-banner {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.so-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.84rem;
}
html.light .so-content {
    color: #1e3a8a;
}
.so-content strong {
    display: block;
    font-size: 0.88rem;
    color: #38bdf8;
}
html.light .so-content strong {
    color: #1d4ed8;
}
.so-content p {
    margin: 2px 0 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
}
html.light .so-content p {
    color: #475569;
}
.so-icon {
    font-size: 1.25rem;
    color: #38bdf8;
}
html.light .so-icon {
    color: #2563eb;
}
.so-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.so-launch-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.55);
}

/* "Flip through real screens" Carousel Thumbnails Strip (Like OnboardReady!) */
.studio-screens-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #070d1e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}
html.light .studio-screens-carousel {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.carousel-caption {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
html.light .carousel-caption {
    color: #64748b;
}
.carousel-thumbs-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.carousel-thumb-item {
    width: 64px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    background: #020612;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}
.carousel-thumb-item:hover {
    border-color: #38bdf8;
    transform: scale(1.05);
}
.carousel-thumb-item.active {
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}
html.light .carousel-thumb-item {
    border-color: #cbd5e1;
}
html.light .carousel-thumb-item.active {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}
.carousel-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Bottom Architecture & Specs Card */
.studio-specs-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    background: #080e20;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .studio-specs-bar {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}
.specs-left-col {
    flex: 1;
    min-width: 260px;
}
.specs-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.specs-sys-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}
html.light .specs-sys-title {
    color: #0b1530;
}
.specs-category-badge {
    font-size: 0.70rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
html.light .specs-category-badge {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}
.specs-engine-badge {
    font-size: 0.70rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
html.light .specs-engine-badge {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}
.specs-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 8px 0;
    line-height: 1.5;
}
html.light .specs-desc {
    color: #4a5878;
}
.specs-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.specs-tech-pill {
    font-family: monospace;
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
html.light .specs-tech-pill {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

/* Bottom CTA Actions */
.specs-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.specs-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    white-space: nowrap;
}
.specs-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    white-space: nowrap;
}
html.light .specs-primary-cta {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32) !important;
}
html.light .specs-primary-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
}
html.light .specs-secondary-cta {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}
html.light .specs-secondary-cta:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* ========================================================================== */
/* RESPONSIVE BREAKPOINTS FOR SANDBOX & MEGA MENU */
/* ========================================================================== */
@media (max-width: 991px) {
    .systems-mega-dropdown {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        display: none;
        box-shadow: none;
        border-radius: 12px;
        margin-top: 8px;
    }
    .nav-dropdown-wrapper.open .systems-mega-dropdown {
        display: block;
    }
    .mega-grid {
        grid-template-columns: 1fr;
    }
    .studio-viewport-switchers {
        display: none; /* Hide desktop/tablet/mobile toggles on tablet/mobile screens */
    }
}

@media (max-width: 640px) {
    .studio-top-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .studio-chrome-bar {
        gap: 8px;
    }
    .studio-address-bar {
        order: 3;
        width: 100%;
    }
    .studio-chrome-actions {
        order: 2;
        margin-left: auto;
    }
    .ext-label {
        display: none;
    }
    .studio-specs-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .specs-right-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .specs-primary-cta, .specs-secondary-cta {
        justify-content: center;
        width: 100%;
    }
}


/* ========================================================================== */
/* 10. ONBOARDREADY-STYLE GUIDED SYSTEM TOUR (BOTH SIDES SHOWCASE) */
/* ========================================================================== */
.onboard-tour-section {
    margin-top: 10px;
}
.tour-header-center {
    text-align: center;
    margin-bottom: 24px;
}
.tour-eyebrow {
    display: inline-block;
    color: #818cf8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
html.light .tour-eyebrow {
    color: #4f46e5;
}
.tour-main-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin: 0 0 10px 0;
}
html.light .tour-main-title {
    color: #0b1530;
}
.tour-main-sub {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}
html.light .tour-main-sub {
    color: #4a5878;
}

/* Tour Controls Bar (View Toggle & Play Tour) */
.tour-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tour-view-pills {
    display: inline-flex;
    background: #060c1c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 3px;
    gap: 3px;
}
html.light .tour-view-pills {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.tour-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tour-pill-btn:hover {
    color: #ffffff;
}
.tour-pill-btn.active {
    background: #1e293b;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
html.light .tour-pill-btn {
    color: #475569;
}
html.light .tour-pill-btn:hover {
    color: #0f172a;
}
html.light .tour-pill-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.tour-play-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.tour-guide-caption {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
}
html.light .tour-guide-caption {
    color: #64748b;
}
.tour-replay-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.80rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.tour-replay-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
html.light .tour-replay-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}
html.light .tour-replay-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}
.tour-replay-btn.playing {
    border-color: #38bdf8;
    color: #38bdf8;
}
.tour-replay-btn.playing i {
    animation: tourSpin 1.2s linear infinite;
}
@keyframes tourSpin {
    to { transform: rotate(360deg); }
}

/* Two-Column Tour Grid (Left: Screen/Phones, Right: Stops & Callout) */
.tour-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
    margin-bottom: 30px;
}

/* Left Column: Stage Frame */
.tour-stage-col {
    position: relative;
    width: 100%;
}

/* Desktop View macOS Mockup */
.tour-mac-window {
    background: #050a18;
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    position: relative;
}
html.light .tour-mac-window {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.tour-mac-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #091024;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .tour-mac-topbar {
    background: #f1f5f9;
    border-bottom-color: #e2e8f0;
}
.tour-mac-address {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #030713;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 12px;
    font-family: monospace;
    font-size: 0.78rem;
    color: #cbd5e1;
}
html.light .tour-mac-address {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
}

/* Screenshot Canvas & Hotspot */
.tour-screen-canvas {
    position: relative;
    width: 100%;
    min-height: 420px;
    max-height: 520px;
    overflow: hidden;
    background: #030816;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tour-screen-canvas img {
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: opacity 0.3s ease;
}

/* Interactive Hotspot Pin (Like OnboardReady Image 2) */
.tour-hotspot-pin {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(30, 41, 59, 0.94);
    border: 1.5px solid #38bdf8;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.4);
    backdrop-filter: blur(8px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    pointer-events: none;
}
.hotspot-number-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #38bdf8;
    color: #030816;
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}
html.light .tour-hotspot-pin {
    background: #ffffff;
    border-color: #2563eb;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15), 0 0 14px rgba(37, 99, 235, 0.25);
}
html.light .hotspot-number-circle {
    background: #2563eb;
    color: #ffffff;
}

/* Mobile View: 4 Smartphones Row (Like OnboardReady Image 3!) */
.tour-phones-array {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}
.tour-phone-device {
    background: #02050e;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    aspect-ratio: 9 / 18.5;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.tour-phone-device:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
}
.tour-phone-device.active {
    border-color: #38bdf8;
    box-shadow: 0 20px 45px rgba(56, 189, 248, 0.3), 0 0 0 2px #38bdf8;
    transform: translateY(-6px);
}
html.light .tour-phone-device {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}
html.light .tour-phone-device.active {
    border-color: #2563eb;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25), 0 0 0 2px #2563eb;
}
.phone-notch {
    width: 38%;
    height: 12px;
    background: #02050e;
    border-radius: 0 0 8px 8px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
html.light .phone-notch {
    background: #0f172a;
}
.phone-screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
.phone-label-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Right Column: Guided Tour Stops & Callout Card */
.tour-guide-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tour-stop-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: left;
}
.tour-stop-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(3px);
}
.tour-stop-card.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #0b1530;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
html.light .tour-stop-card {
    background: #ffffff;
    border-color: #e2e8f0;
}
html.light .tour-stop-card:hover {
    background: #f8fafc;
    border-color: #93c5fd;
}
html.light .tour-stop-card.active {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.14);
}
.tour-stop-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: all 0.2s;
}
.tour-stop-card.active .tour-stop-icon-box {
    background: #3b82f6;
    color: #ffffff;
}
html.light .tour-stop-card.active .tour-stop-icon-box {
    background: #2563eb;
    color: #ffffff;
}
.tour-stop-info {
    flex: 1;
    min-width: 0;
}
.tour-stop-tag {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}
.tour-stop-card.active .tour-stop-tag {
    color: #475569;
}
.tour-stop-name {
    display: block;
    font-size: 0.90rem;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tour-stop-card.active .tour-stop-name {
    color: #0b1530;
}
html.light .tour-stop-name {
    color: #1e293b;
}

/* Active Stop Callout Card (Like OnboardReady Image 2 & 3) */
.tour-callout-box {
    background: #020612;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 16px 18px;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    margin-top: 6px;
}
html.light .tour-callout-box {
    background: #0f172a;
    border-color: #1e293b;
    color: #f8fafc;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}
.callout-title {
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    color: #ffffff;
}
.callout-desc {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 0 0 10px 0;
    line-height: 1.45;
}
.callout-note {
    font-size: 0.70rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
}

/* Bottom Feature Triad (Like OnboardReady!) */
.tour-bottom-triad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
html.light .tour-bottom-triad {
    border-top-color: #e2e8f0;
}
.tour-triad-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
html.light .tour-triad-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.triad-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4f46e5;
    color: #ffffff;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.triad-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e2e8f0;
    line-height: 1.35;
}
html.light .triad-text {
    color: #0f172a;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .tour-grid-layout {
        grid-template-columns: 1fr;
    }
    .tour-bottom-triad {
        grid-template-columns: 1fr;
    }
    .tour-phones-array {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 580px) {
    .tour-phones-array {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .tour-top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .tour-view-pills {
        justify-content: center;
    }
    .tour-play-wrapper {
        justify-content: space-between;
    }
}


/* ========================================================================== */
/* SYSTEMS HUB SINGLE-COLUMN DROPDOWN (Website, Database, App, Hosting, POS) */
/* ========================================================================== */
.systems-mega-dropdown.systems-single-col-dropdown {
    width: 320px;
    max-width: 90vw;
    padding: 12px;
    border-radius: 16px;
}
.nav-single-col-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.nav-cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}
.nav-cat-item:hover {
    background: rgba(56, 189, 248, 0.09);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateX(4px);
}
.nav-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.nav-cat-item:hover .nav-cat-icon {
    transform: scale(1.08);
}
.nav-cat-icon.icon-website {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.nav-cat-icon.icon-database {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.nav-cat-icon.icon-app {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.nav-cat-icon.icon-hosting {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.nav-cat-icon.icon-pos {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.nav-cat-info {
    flex: 1;
    min-width: 0;
}
.nav-cat-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.25;
}
.nav-cat-badge {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 1px 6px;
    border-radius: 999px;
}
.badge-web { background: rgba(56, 189, 248, 0.14); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }
.badge-db { background: rgba(16, 185, 129, 0.14); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.badge-app { background: rgba(168, 85, 247, 0.14); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.badge-hosting { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-pos { background: rgba(236, 72, 153, 0.14); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }

.nav-cat-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.nav-cat-arrow {
    font-size: 0.75rem;
    color: #64748b;
    transition: all 0.2s ease;
}
.nav-cat-item:hover .nav-cat-arrow {
    color: #38bdf8;
    transform: translateX(3px);
}

.single-col-footer {
    justify-content: center;
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Light Mode Styles for Single Column Dropdown */
html.light .systems-mega-dropdown.systems-single-col-dropdown {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
html.light .nav-cat-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}
html.light .nav-cat-item:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}
html.light .nav-cat-name {
    color: #0f172a;
}
html.light .nav-cat-desc {
    color: #64748b;
}
html.light .single-col-footer {
    border-top-color: #e2e8f0;
}

.tour-selector-group {
    margin-left: auto;
}
@media (max-width: 768px) {
    .tour-selector-group {
        margin-left: 0;
        width: 100%;
    }
    .tour-selector-group .studio-select-wrapper {
        flex: 1;
    }
}

/* ==============================================================
   BOTTOM NAVIGATION BAR & MOBILE BOTTOM SHEET (SAFI STYLE)
   ============================================================== */

/* Fixed Bottom Navigation Bar (Hidden on Desktop, Visible on Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(6, 9, 19, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 2100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
}

html.light .bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
}

.bn-item {
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    text-align: center;
}

html.light .bn-item {
    color: #64748b;
}

.bn-item i {
    font-size: 1.18rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bn-item:hover,
.bn-item.active {
    color: var(--primary, #10b981) !important;
}

.bn-item:active i {
    transform: scale(0.9);
}

/* Bottom Sheet Overlay & Drawer */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-nav-overlay.visible {
    display: flex;
    opacity: 1;
}

.mobile-nav-sheet {
    width: 100%;
    max-width: 600px;
    max-height: 86vh;
    background: #0c1424;
    border-radius: 22px 22px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    overflow-y: auto;
    padding: 0.85rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    -webkit-overflow-scrolling: touch;
}

html.light .mobile-nav-sheet {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #0f172a;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
}

.mobile-nav-overlay.visible .mobile-nav-sheet {
    transform: translateY(0);
}

.mob-sheet-handle {
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    margin: 0 auto 0.85rem;
    cursor: pointer;
}

html.light .mob-sheet-handle {
    background: rgba(0, 0, 0, 0.2);
}

.mob-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
}

html.light .mob-sheet-header {
    border-bottom: 1px solid #e2e8f0;
}

.mob-sheet-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mob-sheet-logo {
    height: 32px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
}

.mob-sheet-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

html.light .mob-sheet-close {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.mob-sheet-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.mob-nav-group-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

html.light .mob-nav-group-title {
    color: #64748b;
}

.mob-nav-group-title i {
    color: var(--primary, #10b981);
}

.mob-systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.mob-sys-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    text-decoration: none;
    color: #f1f5f9;
    transition: all 0.2s ease;
}

html.light .mob-sys-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.mob-sys-item:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.mob-sys-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.icon-web { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-db { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-app { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-host { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-pos { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.mob-sys-all .mob-sys-icon { background: rgba(255, 255, 255, 0.08); color: var(--primary, #10b981); }

.mob-sys-text strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
}

.mob-sys-text span {
    font-size: 0.65rem;
    color: #94a3b8;
}

html.light .mob-sys-text span {
    color: #64748b;
}

.mob-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 1.25rem;
}

.mob-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    color: #f1f5f9;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.2s ease;
}

html.light .mob-nav-link {
    color: #1e293b;
}

.mob-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary, #10b981);
}

html.light .mob-nav-link:hover {
    background: #f1f5f9;
    color: var(--primary, #10b981);
}

.mob-nav-link-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mob-nav-link-left i {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
}

html.light .mob-nav-link-left i {
    color: #64748b;
}

.mob-nav-link:hover .mob-nav-link-left i {
    color: var(--primary, #10b981);
}

.mob-nav-arr {
    font-size: 0.75rem;
    color: #64748b;
}

.mob-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.light .mob-sheet-actions {
    border-top: 1px solid #e2e8f0;
}

.mob-sheet-cta {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s;
}

.mob-sheet-cta:active {
    transform: scale(0.98);
}

.mob-sheet-theme-btn {
    width: 100%;
    padding: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

html.light .mob-sheet-theme-btn {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

@media (max-width: 920px) {
    body {
        padding-bottom: 5.5rem !important;
    }
    .bottom-nav {
        display: block !important;
    }
}


/* ==========================================================================
   TYPING-GAME STYLE ENGINEERING DISCIPLINES & CAPABILITIES GRID
   ========================================================================== */

#services .section-3d-box {
    background: #09243f;
    background-image: 
        radial-gradient(rgba(56, 189, 248, 0.12) 1.25px, transparent 1.25px),
        linear-gradient(165deg, #0e355c 0%, #09243f 45%, #082d45 100%);
    background-size: 20px 20px, 100% 100%;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 28px;
    padding: clamp(32px, 4.5vw, 60px) clamp(22px, 4vw, 50px);
    box-shadow: 
        0 30px 80px -15px rgba(2, 12, 27, 0.85),
        0 16px 36px -8px rgba(2, 12, 27, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 50px rgba(8, 45, 69, 0.5);
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin: 10px 0;
}

/* Top Sub-Navigation Header Pills */
.typing-top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 28px;
    padding: 6px 10px;
    width: fit-content;
    background: rgba(4, 15, 30, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.20);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.typing-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.typing-nav-item.active,
.typing-nav-item:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.35);
}

/* Section Header Typography */
.typing-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 36px;
}

.typing-title {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.8px;
    line-height: 1.22;
    margin-bottom: 12px;
}

.typing-desc {
    font-size: clamp(0.98rem, 1.6vw, 1.15rem);
    color: #94a3b8;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 24px;
}

/* Category Filter Bar */
.typing-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 16px;
    max-width: 950px;
}

.typing-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(8, 26, 48, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 50px;
    color: #cbd5e1;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.typing-filter-btn:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
}

.typing-filter-btn.active {
    background: rgba(56, 189, 248, 0.22);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.typing-sub-caption {
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 10px;
}

/* 3-4 Column Symmetric Card System */
.typing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

@media (min-width: 1400px) {
    .typing-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1050px) {
    .typing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .typing-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Surface */
.typing-card {
    background: linear-gradient(170deg, #0e2a47 0%, #092036 100%);
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 22px;
    padding: 32px 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 14px 35px -8px rgba(2, 12, 27, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.typing-card-glow {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, var(--theme-accent, #38bdf8) 0%, transparent 70%);
    opacity: 0.18;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.35s ease;
}

/* Vibrant Icon Container */
.typing-icon-box {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--theme-accent, #38bdf8);
    margin-bottom: 20px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Card Typography */
.typing-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
    line-height: 1.35;
    transition: all 0.3s ease;
}

.typing-card-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 20px;
    min-height: 40px;
    transition: all 0.3s ease;
}

/* Tags List */
.typing-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
    width: 100%;
}

.typing-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.77rem;
    font-weight: 600;
    color: #cbd5e1;
    transition: all 0.25s ease;
}

.typing-tag-chip i {
    color: var(--theme-accent, #10b981);
    font-size: 0.68rem;
}

/* Bottom Level / Progress Counter */
.typing-card-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.typing-level-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.typing-level-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-accent, #10b981);
    box-shadow: 0 0 10px var(--theme-accent, #10b981);
}

.typing-level-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.typing-action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-accent, #38bdf8);
    font-size: 0.82rem;
    transition: all 0.25s ease;
    text-decoration: none;
}

.typing-action-arrow:hover {
    background: var(--theme-accent, #38bdf8);
    color: #ffffff;
    transform: scale(1.1);
}

/* HOVER EFFECT (User Request: BG change, border change, text bold for easy reading) */
.typing-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(170deg, #133961 0%, #0d2845 100%);
    border-color: var(--theme-accent, #38bdf8);
    box-shadow: 
        0 24px 55px -10px rgba(0, 0, 0, 0.75),
        0 0 35px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.typing-card:hover .typing-card-glow {
    opacity: 0.45;
    transform: translateX(-50%) scale(1.3);
}

.typing-card:hover .typing-icon-box {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--theme-accent, #38bdf8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--theme-accent, #38bdf8);
}

.typing-card:hover .typing-card-title {
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.typing-card:hover .typing-card-desc {
    color: #e2e8f0;
    font-weight: 600;
}

.typing-card:hover .typing-tag-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--theme-accent, #38bdf8);
    color: #ffffff;
    font-weight: 700;
}

.typing-card:hover .typing-level-text {
    color: #ffffff;
    font-weight: 800;
}

/* ================= LIGHT MODE COMPLIANCE (White, Blue, Green, Slate Gray) ================= */
html.light #services .section-3d-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.08), 0 12px 28px -6px rgba(15, 23, 42, 0.04);
}

html.light .typing-top-nav {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html.light .typing-nav-item {
    color: #64748b;
}

html.light .typing-nav-item.active,
html.light .typing-nav-item:hover {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

html.light .typing-title {
    color: #0f172a;
}

html.light .typing-desc {
    color: #475569;
}

html.light .typing-sub-caption {
    color: #64748b;
}

html.light .typing-filter-btn {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #475569;
}

html.light .typing-filter-btn:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

html.light .typing-filter-btn.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 0 16px rgba(37, 99, 235, 0.2);
}

html.light .typing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

html.light .typing-card-title {
    color: #0f172a;
}

html.light .typing-card-desc {
    color: #475569;
}

html.light .typing-icon-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html.light .typing-tag-chip {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #334155;
}

html.light .typing-card-footer {
    border-top-color: #f1f5f9;
}

html.light .typing-level-text {
    color: #64748b;
}

html.light .typing-action-arrow {
    background: #f8fafc;
    border-color: #e2e8f0;
}

html.light .typing-card:hover {
    background: #f8fafc;
    border-color: #2563eb;
    box-shadow: 0 20px 45px -8px rgba(37, 99, 235, 0.15);
}

html.light .typing-card:hover .typing-card-title {
    color: #1d4ed8;
    font-weight: 900;
    text-shadow: none;
}

html.light .typing-card:hover .typing-card-desc {
    color: #0f172a;
    font-weight: 600;
}

html.light .typing-card:hover .typing-tag-chip {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
    font-weight: 700;
}

html.light .typing-card:hover .typing-level-text {
    color: #059669;
    font-weight: 800;
}

