/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #ffe4f0 0%, #ffd6e5 20%, #ffc8dc 40%, #ffb3d1 60%, #ffa6cb 80%, #ff99c2 100%);
    position: relative;
    color: #5a2d3e;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 182, 193, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 192, 203, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== FLOATING HEARTS BACKGROUND ===== */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    animation: floatUp linear infinite;
    opacity: 0.3;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ===== CUTE FLOATING STICKER ===== */
.floating-sticker {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: transparent;
    animation: floatBounce 3s ease-in-out infinite;
}

.floating-sticker:hover {
    transform: scale(1.2) rotate(10deg);
}

.floating-sticker:active {
    transform: scale(0.9);
}

.sticker-emoji {
    font-size: 60px;
    animation: spinGlow 4s linear infinite;
    filter: drop-shadow(0 4px 15px rgba(255, 105, 180, 0.6));
    user-select: none;
}

@keyframes floatBounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% { 
        transform: translateY(-15px) rotate(5deg);
    }
    50% { 
        transform: translateY(-5px) rotate(-5deg);
    }
    75% { 
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes spinGlow {
    0%, 100% { 
        filter: drop-shadow(0 4px 15px rgba(255, 105, 180, 0.6));
    }
    25% { 
        filter: drop-shadow(0 4px 20px rgba(255, 20, 147, 0.8));
    }
    50% { 
        filter: drop-shadow(0 4px 25px rgba(255, 182, 193, 0.9));
    }
    75% { 
        filter: drop-shadow(0 4px 20px rgba(255, 105, 180, 0.7));
    }
}

/* ===== MUSIC INDICATOR ===== */
.music-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 240, 245, 0.25);
    backdrop-filter: saturate(180%) brightness(105%);
    -webkit-backdrop-filter: saturate(180%) brightness(105%);
    padding: 12px 22px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 16px rgba(255, 105, 180, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulseGlow 2s ease-in-out infinite;
}

.music-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    border-radius: 100px 100px 0 0;
    pointer-events: none;
}

.music-indicator.playing {
    background: rgba(255, 192, 220, 0.3);
    backdrop-filter: saturate(200%) brightness(108%);
    -webkit-backdrop-filter: saturate(200%) brightness(108%);
    border-color: rgba(255, 182, 193, 0.5);
    box-shadow: 
        0 6px 20px rgba(255, 20, 147, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.music-indicator.playing .music-text {
    color: #d63384;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.music-icon {
    font-size: 19px;
    animation: musicNote 1s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(255, 105, 180, 0.3));
}

.music-text {
    font-size: 13px;
    font-weight: 700;
    color: #d63384;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

@keyframes musicNote {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.05); }
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(255, 105, 180, 0.2),
            0 2px 8px rgba(255, 20, 147, 0.15),
            inset 0 1px 1px rgba(255, 255, 255, 0.6),
            inset 0 -1px 1px rgba(255, 192, 203, 0.2);
    }
    50% { 
        box-shadow: 
            0 10px 40px rgba(255, 105, 180, 0.3),
            0 4px 12px rgba(255, 20, 147, 0.25),
            inset 0 1px 1px rgba(255, 255, 255, 0.7),
            inset 0 -1px 1px rgba(255, 192, 203, 0.3);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, 
        rgba(255, 182, 193, 0.4) 0%, 
        rgba(255, 192, 203, 0.3) 50%, 
        rgba(255, 228, 236, 0.2) 100%
    );
    overflow: hidden;
}

.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ff69b4;
    border-radius: 50%;
    animation: sparkleAnim 2s ease-in-out infinite;
}

@keyframes sparkleAnim {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.click-heart {
    display: inline-block;
    cursor: pointer;
    margin: 20px 0 30px 0;
    transition: all 0.3s ease;
    position: relative;
}

.click-heart:hover {
    transform: scale(1.1);
}

.click-heart:active {
    transform: scale(0.95);
}

.heart-icon {
    font-size: 80px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.click-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #d63384;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
    animation: pulseText 1.5s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(-5px); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.15); }
}

.title-main {
    font-family: 'Sacramento', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #d63384;
    text-shadow: 2px 2px 8px rgba(214, 51, 132, 0.2);
    margin-bottom: 15px;
    animation: fadeInDown 1.5s ease-out;
    line-height: 1.2;
}

.subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: #8b3a62;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto 40px;
    animation: fadeInUp 1.5s ease-out 0.3s both;
    line-height: 1.6;
}

.scroll-hint {
    animation: fadeInUp 1.5s ease-out 0.6s both;
}

.scroll-hint span {
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    color: #d63384;
    font-weight: 600;
    letter-spacing: 2px;
    animation: bounceDown 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== LETTER SECTION ===== */
.letter-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.letter-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 60px rgba(255, 105, 180, 0.25),
        0 8px 32px rgba(255, 20, 147, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.9),
        inset 0 -1px 1px rgba(255, 182, 193, 0.3);
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease;
}

.letter-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.letter-decoration {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: #ff69b4;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(255, 105, 180, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: heartbeat 1.5s ease-in-out infinite;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #d63384;
    text-align: center;
    margin-bottom: 30px;
}

.letter-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    line-height: 2;
    color: #6b3a5a;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.letter-signature {
    font-family: 'Sacramento', cursive;
    font-size: 1.8rem;
    color: #d63384;
    text-align: right;
    margin-top: 30px;
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    color: #ff1493;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.3);
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.gallery-subtitle {
    text-align: center;
    font-family: 'Quicksand', sans-serif;
    color: #8b3a62;
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.photo-card {
    transform: translateY(40px);
    opacity: 0;
    transition: all 0.8s ease;
}

.photo-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.photo-card:nth-child(2) { transition-delay: 0.2s; }
.photo-card:nth-child(3) { transition-delay: 0.4s; }

.photo-frame {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-radius: 20px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 
        0 10px 40px rgba(255, 105, 180, 0.3),
        0 4px 20px rgba(255, 20, 147, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #ff69b4, #ff1493, #ff69b4) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-frame:hover::before {
    opacity: 1;
}

.photo-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(255, 105, 180, 0.45),
        0 10px 30px rgba(255, 20, 147, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.photo-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
    transition: transform 0.4s ease;
}

.photo-frame:hover .photo-img {
    transform: scale(1.05);
}

.photo-caption {
    font-family: 'Dancing Script', cursive;
    text-align: center;
    color: #d63384;
    font-size: 1.2rem;
    margin-top: 12px;
    font-weight: 700;
}

/* ===== MILESTONE SECTION ===== */
.milestone-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.milestone-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-radius: 25px;
    padding: 40px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 10px 40px rgba(255, 105, 180, 0.25),
        0 4px 20px rgba(255, 20, 147, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.4s ease;
    transform: translateY(30px);
    opacity: 0;
}

.milestone-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.milestone-card:nth-child(2) { transition-delay: 0.15s; }
.milestone-card:nth-child(3) { transition-delay: 0.3s; }

.milestone-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 50px rgba(255, 105, 180, 0.4),
        0 10px 30px rgba(255, 20, 147, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.milestone-number {
    font-family: 'Sacramento', cursive;
    font-size: 3.5rem;
    color: #d63384;
    line-height: 1;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff69b4, #d63384);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.milestone-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: #8b3a62;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(255, 182, 193, 0.3));
}

.footer-hearts {
    font-size: 24px;
    margin: 10px 0;
    letter-spacing: 10px;
    animation: heartbeat 2s ease-in-out infinite;
}

.footer-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #d63384;
    margin: 15px 0;
}

.footer-date {
    font-family: 'Sacramento', cursive;
    font-size: 2rem;
    color: #a83279;
    margin-top: 10px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
    }

    .photo-img {
        height: 280px;
    }

    .milestone-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
    }

    .letter-card {
        padding: 40px 25px;
        margin: 0 15px;
    }

    .floating-sticker {
        bottom: 15px;
        right: 15px;
    }

    .sticker-emoji {
        font-size: 45px;
    }

    .music-indicator {
        top: 15px;
        right: 15px;
        padding: 10px 18px;
        backdrop-filter: blur(25px) saturate(200%) brightness(110%);
        -webkit-backdrop-filter: blur(25px) saturate(200%) brightness(110%);
    }

    .music-text {
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .music-icon {
        font-size: 16px;
    }

    .hero-content {
        padding: 15px;
    }

    .heart-icon {
        font-size: 60px;
    }

    .click-text {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }

    .milestone-number {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .letter-text {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .photo-img {
        height: 220px;
    }

    .gallery-subtitle {
        font-size: 0.95rem;
    }

    .milestone-card {
        padding: 30px 15px;
    }

    .footer-text {
        font-size: 1.2rem;
    }

    .footer-date {
        font-size: 1.5rem;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #ffe4ec;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff69b4, #d63384);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff1493, #c72c78);
}

/* ===== SELECTION COLOR ===== */
::selection {
    background: #ff69b4;
    color: white;
}
