/* ================================================
   BASE & VARIABLES
   ================================================ */
:root {
    --color-bg:     #fdf6f0;
    --color-dark:   #2d1f2a;
    --color-rose:   #b8637a;
    --color-blush:  #e8a4b4;
    --color-gold:   #c9966c;
    --color-muted:  #9a8590;
    --color-cream:  #fdf0e8;
    --color-peach:  #e8a48c;
    --font-serif:   'Cormorant Garant', Georgia, serif;
    --font-main:    'Outfit', sans-serif;
    --shadow:       0 8px 32px rgba(45, 31, 42, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    height: 100%;
    overflow: hidden;
    background-color: var(--color-bg);
    font-family: var(--font-main);
    color: var(--color-dark);
}

/* Hide all scrollbars */
::-webkit-scrollbar { display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }

/* ================================================
   SECTION BASE
   ================================================ */
section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ================================================
   SCROLL HINTS
   ================================================ */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
    pointer-events: none;
    z-index: 10;
}

.scroll-hint span {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold);
    opacity: 0.7;
}

.scroll-hint i {
    font-size: 0.9rem;
    color: var(--color-gold);
    opacity: 0.5;
    animation: bounceDown 1.8s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ================================================
   HERO PAGE
   ================================================ */
#hero {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(232, 164, 180, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 150, 108, 0.18) 0%, transparent 60%),
        linear-gradient(160deg, #fff9f6 0%, #fce9e2 60%, #f8ddd5 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeUp 1.2s ease both;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pre-label {
    display: block;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: var(--color-gold);
    opacity: 0.8;
    margin-bottom: clamp(0.72rem, 1.333vw, 1.2rem);
}

.hero-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(5rem, 16vw, 11rem);
    font-weight: 700;
    font-style: italic;
    line-height: 0.92;
    color: var(--color-rose);
    letter-spacing: -3px;
    background: linear-gradient(135deg, #c96070 0%, #b8637a 50%, #d4859a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-ornament {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: clamp(0.84rem, 1.556vw, 1.4rem) 0 clamp(0.72rem, 1.333vw, 1.2rem);
    width: 260px;
}
.hero-ornament span {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(184, 99, 122, 0.35), transparent);
}
.hero-ornament i {
    font-size: 0.6rem;
    color: var(--color-rose);
    opacity: 0.5;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2.5vw, 1.55rem);
    font-weight: 300;
    font-style: italic;
    color: var(--color-muted);
    letter-spacing: 1px;
}

.hero-date {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--color-gold);
    opacity: 0.55;
    margin-top: clamp(0.66rem, 1.222vw, 1.1rem);
}

/* Floating decor elements */
.float-el {
    position: absolute;
    opacity: 0.08;
    color: var(--color-rose);
    animation: floatEl 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatEl {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-18px) rotate(6deg); }
    66%       { transform: translateY(10px) rotate(-4deg); }
}

/* ================================================
   BIRTHDAY MESSAGE PAGE
   ================================================ */
#birthday-msg {
    background: 
        radial-gradient(circle at 10% 20%, rgba(232, 164, 180, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(201, 150, 108, 0.12) 0%, transparent 40%),
        linear-gradient(160deg, #fff9f6 0%, #fef4f0 100%);
    padding-bottom: clamp(3.6rem, 6.667vw, 6rem);
}

.birthday-content {
    width: 100%;
    max-width: 900px;
    padding: 0 8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}




.celebration-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2vh 4vw;
    background: rgba(184, 99, 122, 0.05);
    border: 1px solid rgba(184, 99, 122, 0.15);
    border-radius: 50px;
    margin-bottom: 4vh;
    animation: fadeInDown 1s ease both;
}


.celebration-badge span {
    font-family: var(--font-main);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-rose);
}

.birthday-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 15vw, 9rem);
    line-height: 0.85;
    margin-bottom: clamp(0.9rem, 1.667vw, 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.word-happy { 
    font-style: italic; font-weight: 400; color: var(--color-muted); 
    animation: fadeInLeft 1.2s ease both 0.2s; 
    text-shadow: 0 0 15px rgba(184, 99, 122, 0.1);
}
.word-birthday { 
    font-weight: 700; color: var(--color-rose); margin-top: -1.5vh; 
    padding: 0 .15em .2em; margin-bottom: -.2em;      /* room for the tail of the y, or the gradient text cuts it off */
    animation: fadeInRight 1.2s ease both 0.4s, textShine 3s linear infinite;
    background: linear-gradient(135deg, #b8637a 0%, #e8a4b4 40%, #b8637a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

@keyframes textShine {
    to { background-position: 200% center; }
}




.birthday-divider {
    display: flex; align-items: center; justify-content: center; gap: 5vw; margin: 4vh 0;
    animation: scaleIn 0.8s ease both 0.8s;
    width: 100%;
}
.birthday-divider span {
    height: 1px; width: 12vw;
    background: linear-gradient(to var(--dir, right), transparent, rgba(184, 99, 122, 0.3));
}

.birthday-divider span:last-child { --dir: left; }
.cake-icon { font-size: clamp(1.05rem, 1.667vw, 1.5rem); color: var(--color-gold); opacity: 0.7; }

.birthday-wish { 
    font-family: var(--font-serif); 
    font-size: clamp(1.1rem, 4vw, 1.6rem); 
    font-style: italic; 
    color: var(--color-dark); 
    margin-bottom: 2vh; 
    max-width: 32ch;
    animation: fadeUp 1s ease both 1s; 
}
.birthday-personal { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(1.8rem, 6vw, 2.5rem); 
    font-weight: 700; 
    color: var(--color-rose); 
    margin-bottom: 3vh; 
    animation: fadeUp 1s ease both 1.2s; 
}
.birthday-subtext { 
    font-family: var(--font-main); 
    font-size: clamp(0.8rem, 2.5vw, 1rem); 
    line-height: 1.8; 
    color: var(--color-muted); 
    letter-spacing: 0.5px; 
    max-width: 46ch;
    animation: fadeUp 1s ease both 1.4s; 
}


/* ================================================
   PHOTOBOOTH PAGE
   ================================================ */
#photobooth {
    background: 
        radial-gradient(circle at 10% 20%, rgba(232, 164, 180, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(201, 150, 108, 0.12) 0%, transparent 40%),
        #fffcf9;
}

.film-strip {
    position: fixed; top: 0; bottom: 0; width: 58px;
    background: #f2e7e0; z-index: 10;
    display: flex; flex-direction: column; align-items: center; padding: clamp(12px, 1.389vw, 20px) 0;
}
.film-strip.left  { left: 0; border-right: 1.5px solid rgba(184,99,122,0.12); }
.film-strip.right { right: 0; border-left: 1.5px solid rgba(184,99,122,0.12); }

.film-hole {
    flex-shrink: 0; width: 20px; height: 14px; background: #fff;
    border: 1.2px solid rgba(184,99,122,0.15); border-radius: 3px; margin: 8px 0;
}

.film-topbar, .film-bottombar {
    position: absolute; left: 58px; right: 58px; background: #f2e7e0;
    z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(0.9rem, 1.667vw, 1.5rem);
}
.film-topbar { top: 0; height: 36px; border-bottom: 1.5px solid rgba(184,99,122,0.12); }
.film-bottombar { bottom: 0; height: 50px; border-top: 1.5px solid rgba(184,99,122,0.12); }

.film-topbar span { font-weight: 600; font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--color-gold); }
.film-subtitle { font-family: var(--font-serif); font-style: italic; font-size: 0.9rem; color: var(--color-muted); opacity: 0.8; }
.slide-counter { font-weight: 600; font-size: 0.7rem; letter-spacing: 3px; color: var(--color-gold); }

.slideshow-wrapper { position: absolute; top: 36px; bottom: 50px; left: 58px; right: 58px; display: flex; align-items: center; justify-content: center; }

.slide {
    position: absolute; display: flex; flex-direction: column; align-items: center;
    opacity: 0; transform: translateX(0) scale(1);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; z-index: 5; }
.slide.peek-next { opacity: 0.55; transform: translateX(-110%) scale(0.68); pointer-events: auto; cursor: pointer; filter: grayscale(0.2) contrast(0.9); z-index: 1; }
.slide.peek-prev { opacity: 0.55; transform: translateX(110%) scale(0.68); pointer-events: auto; cursor: pointer; filter: grayscale(0.2) contrast(0.9); z-index: 1; }
.slide.peek-next:hover { opacity: 0.8; transform: translateX(-105%) scale(0.72); }
.slide.peek-prev:hover { opacity: 0.8; transform: translateX(105%) scale(0.72); }

.polaroid { 
    background: #fff; padding: 10px 10px clamp(31.2px, 3.611vw, 52px); 
    box-shadow: 0 25px 80px rgba(45, 31, 42, 0.15), 0 0 0 1px rgba(0,0,0,0.02);
    display: flex; flex-direction: column; align-items: center;
}
.polaroid img { display: block; max-height: 66vh; max-width: 58vw; object-fit: contain; }
.polaroid-label { font-family: 'Cormorant Garant', serif; font-style: italic; font-size: 1.1rem; color: #7a6a72; margin-top: 10px; }

.scroll-hint-photo {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 15;
    display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}
.scroll-hint-photo span { font-size: 0.55rem; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gold); opacity: 0.8; }
.scroll-hint-photo i { font-size: 0.7rem; color: var(--color-gold); animation: bounceDown 1.6s ease-in-out infinite; margin-top: -2px; }

/* ================================================
   NOTES PAGE
   ================================================ */
#notes {
    background: 
        radial-gradient(circle at 10% 20%, rgba(232, 164, 180, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(201, 150, 108, 0.2) 0%, transparent 50%),
        #fffcf9;
    justify-content: flex-start; align-items: flex-start; padding: 10vh 8vw;
}


.notes-header { 
    width: 100%; display: flex; justify-content: space-between; align-items: flex-start; 
    margin-bottom: 6vh; 
}

.notes-eyebrow { font-weight: 600; font-size: 0.7rem; letter-spacing: 5px; text-transform: uppercase; color: var(--color-gold); opacity: 0.9; }
.notes-subtitle { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--color-muted); margin-top: 4px; }
.notes-wall-title { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: clamp(2.5rem, 6vw, 4rem); color: var(--color-rose); line-height: 1.1; }

.back-link {
    color: var(--color-muted); text-decoration: none; font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase;
    font-weight: 600; display: flex; align-items: center; gap: 10px; padding: 0.6rem clamp(0.84rem, 1.556vw, 1.4rem);
    border: 1px solid rgba(184, 99, 122, 0.2); border-radius: 50px; background: white;
    box-shadow: 0 4px 15px rgba(184, 99, 122, 0.08);
    transition: all 0.3s ease;
}
.back-link:hover { color: var(--color-rose); border-color: var(--color-rose); box-shadow: 0 6px 20px rgba(184, 99, 122, 0.15); transform: translateY(-2px); }

.notes-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
    margin-top: clamp(0.6rem, 1.111vw, 1rem);
    min-height: 60vh;
}

.sticky-note {
    position: absolute; width: 168px; min-height: 155px; padding: clamp(9.6px, 1.111vw, 16px) 14px 12px;
    box-shadow: 0 10px 30px rgba(45, 31, 42, 0.1); font-family: var(--font-serif);
    font-size: 0.95rem; color: var(--color-dark); display: flex; flex-direction: column; justify-content: space-between;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards; transition: all 0.3s ease;
}
.sticky-note:hover { box-shadow: 0 15px 45px rgba(45, 31, 42, 0.2); z-index: 50 !important; transform: scale(1.08) !important; }
.sticky-note::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 50px; height: 20px; background: rgba(255, 255, 255, 0.6); }

/* ================================================
   ADMIN PAGE
   ================================================ */
#admin-section { background: var(--color-bg); overflow-y: auto; justify-content: flex-start; padding: clamp(1.8rem, 3.333vw, 3rem) clamp(1.2rem, 2.222vw, 2rem); }
.section-title { font-family: var(--font-serif); font-style: italic; font-size: clamp(2.1rem, 3.333vw, 3rem); color: var(--color-rose); margin-bottom: 0.5rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: clamp(1.2rem, 2.222vw, 2rem); width: 100%; max-width: 1200px; margin-top: clamp(1.2rem, 2.222vw, 2rem); }
.admin-card { background: white; padding: clamp(1.5rem, 2.778vw, 2.5rem); border-radius: 20px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.05); }
.admin-card h3 { margin-bottom: clamp(0.9rem, 1.667vw, 1.5rem); color: var(--color-rose); font-size: clamp(1.26rem, 2.000vw, 1.8rem); }
.form-group { margin-bottom: clamp(0.9rem, 1.667vw, 1.5rem); }
.form-control { width: 100%; padding: 0.8rem clamp(0.6rem, 1.111vw, 1rem); border: 2px solid #f0f0f0; border-radius: 12px; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--color-peach); }
.admin-list-item { display: flex; align-items: center; justify-content: space-between; padding: clamp(0.6rem, 1.111vw, 1rem); background: #fafafa; border-radius: 10px; margin-bottom: 0.5rem; border: 1px solid #f0f0f0; }
.delete-btn { background: #ffeded; color: #ff5e5e; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.delete-btn:hover { background: #ff5e5e; color: white; }

/* ================================================
   KEYFRAMES
   ================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.5) rotate(-15deg); } to { opacity: 1; } }

/* ================================================
   MOBILE
   ================================================ */
@media (max-width: 768px) {
    .hero-name { font-size: clamp(4rem, 20vw, 7rem); }
    .birthday-text { font-size: clamp(3rem, 12vw, 5rem); }
    .birthday-personal { font-size: clamp(1.12rem, 1.778vw, 1.6rem); }
    .birthday-content { padding: 0 10vw; }
    #birthday-msg { padding-bottom: 10vh; }
    
    /* Photobooth Mobile Optimization */
    .film-strip { width: 30px; }
    .film-topbar, .film-bottombar, .slideshow-wrapper { left: 30px; right: 30px; }
    .film-topbar { top: 0; height: 30px; padding: 0 8px; }
    .film-topbar span { font-size: 0.5rem; letter-spacing: 1px; }
    .film-bottombar { bottom: 0; height: 35px; padding: 0 8px; }
    .film-subtitle { font-size: 0.7rem; }
    .slideshow-wrapper { top: 30px; bottom: 35px; }
    
    .polaroid { padding: 6px 6px clamp(21px, 2.431vw, 35px); width: 100%; }
    .polaroid img { width: 100%; height: auto; max-height: 72vh; object-fit: cover; }
    .polaroid-label { font-size: 0.9rem; margin-top: 5px; }

    
    #notes { padding: 8vh 6vw; }
    .notes-header { flex-direction: column; align-items: center; gap: 3vh; text-align: center; }
    .notes-title-block { order: 2; }
    .back-link { order: 1; align-self: flex-end; margin-bottom: 2vh; }
    .notes-wall-title { font-size: clamp(1.96rem, 3.111vw, 2.8rem); }
    .sticky-note { width: 42vw; min-height: 18vh; font-size: 0.85rem; padding: 12px 10px; }
}