/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(180deg, #1a0a12 0%, #2d0f1a 25%, #3d1525 50%, #2d0f1a 75%, #1a0a12 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Falling Petals */
.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #ec4899, #be185d);
    border-radius: 50% 0 50% 50%;
    animation: petal-fall 10s linear infinite;
    opacity: 0.8;
}

.petal:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 8s; }
.petal:nth-child(2) { left: 15%; animation-delay: 2s; animation-duration: 12s; }
.petal:nth-child(3) { left: 25%; animation-delay: 4s; animation-duration: 9s; }
.petal:nth-child(4) { left: 35%; animation-delay: 1s; animation-duration: 11s; }
.petal:nth-child(5) { left: 45%; animation-delay: 3s; animation-duration: 10s; }
.petal:nth-child(6) { left: 55%; animation-delay: 5s; animation-duration: 13s; }
.petal:nth-child(7) { left: 65%; animation-delay: 2.5s; animation-duration: 8s; }
.petal:nth-child(8) { left: 75%; animation-delay: 4.5s; animation-duration: 12s; }
.petal:nth-child(9) { left: 85%; animation-delay: 1.5s; animation-duration: 9s; }
.petal:nth-child(10) { left: 95%; animation-delay: 3.5s; animation-duration: 11s; }

@keyframes petal-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating Flowers */
.flower {
    position: absolute;
    animation: float-slow 8s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.4));
}

.flower-1 { left: 5%; top: 15%; animation-delay: 0s; }
.flower-2 { right: 8%; top: 25%; animation-delay: 1.5s; }
.flower-3 { left: 12%; top: 60%; animation-delay: 3s; }
.flower-4 { right: 15%; top: 70%; animation-delay: 4.5s; }
.flower-5 { left: 20%; top: 85%; animation-delay: 6s; }

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(3deg);
    }
    50% {
        transform: translateY(-25px) translateX(-5px) rotate(-3deg);
    }
    75% {
        transform: translateY(-10px) translateX(15px) rotate(2deg);
    }
}

/* Butterflies */
.butterfly {
    position: absolute;
    animation: butterfly-fly 15s linear infinite;
}

.butterfly-1 { top: 10%; left: 10%; animation-delay: 0s; }
.butterfly-2 { top: 30%; left: 30%; animation-delay: 5s; animation-duration: 18s; }
.butterfly-3 { top: 50%; left: 60%; animation-delay: 10s; animation-duration: 12s; }
.butterfly-4 { top: 70%; left: 80%; animation-delay: 3s; animation-duration: 20s; }

.wing-left {
    animation: wing-flap 0.2s ease-in-out infinite;
    transform-origin: 50px 50px;
}

.wing-right {
    animation: wing-flap 0.2s ease-in-out infinite;
    transform-origin: 50px 50px;
}

@keyframes butterfly-fly {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(100px, -80px) rotate(15deg) scale(1.1);
    }
    50% {
        transform: translate(200px, -40px) rotate(-10deg) scale(1);
    }
    75% {
        transform: translate(150px, -120px) rotate(20deg) scale(1.05);
    }
    100% {
        transform: translate(300px, 0) rotate(0deg) scale(1);
    }
}

@keyframes wing-flap {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(0.3);
    }
}

/* Floating Hearts */
.floating-heart {
    position: absolute;
    color: #ec4899;
    font-size: 20px;
    animation: float 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px);
        opacity: 1;
    }
}

/* Stars */
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crown {
    color: #f472b6;
    font-size: 24px;
}

.logo-text {
    font-family: 'Dancing Script', cursive;
    color: #fbcfe8;
    font-size: 20px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: #fbcfe8;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active {
    background: #ec4899;
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.sparkle {
    color: #fbbf24;
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
    animation: sparkle 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ec4899, #f472b6, #ec4899, #be185d, #ec4899);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    margin-bottom: 20px;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.heart-icon {
    color: #ec4899;
    font-size: 32px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.heart-icon:last-child {
    animation-delay: 0.2s;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.2);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(1);
    }
}

.subtitle-text {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #fbcfe8;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(251, 207, 232, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #ec4899, #be185d);
    color: white;
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.6);
}

.heart-small {
    font-size: 18px;
}

.btn-secondary {
    border: 2px solid #ec4899;
    color: #fbcfe8;
    background: transparent;
}

.btn-secondary:hover {
    background: rgba(236, 72, 153, 0.2);
    color: white;
}

.scroll-down {
    margin-top: 60px;
}

.scroll-arrow {
    color: #f472b6;
    font-size: 24px;
    text-decoration: none;
    animation: bounce 2s infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-7px);
    }
}

/* Letter Section */
.letter-section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.letter-container {
    max-width: 800px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.heart-big {
    color: #ec4899;
    font-size: 40px;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    color: #fbcfe8;
    font-weight: 700;
}

.letter-paper {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe4ed 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(236, 72, 153, 0.1);
    position: relative;
}

.letter-border {
    border: 2px solid rgba(236, 72, 153, 0.3);
    border-radius: 15px;
    padding: 30px;
}

.letter-greeting {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #be185d;
    margin-bottom: 25px;
}

.letter-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.letter-body p {
    margin-bottom: 20px;
}

.letter-highlight {
    color: #be185d;
    font-weight: 600;
}

.letter-signature {
    text-align: right;
    margin-top: 30px;
}

.signature-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #be185d;
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: #ec4899;
    margin-top: 10px;
}

.deco-heart {
    position: absolute;
    color: #f472b6;
    font-size: 30px;
    opacity: 0.5;
}

.heart-tl {
    top: -15px;
    left: -15px;
}

.heart-br {
    bottom: -15px;
    right: -15px;
}

/* Gallery Section */
.gallery-section {
    min-height: 100vh;
    padding: 100px 20px;
    position: relative;
    z-index: 10;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sparkle-big {
    color: #fbbf24;
    font-size: 32px;
    display: inline-block;
    margin-bottom: 15px;
    animation: sparkle 2s ease-in-out infinite;
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(251, 207, 232, 0.8);
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.4);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
}

.gallery-heart {
    color: #f472b6;
    font-size: 20px;
}

.gallery-note {
    text-align: center;
    color: rgba(251, 207, 232, 0.5);
    font-size: 0.9rem;
    margin-top: 30px;
}

/* Footer */
.footer {
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

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

.footer-hearts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.heart-pulse {
    color: #ec4899;
    font-size: 28px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #fbcfe8;
    margin-bottom: 10px;
}

.footer-subtitle {
    color: rgba(236, 72, 153, 0.6);
    font-size: 0.95rem;
}

.footer-hearts-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.heart-small-pulse {
    color: #ec4899;
    font-size: 16px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.heart-small-pulse:nth-child(2) { animation-delay: 0.2s; }
.heart-small-pulse:nth-child(3) { animation-delay: 0.4s; }
.heart-small-pulse:nth-child(4) { animation-delay: 0.6s; }
.heart-small-pulse:nth-child(5) { animation-delay: 0.8s; }

/* Music Player */
.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(190, 24, 93, 0.3));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 20px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-icon {
    width: 40px;
    height: 40px;
    background: #ec4899;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.player-icon.playing {
    animation: pulse 1s ease-in-out infinite;
}

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

.player-text {
    display: none;
}

@media (min-width: 500px) {
    .player-text {
        display: block;
    }
}

.player-title {
    color: #fbcfe8;
    font-size: 14px;
    font-weight: 500;
}

.player-subtitle {
    color: rgba(251, 207, 232, 0.6);
    font-size: 12px;
}

.player-controls {
    display: flex;
    gap: 8px;
}

.btn-play,
.btn-mute {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-play {
    background: #ec4899;
    color: white;
}

.btn-play:hover {
    background: #f472b6;
}

.btn-mute {
    background: rgba(236, 72, 153, 0.3);
    color: #fbcfe8;
}

.btn-mute:hover {
    background: rgba(236, 72, 153, 0.5);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0a12;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ec4899, #be185d);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f472b6, #ec4899);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .subtitle-text {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .letter-paper {
        padding: 25px;
    }
    
    .letter-border {
        padding: 20px;
    }
    
    .letter-greeting {
        font-size: 2rem;
    }
    
    .letter-body {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .crown {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .music-player {
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: space-between;
    }
}
