* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Animated hearts background */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hearts-background::before,
.hearts-background::after {
    content: '💕';
    position: absolute;
    font-size: 30px;
    animation: float 15s infinite;
    opacity: 0.3;
}

.hearts-background::before {
    left: 10%;
    animation-delay: 0s;
}

.hearts-background::after {
    content: '💖';
    right: 15%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10vh) rotate(180deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 40px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-style: italic;
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Love Counter Section */
.love-counter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.love-counter h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.counter-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.counter-value {
    font-size: 3rem;
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.counter-label {
    font-size: 1.2rem;
    margin-top: 10px;
    opacity: 0.9;
}

.since-date {
    margin-top: 20px;
    font-size: 1.1rem;
    opacity: 0.8;
    font-style: italic;
}

/* Photo Gallery */
.photo-gallery {
    margin: 60px 0;
    text-align: center;
}

.photo-gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.photo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.photo-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay p {
    font-size: 1.2rem;
    font-style: italic;
}

/* Reasons Grid */
.love-letters {
    margin: 60px 0;
    text-align: center;
}

.love-letters h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.reason-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reason-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.reason-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.reason-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Love Message */
.love-message {
    margin: 60px 0;
}

.message-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-card h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.message-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
}

.signature {
    font-style: italic;
    margin-top: 40px;
    font-size: 1.3rem !important;
    color: #ffeb3b;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.heart-animation {
    margin-bottom: 20px;
}

.heart {
    font-size: 3rem;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
}

footer p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .love-counter h2,
    .photo-gallery h2,
    .love-letters h2 {
        font-size: 1.8rem;
    }

    .counter-value {
        font-size: 2rem;
    }

    .message-card {
        padding: 30px 20px;
    }

    .message-card h2 {
        font-size: 1.8rem;
    }

    .message-card p {
        font-size: 1rem;
    }

    .photo-card img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .counter-display {
        gap: 15px;
    }

    .counter-item {
        min-width: 90px;
    }

    .counter-value {
        font-size: 1.5rem;
    }

    .counter-label {
        font-size: 0.9rem;
    }
}
