@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=Dancing+Script:wght@700&display=swap');

body {
    margin: 0; padding: 0; 
    /* Soft buttercream yellow that glows into a lighter cream in the center */
    background: radial-gradient(circle at center, #ffffff 0%, #FFF9E5 60%, #fff1c2 100%);
    background-attachment: fixed; /* Keeps the glow centered even when scrolling */
    
    font-family: 'Fredoka', sans-serif;
    display: flex; justify-content: center; overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Background Drifting Effects */
.bg-elements { position: fixed; width: 100vw; height: 100vh; z-index: -1; top: 0; left: 0;}
.float-icon {
    position: absolute;
    opacity: 0;
    animation: floatUp 7s infinite linear;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)); /* Soft glow */
    user-select: none;
}

@keyframes floatUp {
    0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.5; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.main-canvas { width: 1100px; margin: 40px; text-align: center; position: relative; z-index: 1;}

.aesthetic-title {
    /* This creates the shimmering color effect inside the text */
    background: linear-gradient(to right, #E63946, #ff8e97, #E63946);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    font-size: 4.5rem; 
    margin-bottom: 20px;
    display: inline-block;
    
    /* Animations: One for floating, one for the color sparkle */
    animation: titleFloat 3s ease-in-out infinite, sparkleText 3s linear infinite;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.aesthetic-title:hover {
    transform: scale(1.1) rotate(-2deg);
    /* Extra glow on hover */
    filter: drop-shadow(0 0 10px rgba(230, 57, 70, 0.4));
}

/* Keyframes for the color shift inside the letters */
@keyframes sparkleText {
    to { background-position: 200% center; }
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.header-row { display: flex; justify-content: space-around; align-items: center; margin-bottom: 40px; }
.side-item { width: 200px; position: relative; } /* RELATIVE IS HERE! */
.side-caption { font-size: 0.8rem; color: #7a735c; margin-top: 10px; font-weight: 600; }

/* Cookie Section */
.cookie-container { animation: floatVertical 4s ease-in-out infinite; cursor: pointer; }
.cookie-container:hover .cookie-graphic {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}
.cookie-graphic { font-size: 4.5rem; transition: transform 0.3s ease; }
.cookie-graphic.spin { transform: rotate(360deg) scale(1.1); }

@keyframes floatVertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* "Press Me" Pointer */
.cookie-pointer {
    position: absolute; top: -75px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    pointer-events: none; animation: hintBounce 2s infinite ease-in-out;
}
.cookie-pointer span { font-family: 'Dancing Script', cursive; font-size: 1.4rem; color: #7a735c; white-space: nowrap; }
.arrow-dotted { width: 2px; height: 35px; border-left: 2px dotted #7a735c; margin-top: 5px; position: relative; }
.arrow-dotted::after { content: ''; position: absolute; bottom: -6px; left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #7a735c; }

@keyframes hintBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }

/* Celestial Orbiting */
.celestial-pair { position: relative; width: 120px; height: 120px; margin: 0 auto; perspective: 1000px; }
.sun, .moon { position: absolute; font-size: 3.5rem; top: 15px; left: 15px; animation: twinkle 3s infinite ease-in-out, orbit 8s infinite linear; }
.sun { color: #ffe066; text-shadow: 0 0 15px rgba(255, 224, 102, 0.8); animation-delay: 0s, -4s; }
.moon { color: #add8e6; text-shadow: 0 0 15px rgba(173, 216, 230, 0.8); animation-delay: 1.5s, 0s; }

@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.95); } }
@keyframes orbit { 0% { transform: translateX(-40px); z-index: 1; } 50% { transform: translateX(40px); z-index: 2; } 100% { transform: translateX(-40px); z-index: 1; } }

/* Record Player */
.record-player { width: 200px; height: 200px; background: #fff; border-radius: 20px; border: 2px solid #e2dcc5; position: relative; padding: 15px; }
.vinyl { width: 100%; height: 100%; background: #111; border-radius: 50%; position: relative; border: 4px solid #222; }
.vinyl-lines { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent, transparent 4px, rgba(255,255,255,0.04) 5px); }
/* Locate and REPLACE this section in style.css */

/* Update these sections in your style.css */

.spotify-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Back to a realistic label size so we see the record */
    width: 80px; 
    height: 80px;
    
    background: white;
    border-radius: 50%; /* Make the center circular like a real record! */
    z-index: 2;
    overflow: visible; /* Allow the zoom to pop out */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease-in-out;
}

.spotify-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Keeps the image circular */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-in;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* THE MAGIC: When you hover over the record, the lyrics pop up! */
.record-player:hover .spotify-center img {
    transform: scale(3.5); /* Makes it big enough to read */
    border-radius: 10px;    /* Becomes a readable square card */
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.tonearm { width: 12px; height: 100px; background: #999; position: absolute; top: 15px; right: 30px; transform-origin: top center; transition: 0.8s; transform: rotate(-40deg); z-index: 5; }
.vinyl.spinning { animation: rotateVinyl 3s linear infinite; }
.tonearm.active { transform: rotate(15deg); }
@keyframes rotateVinyl { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Envelopes Grid */
/* Find this in your style.css and update the margin-top */

.envelope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 120px; /* Increased from 40px to 120px */
    justify-items: center;
}
.env-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease; /* Smooth hover transition */
}

.env-item:hover {
    transform: translateY(-10px) rotate(2deg); /* Lifts and tilts */
}

/* Let's make the caption turn red on hover too! */
.env-item:hover .caption {
    color: #E63946;
}
.env { width: 220px; height: 140px; background: #faf9f6; position: relative; border-radius: 0 0 10px 10px; border: 1px solid #e2dcc5; }
.flap { position: absolute; top: 0; width: 0; height: 0; border-left: 110px solid transparent; border-right: 110px solid transparent; border-top: 75px solid #f0eee4; transform-origin: top; transition: 0.5s; z-index: 2; }
.seal { position: absolute; top: 55px; left: 50%; transform: translateX(-50%); z-index: 3; font-size: 20px; }
/* 1. The Photo Container (The 'Paper' holding the image) */
.photo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 200px;
    height: 120px;
    background: white;
    transform: translateY(0);
    opacity: 0;
    /* Added a 0.8s slide for a smooth "rising" feel */
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
    z-index: 1;
}

/* 2. The Actual Image inside the photo container */
.photo img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border: 5px solid white; 
    box-sizing: border-box; /* Keeps the border from making the image too big */
}

/* 3. The Flap Opening Motion */
.env-item.open .flap { 
    transform: rotateX(180deg); 
    transition: transform 0.5s ease-in-out; 
}

/* 4. The Photo Rising Motion (with the 0.4s delay) */
.env-item.open .photo { 
    /* This delay lets the flap move out of the way first! */
    transition-delay: 0.4s; 
    transform: translateY(-130px) rotate(-3deg); 
    opacity: 1; 
    z-index: 10; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
}
.caption { color: #7a735c; font-weight: 600; margin-top: 15px; }

/* Letter Styles */
.letter-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(243, 237, 215, 0.98); display: none; justify-content: center; align-items: center; z-index: 100; }
.letter-paper { background: #fff; width: 85%; max-width: 600px; padding: 50px; text-align: center; border: 1px solid #eee; }
.letter-text { font-family: 'Dancing Script', cursive; font-size: 2.2rem; color: #333; }
.signature { font-size: 2.8rem; color: #ef233c; margin-top: 20px; }
.close-btn { position: absolute; top: 20px; right: 20px; font-size: 2rem; border: none; background: none; cursor: pointer; color: #aaa; }

.pill-btn { background: white; border: 2px solid #5b7c99; color: #5b7c99; padding: 8px 20px; border-radius: 50px; cursor: pointer; margin-top: 15px; font-weight: 600; }
.wax-seal-large { width: 60px; height: 60px; background: #d90429; border-radius: 50%; margin: 60px auto 10px; display: flex; align-items: center; justify-content: center; color: white; border: 3px solid #fff; box-shadow: 0 5px 15px rgba(217, 4, 41, 0.3); font-size: 24px; cursor: pointer; }