:root {
    --pink-light: #FFE4EC;
    --pink-medium: #FFB6C1;
    --pink-deep: #FF69B4;
    --pink-dark: #FF1493;
    --purple-light: #E6E6FA;
    --purple-medium: #DDA0DD;
    --blue-light: #E0F7FA;
    --blue-medium: #87CEEB;
    --cream: #FFF5EE;
    --white: #FFFFFF;
    --text-dark: #5D4037;
    --text-medium: #8D6E63;
    --shadow-soft: 0 8px 32px rgba(255, 105, 180, 0.15);
    --shadow-medium: 0 12px 40px rgba(255, 105, 180, 0.2);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(180deg, #FFF0F5 0%, #FFE4EC 30%, #E6E6FA 70%, #F0F8FF 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #FFE4EC 0%, #FFD1DC 50%, #E6E6FA 100%);
}

.balloons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

.balloon-1 { top: 10%; left: 8%; animation-delay: 0s; font-size: 3.5rem; }
.balloon-2 { top: 20%; right: 12%; animation-delay: 1s; font-size: 2.8rem; }
.balloon-3 { top: 60%; left: 5%; animation-delay: 2s; font-size: 3.2rem; }
.balloon-4 { top: 40%; right: 8%; animation-delay: 1.5s; font-size: 4rem; }
.balloon-5 { top: 75%; right: 15%; animation-delay: 0.5s; font-size: 2.5rem; }
.balloon-6 { top: 15%; left: 25%; animation-delay: 2.5s; font-size: 2.2rem; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.hero-title {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: clamp(3rem, 12vw, 7rem);
    color: var(--pink-deep);
    text-shadow: 4px 4px 0px var(--pink-light), 8px 8px 0px var(--purple-light);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.title-word {
    display: inline-block;
    animation: bounceIn 1s ease-out backwards;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.3s; }
.title-word:nth-child(3) { animation-delay: 0.5s; }
.title-word:nth-child(4) { animation-delay: 0.7s; }

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3) translateY(-100px); }
    50% { transform: scale(1.1) translateY(10px); }
    70% { transform: scale(0.95) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-subtitle {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-medium);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.9s backwards;
}

.hero-name {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--pink-dark);
    font-weight: 500;
    animation: fadeInUp 1s ease-out 1.1s backwards;
}

.scroll-hint {
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out 1.3s backwards;
}

.scroll-hint span {
    display: block;
    color: var(--text-medium);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    color: var(--pink-deep);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

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

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 1.5rem;
    animation: floatUp 8s linear infinite;
    opacity: 0.7;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 25%; animation-delay: 1.5s; }
.heart:nth-child(3) { left: 40%; animation-delay: 3s; }
.heart:nth-child(4) { left: 55%; animation-delay: 0.5s; }
.heart:nth-child(5) { left: 70%; animation-delay: 2s; }
.heart:nth-child(6) { left: 85%; animation-delay: 4s; }
.heart:nth-child(7) { left: 15%; animation-delay: 5s; }
.heart:nth-child(8) { left: 90%; animation-delay: 2.5s; }

@keyframes floatUp {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.sky-lights {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.sky-light {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #FFD700 0%, rgba(255, 215, 0, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.4);
    animation: skyFloat 10s ease-in-out infinite;
}

.sky-light:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; width: 10px; height: 10px; }
.sky-light:nth-child(2) { left: 75%; top: 15%; animation-delay: 1.5s; width: 6px; height: 6px; }
.sky-light:nth-child(3) { left: 30%; top: 60%; animation-delay: 3s; width: 12px; height: 12px; }
.sky-light:nth-child(4) { left: 85%; top: 50%; animation-delay: 0.5s; width: 8px; height: 8px; }
.sky-light:nth-child(5) { left: 50%; top: 30%; animation-delay: 2s; width: 7px; height: 7px; }
.sky-light:nth-child(6) { left: 10%; top: 75%; animation-delay: 4s; width: 9px; height: 9px; }
.sky-light:nth-child(7) { left: 65%; top: 70%; animation-delay: 1s; width: 11px; height: 11px; }
.sky-light:nth-child(8) { left: 90%; top: 80%; animation-delay: 3.5s; width: 6px; height: 6px; }

@keyframes skyFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-10px, -50px) scale(0.9);
        opacity: 0.6;
    }
    75% {
        transform: translate(15px, -20px) scale(1.1);
        opacity: 0.9;
    }
}

.section-title {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: var(--pink-deep);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.wish-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent 0%, var(--cream) 50%, transparent 100%);
}

.wish-bubble {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 3px solid var(--pink-light);
}

.wish-bubble::before {
    content: '💬';
    position: absolute;
    top: -30px;
    left: 30px;
    font-size: 3rem;
}

.wish-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.4rem;
    line-height: 2.2;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.wish-signature {
    text-align: right;
    margin-top: 2rem;
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.3rem;
    color: var(--pink-deep);
}

.anniversary-section {
    padding: 4rem 2rem 6rem;
}

.anniversary-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #E8F4FD 0%, #D4E6F7 30%, #E6E6FA 70%, #F0E6FA 100%);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(100, 149, 237, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 3px solid #B0C4DE;
}

.sky-stars {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.8rem;
    color: #FFD700;
    opacity: 0.7;
}

.sky-star {
    animation: twinkle 2s ease-in-out infinite;
}

.sky-star:nth-child(1) { animation-delay: 0s; }
.sky-star:nth-child(2) { animation-delay: 0.3s; font-size: 0.6rem; }
.sky-star:nth-child(3) { animation-delay: 0.6s; font-size: 1rem; }
.sky-star:nth-child(4) { animation-delay: 0.9s; font-size: 0.6rem; }
.sky-star:nth-child(5) { animation-delay: 1.2s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.anniversary-card::before {
    content: '🕯️';
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    animation: candleGlow 2s ease-in-out infinite;
}

.anniversary-card::after {
    content: '🕯️';
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 2rem;
    animation: candleGlow 2s ease-in-out infinite 1s;
}

@keyframes candleGlow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.9)); }
}

.anniversary-date {
    margin-bottom: 1.5rem;
}

.date-label {
    display: block;
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.date-value {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.8rem;
    color: var(--pink-deep);
}

.anniversary-divider {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--purple-medium);
}

.anniversary-days {
    margin: 1.5rem 0;
}

.days-number {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 4rem;
    color: var(--pink-dark);
    text-shadow: 3px 3px 0px var(--pink-light);
    display: inline-block;
    animation: numberPop 0.5s ease-out;
}

.days-label {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--text-medium);
    margin-left: 0.5rem;
}

@keyframes numberPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.anniversary-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-dark);
}

.cake-section {
    padding: 6rem 2rem;
    text-align: center;
}

.cake-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.cake {
    position: relative;
    width: 280px;
    height: 280px;
}

.candles {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 18px;
    z-index: 10;
}

.candle {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.candle:hover {
    transform: scale(1.1);
}

.candle-body {
    width: 12px;
    height: 40px;
    background: linear-gradient(90deg, #FF69B4 0%, #FF1493 50%, #FF69B4 100%);
    border-radius: 3px;
    margin-top: 20px;
}

.candle:nth-child(2n) .candle-body {
    background: linear-gradient(90deg, #DDA0DD 0%, #BA55D3 50%, #DDA0DD 100%);
}

.candle:nth-child(3n) .candle-body {
    background: linear-gradient(90deg, #87CEEB 0%, #4169E1 50%, #87CEEB 100%);
}

.wick {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: #333;
}

.flame {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 22px;
    background: linear-gradient(180deg, #FFFF00 0%, #FFA500 50%, #FF4500 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.6), 0 0 40px rgba(255, 69, 0, 0.3);
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 1; }
    100% { transform: translateX(-50%) scale(1.1) rotate(2deg); opacity: 0.85; }
}

.candle.blown .flame {
    animation: blowOut 0.5s ease-out forwards;
}

@keyframes blowOut {
    0% { transform: translateX(-50%) scale(1); opacity: 1; }
    50% { transform: translateX(-50%) scale(1.2) translateX(10px); opacity: 0.5; }
    100% { transform: translateX(-50%) scale(0) translateX(20px); opacity: 0; }
}

.cake-top {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 70px;
    background: linear-gradient(180deg, #FFF0F5 0%, #FFB6C1 100%);
    border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px;
    box-shadow: inset 0 -5px 10px rgba(255, 105, 180, 0.2);
}

.cream-drip {
    position: absolute;
    bottom: -15px;
    width: 25px;
    height: 30px;
    background: #FFF0F5;
    border-radius: 0 0 50% 50%;
}

.drip-1 { left: 10px; height: 25px; }
.drip-2 { left: 40px; height: 35px; }
.drip-3 { left: 75px; height: 20px; }
.drip-4 { right: 75px; height: 30px; }
.drip-5 { right: 40px; height: 28px; }
.drip-6 { right: 10px; height: 32px; }

.cake-middle {
    position: absolute;
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 80px;
    background: linear-gradient(180deg, #FF69B4 0%, #FF1493 100%);
    border-radius: 10px;
    box-shadow: inset 0 -8px 15px rgba(0, 0, 0, 0.1);
}

.sprinkles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sprinkle {
    position: absolute;
    width: 8px;
    height: 3px;
    border-radius: 2px;
}

.s1 { top: 15px; left: 20px; background: #FFFF00; transform: rotate(30deg); }
.s2 { top: 25px; left: 50px; background: #00FFFF; transform: rotate(-20deg); }
.s3 { top: 40px; left: 80px; background: #90EE90; transform: rotate(45deg); }
.s4 { top: 20px; left: 120px; background: #FFFFFF; transform: rotate(-30deg); }
.s5 { top: 50px; left: 150px; background: #FFFF00; transform: rotate(15deg); }
.s6 { top: 35px; left: 180px; background: #00FFFF; transform: rotate(-45deg); }
.s7 { top: 60px; left: 40px; background: #FFFFFF; transform: rotate(60deg); }
.s8 { top: 55px; right: 30px; background: #90EE90; transform: rotate(-15deg); }

.cake-bottom {
    position: absolute;
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    height: 60px;
    background: linear-gradient(180deg, #DDA0DD 0%, #BA55D3 100%);
    border-radius: 10px 10px 15px 15px;
    box-shadow: inset 0 -8px 15px rgba(0, 0, 0, 0.1);
}

.cake-plate {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 20px;
    background: linear-gradient(180deg, #FFFFFF 0%, #E0E0E0 100%);
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cake-hint {
    color: var(--pink-dark);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    font-weight: 500;
}

.photo-wall {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent 0%, var(--cream) 50%, transparent 100%);
}

.photo-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 1.5rem;
}

.photo-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-medium);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: white;
    font-size: 0.95rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

.photo-1 { grid-column: 1; grid-row: 1 / span 2; }
.photo-2 { grid-column: 2; grid-row: 1; }
.photo-3 { grid-column: 3; grid-row: 1 / span 2; }
.photo-4 { grid-column: 2; grid-row: 2 / span 2; }
.photo-5 { grid-column: 1; grid-row: 3; }
.photo-6 { grid-column: 3; grid-row: 3; }

.cards-section {
    padding: 6rem 2rem;
}

.cards-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.card {
    perspective: 1000px;
    height: 260px;
    cursor: pointer;
    transform-style: preserve-3d;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
}

.card-front {
    gap: 1rem;
}

.card-front-1 {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
}

.card-front-2 {
    background: linear-gradient(135deg, #FFE4B5 0%, #FFD700 100%);
}

.card-front-3 {
    background: linear-gradient(135deg, #98FB98 0%, #90EE90 100%);
}

.card-front-4 {
    background: linear-gradient(135deg, #87CEEB 0%, #6A5ACD 100%);
    position: relative;
    overflow: hidden;
}

.card-front-4::before {
    content: '✦ ✧ ✦ ✧ ✦';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 5px;
    animation: twinkle 2s ease-in-out infinite;
}

.card-front-4::after {
    content: '✧ ✦ ✧ ✦ ✧';
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 5px;
    animation: twinkle 2s ease-in-out infinite 1s;
}

.card-front-5 {
    background: linear-gradient(135deg, #FFE4B5 0%, #FFA500 100%);
    position: relative;
    overflow: hidden;
}

.card-front-5::before {
    content: '✏️ 📖 ✏️';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    font-size: 0.8rem;
    letter-spacing: 10px;
    opacity: 0.5;
}

.card-emoji {
    font-size: 3rem;
}

.card-title {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.card-back {
    background: var(--white);
    transform: rotateY(180deg);
    text-align: center;
    border: 3px solid var(--pink-light);
}

.card-back p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.card-sign {
    margin-top: 1rem !important;
    font-family: 'Ma Shan Zheng', cursive;
    color: var(--pink-deep) !important;
    font-size: 1rem !important;
}

.final-section {
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
}

.final-content {
    max-width: 600px;
    margin: 0 auto;
}

.final-title {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--pink-deep);
    margin-bottom: 1rem;
}

.final-text {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.celebrate-btn {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 1.3rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.celebrate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 105, 180, 0.5);
}

.celebrate-btn:active {
    transform: translateY(0) scale(0.98);
}

.footer-decor {
    margin-top: 4rem;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    opacity: 0.7;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .photo-grid {
        max-width: 800px;
        gap: 1rem;
    }

    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 700px;
        gap: 1.2rem;
    }

    .card {
        height: 230px;
    }

    .wish-bubble {
        max-width: 600px;
        padding: 2.5rem 2rem;
    }

    .anniversary-card {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .wish-section,
    .cake-section,
    .photo-wall,
    .cards-section,
    .final-section,
    .anniversary-section {
        padding: 4rem 1.5rem;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        max-width: 100%;
        gap: 1rem;
    }

    .photo-1, .photo-2, .photo-3, .photo-4, .photo-5, .photo-6 {
        grid-column: auto;
        grid-row: auto;
        height: 160px;
    }

    .photo-caption {
        font-size: 0.85rem;
        padding: 0.8rem;
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .card {
        height: 200px;
    }

    .card-emoji {
        font-size: 2.5rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .card-back p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .card-sign {
        font-size: 0.9rem !important;
        margin-top: 0.8rem !important;
    }

    .wish-bubble {
        padding: 2rem 1.5rem;
    }

    .wish-text {
        font-size: 1.15rem;
        line-height: 2;
    }

    .wish-signature {
        font-size: 1.1rem;
    }

    .cake {
        transform: scale(0.8);
    }

    .cake-hint {
        font-size: 1rem;
    }

    .balloon {
        font-size: 2rem !important;
    }

    .balloon-6 {
        display: none;
    }

    .anniversary-card {
        padding: 2.5rem 1.5rem;
    }

    .date-value {
        font-size: 1.5rem;
    }

    .days-number {
        font-size: 3rem;
    }

    .days-label {
        font-size: 1.2rem;
    }

    .anniversary-text {
        font-size: 1.05rem;
    }

    .sky-lights .sky-light:nth-child(n+5) {
        display: none;
    }

    .final-title {
        font-size: 1.8rem;
    }

    .final-text {
        font-size: 1rem;
    }

    .celebrate-btn {
        font-size: 1.1rem;
        padding: 0.8rem 2.5rem;
    }

    .footer-decor {
        font-size: 1.2rem;
        letter-spacing: 0.3rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-name {
        font-size: 0.95rem;
    }

    .scroll-hint {
        margin-top: 3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .wish-section,
    .cake-section,
    .photo-wall,
    .cards-section,
    .final-section,
    .anniversary-section {
        padding: 3rem 1rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .photo-item {
        height: 200px !important;
    }

    .cards-container {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
        gap: 1.2rem;
    }

    .card {
        height: 220px;
    }

    .card-emoji {
        font-size: 2.8rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .wish-bubble {
        padding: 1.8rem 1.2rem;
        border-radius: 20px;
    }

    .wish-bubble::before {
        top: -25px;
        left: 15px;
        font-size: 2.2rem;
    }

    .wish-text {
        font-size: 1.05rem;
        line-height: 1.9;
    }

    .wish-signature {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    .cake {
        transform: scale(0.7);
    }

    .cake-section .section-subtitle {
        font-size: 0.9rem;
    }

    .cake-hint {
        font-size: 0.9rem;
    }

    .balloon {
        font-size: 1.5rem !important;
    }

    .balloon-4, .balloon-5, .balloon-6 {
        display: none;
    }

    .anniversary-card {
        padding: 2rem 1.2rem;
        border-radius: 20px;
    }

    .anniversary-card::before,
    .anniversary-card::after {
        font-size: 1.5rem;
    }

    .date-label {
        font-size: 0.9rem;
    }

    .date-value {
        font-size: 1.3rem;
    }

    .days-number {
        font-size: 2.5rem;
        text-shadow: 2px 2px 0px var(--pink-light);
    }

    .days-label {
        font-size: 1rem;
    }

    .anniversary-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .sky-stars {
        gap: 12px;
    }

    .floating-hearts .heart:nth-child(n+5) {
        display: none;
    }

    .sky-lights .sky-light:nth-child(n+4) {
        display: none;
    }

    .final-title {
        font-size: 1.5rem;
    }

    .final-text {
        font-size: 0.9rem;
    }

    .celebrate-btn {
        font-size: 1rem;
        padding: 0.7rem 2rem;
    }

    .footer-decor {
        font-size: 1rem;
        letter-spacing: 0.2rem;
        margin-top: 2.5rem;
    }

    .footer-decor span:nth-child(n+8) {
        display: none;
    }
}
