/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary: #9b87f5;
    --primary-light: #d0c4ff;
    --primary-dark: #7b68ee;
    --secondary: #ff9eb5;
    --secondary-light: #ffc8d6;
    --accent: #7fd8be;
    --accent-light: #b0f4e6;

    /* Neutral Colors */
    --light: #f9f7fe;
    --light-2: #f0edff;
    --dark: #33334d;
    --dark-2: #5a5a7a;

    /* Background Gradients */
    --gradient-1: linear-gradient(135deg, #f9f7fe 0%, #e6e1ff 100%);
    --gradient-2: linear-gradient(135deg, #e6e1ff 0%, #d0c4ff 100%);
    --gradient-3: linear-gradient(135deg, #ffeff5 0%, #ffe9f0 100%);
    --gradient-hero: linear-gradient(135deg, #d0c4ff 0%, #ffc8d6 50%, #b0f4e6 100%);

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.4s ease;
    --transition-slow: all 0.6s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-xxl: 8rem;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: var(--space-sm);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Section Common Styles */
section {
    padding: var(--space-xl) 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--dark-2);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

/* Cake Animation */
.cake {
    position: relative;
    width: 150px;
    height: 120px;
    margin: 0 auto var(--space-md);
}

.plate {
    width: 200px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: -25px;
    box-shadow: var(--shadow-md);
}

.layer {
    position: absolute;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.layer-bottom {
    width: 150px;
    height: 40px;
    background: var(--secondary-light);
    bottom: 20px;
}

.layer-middle {
    width: 120px;
    height: 35px;
    background: var(--primary-light);
    bottom: 60px;
    left: 15px;
}

.layer-top {
    width: 90px;
    height: 30px;
    background: var(--accent-light);
    bottom: 95px;
    left: 30px;
}

.icing {
    position: absolute;
    width: 90px;
    height: 15px;
    background: white;
    border-radius: 50%;
    bottom: 110px;
    left: 30px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.drip {
    position: absolute;
    width: 20px;
    height: 30px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.drip1 {
    bottom: 95px;
    left: 40px;
}

.drip2 {
    bottom: 95px;
    left: 80px;
}

.drip3 {
    bottom: 95px;
    left: 60px;
}

.candle {
    position: absolute;
    width: 10px;
    height: 30px;
    background: var(--accent);
    top: -40px;
    left: 70px;
    border-radius: 5px 5px 0 0;
}

.flame {
    position: absolute;
    width: 15px;
    height: 25px;
    background: #ffaa00;
    border-radius: 50% 50% 20% 20%;
    top: -25px;
    left: -2.5px;
    animation: flicker 0.8s infinite alternate;
    box-shadow: 0 0 20px #ffaa00;
}

@keyframes flicker {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.9);
    }
}

.loading-text {
    font-size: 1.2rem;
    color: var(--dark);
    font-weight: 500;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ===== Music Player ===== */
.music-player {
    position: fixed;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 100;
}

.music-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--primary-light);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.music-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.music-btn i {
    font-size: 1.2rem;
}

.music-label {
    font-size: 0.9rem;
}

/* ===== Scroll Progress ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 99;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 0 2px 2px 0;
    transition: width 0.3s ease;
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: var(--space-xl) var(--space-md);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><defs><radialGradient id="grad" cx="50%25" cy="50%25" r="50%25"><stop offset="0%25" stop-color="rgba(255,255,255,0.3)"/><stop offset="100%25" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="100" height="100" fill="url(%23grad)"/></svg>');
    background-size: cover;
    opacity: 0.6;
}

/* Floating Hearts */
.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.heart:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    color: var(--primary-light);
}

.heart:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    color: var(--secondary-light);
}

.heart:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 2s;
    color: var(--accent-light);
}

.heart:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
    color: var(--primary-light);
}

.heart:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
    color: var(--secondary-light);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Hero Content */
.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 var(--space-md);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.5s;
}

.title-line {
    display: block;
}

.heart-emoji {
    display: inline-block;
    animation: pulse-heart 2s infinite;
}

@keyframes pulse-heart {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 1.1s;
}

.cta-button:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.cta-arrow {
    display: inline-block;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--dark);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--dark);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 10px;
    }

    100% {
        opacity: 0;
        top: 30px;
    }
}

/* ===== About Section ===== */
.about-section {
    background: var(--light);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.8rem;
    color: white;
}

.card-title {
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--dark-2);
    font-size: 1rem;
}

/* ===== Memories Section ===== */
.memories-section {
    background: var(--light-2);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.polaroid {
    background: white;
    padding: 15px 15px 30px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    transform: rotate(var(--rotate, 0deg));
    transition: var(--transition-normal);
    cursor: pointer;
}

.polaroid:nth-child(odd) {
    --rotate: -2deg;
}

.polaroid:nth-child(even) {
    --rotate: 2deg;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.polaroid-img {
    width: 100%;
    height: 250px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.polaroid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.polaroid:hover .polaroid-img img {
    transform: scale(1.1);
}

.polaroid-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--dark);
    text-align: center;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--secondary);
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 15px;
    font-size: 1.2rem;
    font-family: 'Dancing Script', cursive;
}

/* ===== Countdown Section ===== */
.countdown-section {
    background: var(--gradient-1);
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.countdown-item:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: var(--shadow-lg);
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.countdown-label {
    font-size: 1.1rem;
    color: var(--dark-2);
    font-weight: 500;
}

.countdown-text {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: var(--space-lg) auto 0;
    font-style: italic;
    color: var(--dark);
}

/* ===== Message Section ===== */
.message-section {
    background: var(--light);
}

.letter-container {
    max-width: 800px;
    margin: var(--space-lg) auto;
}

.letter {
    background: #fffaf0;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 1px solid #f0e6d6;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.letter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(0,0,0,0.05)" stroke-width="1"/></svg>');
    /* background: url('./assets/images/20200818_194207_466.jpg'); */
    border-radius: var(--radius-lg);
    opacity: 0.3;
}

.letter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(0, 0, 0, 0.1);
}

.letter-date {
    font-size: 1.1rem;
    color: var(--dark-2);
}

.letter-stamp {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.letter-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.letter-greeting {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    margin-bottom: var(--space-lg);
    color: var(--dark);
}

.letter-body {
    margin-bottom: var(--space-lg);
    min-height: 300px;
}

/* #typewriter-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.6rem;
    color: var(--dark);
    opacity: 0;
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--primary);
    margin-left: 5px;
    animation: blink 1s infinite;
} */

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.letter-signature {
    text-align: right;
    margin-top: var(--space-lg);
    padding-top: 20px;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-top: 5px;
}

/* ===== Surprise Section ===== */
.surprise-section {
    background: var(--gradient-3);
}

.surprise-container {
    text-align: center;
    max-width: 600px;
    margin: var(--space-xl) auto;
    position: relative;
}

.surprise-button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 20px 40px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

.surprise-button:hover {
    background: var(--primary-dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.surprise-message {
    display: none;
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    margin-top: var(--space-lg);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.surprise-message.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.surprise-icon {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    animation: bounce 2s infinite;
}

.surprise-content h3 {
    color: var(--primary-dark);
    margin-bottom: var(--space-sm);
}

.surprise-content p {
    font-size: 1.1rem;
    color: var(--dark-2);
}

.surprise-confetti {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background: var(--primary);
    top: 0;
    opacity: 0;
}

.confetti-piece:nth-child(odd) {
    background: var(--secondary);
}

.confetti-piece:nth-child(even) {
    background: var(--accent);
}

/* ===== Final Section ===== */
.final-section {
    background: var(--gradient-2);
    padding: var(--space-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.final-title {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--dark);
}

.final-message {
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.final-submessage {
    font-size: 1.3rem;
    color: var(--dark);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.floating-final-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-final-icons i {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
    animation: float-final 8s ease-in-out infinite;
}

.floating-final-icons i:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.floating-final-icons i:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 1s;
}

.floating-final-icons i:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: 2s;
}

.floating-final-icons i:nth-child(4) {
    bottom: 20%;
    right: 5%;
    animation-delay: 3s;
}

.floating-final-icons i:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float-final {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

.final-actions {
    margin-top: var(--space-xl);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.back-to-top:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-text i {
    color: var(--secondary);
    margin: 0 5px;
}

.footer-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-xxl: 5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 15px 30px;
    }

    .cards-container {
        grid-template-columns: 1fr;
    }

    .countdown-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .countdown-number {
        font-size: 2.8rem;
    }

    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .letter {
        padding: var(--space-lg);
    }

    .music-btn {
        padding: 8px 16px;
    }

    .music-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .card {
        padding: var(--space-md);
    }

    .polaroid {
        padding: 10px 10px 20px;
    }

    .final-title {
        font-size: 2.2rem;
    }

    .final-message {
        font-size: 1.8rem;
    }
}
