/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* Home Page Colors */
    --purple: #75149e;
    --gold: #f1c40f;
    --pink: #ff9ff3;
    --beige: #f7f1e3;
    --paper: #fffdf2;
    --ink: #18222c;

    /* Gleam Page Colors */
    --gleam-bg: #140225;
    --gleam-gold: #d4af37;
    --gleam-text: #f3e6ff;
}

body {
    margin: 0; 
    font-family: 'Gaegu', cursive; 
    overflow-x: hidden;
}

/* === FONTS === */
.doodle-font { font-family: 'Gaegu', cursive; font-weight: 700; letter-spacing: 2px; }
.fancy-font { font-family: 'Abril Fatface', cursive; }
.hand-font { font-family: 'Homemade Apple', cursive; }


/* =========================================
   2. HOME PAGE STYLES
   ========================================= */

/* BACKGROUND STICKERS */
.bg-deco { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sticker {
    position: absolute; font-size: 3rem; opacity: 0.6;
    animation: float 6s infinite ease-in-out;
}
.balloon { top: 10%; left: 10%; animation-delay: 0s; font-size: 5rem; }
.cake { bottom: 10%; right: 10%; animation-delay: 1s; }
.star { top: 40%; right: 20%; animation-delay: 2s; color: gold; }
.heart { bottom: 30%; left: 15%; animation-delay: 1.5s; }

@keyframes float { 
    0%, 100% { transform: translateY(0) rotate(0deg); } 
    50% { transform: translateY(-20px) rotate(5deg); } 
}

/* === CELEBRATION OVERLAY === */
#confetti-canvas {
    position: fixed; inset: 0; z-index: 2000; pointer-events: none;
}

#birthday-message {
    position: fixed; inset: 0;
    display: none; /* Hidden by default */
    justify-content: center; align-items: center;
    z-index: 1999; pointer-events: none;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 1s ease-out;
}

#birthday-message.active {
    display: flex;
    opacity: 1;
}

#birthday-message h1 {
    font-size: 6rem; text-align: center; color: var(--purple);
    text-shadow: 5px 5px 0px var(--gold), 10px 10px 0px #fff;
    transform: scale(0);
    animation: popUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popUp {
    0% { transform: scale(0) rotate(-10deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.firework {
    position: absolute; top: 50%; left: 50%; width: 0.5rem; aspect-ratio: 1;
    background: radial-gradient(circle, var(--gold) 0.2rem, #0000 0) 50% 0% / 20% 20%, 
                radial-gradient(circle, var(--purple) 0.2rem, #0000 0) 0% 50% / 20% 20%, 
                radial-gradient(circle, var(--pink) 0.2rem, #0000 0) 50% 100% / 20% 20%, 
                radial-gradient(circle, #e67e22 0.2rem, #0000 0) 100% 50% / 20% 20%;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    animation: firework 2s infinite;
}
.firework:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg); animation-delay: 0.2s; top: 30%; left: 20%; }
.firework:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg); animation-delay: 0.4s; top: 70%; left: 80%; }
@keyframes firework {
    0% { width: 0.5rem; opacity: 1; }
    50% { width: 30rem; opacity: 1; }
    100% { width: 40rem; opacity: 0; }
}


/* GATEKEEPERS */
.gate-layer {
    position: fixed; inset: 0; 
    background: radial-gradient(circle, var(--pink), var(--purple));
    z-index: 1000; display: flex; justify-content: center; align-items: center;
    transition: transform 0.8s ease-in-out, opacity 0.5s;
}
.login-box {
    background: var(--paper); padding: 40px; 
    max-width: 350px; text-align: center;
    border: 4px dashed var(--gold);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.1);
    transform: rotate(-2deg);
}
.pink-theme { border-color: #ff6b6b; background: #fff0f5; transform: rotate(2deg); }

input {
    display: block; width: 80%; margin: 20px auto; padding: 10px;
    font-family: 'Montserrat', sans-serif; border: 2px solid #ddd; border-radius: 10px;
    text-align: center; font-size: 1.2rem;
}
button {
    background: var(--purple); color: white; border: none;
    padding: 10px 30px; font-family: 'Gaegu', cursive; font-size: 1.5rem;
    cursor: pointer; border-radius: 50px; transition: transform 0.2s;
}
button:hover { transform: scale(1.1); }
.error-msg { color: red; margin-top: 10px; font-weight: bold; }

/* NAVIGATION */
#nav-btn {
    position: fixed; top: 20px; right: 20px; z-index: 500; cursor: pointer;
    background: white; padding: 10px; border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.bar { width: 25px; height: 3px; background: var(--purple); margin: 4px 0; }
#nav-menu {
    position: fixed; top: 0; right: 0; width: 300px; height: 100%;
    background: var(--paper); z-index: 499;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; padding: 40px; box-sizing: border-box;
}
#nav-menu.active { transform: translateX(0); }
#nav-menu a {
    text-decoration: none; font-family: 'Abril Fatface'; font-size: 2rem; color: var(--purple);
    margin: 15px 0; border-bottom: 2px solid transparent;
}
#nav-menu a:hover { border-bottom: 2px solid var(--gold); }

/* GUIDING ARROW (Added) */
#menu-arrow {
    position: fixed; top: 80px; right: 40px; 
    z-index: 600; text-align: center;
    color: var(--purple); font-family: 'Gaegu', cursive; font-size: 1.5rem;
    pointer-events: none; opacity: 0; transition: opacity 1s;
}
#menu-arrow.visible { opacity: 1; animation: floatArrow 1s infinite alternate; }
#menu-arrow i { display: block; font-size: 2rem; }
@keyframes floatArrow { from { transform: translateY(0); } to { transform: translateY(-10px); } }


/* FERRIS WHEEL ENGINE */
#scrapbook-view { opacity: 0; transition: opacity 1s; }
.scroll-trigger { height: 8000px; /* Virtual scroll height */ }
.wheel-stage {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; pointer-events: none; 
}
.wheel {
    position: relative; width: 600px; height: 600px;
    transform-origin: 50% 2500px; transition: transform 0.1s ease-out; 
}
.polaroid {
    position: absolute; top: 0; left: 50%;
    width: 300px; padding: 15px 15px 50px 15px;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    margin-left: -165px; 
    transform-origin: 50% 2500px; transition: opacity 0.5s;
}
.polaroid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border: 1px solid #eee; filter: sepia(20%); }
.tape {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%) rotate(-2deg);
    width: 100px; height: 30px; background: rgba(255,255,255,0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 1px dashed #ddd; border-right: 1px dashed #ddd;
}
.caption {
    font-family: 'Homemade Apple', cursive; color: #333; font-size: 1.1rem;
    text-align: center; margin-top: 15px; transform: rotate(-1deg);
}
.scroll-hint { 
    position: fixed; bottom: 20px; width: 100%; text-align: center; 
    pointer-events: none; font-size: 1.5rem; color: var(--purple); 
    animation: bounce 2s infinite; 
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* THE LETTER CARD (Added for Wheel) */
.note-card { background: #fffdf2; border: 1px solid #eee; padding-bottom: 20px; }
.note-card .pin { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 2rem; }
.note-card .note-content { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; line-height: 1.6; color: #444; margin-top: 30px; padding: 0 10px; }
.note-card .signature { font-family: 'Homemade Apple', cursive; font-size: 1.2rem; text-align: right; margin-top: 20px; color: #8e44ad; margin-bottom: 0; }


/* === LOVE MODE SPECIFICS === */
.love-only { opacity: 0; transition: opacity 1s; }
.love-mode .love-only { opacity: 0.8; }

.mehendi   { top: 15%; right: 25%; font-size: 4rem; animation-delay: 0.5s; color: #2ecc71; }
.mehendi-2 { bottom: 20%; left: 5%; font-size: 3.5rem; animation-delay: 1.2s; color: #e67e22; }
.craft     { top: 50%; left: 10%; font-size: 3rem; animation-delay: 2s; }
.scissors  { bottom: 5%; right: 40%; font-size: 2.5rem; animation-delay: 3s; transform: rotate(45deg); }
.cookie    { top: 5%; left: 40%; font-size: 3rem; animation-delay: 1.5s; }
.cupcake   { bottom: 40%; right: 5%; font-size: 3rem; animation-delay: 0.2s; }
.flower    { top: 25%; left: 5%; font-size: 3rem; animation-delay: 2.5s; }
.confetti  { top: 10%; right: 10%; font-size: 4rem; animation-delay: 0.8s; }
.heart-big { top: 50%; left: 50%; font-size: 10rem; opacity: 0.1 !important; z-index: -2; }
.love-mode .balloon, .love-mode .cake { opacity: 0.2; }

/* Obsolete but kept for safety/legacy */
.love-letter-wrapper {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(0deg);
    z-index: 50; width: 90%; max-width: 500px;
    pointer-events: none; opacity: 0; transition: all 1s ease 1s; 
}
.love-mode .love-letter-wrapper {
    opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) rotate(-2deg);
}
.paper-note {
    background: #fffdf2; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid #eee; position: relative; max-height: 70vh; overflow-y: auto;
}
.pin { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-size: 2rem; }
.letter-body { font-family: 'Montserrat', sans-serif; font-size: 1rem; line-height: 1.8; color: #444; margin-top: 20px; }
.signature { font-family: 'Homemade Apple', cursive; font-size: 1.5rem; text-align: right; margin-top: 30px; color: #8e44ad; }

.hidden { display: none; }


/* =========================================
   3. GLEAM PAGE STYLES (EXACTLY AS PROVIDED)
   ========================================= */

.gleam-body {
    background-color: var(--gleam-bg); 
    color: var(--gleam-text);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden; overflow-y: auto; 
}

.gleam-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.brand { font-family: 'Cinzel', serif; font-size: 1.5rem; color: var(--gleam-gold); letter-spacing: 2px; }
.nav-links a {
    color: #fff; text-decoration: none; margin-left: 20px;
    font-size: 0.9rem; letter-spacing: 1px; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gleam-gold); }

.small-hero { 
    height: 40vh; min-height: 300px;
    display: flex; justify-content: center; align-items: center; text-align: center;
    background: radial-gradient(circle at center, #1a0b2e 0%, #050208 100%);
}
.hero-content h1 {
    font-family: 'Cinzel', serif; font-size: 4rem; color: var(--gleam-gold);
    margin: 0; letter-spacing: 8px; text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
.tagline { font-family: 'Montserrat', sans-serif; font-size: 1rem; margin-top: 10px; letter-spacing: 3px; color: #aaa; }

/* RUNWAY SECTIONS (16:9 Landscape) */
.runway-section {
    padding: 60px 0; border-bottom: 1px solid #222; position: relative; overflow: hidden;
}
.runway-header {
    padding: 0 40px; margin-bottom: 30px; display: flex; justify-content: space-between; align-items: end;
}
.runway-header h2 { font-family: 'Cinzel', serif; font-size: 2rem; color: var(--gleam-gold); margin: 0; }
.runway-header p { font-size: 0.9rem; color: #888; margin: 0; letter-spacing: 2px; }

.marquee-wrapper { width: 100%; overflow: hidden; white-space: nowrap; position: relative; padding: 20px 0; }
.marquee-track {
    display: inline-flex; gap: 40px; align-items: center; 
    height: 300px; animation: scrollLeft 90s linear infinite; 
}
.reverse-scroll { animation: scrollRight 80s linear infinite; }

.slide {
    position: relative; width: 400px; height: 225px; 
    flex-shrink: 0; flex-grow: 0; cursor: pointer;
    background: #111; border: 1px solid #333; transition: transform 0.3s, border-color 0.3s; overflow: hidden;
}
.slide img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    border: none; filter: grayscale(30%); transition: filter 0.3s, transform 0.5s; display: block;
}
.slide span {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff; font-size: 0.8rem; letter-spacing: 2px; text-align: center;
    opacity: 0; transition: opacity 0.3s; z-index: 2; white-space: normal;
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
.slide:hover { border-color: var(--gleam-gold); transform: scale(1.05); z-index: 10; }
.slide:hover img { filter: grayscale(0%); }
.slide:hover span { opacity: 1; color: var(--gleam-gold); }

.progress-track { width: 100%; height: 2px; background: #222; margin-top: 20px; position: relative; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gleam-gold); width: 50%; animation: progressLoading 30s linear infinite; }
.runway-section:hover .progress-fill { animation-play-state: paused; }

@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes progressLoading { 0% { width: 0%; left: 0; } 100% { width: 100%; left: 0; } }

.shop-teaser { text-align: center; padding: 80px 20px; background: #0a040f; border-top: 1px solid #222; }
.shop-teaser h2 { font-family: 'Cinzel', serif; letter-spacing: 3px; color: var(--gleam-gold); margin-bottom: 10px; }
.teaser-sub { color: #666; font-size: 0.9rem; margin-bottom: 40px; letter-spacing: 1px; }
.product-row { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.product-box {
    width: 250px; height: 300px; border: 1px dashed #444;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: #666; transition: border 0.3s;
}
.product-box:hover { border-color: var(--gleam-gold); color: var(--gleam-gold); }
.p-img { width: 100%; height: 200px; background: #111; margin-bottom: 20px; }
.status { font-size: 0.8rem; letter-spacing: 2px; font-weight: bold; margin-bottom: 5px; }

.gleam-footer { text-align: center; padding: 50px; border-top: 1px solid #222; color: #666; font-size: 0.8rem; }
.gleam-footer .socials a { color: var(--gleam-gold); font-size: 1.5rem; margin: 0 15px; transition: opacity 0.3s; }
.gleam-footer .socials { margin-bottom: 20px; }

@media (max-width: 768px) {
    .runway-header { flex-direction: column; align-items: flex-start; }
    .slide { width: 280px; height: 157px; } 
    .hero-content h1 { font-size: 2.5rem; }
    #birthday-message h1 { font-size: 3rem; }
}