:root {
    --primary-pink: #FFB6C1;
    --primary-blue: #AEE2FF;
    --text-dark: #2C3E50;
    --card-bg: rgba(255, 255, 255, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* The Sky Blue & Pink Background */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-pink) 100%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    text-align: center;
    margin-top: 10vh;
    margin-bottom: 4rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Glassmorphism Cards */
.features-grid {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.empty-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-style: italic;
    opacity: 0.7;
}
/* Open When Vault Styles */
.vault-card h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.vault-card p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.envelope-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.envelope-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--primary-pink);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.envelope-btn:hover {
    background: var(--primary-pink);
    color: white;
    transform: scale(1.05);
}

.envelope-btn .emoji {
    font-size: 1.5rem;
}

.envelope-btn .label {
    font-weight: 500;
}
/* Modal (Pop-up) Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 62, 80, 0.4); /* Dark overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 500px;
    margin: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.modal-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-pink);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--primary-pink);
}
/* Timeline Styles */
.timeline-card h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

.timeline-card p {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.timeline {
    position: relative;
    margin-top: 1rem;
    text-align: left; /* Aligns text to the left of the card */
}

/* Draws the vertical pink line */
.timeline::before {
    content: '';
    position: absolute;
    left: 9px; /* Centers the line under the dots */
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-pink);
}

.timeline-item {
    position: relative;
    padding-left: 35px; /* Pushes text away from the line */
    margin-bottom: 1.5rem;
}

/* The glowing dots */
.timeline-dot {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.8);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    background: var(--primary-pink);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}
/* Polaroid Gallery Styles */
.gallery-section {
    width: 100%;
    margin-top: 5rem;
    text-align: center;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.polaroid-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.polaroid {
    background: white;
    padding: 15px 15px 25px 15px;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease-out;
    width: 250px;
}

/* Give them that scattered, messy desk look */
.polaroid:nth-child(1) { transform: rotate(-5deg); }
.polaroid:nth-child(2) { transform: rotate(3deg); margin-top: -20px; }
.polaroid:nth-child(3) { transform: rotate(-2deg); }

/* The hover effect: Straighten up and float higher */
.polaroid:hover {
    transform: rotate(0deg) scale(1.1) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.polaroid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

.polaroid .caption {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #333;
    margin-top: 15px;
    text-align: center;
}
/* Floating Hearts Styles */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Prevents hearts from blocking clicks */
    z-index: 1; /* Puts hearts behind the cards, but above the background */
    overflow: hidden;
}

.heart {
    position: absolute;
    bottom: -10%;
    color: rgba(239, 83, 80, 0.8); /* Soft, semi-transparent white */
    animation: floatUp linear forwards;
}

/* The physics of the float */
@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}
/* Floating Music Button Styles */
.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-pink);
    border-radius: 50px;
    padding: 12px 24px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.music-btn:hover {
    background: var(--primary-pink);
    color: white;
    transform: translateY(-3px);
}

.music-btn.playing {
    background: var(--primary-pink);
    color: white;
    animation: pulse 2s infinite;
}

/* A soft pulse animation while the music plays */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 182, 193, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 182, 193, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 182, 193, 0); }
}
/* Live Counter Styles */
.counter-section {
    margin: 1rem auto 3rem auto;
    max-width: 600px;
}

.counter-section h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.counter-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-box {
    text-align: center;
}

.time-box span {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-pink);
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.time-box p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}
/* Scratch-to-Reveal Styles */
.scratch-section {
    margin: 1rem auto 3rem auto;
    max-width: 500px;
}

.scratch-container {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 2rem auto 0 auto;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed var(--primary-pink);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.scratch-prize {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

#scratch-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair; /* Changes the mouse icon to a crosshair */
}
/* Digital Love Letter Styles */
.love-letter-section {
    margin: 5rem auto;
    padding: 2rem;
    max-width: 800px;
    text-align: center;
}

.fade-text {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 15rem; /* Massive gap to force scrolling between lines */
    opacity: 0; /* Hidden by default */
    transform: translateY(40px); /* Pushed down slightly */
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* This class will be added by JavaScript when the text comes on screen */
.fade-text.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Arcade Game Styles */
.game-section {
    margin: 2rem auto 5rem auto;
    max-width: 500px;
}

#game-container {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 1.5rem auto 0 auto;
    background: linear-gradient(to bottom, #E0F2FE 0%, #FDF2F8 100%);
    border: 3px solid var(--primary-pink);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
}

#game-ui {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    font-weight: 600;
    color: var(--text-dark);
    z-index: 5;
    pointer-events: none;
}

#game-canvas {
    display: block;
    cursor: none; /* Hides the default mouse pointer while playing */
}

#game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#game-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-pink);
}

#start-game-btn {
    background: var(--primary-pink);
    color: white;
    border: none;
    padding: 10px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.5);
    transition: transform 0.2s;
}

#start-game-btn:hover {
    transform: scale(1.05);
}
/* Footer Styles */
.site-footer {
    text-align: center;
    padding: 3rem 1rem 1.5rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.site-footer p {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.site-footer .version {
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}