/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-pink: #ff1493;
    --light-pink: #ffb6d9;
    --dark-pink: #c71585;
    --rose-gold: #b76e79;
    --cream: #fff8f0;
    --text-dark: #333;
    --gold: #ffd700;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffe0ec 0%, #fff0f5 50%, #ffe4e1 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ===== Background Animation ===== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #ffe0ec 0%, #fff0f5 50%, #ffe4e1 100%);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 105, 180, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 192, 203, 0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 20, 147, 0.8), transparent);
    background-size: 200px 200px;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(ellipse 100px 50px at 20% 80%, rgba(255, 20, 147, 0.1), transparent),
        radial-gradient(ellipse 100px 50px at 80% 20%, rgba(255, 105, 180, 0.1), transparent);
    background-size: 300px 300px;
}

/* ===== Container ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 10;
    position: relative;
}

/* ===== Header ===== */
.header {
    text-align: center;
    padding: 3rem 0 2rem;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 4rem;
    color: var(--primary-pink);
    text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.2);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--dark-pink);
    font-style: italic;
    font-weight: 300;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Floating Hearts ===== */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.heart-1 { left: 10%; animation-delay: 0s; }
.heart-2 { left: 20%; animation-delay: 2s; }
.heart-3 { left: 50%; animation-delay: 4s; }
.heart-4 { right: 20%; animation-delay: 1s; }
.heart-5 { right: 10%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-100px) rotate(10deg); opacity: 0.8; }
}

/* ===== Main Content ===== */
.main {
    z-index: 10;
    position: relative;
}

/* ===== Profile Card ===== */
.profile-card {
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.9), rgba(255, 228, 225, 0.9));
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.2);
    text-align: center;
    border: 3px solid var(--primary-pink);
    animation: slideUp 0.8s ease-out;
}

.profile-image {
    margin-bottom: 2rem;
}

.frame {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border: 4px solid var(--primary-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe0ec, #fff0f5);
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.3), inset 0 0 20px rgba(255, 105, 180, 0.2);
    animation: spin 20s infinite linear;
    overflow: hidden;
}

.mom-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); box-shadow: 0 0 30px rgba(255, 20, 147, 0.3), inset 0 0 20px rgba(255, 105, 180, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 105, 180, 0.5), inset 0 0 20px rgba(255, 20, 147, 0.3); }
    100% { transform: rotate(360deg); box-shadow: 0 0 30px rgba(255, 20, 147, 0.3), inset 0 0 20px rgba(255, 105, 180, 0.2); }
}

.name {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.description {
    font-size: 1.3rem;
    color: var(--dark-pink);
    font-style: italic;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Love Letter ===== */
.love-letter {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.15);
    border-left: 5px solid var(--primary-pink);
    animation: slideUp 1s ease-out 0.2s both;
}

.letter-header {
    font-size: 1.5rem;
    color: var(--primary-pink);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

.letter-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.signature {
    margin-top: 2rem;
    font-style: italic;
    color: var(--primary-pink);
    font-size: 1.1rem;
}

/* ===== Reasons Section ===== */
.reasons {
    margin: 3rem 0;
    animation: slideUp 1s ease-out 0.4s both;
}

.reasons h3,
.gallery h3,
.wishes h3,
.interactive h3 {
    font-size: 2.5rem;
    color: var(--primary-pink);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(255, 20, 147, 0.1);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.reason-card {
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.8), rgba(255, 228, 225, 0.8));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.15);
    border: 2px solid var(--light-pink);
    transition: all 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 20, 147, 0.3);
    border-color: var(--primary-pink);
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.9), rgba(255, 192, 203, 0.9));
}

.reason-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.reason-card p {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.1rem;
}

/* ===== Gallery ===== */
.gallery {
    margin: 3rem 0;
    animation: slideUp 1s ease-out 0.6s both;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.gallery-item {
    text-align: center;
    animation: popIn 0.5s ease-out backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.7s; }
.gallery-item:nth-child(2) { animation-delay: 0.8s; }
.gallery-item:nth-child(3) { animation-delay: 0.9s; }
.gallery-item:nth-child(4) { animation-delay: 1s; }

.gallery-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1rem;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--light-pink), rgba(255, 192, 203, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.2);
    border: 3px solid var(--primary-pink);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.4);
}

.gallery-item p {
    color: var(--primary-pink);
    font-weight: 600;
    font-size: 1.1rem;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* ===== Wishes Section ===== */
.wishes {
    margin: 3rem 0;
    animation: slideUp 1s ease-out 0.8s both;
}

.wishes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.wish {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.1), rgba(255, 105, 180, 0.1));
    border: 2px solid var(--primary-pink);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 20, 147, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wish::before {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.wish:hover {
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.2), rgba(255, 105, 180, 0.2));
    transform: translateY(-8px);
    border-color: var(--dark-pink);
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.2);
}

.wish:hover::before {
    top: -20px;
    right: -20px;
    opacity: 0.6;
}

.wish p {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== Interactive Section ===== */
.interactive {
    margin: 3rem 0;
    text-align: center;
    animation: slideUp 1s ease-out 1s both;
}

.celebration-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(255, 20, 147, 0.3);
    transition: all 0.3s ease;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.celebration-btn:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 15px 60px rgba(255, 20, 147, 0.5);
    letter-spacing: 2px;
}

.celebration-btn:active {
    transform: scale(0.95);
}

.confetti-container {
    margin: 2rem 0;
    min-height: 50px;
}

/* ===== Footer Message ===== */
.footer-message {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 15px 60px rgba(255, 20, 147, 0.3);
    animation: slideUp 1s ease-out 1.2s both;
}

.footer-message h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-message p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.love-counter {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.infinite {
    font-size: 2.5rem;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .reasons h3,
    .gallery h3,
    .wishes h3,
    .interactive h3 {
        font-size: 1.8rem;
    }

    .profile-card {
        padding: 2rem;
    }

    .frame {
        width: 150px;
        height: 150px;
    }

    .name {
        font-size: 2rem;
    }

    .footer-message h2 {
        font-size: 2rem;
    }

    .celebration-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .frame {
        width: 120px;
        height: 120px;
    }

    .love-letter {
        padding: 1.5rem;
    }

    .letter-content p {
        font-size: 1rem;
    }

    .reasons-grid,
    .wishes-container {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}