@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@200;300;400;600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@200,400,600,700&display=swap');

html {
    scroll-behavior: smooth;
}

.font-syne {
    font-family: 'Syne', sans-serif;
}

/* Floating Animation */
@keyframes float-slow {
    0%,
    100% {
        transform: translateY(0px) rotate3d(1, 1, 1, 5deg);
    }
    50% {
        transform: translateY(-20px) rotate3d(1, 1, 1, 10deg);
    }
}

@keyframes float-medium {
    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-15px) translateX(10px) rotate(0deg);
    }
}

.hero-card {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.card-1 {
    top: 5%;
    right: 25%;
    width: 200px;
    z-index: 1;
    animation: float-slow 6s ease-in-out infinite;
    opacity: 0.9;
}

.card-2 {
    top: 25%;
    right: 15%;
    width: 300px;
    max-width: 100%;
    z-index: 2;
    animation: float-medium 7s ease-in-out infinite 1s;
}

.card-3 {
    bottom: -5%;
    right: 20%;
    width: 220px;
    z-index: 3;
    animation: float-slow 8s ease-in-out infinite 2s;
}


/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(176, 38, 255, 0.4);
    box-shadow: 0 15px 50px rgba(176, 38, 255, 0.15);
}

/* STACK CARD SPECIFIC STYLES */
.stack-card {
    background: rgba(10, 10, 10, 0.6);
    /* Darker background to hide card behind it */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
}

#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0;
    transition: opacity 1.5s ease;
}

/* Cursor */
.cursor-outer {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none;
    mix-blend-mode: difference;
}

.cursor-inner {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none;
    mix-blend-mode: difference;
}

@media (hover: hover) {
    body {
        cursor: none;
    }
    .cursor-outer,
    .cursor-inner {
        display: block;
    }
}

#loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
}

#main-content {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

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

/* Nav Glass */
:root {
    --nav-glass: rgba(255, 255, 255, 0.12);
    --nav-border: rgba(255, 255, 255, 0.06);
    --nav-electric: #b026ff;
    --nav-accent: linear-gradient(90deg, #b026ff, #4d4dff);
}

nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--nav-border);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.brand {
    font-family: 'Syne', sans-serif;
    font-weight: 650;
    font-size: 20px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #fff;
}

.brand .accent {
    background: var(--nav-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.nav-links {
    display: none; /* Hide on mobile */
    gap: 32px;
    align-items: center;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.15em;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex; /* Show only on desktop */
    }
}

.nav-links a {
    color: #9aa7bf;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.nav-cta {
    display: none; /* Hide by default on mobile */
    padding: 10px 24px;
    border-radius: 999px;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .nav-cta {
        display: inline-block; /* Show on tablets and desktops */
    }
}

#mobile-menu .nav-cta {
    display: inline-block; /* Always show inside the mobile menu modal */
}

.nav-cta:hover {
    transform: translateY(-2px);
    background: var(--nav-electric);
    color: #fff;
    box-shadow: 0 10px 25px rgba(176, 38, 255, 0.4);
}

@media (max-width: 768px) {
    nav {
        width: calc(100% - 32px);
        padding: 10px 16px;
    }
    .cursor-outer,
    .cursor-inner {
        display: none !important;
    }
}

/* Horizon Light Effect */
.horizon-light-container {
    position: relative;
    width: 100%;
    height: 150px;
    /* Reduced specific height for gap */
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #000;
    margin-top: -50px;
    /* Pull up to reduce gap further if needed */
}

.horizon-beam {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, rgba(120, 110, 255, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
    opacity: 0.8;
    pointer-events: none;
    filter: blur(40px);
}

.horizon-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(150, 150, 255, 0.5) 30%, rgba(255, 255, 255, 0.9) 50%, rgba(150, 150, 255, 0.5) 70%, rgba(0, 0, 0, 0) 100%);
    box-shadow: 0 0 40px rgba(180, 180, 255, 0.8);
    z-index: 2;
}

.horizon-floor-glow {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(120, 110, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(20px);
    z-index: 1;
}

/* Scroll to Top Button */
#scroll-to-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 50;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
}

#scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: #b026ff;
    color: #fff;
    transform: translateY(0) scale(1.1);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.5);
}

/* Responsive spacing for hero section to prevent menu overlap */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 8rem !important;
    }
    .hero-visuals {
        height: auto !important;
        margin-top: 1.5rem !important;
    }
    .hero-card.card-2 {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        display: block !important;
        max-width: 280px !important;
    }
}
