@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Great+Vibes&display=swap');

:root {
    --elite-emerald: #004b23; /* Deep Emerald */
    --vibrant-green: #008000;
    --royal-gold: #c5a059;
    --gold-shimmer: #fcefb4;
    --silk-white: #fefcfb;
    --ribbon-color: #ffd700; /* Gold ribbon for green box */
}

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

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #4a0404 0%, #6a040f 50%, #9d0208 100%);
    color: var(--silk-white);
    min-height: 100vh;
    overflow-x: hidden;
}


/* Elite Shimmer Overlay Removed */

.container {
    position: relative;
    z-index: 5;
    max-width: 380px; /* Increased for better photo visibility */
    margin: 0 auto;
    padding: 40px 15px;
    text-align: center;
}

/* Elite Header */
header { margin-bottom: 30px; }

h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold-shimmer);
    text-shadow: 0 0 15px rgba(252, 239, 180, 0.5);
    letter-spacing: 3px;
    animation: textShimmer 3s infinite alternate;
}

@keyframes textShimmer {
    from { filter: brightness(1); text-shadow: 0 0 10px rgba(252, 239, 180, 0.3); }
    to { filter: brightness(1.3); text-shadow: 0 0 25px rgba(252, 239, 180, 0.8); }
}

.subtitle {
    font-family: 'Great Vibes', cursive;
    font-size: 1.4rem;
    color: var(--royal-gold);
    margin-bottom: 5px;
}

/* Perfect Symmetrical Gift Box */
.gift-scene {
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gift-box-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.box-main {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #004b23;
    border: 2px solid var(--royal-gold);
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    border-radius: 4px;
}

.ribbon-v, .ribbon-h {
    position: absolute;
    background: linear-gradient(to right, #c5a059, #fcefb4, #c5a059);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ribbon-v { width: 30px; height: 100%; left: 50%; transform: translateX(-50%); }
.ribbon-h { width: 100%; height: 30px; top: 50%; transform: translateY(-50%); }

/* Perfect Symmetrical Bow (Fiyonk) */
.bow {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
    z-index: 20;
}

.bow::before, .bow::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 40px;
    background: var(--gold-shimmer);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50% 50% 10% 50%;
    top: 0;
}

.bow::before { left: 0; transform: rotate(-30deg); }
.bow::after { right: 0; transform: rotate(30deg) scaleX(-1); }

.bow-center {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--royal-gold);
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    border-radius: 4px;
    z-index: 21;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.gift-lid {
    position: absolute;
    top: -15px; left: -10px; width: 150px; height: 40px;
    background: #004b23;
    border: 2px solid var(--royal-gold);
    z-index: 10;
    transition: all 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.opened .gift-lid, .opened .bow { transform: translateY(-400px) rotate(-45deg) scale(0); opacity: 0; }
.opened .box-main { transform: scale(0); opacity: 0; }

/* Content Section */
.main-content {
    display: none;
    animation: eliteReveal 1.5s forwards;
}

/* Symmetrical Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.photo-frame {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--royal-gold);
    padding: 6px;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: frameGlow 3s infinite alternate;
    cursor: pointer;
}

.photo-frame:hover {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 15px 35px rgba(252, 239, 180, 0.6), 0 0 25px rgba(208, 0, 0, 0.5);
    z-index: 50;
    border-color: var(--gold-shimmer);
}

@keyframes frameGlow {
    from { box-shadow: 0 10px 20px rgba(0,0,0,0.4), 0 0 5px rgba(197, 160, 89, 0.2); }
    to { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(252, 239, 180, 0.4); }
}

/* Premium Shimmer Removed as requested */

.photo-frame img {
    width: 100%;
    height: 115px; /* Increased height so more of the photo shows */
    object-fit: cover;
    border-radius: 2px;
}

.photo-note {
    font-family: 'Great Vibes', cursive;
    font-size: 0.9rem;
    color: var(--gold-shimmer);
    margin-top: 5px;
}

.letter-box {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--royal-gold);
    border-bottom: 1px solid var(--royal-gold);
    padding: 40px 20px;
    margin: 40px 0;
    line-height: 2.2;
}

.letter-box p {
    font-size: 1.1rem;
    color: #fefcfb;
    font-style: italic;
    text-align: center;
}

/* Firework Petals - Greenery/White Petals for contrast */
.firework-petal {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    width: 18px;
    height: 14px;
    background: #fff;
    border-radius: 50% 0 50% 0;
    animation: fireworkMove 2.5s ease-out forwards;
}

@keyframes fireworkMove {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0) rotate(720deg); opacity: 0; }
}

footer { padding-bottom: 60px; }
.heart-icon { font-size: 3rem; color: var(--royal-gold); text-shadow: 0 0 20px var(--royal-gold); animation: pulse 1.5s infinite; }

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes eliteReveal { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
