/* ============================================
   INDEX.CSS — Global Design System
   Createrix Labs
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Custom Properties (Design Tokens)
   ============================================ */
:root {
    /* Color Palette - Light Mode */
    --primary-blue: #0057FF;
    --interactive-blue: #007BFF;
    --cyan-accent: #00B8FF;
    --bg-dark-navy: #F7FAFF;
    --bg-near-black: #FFFFFF;
    --text-white: #0B1020;
    --text-muted-blue: #4A5568;
    --text-dark: #0B1020;
    --glass-bg: rgba(0, 87, 255, 0.03);
    --glass-border: rgba(0, 87, 255, 0.10);
    --header-bg: rgba(247, 250, 255, 0.85);
    --bg-grid-color: rgba(0, 87, 255, 0.04);
    --luxora-gold: #B88718;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg: 0 24px 80px rgba(0,0,0,0.12);

    /* Transitions — avoid 'all' for GSAP compat */
    --transition-smooth: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: opacity 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55), transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-dark-navy: #06142E;
    --bg-near-black: #0B1020;
    --text-white: #FFFFFF;
    --text-muted-blue: #A9C7FF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --header-bg: rgba(6, 20, 46, 0.80);
    --bg-grid-color: rgba(0, 87, 255, 0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 24px 80px rgba(0,0,0,0.5);
}

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

html {
    scroll-behavior: auto; /* Let Lenis handle scrolling */
    -webkit-text-size-adjust: 100%;
}

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    background-color: var(--bg-dark-navy);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ============================================
   Page Loader
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-near-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loader-logo {
    width: 60px;
    height: 60px;
    animation: loader-spin 1.2s ease-in-out infinite;
}

.loader-bar {
    width: 180px;
    height: 2px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--cyan-accent));
    border-radius: 2px;
    animation: loader-fill 1.2s ease forwards;
}

@keyframes loader-spin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(0.9); }
}

@keyframes loader-fill {
    0% { width: 0%; }
    100% { width: 100%; }
}

.page-loader.hidden {
    animation: loader-fade 0.5s ease forwards;
}

@keyframes loader-fade {
    to { opacity: 0; pointer-events: none; visibility: hidden; }
}

/* ============================================
   Cursor Follower (Desktop)
   ============================================ */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    mix-blend-mode: multiply;
}

[data-theme="dark"] .cursor-dot {
    mix-blend-mode: screen;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 87, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-ring.hovered {
    width: 56px;
    height: 56px;
    border-color: var(--primary-blue);
}

@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 48px;
}

.section-padding {
    padding: 120px 0;
}

/* ============================================
   Glassmorphism
   ============================================ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.glass-header {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* ============================================
   Gradient & Glow Utilities
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--interactive-blue) 0%, var(--cyan-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--cyan-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blue-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 87, 255, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 87, 255, 0.3);
}

.btn-primary:hover {
    background: var(--interactive-blue);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 87, 255, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-ghost {
    background: transparent;
    color: var(--primary-blue);
    padding: 14px 0;
    border-radius: 0;
}

.btn-ghost:hover {
    gap: 16px;
}

/* ============================================
   Background Grid Pattern
   ============================================ */
.bg-grid {
    background-image:
        linear-gradient(var(--bg-grid-color, rgba(0,87,255,0.04)) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid-color, rgba(0,87,255,0.04)) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================
   Marquee Utility
   ============================================ */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* ============================================
   Custom Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark-navy); }
::-webkit-scrollbar-thumb {
    background: rgba(0, 87, 255, 0.25);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* ============================================
   Reveal Animation Hooks
   ============================================ */
.reveal, .reveal-card, .reveal-left, .reveal-right, .reveal-up {
    will-change: transform, opacity;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 28px 0;
    transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.main-header.scrolled {
    padding: 14px 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 1001;
}

.logo img {
    height: 42px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

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

.nav-link.active-gold { color: var(--luxora-gold) !important; font-weight: 700; }
.nav-link.active-gold::after { background: var(--luxora-gold); width: 100%; }

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 15px;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: rotate(20deg);
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    gap: 5px;
    padding: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
}

.hamburger:hover {
    border-color: var(--primary-blue);
    background: var(--glass-bg);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-near-black);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 48px 60px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 87, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 6vw, 40px);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    transform: translateX(-40px);
    opacity: 0;
}

.mobile-nav-link:hover {
    color: var(--primary-blue);
    padding-left: 16px;
}

.mobile-nav-link.first-link { border-top: 1px solid var(--glass-border); }

.mobile-nav-overlay.open .mobile-nav-link {
    animation: mobile-link-in 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.mobile-nav-overlay.open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(6) { animation-delay: 0.35s; }
.mobile-nav-overlay.open .mobile-nav-link:nth-child(7) { animation-delay: 0.4s; }

@keyframes mobile-link-in {
    to { transform: translateX(0); opacity: 1; }
}

.mobile-nav-cta {
    margin-top: 40px;
    width: 100%;
}

.mobile-nav-cta .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

/* ============================================
   FOOTER — Mobile Responsive
   ============================================ */
.main-footer {
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted-blue);
    margin: 24px 0;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-blue);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: rgba(0, 87, 255, 0.1);
    border-color: rgba(0, 87, 255, 0.3);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text-white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted-blue);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
}

.footer-contact-item {
    color: var(--text-muted-blue);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-muted-blue);
    font-size: 13px;
    opacity: 0.7;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted-blue);
    font-size: 13px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--primary-blue);
}

/* ============================================
   GLOBAL RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .container { padding: 0 36px; }
    .footer-grid { gap: 40px; }
}

@media (max-width: 992px) {
    /* Hide desktop nav, show hamburger */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .header-cta { display: none !important; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 24px; }
    .section-padding { padding: 80px 0; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto;
    }

    /* Center brand text and logo on mobile */
    .footer-brand p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        justify-content: center;
    }

    /* Center column headings and links */
    .footer-col h4 {
        text-align: center;
    }

    .footer-col ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Center contact items */
    .footer-contact-item {
        text-align: center;
    }

    /* Center the CTA button inside footer-col */
    .footer-col .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .mobile-nav-overlay { padding: 100px 24px 40px; }
    .mobile-nav-link { font-size: 26px; }

    .btn {
        padding: 12px 22px;
        font-size: 14px;
    }
}
