* {
    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 50%, #f093fb 100%);
    background-attachment: fixed;
    color: #333;
    overflow-x: hidden;
    position: relative;
}

/* Floating Hearts Background */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    width: 2rem;
    height: 2rem;
    animation: float 6s infinite ease-in-out;
    opacity: 0.6;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart::before {
    content: "❤️";
}

.heart:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.heart:nth-child(2) { left: 80%; top: 60%; animation-delay: 1s; }
.heart:nth-child(3) { left: 50%; top: 10%; animation-delay: 2s; }
.heart:nth-child(4) { left: 20%; top: 80%; animation-delay: 3s; }
.heart:nth-child(5) { left: 90%; top: 30%; animation-delay: 4s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-30px) translateX(15px);
    }
    50% {
        transform: translateY(-60px) translateX(-15px);
    }
    75% {
        transform: translateY(-30px) translateX(10px);
    }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
.header {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
}

.header-content {
    animation: slideDown 0.8s ease-out;
}

.main-title {
    font-size: 3.5rem;
    color: #d946a6;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.heart-icon {
    display: inline-block;
    animation: heartBeat 1.2s infinite;
    margin: 0 1rem;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
}

.subtitle {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Love Letter Section */
.love-letter {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-left: 5px solid #d946a6;
}

.letter-content {
    max-width: 800px;
    margin: 0 auto;
}

.letter-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin: 1.2rem 0;
    text-align: justify;
}

.signature {
    font-size: 1.3rem;
    color: #d946a6;
    font-style: italic;
    font-weight: 600;
}

/* Statistics Section */
.statistics {
    margin: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: white;
    margin: 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #d946a6;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

/* Timeline Section */
.timeline-section {
    margin: 3rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item {
    margin: 2rem 0;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 50%;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
    margin-right: 0;
    padding-left: 2rem;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #d946a6;
    border: 4px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    top: 0;
    z-index: 2;
    box-shadow: 0 0 0 10px rgba(217, 70, 166, 0.2);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: #d946a6;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 0;
        text-align: left;
    }
}

/* Gallery Section */
.gallery-section {
    margin: 3rem 0;
}

.gallery-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d946a6;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-placeholder:hover {
    background: rgba(255, 255, 255, 1);
}

.gallery-placeholder p {
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Reasons Section */
.reasons-section {
    margin: 3rem 0;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.reason-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.reason-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 200, 220, 0.95));
}

.reason-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.reason-card:hover .reason-icon {
    transform: scale(1.2) rotate(10deg);
}

.reason-card p {
    color: #d946a6;
    font-weight: 600;
    font-size: 1rem;
}

/* Message Section */
.message-section {
    margin: 3rem 0;
}

.promise-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border: 3px solid #d946a6;
    opacity: 0;
}

.promise-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Button Section */
.button-section {
    text-align: center;
    padding: 2rem 0;
}

.magic-button {
    background: linear-gradient(135deg, #d946a6, #ec4899);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(217, 70, 166, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.magic-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 50px rgba(217, 70, 166, 0.6);
}

.magic-button:active {
    transform: scale(0.95);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-top: 3rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.footer-date {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Floating Animation for Magic Button */
@keyframes pulse {
    0% {
        box-shadow: 0 10px 30px rgba(217, 70, 166, 0.4);
    }
    50% {
        box-shadow: 0 15px 50px rgba(217, 70, 166, 0.8);
    }
    100% {
        box-shadow: 0 10px 30px rgba(217, 70, 166, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .header {
        padding: 2rem 1rem;
    }

    .love-letter {
        padding: 2rem 1rem;
    }

    .promise-box {
        padding: 2rem 1rem;
    }

    .letter-text {
        font-size: 1rem;
    }

    .magic-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .container {
        padding: 1rem;
    }

    .main-title {
        font-size: 1.5rem;
    }

    .heart-icon {
        margin: 0 0.3rem;
    }

    .header {
        margin: 1rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrolling Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
