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

:root {
    --rose-pink: #ff6b9d;
    --deep-rose: #c44569;
    --soft-pink: #ffdde1;
    --light-pink: #fff0f3;
    --dark-text: #2d3436;
    --gold: #f9ca24;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--soft-pink) 100%);
    color: var(--dark-text);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Floating Hearts */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.floating-hearts span {
    position: absolute;
    font-size: 2rem;
    animation: float 20s infinite linear;
    opacity: 0.6;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--rose-pink) 0%, var(--deep-rose) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

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

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 2rem;
    color: white;
    opacity: 0.8;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Message Section */
.message-section {
    padding: 6rem 0;
}

.message-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(255,107,157,0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.photo-frame {
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}

.photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.couple-photo {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 8px solid white;
}

.frame-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 3rem;
    animation: pulse 2s infinite;
}

.message-text h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--deep-rose);
    margin-bottom: 1.5rem;
}

.love-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.quote-box {
    background: linear-gradient(135deg, var(--soft-pink) 0%, var(--light-pink) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid var(--rose-pink);
}

.quote-box p {
    font-style: italic;
    color: var(--deep-rose);
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
    padding: 6rem 0;
    background: white;
}

.gallery-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--deep-rose);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    perspective: 1000px;
}

.photo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(255,107,157,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(255,107,157,0.2);
}

.photo-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-caption {
    padding: 1.5rem;
    text-align: center;
}

.photo-caption .emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.photo-caption p {
    color: var(--deep-rose);
    font-weight: 600;
}

/* Love Letter Section */
.love-letter {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--soft-pink) 100%);
}

.letter-paper {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    border-radius: 5px;
    box-shadow: 
        0 1px 1px rgba(0,0,0,0.1),
        0 10px 30px rgba(0,0,0,0.1),
        0 20px 40px rgba(255,107,157,0.1);
    position: relative;
    transform: rotate(-1deg);
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(255,107,157,0.1), transparent);
    border-radius: 5px 5px 0 0;
}

.wax-seal {
    position: absolute;
    top: -30px;
    right: 50px;
    font-size: 3rem;
    background: var(--rose-pink);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255,107,157,0.4);
}

.letter-paper h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--deep-rose);
    margin-bottom: 2rem;
    text-align: center;
}

.letter-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

.letter-content p {
    margin-bottom: 1.5rem;
}

.dear {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--deep-rose);
}

.signature {
    margin-top: 2rem;
    text-align: right;
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--deep-rose);
}

/* Countdown Section */
.countdown-section {
    padding: 6rem 0;
    background: white;
    text-align: center;
}

.countdown-section h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--deep-rose);
    margin-bottom: 2rem;
}

.countdown-box {
    background: linear-gradient(135deg, var(--rose-pink) 0%, var(--deep-rose) 100%);
    padding: 3rem;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 20px 60px rgba(255,107,157,0.3);
}

.countdown-text {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.heart-pulse {
    font-size: 4rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* Footer */
.footer {
    background: var(--dark-text);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-hearts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-hearts span {
    animation: float 3s ease-in-out infinite;
}

.footer-hearts span:nth-child(2) {
    animation-delay: 0.5s;
}

.footer-hearts span:nth-child(3) {
    animation-delay: 1s;
}

.footer-hearts span:nth-child(4) {
    animation-delay: 1.5s;
}

.footer-hearts span:nth-child(5) {
    animation-delay: 2s;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .message-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .letter-paper {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .wax-seal {
        right: 20px;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--rose-pink);
    color: white;
}
