/* ===================================
   PREMIUM LUXURY DESIGN SYSTEM
   =================================== */

:root {
    /* High-Precision Multi-Theme Palette */
    --primary-1: #c5a059;
    /* Burnished Gold */
    --primary-2: #8e6d31;
    /* Deep Bronze */
    --primary-metallic: linear-gradient(135deg, #c5a059 0%, #8e6d31 100%);
    --primary-glow: rgba(197, 160, 89, 0.15);

    --bg-1: #000000;
    /* Pure Black */
    --bg-2: #0a0a0a;
    /* Obsidian Grey */
    --bg-3: #111111;
    /* Deep Slate */
    --surface-light: rgba(197, 160, 89, 0.03);
    --surface-glass: rgba(0, 0, 0, 0.85);

    --text-main: #f8f8f8;
    /* Off White */
    --text-muted: rgba(255, 255, 255, 0.85);
    /* Increased contrast from 0.6 to 0.85 */
    --text-secondary: #c5a059;
    --text-contrast: #ffffff;

    --border-glass: rgba(197, 160, 89, 0.1);
    --border-bright: rgba(197, 160, 89, 0.25);
    --border-premium: 1px solid var(--border-glass);

    /* Architectural Spacing */
    --container-max: 1800px;
    --radius-xl: 24px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;
    --glass-blur: blur(25px);

    --spacing-xl: 6rem;
    --spacing-lg: 4rem;
    --spacing-md: 2.5rem;
    --spacing-sm: 1.25rem;

    /* Animation Easing */
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: -0.01em;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body), sans-serif;
    background-color: var(--bg-1);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-top: 0;
}

h2 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
}

p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.text-secondary {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.display-text {
    font-size: clamp(3.5rem, 9vw, 9rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 2.5rem;
}

.display-thin {
    font-weight: 300;
    font-style: italic;
}

.gold-text {
    background: var(--primary-metallic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

/* Orbital Grid Foreground (used in home-2 and dashboards) */
.orbital-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: radial-gradient(circle at 2px 2px, rgba(229, 209, 177, 0.05) 1px, transparent 0);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: exclusion;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s, opacity 0.3s;
    user-select: none;
    opacity: 0.7;
}

.cursor.hovered {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    mix-blend-mode: normal;
    opacity: 1;
}

.admin-dashboard-page .floating-pill,
.user-dashboard-page .floating-pill {
    top: 0 !important;
    height: 60px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    z-index: 2100 !important;
}

/* Integrated Dashboard Branding */
.admin-dashboard-page .sidebar-brand,
.user-dashboard-page .sidebar-brand {
    position: absolute;
    left: 2rem;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--primary-1) !important;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    z-index: 2200;
}

.light-theme .admin-dashboard-page .sidebar-brand,
.light-theme .user-dashboard-page .sidebar-brand {
    color: #0f172a !important;
}

.admin-dashboard-page .sidebar-brand .dot,
.user-dashboard-page .sidebar-brand .dot {
    color: var(--primary-1);
}

.admin-dashboard-page .floating-actions,
.user-dashboard-page .floating-actions {
    right: 2rem !important;
    padding: 0 !important;
}

.admin-dashboard-page .floating-actions .nav-icon-btn,
.user-dashboard-page .floating-actions .nav-icon-btn {
    width: 32px !important;
    height: 32px !important;
}

/* Strictly center and limit the navigation links to avoid sides */
.admin-dashboard-page .sidebar-links,
.user-dashboard-page .sidebar-links {
    margin: 0 auto !important;
    max-width: 750px !important;
    /* Narrower cluster to avoid pills */
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.2rem !important;
}

/* Ensure the links stay visible and distinct */
.admin-dashboard-page .sidebar-link,
.user-dashboard-page .sidebar-link {
    color: var(--text-muted) !important;
    padding: 0 0.7rem !important;
    font-size: 0.65rem !important;
    gap: 0.4rem !important;
}

.admin-dashboard-page .sidebar-link:hover,
.user-dashboard-page .sidebar-link:hover,
.admin-dashboard-page .sidebar-link.active,
.user-dashboard-page .sidebar-link.active {
    color: var(--primary-1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.light-theme.admin-dashboard-page .sidebar-link:hover,
.light-theme.user-dashboard-page .sidebar-link:hover {
    color: #000 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.admin-dashboard-page .sidebar-link span,
.user-dashboard-page .sidebar-link span {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}



.light-theme.admin-dashboard-page .floating-logo,
.light-theme.user-dashboard-page .floating-logo {
    color: var(--primary-1) !important;
}

@media (max-width: 1200px) {
    .dashboard-sidebar .sidebar-links {
        max-width: 600px !important;
    }
}

@media (max-width: 1050px) {

    .admin-dashboard-page .floating-pill,
    .user-dashboard-page .floating-pill,
    .login-page .floating-pill {
        display: flex !important;
        top: 0 !important;
        height: 60px !important;
        z-index: 2000 !important;
    }

    .admin-dashboard-page .floating-pill,
    .user-dashboard-page .floating-pill {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .login-page .floating-pill {
        top: 1rem !important;
        height: 44px !important;
        background: var(--surface-glass) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid var(--border-glass) !important;
    }

    .admin-dashboard-page .sidebar-links,
    .user-dashboard-page .sidebar-links {
        display: flex !important;
        flex-direction: column !important;
        max-width: none !important;
        margin: 0 !important;
        gap: 0 !important;
        width: 100% !important;
        padding-bottom: 2rem !important;
        overflow-y: auto !important;
    }

    .admin-dashboard-page .sidebar-link,
    .user-dashboard-page .sidebar-link {
        height: 56px !important;
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 0 1.5rem !important;
        font-size: 0.85rem !important;
        border: none !important;
        /* Remove individual borders */
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .admin-dashboard-page .sidebar-link::before,
    .user-dashboard-page .sidebar-link::before {
        display: none !important;
    }

    .admin-dashboard-page .sidebar-link.active,
    .user-dashboard-page .sidebar-link.active {
        background: var(--primary-glow) !important;
        border-left: 4px solid var(--primary-1) !important;
        color: var(--primary-1) !important;
        border-bottom: none !important;
    }

    .admin-dashboard-page .sidebar-link i,
    .user-dashboard-page .sidebar-link i {
        width: 24px !important;
        font-size: 1.1rem !important;
        margin-right: 1rem !important;
    }

    .admin-dashboard-page .sidebar-brand,
    .user-dashboard-page .sidebar-brand {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        padding: 2.5rem 1.5rem 1.5rem !important;
        display: block !important;
        font-size: 1.3rem !important;
        border-bottom: 2px solid var(--primary-metallic) !important;
        margin-bottom: 0.5rem !important;
        height: auto !important;
        width: 100% !important;
        background: var(--bg-2) !important;
    }

    .admin-dashboard-page .floating-actions,
    .user-dashboard-page .floating-actions {
        top: 0.75rem !important;
        right: 1rem !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        background: var(--surface-glass) !important;
        border: 1px solid var(--border-glass) !important;
        padding: 0 0.5rem !important;
        border-radius: 100px !important;
        z-index: 1100 !important;
        /* Keep it below sidebar overlay if needed, but above header */
    }

    .login-page .floating-logo {
        padding: 0 1rem !important;
    }

    .admin-dashboard-page .floating-actions,
    .user-dashboard-page .floating-actions,
    .login-page .floating-actions {
        right: 0.5rem !important;
        padding: 0 !important;
    }

    .login-page .floating-actions {
        padding: 0 0.5rem !important;
    }

    .admin-dashboard-page .floating-actions .nav-icon-btn,
    .user-dashboard-page .floating-actions .nav-icon-btn,
    .login-page .floating-actions .nav-icon-btn {
        width: 32px !important;
        height: 32px !important;
    }

    .admin-dashboard-page .sub-nav-mobile,
    .user-dashboard-page .sub-nav-mobile {
        height: 60px !important;
        justify-content: space-between !important;
        padding: 0 1rem !important;
        display: flex !important;
        align-items: center !important;
        background: var(--bg-1) !important;
        border-bottom: 1px solid var(--border-glass) !important;
    }

    .mobile-nav-logo {
        color: var(--primary-1) !important;
        font-family: var(--font-display);
        font-weight: 800;
        font-size: 0.95rem;
        text-decoration: none;
        padding-left: 0.5rem !important;
    }

    .mobile-nav-logo .dot {
        color: var(--primary-1);
    }

    .menu-pill-btn {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) scale(0.85) !important;
        padding: 0.4rem 0.8rem !important;
        margin: 0 !important;
    }
}

.cursor.hovered {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    mix-blend-mode: normal;
}

/* Floating UI Components (Branding & Toggles) */
.floating-pill {
    position: fixed;
    top: 1.5rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    z-index: 2000;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s var(--ease-out-expo);
}

.floating-pill:hover {
    transform: translateY(-3px);
    border-color: var(--primary-1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.floating-logo {
    left: 2rem;
    padding: 0.6rem 2rem;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-1) !important;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.floating-actions {
    right: 2rem;
    padding: 0.5rem 0.8rem;
    gap: 0.5rem;
}

.floating-actions .nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.floating-actions .nav-icon-btn:hover {
    background: var(--primary-1);
    border-color: var(--primary-1);
    color: #fff;
}

.light-theme .floating-pill {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.08);
}

.light-theme .floating-logo {
    color: #0f172a !important;
}

.light-theme .floating-actions .nav-icon-btn {
    background: #f1f5f9;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.05);
}

.light-theme .floating-actions .nav-icon-btn:hover {
    background: #0f172a;
    color: #fff;
}

/* Navigation - Floating Island */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1400px;
    height: 85px;
    padding: 0 3rem;
    background: var(--surface-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.6s var(--ease-out-expo);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-1) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-logo:hover {
    opacity: 0.82;
}


.nav-center,
.nav-actions {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-center {
    gap: 2.5rem;
}

.nav-actions {
    gap: 1.5rem;
}

.nav-logo span {
    color: var(--primary-1);
}

.navbar.scrolled {
    top: 1rem;
    padding: 0.8rem 2rem;
    background: var(--surface-glass);
}

/* Buttons */
.btn-magnetic {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.btn-magnetic:hover {
    background: var(--primary-1);
    color: #fff;
    border-color: var(--primary-1);
}


/* Sections */
.section-premium {
    padding: var(--spacing-xl) 5%;
}

/* Universal Grid System */
.res-grid-3,
.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.res-grid-2,
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.res-grid-4,
.responsive-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Titan Cards (Services / Features) */
.titan-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1.5rem;
    min-height: 480px;
    padding: 3rem;
    background: var(--surface-light);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
}

.titan-card:hover {
    background: var(--surface-glass);
    border-color: var(--primary-1);
    transform: translateY(-10px);
}

/* Glass Card Container */
.glass-card {
    background: var(--surface-light);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.light-theme .glass-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.titan-card .card-visual {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-1);
    opacity: 0.6;
}

.titan-card .card-number {
    font-size: 2.5rem;
    color: var(--primary-1);
    opacity: 0.2;
}

/* Stats */
.titan-stat-num {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 800;
    color: var(--primary-1);
}

/* Footer */
.footer-premium {
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    background: #050505;
    border-top: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand, .footer-col, .footer-newsletter {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-form {
        width: 100%;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-glass);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.footer-brand .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem; /* Increased from 0.9rem */
    line-height: 1.8;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    font-size: 0.95rem;
}

/* Force light text in footer for dark background even in light theme */
.light-theme .footer-premium {
    background: #000 !important;
}

.light-theme .footer-premium .footer-links a,
.light-theme .footer-premium .footer-info,
.light-theme .footer-premium p,
.light-theme .footer-premium .footer-copyright,
.light-theme .footer-premium .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.light-theme .footer-premium .footer-links a:hover {
    color: var(--primary-1) !important;
}

.light-theme .footer-premium h4,
.light-theme .footer-premium strong {
    color: #fff !important;
}

.footer-links a:hover {
    color: var(--primary-1);
    padding-left: 5px;
}

.footer-info {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-info strong {
    display: block;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.footer-info strong:first-child {
    margin-top: 0;
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.footer-form input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 1rem;
    color: #fff;
    flex-grow: 1;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.footer-form button {
    background: var(--primary-1);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.footer-form button:hover {
    background: #0ea5e9;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

/* Evolution Slider Styles */
.evolution-slider-wrapper {
    position: relative;
    width: 100%;
}

.evolution-slider {
    display: flex;
    gap: 4rem;
    overflow-x: auto;
    padding: 2rem 0 4rem 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.evolution-slider::-webkit-scrollbar {
    display: none;
}

.slider-controls {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.slider-arrow {
    background: var(--primary-1); /* Fixed gold background */
    border: 1px solid var(--primary-1);
    color: #fff; /* White icon for maximum contrast */
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background: #fff;
    color: var(--primary-1);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .evolution-slider {
        gap: 2rem;
    }
}

.footer-social a {
    color: #fff;
    opacity: 0.6;
    transition: all 0.3s;
}

.footer-social a:hover {
    color: var(--primary-1);
    opacity: 1;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 3rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social,
    .footer-bottom,
    .footer-bottom-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.hero-bespoke {
    padding: 14rem 0 8rem;
    /* Increased top padding to avoid navbar overlap */
    background: var(--bg-1);
    position: relative;
    border-top: 1px solid var(--border-glass);
}

/* ===================================
   UNIVERSAL RESPONSIVE ENGINE
   =================================== */

:root {
    --fluid-container: clamp(1rem, 5vw, 5rem);
    --fluid-gap: clamp(1rem, 3vw, 3rem);
    --fluid-section: clamp(4rem, 10vw, 12rem);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--fluid-container);
}

@media (max-width: 1024px) {

    .res-grid-3,
    .res-grid-4,
    .responsive-grid-3,
    .responsive-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .res-grid-3,
    .res-grid-2,
    .res-grid-4,
    .responsive-grid-3,
    .responsive-grid-2,
    .responsive-grid-4 {
        grid-template-columns: 1fr;
    }

    .display-text {
        font-size: 2.8rem !important;
        text-align: center;
    }

    .page-hero,
    .titan-hero {
        padding: 8rem 1.5rem 4rem !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .titan-hero-scroll {
        display: none !important;
    }

    /* Fix horizontal shifts on mobile */
    [style*="transform: translateX"] {
        transform: none !important;
    }

    /* Remove specific borders that make stacking messy */
    .glass-card[style*="border-right"],
    .grid-item[style*="border-right"] {
        border-right: none !important;
        border-bottom: 1px solid var(--border-glass) !important;
    }

    .responsive-grid-3>div:last-child {
        border-bottom: none !important;
    }
}

.logo-grid-flex {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    align-items: center;
}

@media (max-width: 768px) {
    .logo-grid-flex {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3rem 2rem;
    }
}

/* Philosophy Split Section Responsive */
.philosophy-split {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-glass);
    background: var(--bg-1);
}

.philosophy-img-box {
    flex: 1;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--border-glass);
}

.philosophy-content-box {
    flex: 1.2;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .philosophy-split {
        flex-direction: column;
    }

    .philosophy-img-box {
        min-height: 350px;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }

    .philosophy-content-box {
        padding: 3rem 1.5rem;
        align-items: center;
        text-align: center;
    }

    .philosophy-content-box .display-text {
        font-size: 2.5rem !important;
    }

    .philosophy-content-box p {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .philosophy-content-box div {
        justify-content: center;
    }
}

/* Collections Split Section */
.collections-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .collections-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .collections-split div[style*="padding: 4rem"] {
        padding: 2rem 1.5rem !important;
    }

    .collections-split h3 {
        font-size: 2.2rem !important;
    }

    .collections-split img[style*="height: 500px"] {
        height: 350px !important;
    }
}

.section-header-flex {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .section-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

/* Light Theme Overrides */
.light-theme {
    --bg-1: #ffffff;
    --bg-2: #f8fafc;
    --primary-1: #0f172a;
    --text-main: #020617;
    --text-muted: #334155;
    --surface-light: rgba(15, 23, 42, 0.04);
    --surface-glass: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(15, 23, 42, 0.12);
}

body.light-theme {
    background-color: var(--bg-1);
    color: var(--text-main);
}

.light-theme .display-text {
    color: var(--primary-1) !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.light-theme .display-thin {
    color: var(--text-muted) !important;
}

.light-theme .titan-stat-num {
    color: var(--primary-1) !important;
}

.light-theme .btn-magnetic {
    color: #fff !important;
    background: #0f172a;
    /* Make button dark in light mode for visibility */
}

/* Light theme secondary bg for inputs */
.light-theme {
    --bg-secondary: #f1f5f9;
}

.light-theme .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ===================================
   LINEAGE SECTION & TIMELINE
   =================================== */

.lineage-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
    align-items: center;
}

.lineage-timeline {
    border-left: 1px solid var(--border-glass);
    padding-left: 4rem;
    position: relative;
    margin-top: 4rem;
}

.lineage-item {
    margin-bottom: 6rem;
    position: relative;
}

.lineage-item:last-child {
    margin-bottom: 0;
}

.lineage-dot {
    position: absolute;
    left: -4.31rem;
    top: 0;
    width: 0.6rem;
    height: 0.6rem;
    background: var(--border-glass);
    transition: background 0.3s ease;
}

.lineage-dot.active {
    background: var(--primary-1);
    box-shadow: 0 0 15px var(--primary-1);
}

.lineage-visual {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    height: 800px;
}

@media (max-width: 1200px) {
    .lineage-grid {
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .lineage-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .lineage-grid .display-text {
        text-align: left !important;
        font-size: 2.8rem !important;
        margin-bottom: 3rem !important;
    }

    .lineage-timeline {
        padding-left: 2.5rem;
        margin-top: 3rem;
    }

    .lineage-dot {
        left: -2.81rem;
    }

    .lineage-item {
        margin-bottom: 4rem;
    }

    .lineage-visual {
        height: 450px;
        order: -1;
        /* Move image above text on mobile for better visual flow? Or keep it below? Screenshot shows text first. Let's keep order as is or move image up if it looks better. User asked to 'align this too', usually implies fixing the layout. */
    }
}