@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Great+Vibes&family=Sacramento&family=Italiana&display=swap');

/* ==================== OLIVE BOTANICAL PALETTE ==================== */
:root {
    /* Olive color palette */
    --olive-bark: #2F3A23;
    /* Darkest - backgrounds */
    --olive-moss: #5F6F4A;
    /* Dark olive - primary */
    --classic-olive: #8A9B6E;
    /* Mid olive - accents */
    --sage-olive: #C1CBB6;
    /* Light sage */
    --olive-cream: #F2F4EE;
    /* Almost white */

    /* Gold tones - warm, not neon */
    --gold-deep: #B8960C;
    --gold-warm: #D4AF37;
    --gold-light: #E8D080;
    --gold-shine: linear-gradient(110deg, #B8960C 30%, #E8D080 50%, #B8960C 70%);

    /* Glass cards */
    --glass-bg: rgba(32, 42, 20, 0.72);
    --glass-border: rgba(212, 175, 55, 0.25);

    /* Text */
    --text-light: #F2F4EE;
    --text-gold: #D4AF37;
    --text-sage: #C1CBB6;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--olive-bark) url('img/enchanted_forest_bg.png') center/cover no-repeat fixed;
    color: var(--text-light);
    font-family: 'Playfair Display', serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="3" fill="%23D4AF37" opacity="0.7"/></svg>') 10 10, auto;
}

/* ==================== PARTICLE ANIMATIONS ==================== */

/* Sparkle - warm gold */
.sparkle {
    position: fixed;
    width: 5px;
    height: 5px;
    background: radial-gradient(circle, #F2F4EE 0%, #D4AF37 45%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9;
    opacity: 0;
    animation: sparkle-float var(--duration) var(--delay) infinite ease-in-out;
}

@keyframes sparkle-float {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }

    15% {
        opacity: 0.9;
        transform: translateY(-25px) scale(1);
    }

    60% {
        opacity: 0.6;
        transform: translateY(-90px) scale(1.1);
    }

    100% {
        opacity: 0;
        transform: translateY(-190px) scale(0);
    }
}

/* Glowing orbs - olive gold */
.butterfly {
    position: fixed;
    pointer-events: none;
    z-index: 12;
    opacity: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.95), rgba(139, 155, 110, 0.5), transparent);
    box-shadow: 0 0 10px 3px rgba(212, 175, 55, 0.4), 0 0 22px 6px rgba(143, 166, 106, 0.15);
    animation: butterfly-fly var(--fly-duration) var(--fly-delay) infinite ease-in-out;
}

@keyframes butterfly-fly {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.4);
    }

    12% {
        opacity: 0.85;
        transform: translate(18px, -28px) scale(1);
    }

    30% {
        transform: translate(-35px, -75px) scale(1.1);
    }

    55% {
        opacity: 0.6;
        transform: translate(55px, -155px) scale(0.9);
    }

    80% {
        opacity: 0.3;
        transform: translate(-25px, -230px) scale(0.8);
    }

    100% {
        opacity: 0;
        transform: translate(30px, -310px) scale(0.2);
    }
}

/* Falling golden petals */
.fairy-leaf {
    position: fixed;
    pointer-events: none;
    z-index: 7;
    opacity: 0;
    border-radius: 50% 10% 50% 10%;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.85), rgba(184, 150, 12, 0.3));
    box-shadow: 0 0 7px 2px rgba(212, 175, 55, 0.35), 0 0 14px 4px rgba(143, 166, 106, 0.1);
    animation: leaf-fall var(--leaf-duration) var(--leaf-delay) infinite linear;
}

@keyframes leaf-fall {
    0% {
        opacity: 0;
        transform: translate(0, -20px) rotate(0deg);
    }

    10% {
        opacity: 0.75;
    }

    55% {
        opacity: 0.5;
        transform: translate(var(--leaf-x), 50vh) rotate(160deg);
    }

    100% {
        opacity: 0;
        transform: translate(calc(var(--leaf-x) * -0.4), 110vh) rotate(340deg);
    }
}

/* Magic dust */
.magic-dust {
    position: absolute;
    border-radius: 50%;
    background: var(--gold-warm);
    box-shadow: 0 0 5px 2px rgba(212, 175, 55, 0.5), 0 0 12px 3px rgba(143, 166, 106, 0.2);
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    animation: magic-twinkle var(--twinkle-dur) var(--twinkle-del) infinite;
}

@keyframes magic-twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    35% {
        opacity: 0.9;
        transform: scale(1.6);
    }

    70% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

/* Fireflies */
.firefly {
    position: fixed;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
    opacity: 0;
}

@keyframes fly-fire {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translate(var(--x), var(--y));
        opacity: 0;
    }
}

/* Ambient page glow - olive tint */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 100%, rgba(95, 111, 74, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 3;
    animation: forest-glow 10s infinite alternate ease-in-out;
}

@keyframes forest-glow {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.6;
    }
}

/* ==================== SECTIONS ==================== */
.section {
    min-height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: transparent;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(20, 28, 14, 0.55) 100%);
    z-index: 1;
}

/* ==================== SUBTLE FOG ==================== */
.fogwrapper {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    overflow: hidden;
}

.fog-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 100%;
    background: url('img/fog_texture.png') repeat-x;
    background-size: 25% 100%;
    mix-blend-mode: screen;
}

#foglayer_01 {
    animation: fogmove 75s linear infinite, fogfade 22s ease-in-out infinite alternate;
    opacity: 0.03;
    z-index: 10;
}

#foglayer_02 {
    animation: fogmove 115s linear reverse infinite;
    opacity: 0.018;
    z-index: 6;
    transform: scale(1.4) translateY(20vh);
}

#foglayer_03 {
    animation: fogmove 170s linear infinite;
    opacity: 0.012;
    z-index: 25;
    transform: scale(2) translateY(-10vh);
}

@keyframes fogmove {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes fogfade {
    0% {
        opacity: 0.015;
    }

    100% {
        opacity: 0.04;
    }
}

/* ==================== BOOK PROLOGUE — SECRET GARDEN STYLE ==================== */
.fullscreen-book {
    position: fixed;
    inset: 0;
    z-index: 100;
    perspective: 2200px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 2s ease 1s;
}

.book-cover {
    position: relative;
    width: 82vw;
    max-width: 860px;
    height: 86vh;
    max-height: 1150px;
    /* Deep forest green fabric with botanical texture */
    background:
        radial-gradient(circle at 50% 50%, rgba(47, 58, 35, 0.95) 0%, rgba(32, 42, 20, 0.98) 100%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
    border-right: 18px solid #1a2410;
    border-radius: 4px 16px 16px 4px;
    box-shadow:
        inset 0 0 120px rgba(0, 0, 0, 0.85),
        35px 0 60px rgba(0, 0, 0, 0.75),
        inset 0 0 60px rgba(143, 166, 106, 0.04);
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: left center;
    transition: transform 2.6s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 105;
    transform-style: preserve-3d;
    overflow: hidden;
    padding: 2rem;
}

.cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 90%;
    text-align: center;
}


/* Botanical arched frame - gold embossed style */
.botanical-arch-frame {
    position: absolute;
    inset: 4%;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

/* Author text - positioned above the tap button */
.book-author {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    color: var(--gold-warm);
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.75;
    z-index: 2;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Botanical embossed pattern overlay */
.book-cover::before {
    content: '';
    position: absolute;
    inset: 3%;
    border: 2px solid rgba(212, 175, 55, 0.22);
    border-radius: 2px 12px 12px 2px;
    pointer-events: none;
    background:
        /* corner stars */
        radial-gradient(circle at 12% 12%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 88% 12%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 12% 88%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 88% 88%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        /* center glow */
        radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
}

/* Inner botanical border */
.book-cover::after {
    content: '✦  ✦  ✦';
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(212, 175, 55, 0.35);
    font-size: 1rem;
    letter-spacing: 12px;
    pointer-events: none;
}

/* Book spine and thickness detailing */
.book-pages-right {
    position: absolute;
    top: 1%;
    right: -45px;
    width: 45px;
    height: 98%;
    background: repeating-linear-gradient(to bottom, #d4af37 0px, #b8960c 1px, #d4af37 2px);
    background-size: 100% 3.5px;
    transform-origin: left center;
    transform: rotateY(90deg);
    border-radius: 0 4px 4px 0;
    box-shadow:
        inset -15px 0 35px rgba(0, 0, 0, 0.95),
        2px 0 10px rgba(212, 175, 55, 0.3);
}

.book-pages-bottom {
    position: absolute;
    bottom: -45px;
    left: 1%;
    width: 98%;
    height: 45px;
    background: repeating-linear-gradient(to right, #d4af37 0px, #b8960c 1px, #d4af37 2px);
    background-size: 3.5px 100%;
    transform-origin: top center;
    transform: rotateX(-90deg);
    border-radius: 0 0 4px 4px;
    box-shadow:
        inset 0 -15px 35px rgba(0, 0, 0, 0.95),
        0 2px 10px rgba(212, 175, 55, 0.3);
}

/* Secret Garden Style Title */
.legend-text {
    font-family: 'Playfair Display', serif !important;
    font-size: 4.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 6px !important;
    text-transform: uppercase;
    color: var(--gold-warm) !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    text-align: center;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 2;
}

.book-cover.open {
    transform: rotateY(-112deg);
}

/* Book content */
.cover-content {
    text-align: center;
    padding: 3.5rem;
    max-width: 780px;
    position: relative;
    z-index: 2;
}

/* Decorative botanical key icon in the book */
.book-botanical-key {
    width: 70px;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    opacity: 0.75;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
    animation: key-glow 3s ease-in-out infinite alternate;
}

@keyframes key-glow {
    0% {
        opacity: 0.6;
        filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.3));
    }

    100% {
        opacity: 0.85;
        filter: drop-shadow(0 0 16px rgba(212, 175, 55, 0.6));
    }
}

/* Secret Garden Style Title */
.legend-text {
    font-family: 'Playfair Display', serif !important;
    font-size: 5rem !important;
    font-weight: 700 !important;
    letter-spacing: 5px !important;
    text-transform: uppercase;
    color: var(--gold-warm) !important;
    line-height: 1.2 !important;
    margin-bottom: 2rem !important;
    text-shadow:
        2px 2px 0px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.4);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

@keyframes title-glow {
    0% {
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }

    100% {
        text-shadow: 0 0 35px rgba(212, 175, 55, 0.7), 0 0 65px rgba(143, 166, 106, 0.2);
    }
}

.cover-content p {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--sage-olive);
    line-height: 1.6;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    font-weight: 400;
}

/* Botanical corner ornaments */
.cover-content::before {
    content: '❧';
    position: absolute;
    top: 10px;
    left: 20px;
    color: rgba(212, 175, 55, 0.3);
    font-size: 2rem;
}

.cover-content::after {
    content: '❧';
    position: absolute;
    bottom: 10px;
    right: 20px;
    color: rgba(212, 175, 55, 0.3);
    font-size: 2rem;
    transform: scaleX(-1);
}

.tap-to-open {
    margin-top: 3rem;
    cursor: pointer;
    animation: tap-pulse 2.2s infinite;
}

.tap-to-open p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    color: var(--gold-light);
    font-style: italic;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.tap-to-open svg {
    width: 24px;
    fill: var(--gold-warm);
}

@keyframes tap-pulse {

    0%,
    100% {
        opacity: 0.45;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(8px);
    }
}

/* Fairy dust burst */
#fairy-dust-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 102;
}

.dust-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #F2F4EE;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px var(--gold-warm), 0 0 18px 4px rgba(143, 166, 106, 0.5);
    opacity: 0;
}

@keyframes dust-explosion {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* ==================== HERO SECTION ==================== */
#hero {
    position: relative;
    background: none;
}

#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(24, 32, 14, 0.35), transparent 35%),
        linear-gradient(to top, rgba(24, 32, 14, 0.45), transparent 35%),
        url('img/2M5A4655_websize.JPG.jpeg') center/cover no-repeat;
    z-index: 1;
    filter: brightness(1.05) saturate(1.1);
}

#hero.active::after {
    animation: hero-reveal 2.2s ease-out forwards;
}

@keyframes hero-reveal {
    0% {
        filter: brightness(0.4) saturate(0.5) blur(6px);
    }

    100% {
        filter: brightness(1.05) saturate(1.1) blur(0);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Crown - olive/gold tones */
.crown-icon {
    animation: crown-float 4.5s ease-in-out infinite alternate;
}

@keyframes crown-float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-12px) scale(1.04);
    }
}

/* Metallic text — olive gold */
.metallic-text {
    font-family: 'Cinzel Decorative', serif;
    background: var(--gold-shine);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 6s linear infinite;
    text-transform: uppercase;
    filter: drop-shadow(0 0 8px rgba(184, 150, 12, 0.35));
}

@keyframes shine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.hero-title {
    font-size: 7rem;
    line-height: 0.88;
    letter-spacing: 10px;
    margin-bottom: 2rem;
    text-shadow: 0 0 50px rgba(184, 150, 12, 0.7), 0 0 15px rgba(242, 244, 238, 0.3);
    font-weight: 700;
}

.hero-subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--sage-olive);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.95), 0 0 40px rgba(143, 166, 106, 0.2);
}

/* ==================== BOTANICAL GLASSMORPHISM CARDS ==================== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    padding: 3.5rem;
    border-radius: 16px;
    max-width: 820px;
    width: 90%;
    position: relative;
    z-index: 15;
    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(242, 244, 238, 0.07),
        0 0 35px rgba(95, 111, 74, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
}

/* Top botanical vine ornament */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold-warm), rgba(143, 166, 106, 0.6), var(--gold-warm), transparent);
    opacity: 0.5;
}

/* Bottom vine ornament */
.card::after {
    content: '✦';
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1rem;
    color: rgba(212, 175, 55, 0.35);
    animation: twinkle-star 2.5s ease-in-out infinite alternate;
}

@keyframes twinkle-star {
    0% {
        opacity: 0.25;
        transform: scale(0.8) rotate(0deg);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.2) rotate(180deg);
    }
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
    color: var(--gold-warm);
    text-shadow: 0 0 18px rgba(184, 150, 12, 0.45);
    font-weight: 600;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--sage-olive);
    text-shadow: 0 0 8px rgba(95, 111, 74, 0.3);
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.card p {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.4rem;
    color: var(--olive-cream);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
    font-weight: 400;
}

.card strong {
    font-weight: 600;
    color: var(--sage-olive);
}

.card a {
    color: var(--gold-light) !important;
    text-decoration: none !important;
    font-style: italic;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding-bottom: 1px;
    transition: all 0.3s;
}

.card a:hover {
    color: var(--sage-olive) !important;
    border-bottom-color: var(--classic-olive);
    text-shadow: 0 0 8px rgba(143, 166, 106, 0.4);
}

/* ==================== BOTANICAL KEY & COMPASS (SVG) ==================== */
/* Replace the pirate image artifacts with botanical SVG wrappers */
.artifact-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 1.2rem auto;
    display: block;
    border-radius: 0;
    filter:
        sepia(0.6) hue-rotate(30deg) saturate(0.8) brightness(0.85) drop-shadow(0 0 12px rgba(184, 150, 12, 0.5));
    transition: all 0.5s ease;
    animation: artifact-float 5s infinite ease-in-out;
}

@keyframes artifact-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

.artifact-img:hover {
    filter:
        sepia(0.4) hue-rotate(30deg) saturate(1.1) brightness(1.05) drop-shadow(0 0 22px rgba(212, 175, 55, 0.75));
    animation-play-state: paused;
    transform: scale(1.12) translateY(-4px);
}

/* Botanical compass wrapper — circular golden frame */
.compass-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 1rem auto;
}

.compass-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    animation: compass-ring 8s linear infinite;
}

.compass-wrapper::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(143, 166, 106, 0.15);
    animation: compass-ring 12s linear infinite reverse;
}

@keyframes compass-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#open-map {
    border-radius: 50% !important;
    animation: compass-vibrate 5s infinite ease-in-out;
}

@keyframes compass-vibrate {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    20%,
    60% {
        transform: scale(1.03) rotate(-4deg);
    }

    40%,
    80% {
        transform: scale(1.04) rotate(4deg);
    }
}

/* Key icon - ornate, not pirate */
.key-icon-premium {
    width: 130px;
    height: auto;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: transform 2s ease-in-out;
    animation: key-sway 4s infinite ease-in-out;
}

@keyframes key-sway {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }
}

.key-unlocking {
    transform: rotate(90deg) scale(0.92) !important;
    animation: key-flash 2.5s forwards !important;
    pointer-events: none;
}

@keyframes key-flash {
    0% {
        filter: sepia(0.4) hue-rotate(30deg) brightness(1);
    }

    40% {
        filter: sepia(0) brightness(2.5) drop-shadow(0 0 50px rgba(212, 175, 55, 0.9));
    }

    100% {
        filter: sepia(0.2) brightness(1.4) drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    }
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* ==================== COUNTDOWN ==================== */
.countdown-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    color: var(--sage-olive);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.countdown-box {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.8rem 0;
}

.time-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(47, 58, 35, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    min-width: 60px;
    backdrop-filter: blur(8px);
}

.time-item span {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: var(--gold-warm);
    font-weight: 400;
    text-shadow: 0 0 12px rgba(184, 150, 12, 0.45);
}

.time-item label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    color: var(--sage-olive);
    letter-spacing: 2px;
    font-weight: 400;
    margin-top: 4px;
    text-transform: uppercase;
}

/* ==================== RSVP FORM ==================== */
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    background: rgba(47, 58, 35, 0.55) !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    padding: 12px 16px !important;
    color: var(--olive-cream) !important;
    border-radius: 8px !important;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    width: 100%;
}

.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
    color: rgba(193, 203, 182, 0.5);
    font-style: italic;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 12px rgba(184, 150, 12, 0.2);
}

.rsvp-form select option {
    background: #2F3A23;
    color: var(--olive-cream);
}

/* ==================== BUTTON ==================== */
.btn-gold {
    background: linear-gradient(135deg, rgba(184, 150, 12, 0.85), rgba(143, 120, 8, 0.9));
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 0.9rem 3rem;
    color: var(--olive-cream);
    font-family: 'Cinzel Decorative', serif;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(184, 150, 12, 0.25);
    transition: all 0.4s ease;
    letter-spacing: 2px;
    font-size: 0.78rem;
    position: relative;
    overflow: hidden;
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(transparent, rgba(242, 244, 238, 0.12), transparent);
    transform: skewX(-15deg);
    animation: btn-sheen 5s infinite;
}

@keyframes btn-sheen {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 150%;
    }
}

.btn-gold:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(184, 150, 12, 0.4);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.9), rgba(184, 150, 12, 0.95));
}

/* ==================== SCROLL INDICATOR ==================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2.2s infinite;
    z-index: 10;
    cursor: pointer;
}

.scroll-indicator svg {
    fill: rgba(193, 203, 182, 0.7);
}

@keyframes bounce {

    0%,
    100% {
        bottom: 2.5rem;
    }

    50% {
        bottom: 1.5rem;
    }
}

/* ==================== FADE IN ==================== */
.fade-in-up {
    animation: fadeInUp 1.1s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(35px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.8rem;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .card {
        padding: 2rem;
        border-radius: 12px;
    }

    .legend-text,
    .cover-content h1 {
        font-size: clamp(2.4rem, 12vw, 3.2rem) !important;
        letter-spacing: 3px !important;
        line-height: 1.1 !important;
    }

    .cover-content p {
        font-size: 1.15rem;
    }

    .countdown-box {
        gap: 0.5rem;
    }

    .time-item {
        padding: 0.5rem 0.7rem;
        min-width: 52px;
    }

    .time-item span {
        font-size: 1.55rem;
    }

    .card h2 {
        font-size: 1.6rem;
    }

    .artifact-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }

    .card {
        padding: 1.5rem;
        width: 95%;
    }

    .time-item span {
        font-size: 1.25rem;
    }

    .legend-text,
    .cover-content h1 {
        font-size: clamp(2.2rem, 10vw, 2.8rem) !important;
        letter-spacing: 2px !important;
    }

    .botanical-arch-frame {
        inset: 2%;
        width: 96%;
    }

    .book-cover {
        width: 92vw;
        height: 80vh;
        border-right-width: 12px;
    }
}