/* =====================================================
   Queen Rajeshwari — style.css
   Concept: A flowing love letter with scattered photos
   ===================================================== */

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; overflow-x: hidden; background: #FFFAF5; }
img { display: block; max-width: 100%; }

/* === VARIABLES === */
:root {
    --pink:    #E8547A;
    --gold:    #D4A843;
    --cream:   #FFFAF5;
    --warm:    #FFF4E8;
    --text:    #3d3530;
    --muted:   #8a7f78;
    --border:  rgba(0,0,0,0.06);
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    transition: background 0.4s, box-shadow 0.4s;
}
.navbar.scrolled {
    background: rgba(255,250,245,0.97);
    box-shadow: 0 1px 20px rgba(0,0,0,0.07);
    backdrop-filter: blur(12px);
}
.nav-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    transition: color 0.4s, text-shadow 0.4s;
    letter-spacing: 0.5px;
}
.navbar.scrolled .nav-logo { color: var(--pink); text-shadow: none; }

.nav-links { display: flex; gap: 1.3rem; }
.nav-links a {
    text-decoration: none;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.22s;
    line-height: 1;
}
.nav-links a:hover { transform: scale(1.35) rotate(-6deg); }

.nav-hamburger { display: none; font-size: 1.4rem; cursor: pointer; color: white; }
.navbar.scrolled .nav-hamburger { color: var(--text); }


/* =====================
   HERO
   ===================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transform: scale(1.04);
    animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.04); }
    to   { transform: scale(1.10); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,8,6,0.08)  0%,
        rgba(10,8,6,0.15) 40%,
        rgba(10,8,6,0.70) 80%,
        rgba(10,8,6,0.85) 100%
    );
}

/* Floating sparkles */
.floating-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sp {
    position: absolute;
    left: var(--x); top: var(--y);
    font-size: var(--s, 1.3rem);
    animation: spFloat 4s ease-in-out infinite var(--d, 0s);
    opacity: 0.8;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.5));
}
@keyframes spFloat {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-16px) rotate(10deg); }
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
}
.hero-eyebrow {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: rgba(255,255,255,0.75);
    letter-spacing: 1px;
}
.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3.8rem, 11vw, 8rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #f8d98b 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.4));
}
.hero-sub {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: rgba(255,255,255,0.75);
    font-style: italic;
    font-family: 'Lora', serif;
    letter-spacing: 0.5px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    text-decoration: none;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%,100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
    50%      { transform: translateX(-50%) translateY(9px); opacity: 1; }
}


/* =====================
   STORY SECTION
   ===================== */
.story-section {
    background: var(--cream);
    padding: 7rem 0 5rem;
    position: relative;
}

/* Subtle texture-like dot pattern */
.story-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(212,168,67,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.story-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Clearfix for floats */
.story-wrap::after,
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.story-opening {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    line-height: 1.85;
    color: var(--text);
    text-align: center;
    font-style: italic;
    max-width: 580px;
    margin: 0 auto 3.5rem;
}

.story-para {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    line-height: 1.95;
    color: #5a524e;
    margin-bottom: 1.6rem;
}

/* =====================
   POLAROIDS
   ===================== */
.polaroid {
    background: white;
    padding: 12px 12px 46px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.11), 0 1px 4px rgba(0,0,0,0.06);
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.polaroid:hover {
    box-shadow: 0 14px 48px rgba(0,0,0,0.18);
    z-index: 10;
}
.polaroid img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.pol-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    color: #888;
    padding: 8px 8px 10px;
    line-height: 1.3;
}

/* Float variants */
.float-right {
    float: right;
    width: 260px;
    margin: 0.5rem 0 2rem 3rem;
}
.float-right img { height: 200px; }

.float-left {
    float: left;
    width: 260px;
    margin: 0.5rem 3rem 2rem 0;
}
.float-left img { height: 200px; }

/* Tilt variants */
.tilt-r  { transform: rotate(2.5deg); }
.tilt-r2 { transform: rotate(1.2deg); }
.tilt-l  { transform: rotate(-2deg); }
.tilt-l2 { transform: rotate(-3.2deg); }
.tilt-flat { transform: rotate(0.4deg); }

.tilt-r:hover  { transform: rotate(1deg) scale(1.03); }
.tilt-r2:hover { transform: rotate(0.5deg) scale(1.03); }
.tilt-l:hover  { transform: rotate(-0.5deg) scale(1.03); }
.tilt-l2:hover { transform: rotate(-1deg) scale(1.03); }
.tilt-flat:hover { transform: rotate(0) scale(1.03); }

/* Wide full-bleed photo break */
.story-photo-wide {
    margin: 3.5rem -2rem;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}
.story-photo-wide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transition: transform 0.6s ease;
}
.story-photo-wide:hover img { transform: scale(1.02); }
.wide-label {
    display: block;
    text-align: center;
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    color: var(--muted);
    margin-top: 0.8rem;
    padding: 0 2rem;
}

/* Small polaroid row */
.polaroid-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.8rem;
    margin: 3.5rem 0;
    flex-wrap: wrap;
}
.polaroid-row .polaroid {
    width: 190px;
    flex-shrink: 0;
}
.polaroid-row .polaroid img {
    height: 160px;
    object-fit: cover;
}

/* Pull quotes */
.pull-quote {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--pink);
    text-align: center;
    margin: 3.5rem auto;
    line-height: 1.45;
    max-width: 560px;
    font-weight: 700;
    border: none;
    position: relative;
}
.pull-quote::before,
.pull-quote::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--pink), transparent);
    margin: 0.8rem auto;
}
.pull-quote-sm {
    font-size: clamp(1.4rem, 4vw, 2rem);
    color: var(--gold);
}
.pull-quote-sm::before,
.pull-quote-sm::after { background: linear-gradient(to right, transparent, var(--gold), transparent); }


/* =====================
   AAI / HER HEART
   ===================== */
.aai-section {
    background: linear-gradient(160deg, #FFF9E8 0%, #FFF0E0 50%, #FFE8D8 100%);
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
}
/* Decorative large watermark */
.aai-section::before {
    content: '♛';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22rem;
    color: rgba(212,168,67,0.06);
    pointer-events: none;
    line-height: 1;
}

.aai-inner {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.aai-photo-wrap {
    position: relative;
}
.aai-photo-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: 20% center;
    border-radius: 4px;
    display: block;
    box-shadow: 0 16px 56px rgba(0,0,0,0.16);
    transform: rotate(-1.5deg);
    transition: transform 0.4s ease;
}
.aai-photo-img:hover { transform: rotate(-0.5deg) scale(1.01); }
.aai-photo-label {
    text-align: center;
    margin-top: 1.1rem;
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: #c07a40;
    font-weight: 700;
}

.aai-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink), var(--gold));
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}
.aai-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.aai-text p {
    font-family: 'Lora', serif;
    font-size: 1.04rem;
    line-height: 1.9;
    color: #6b5e56;
    margin-bottom: 1.1rem;
}
.aai-quote {
    margin-top: 2rem;
    padding: 1.2rem 1.4rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--pink);
    font-style: italic;
    font-family: 'Lora', serif;
    color: #887870;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    line-height: 1.7;
}


/* =====================
   SECRET / COUNTDOWN
   ===================== */
.secret-section {
    background: linear-gradient(160deg, #0e0c14 0%, #130e1e 50%, #0a1128 100%);
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 2rem;
}

.stars { position: absolute; inset: 0; pointer-events: none; }
.star-dot {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
    0%,100% { opacity: 0.15; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.6); }
}

.secret-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    width: 100%;
}

/* Locked */
.lock-orb {
    font-size: 5.5rem;
    display: block;
    margin-bottom: 1.5rem;
    animation: orbFloat 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 28px rgba(139,92,246,0.7));
}
@keyframes orbFloat {
    0%,100% { transform: translateY(0) scale(1) rotate(-3deg); }
    50%      { transform: translateY(-18px) scale(1.05) rotate(3deg); }
}

.secret-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8d98b, #e8547a, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.secret-hint {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    font-family: 'Lora', serif;
    font-style: italic;
    margin-bottom: 2.5rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.cd-box {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 1.1rem 1.3rem;
    min-width: 82px;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: transform 0.2s, background 0.2s;
}
.cd-box:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.cd-num {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #f8d98b, #e8547a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-label {
    display: block;
    font-size: 0.63rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    font-weight: 700;
}
.countdown-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.35);
    font-style: italic;
    font-family: 'Lora', serif;
}

/* Revealed */
.secret-revealed { color: white; }
.reveal-emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 1.2rem;
    animation: babyBounce 1.3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(248,217,139,0.6));
}
@keyframes babyBounce {
    0%,100% { transform: rotate(-5deg) scale(1); }
    50%      { transform: rotate(5deg) scale(1.12) translateY(-12px); }
}
.reveal-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f8d98b, #e8547a, #7dd3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.reveal-p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.95;
    margin-bottom: 1.3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.reveal-p em { color: #f8d98b; font-style: italic; }
.reveal-sign {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--gold);
    margin-top: 2.5rem;
    line-height: 1.7;
}
.reveal-hearts {
    font-size: 2.5rem;
    margin-top: 1.5rem;
    animation: heartPulse 1.6s ease-in-out infinite;
    display: block;
}
@keyframes heartPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* Confetti */
@keyframes confettiFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}


/* =====================
   FOOTER
   ===================== */
.footer {
    background: #0a0812;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 2.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.footer-heart { display: inline-block; animation: heartPulse 1.6s ease-in-out infinite; }
.footer-name {
    font-family: 'Dancing Script', cursive !important;
    font-size: 1.35rem !important;
    color: var(--gold) !important;
}


/* =====================
   SCROLL REVEAL
   ===================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 1rem;
        position: absolute; top: 100%; right: 1rem;
        background: var(--cream); padding: 1.2rem 1.5rem;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    }
    .nav-hamburger { display: block; }

    .float-right, .float-left {
        float: none;
        width: 100%;
        max-width: 340px;
        margin: 0 auto 2rem;
        display: block;
    }
    .float-right img, .float-left img { height: 240px; }

    .story-photo-wide { margin: 2.5rem -1.2rem; }
    .story-photo-wide img { height: 280px; }

    .polaroid-row { gap: 1.2rem; }
    .polaroid-row .polaroid { width: 150px; }
    .polaroid-row .polaroid img { height: 130px; }

    .aai-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .aai-photo-img { height: 320px; object-position: 25% center; transform: rotate(0); }

    .pull-quote { font-size: 1.6rem; margin: 2.5rem auto; }
    .story-opening { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 3.2rem; }
    .polaroid-row .polaroid { width: 130px; }
    .cd-num { font-size: 2rem; }
    .cd-box { min-width: 68px; padding: 0.9rem; }
}
