/* ==================== RESET & BASICS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4E1 50%, #FFF5EE 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 182, 193, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(199, 21, 133, 0.2);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-title {
    font-size: 1.8rem;
    color: #C71585;
    font-weight: 700;
    letter-spacing: 1px;
    animation: float 3s ease-in-out infinite;
}

.music-btn {
    background: linear-gradient(135deg, #FF69B4 0%, #C71585 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 21, 133, 0.3);
}

.music-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(199, 21, 133, 0.5);
}

.music-btn:active {
    transform: translateY(0);
}

.music-icon {
    margin-right: 0.5rem;
}

/* ==================== LANDING PAGE ==================== */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFF0F5 50%, #FFE4E1 100%);
}

.landing-content {
    text-align: center;
    z-index: 10;
    max-width: 600px;
}

.landing h2 {
    font-size: 3.5rem;
    color: #C71585;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(199, 21, 133, 0.2);
    letter-spacing: -1px;
}

.landing p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.heart-decoration {
    font-size: 3rem;
    margin: 2rem 0;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.cta-btn {
    background: linear-gradient(135deg, #FF69B4 0%, #C71585 100%);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(199, 21, 133, 0.4);
    margin-top: 1rem;
}

.cta-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 12px 35px rgba(199, 21, 133, 0.6);
}

.cta-btn:active {
    transform: scale(0.98);
}

.floating-decoration {
    position: absolute;
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 300px;
    top: 50px;
    right: 0;
    pointer-events: none;
}

.flower {
    font-size: 3rem;
    animation: float 4s ease-in-out infinite;
}

.flower:nth-child(1) {
    animation-delay: 0s;
}

.flower:nth-child(2) {
    animation-delay: 0.5s;
}

.flower:nth-child(3) {
    animation-delay: 1s;
}

/* ==================== COUNTDOWN SECTION ==================== */
.countdown-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #FFF5EE 0%, #FFE4E1 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    color: #C71585;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 1px 1px 2px rgba(199, 21, 133, 0.1);
}

.countdown-subtitle {
    font-size: 1.2rem;
    color: #FF69B4;
    margin-bottom: 3rem;
    font-style: italic;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(199, 21, 133, 0.2);
    min-width: 120px;
    border: 3px solid #FFB6C1;
    animation: slideUp 0.6s ease;
}

.countdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

.countdown-item:nth-child(3) {
    animation-delay: 0.2s;
}

.countdown-item:nth-child(5) {
    animation-delay: 0.3s;
}

.countdown-item:nth-child(7) {
    animation-delay: 0.4s;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF69B4 0%, #C71585 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-label {
    font-size: 0.9rem;
    color: #FF69B4;
    font-weight: 600;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 2rem;
    color: #FF69B4;
    font-weight: bold;
    animation: pulse 1.5s ease-in-out infinite;
}

.heart-rain-btn {
    background: linear-gradient(135deg, #FF1493 0%, #C71585 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(199, 21, 133, 0.4);
    margin-top: 2rem;
}

.heart-rain-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(199, 21, 133, 0.6);
}

.heart-rain-btn:active {
    transform: translateY(0);
}

/* ==================== GALLERY SECTION ==================== */
.gallery-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFF0F5 100%);
    text-align: center;
}

.gallery-subtitle {
    font-size: 1.1rem;
    color: #FF69B4;
    margin-bottom: 3rem;
    font-style: italic;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    animation: fadeInScale 0.6s ease;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 250px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(199, 21, 133, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 4px solid white;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:nth-child(1) .gallery-image img {
    object-position: center 55%;
}

.gallery-image:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(199, 21, 133, 0.4);
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 182, 193, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-image::before {
    opacity: 1;
}

.image-placeholder {
    font-size: 4rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-placeholder {
    transform: scale(1.2);
}

.image-caption {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #C71585;
    font-weight: 600;
}

/* ==================== LETTER SECTION ==================== */
.letter-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #FFF5EE 0%, #FFE4E1 100%);
    text-align: center;
}

.letter-container {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInScale 0.8s ease;
}

.letter {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(199, 21, 133, 0.15);
    border-left: 6px solid #FF69B4;
    position: relative;
    font-family: 'Georgia', serif;
}

.letter::before {
    content: '💌';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
}

.letter-header {
    font-size: 1.3rem;
    color: #C71585;
    margin-bottom: 2rem;
    font-weight: 600;
}

.letter-content {
    text-align: left;
    min-height: 200px;
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.letter-content p {
    margin-bottom: 1rem;
    color: #444;
}

.letter-signature {
    text-align: right;
    margin-top: 2rem;
    color: #FF69B4;
    font-weight: 600;
    font-size: 1.1rem;
}

.letter-signature p {
    margin: 0.3rem 0;
}

/* ==================== MESSAGE SECTION ==================== */
.message-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFF0F5 100%);
    text-align: center;
}

.message-container {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInScale 0.8s ease;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-form textarea {
    padding: 1.5rem;
    border: 2px solid #FFB6C1;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.message-form textarea:focus {
    outline: none;
    border-color: #FF69B4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, #FF69B4 0%, #C71585 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(199, 21, 133, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(199, 21, 133, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.success-message {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    animation: slideUp 0.5s ease;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, #FFB6C1 0%, #FF69B4 50%, #C71585 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

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

.footer-text {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-heart {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.footer-small {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* ==================== BACKGROUND ELEMENTS ==================== */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 2rem;
    animation: heartFloat 8s ease-in infinite;
    opacity: 0.6;
}

.falling-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.petal {
    position: absolute;
    font-size: 1.5rem;
    animation: fallDown 6s linear infinite;
    opacity: 0.7;
}

.background-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-flower {
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
}

/* ==================== ANIMATIONS ==================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
}

@keyframes heartFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fallDown {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

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

@keyframes fadeInScale {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes flip {
    0% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fade-in 1s ease;
}

.delay-1 {
    animation-delay: 0.3s;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .landing h2 {
        font-size: 2rem;
    }

    .landing p {
        font-size: 1rem;
    }

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

    .countdown-container {
        gap: 0.5rem;
    }

    .countdown-item {
        padding: 1rem;
        min-width: 80px;
    }

    .countdown-value {
        font-size: 2rem;
        min-height: 50px;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .letter {
        padding: 1.5rem;
    }

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

    .music-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .cta-btn,
    .heart-rain-btn,
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .landing h2 {
        font-size: 1.5rem;
    }

    .landing p {
        font-size: 0.9rem;
    }

    .heart-decoration {
        font-size: 2rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }

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

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

    .gallery-container {
        grid-template-columns: 1fr;
    }
}