@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: #f1f1f1;
    height: 100vh;
    overflow: hidden;
    background: #05070d;
}

/* 🌌 Animated Gradient Background */
.background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(40, 60, 120, 0.4), transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(20, 30, 70, 0.6), transparent 60%),
        #05070d;
    animation: drift 25s ease-in-out infinite alternate;
    z-index: -2;
}

@keyframes drift {
    0% {
        background-position: 30% 40%, 70% 60%;
    }

    100% {
        background-position: 35% 45%, 65% 55%;
    }
}

/* 🎞 Film Grain */
.grain {
    position: fixed;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.07;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
}

/* 🎭 Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 2.5s ease forwards;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 3px;
}

.enter,
.shop {
    position: relative;
    text-decoration: none;
    color: #e6eafc;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Create hidden underline */
.enter::after,
.shop::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background-color: #e6eafc;
    transition: width 0.4s ease;
}

/* Animate underline on hover */
.enter:hover::after,
.shop:hover::after {
    width: 100%;
}

/* Fade In Animation */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#particles {
    pointer-events: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.socials {
    position: fixed;
    top: 25px;
    left: 35px;
    display: flex;
    gap: 18px;
    z-index: 10;
}

.socials a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    transition: 0.4s ease;
}

.socials a:hover {
    opacity: 0.5;
}

.nav-links {
    display: flex;
    justify-content: center;
    /* center horizontally */
    align-items: center;
    gap: 40px;
    /* space between buttons */
    margin-top: 30px;
}

.nav-item {
    position: relative;
    text-decoration: none;
    color: #e6eafc;
    font-size: 14px;
    letter-spacing: 1px;
}

/* ✨ Soft Idle Glow */
.nav-item {
    transition: all 0.4s ease;
    text-shadow: 0 0 6px rgba(230, 234, 252, 0.25);
}

/* ✨ Stronger Glow On Hover */
.nav-item:hover {
    text-shadow:
        0 0 8px rgba(230, 234, 252, 0.7),
        0 0 16px rgba(230, 234, 252, 0.5),
        0 0 28px rgba(230, 234, 252, 0.3);

    transform: scale(1.06);
}

/* Animated underline */
.nav-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: #e6eafc;
    transition: width 0.4s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.page {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-align: center;

    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.8s ease forwards;
}

.page h1 {
    font-size: 3rem;
    font-weight: 300;
}

.page p {
    max-width: 600px;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Scroll Reveal Base State */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

/* When visible */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
    z-index: 10;
}

.music-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* 🌑 FULL BLACK OVERLAY */
.lights-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    /* FULL DARK */
    opacity: 0;
    pointer-events: none;
    z-index: 150;
}

/* ⚡ Flicker Animations */
@keyframes flickerOff {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    40% {
        opacity: 0.2;
    }

    60% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

@keyframes flickerOn {
    0% {
        opacity: 1;
    }

    20% {
        opacity: 0.4;
    }

    40% {
        opacity: 0.8;
    }

    60% {
        opacity: 0.2;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
    }
}

.lights-overlay.flicker-off {
    animation: flickerOff 0.6s forwards;
}

.lights-overlay.flicker-on {
    animation: flickerOn 0.6s forwards;
}

/* 🌙 ICON BUTTON (TOP RIGHT) */
.light-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
    z-index: 200;
}

/* Soft glow idle */
.light-toggle {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

/* Stronger glow hover */
.light-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.4),
        0 0 25px rgba(255, 255, 255, 0.2);
    transform: scale(1.08);
}

/* 🌑 Dark Mode Typewriter Message */
.dark-message {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 160;
    opacity: 0;
    transition: opacity 0.8s ease;
    text-align: center;
    pointer-events: none;
}

.lights-off .dark-message {
    opacity: 1;
}

.dark-message>div {
    display: flex;
    flex-direction: column;
    /* STACK TEXT + BUTTONS */
    align-items: center;
}

#typewriter-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: white;
    margin-bottom: 30px;
    /* SPACE ABOVE BUTTONS */
    border-right: 1px solid rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
}

.dark-buttons {
    display: flex;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.dark-buttons button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 10px 30px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-buttons button:hover {
    background: white;
    color: black;
}