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

body {
    font-family: 'DynaPuff', cursive;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Love Header */
.love-header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    background: linear-gradient(135deg, #ff69b4, #ff1493, #ffc0cb, #ffb6c1);
    color: white;
    overflow: hidden;
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23fff"/><circle cx="80" cy="30" r="1.5" fill="%23ffeb3b"/><circle cx="40" cy="60" r="1" fill="%23ff9800"/><circle cx="70" cy="70" r="2.5" fill="%23e91e63"/><circle cx="10" cy="80" r="1.8" fill="%23fff"/></svg>') repeat;
    animation: confetti-fall 3s linear infinite;
    opacity: 0.7;
}

@keyframes confetti-fall {
    0% { transform: translateY(-100px) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

.love-title {
    font-family: 'DynaPuff', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: bounce 2s infinite;
    letter-spacing: 1px;
}

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

.love-subtitle {
    font-family: 'DynaPuff', cursive;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.9;
    letter-spacing: 0.5px;
    font-style: italic;
}

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

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

/* Sections */
section {
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

section:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

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

section h2 {
    font-family: 'DynaPuff', cursive;
    text-align: center;
    font-size: 2.8rem;
    color: white;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    font-weight: 600;
}

/* Personal Message Section */
.personal-message {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(255, 192, 203, 0.1));
}

.personal-message .message-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.personal-message h2 {
    color: #666;
    text-shadow: none;
}

.personal-message .message-text {
    font-family: 'DynaPuff', cursive;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    font-weight: 400;
}

.personal-message .message-text p {
    margin-bottom: 20px;
}

.personal-message .signature {
    font-family: 'DynaPuff', cursive;
    font-style: italic;
    font-weight: 500;
    color: #ff1493;
    text-align: right;
    margin-top: 30px;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

/* Time Counter Section */
.time-counter {
    background: linear-gradient(135deg, #ff69b4, #ff1493, #ffc0cb);
    color: white;
    text-align: center;
}

.counter-subtitle {
    font-family: 'DynaPuff', cursive;
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-style: italic;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.time-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.time-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 30px 20px;
    border-radius: 20px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-10px);
}

.time-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.time-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Photo Gallery Section */
.photo-gallery-section {
    background: linear-gradient(135deg, rgba(255, 192, 203, 0.1), rgba(255, 105, 180, 0.1));
}

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

.photo-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

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

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

.photo-caption {
    padding: 20px;
    font-weight: 500;
    color: #333;
    text-align: center;
    background: linear-gradient(135deg, #ffe4e6, #ffc0cb);
    font-size: 1.1rem;
}

/* Funny Section */
.funny-section {
    background: linear-gradient(135deg, #ffb6c1, #ffc0cb, #ffd1dc);
    color: #333;
}

.funny-subtitle {
    font-family: 'DynaPuff', cursive;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-style: italic;
    color: #666;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.funny-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.funny-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.funny-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.funny-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.funny-item h3 {
    font-family: 'DynaPuff', cursive;
    font-size: 1.5rem;
    color: #ff1493;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.funny-item p {
    font-family: 'DynaPuff', cursive;
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.photo-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    position: relative;
}

.photo-item:hover {
    transform: translateY(-5px);
}

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

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

.photo-caption {
    padding: 15px;
    font-weight: 500;
    color: #333;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.gallery-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.gallery-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

/* Love Grid */
.love-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.love-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.love-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.love-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.love-item h3 {
    font-size: 1.5rem;
    color: #ff1493;
    margin-bottom: 15px;
    font-weight: 600;
}

.love-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Memories Section */
.memories-container {
    max-width: 800px;
    margin: 0 auto;
}

.memory-item {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.memory-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.memory-date {
    font-weight: 600;
    color: #ff1493;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-left: 4px solid #ff1493;
    padding-left: 15px;
}

.memory-content {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.add-memory {
    text-align: center;
    margin-top: 30px;
}

.add-memory-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.4);
}

.add-memory-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
}

/* Message Section */
.message-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 0 auto;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.message-text p {
    margin-bottom: 20px;
}

.signature {
    font-style: italic;
    font-weight: 600;
    color: #ff1493;
    text-align: right;
    margin-top: 30px;
}

.relationship-stats {
    text-align: center;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.relationship-stats h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    min-width: 120px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.close:hover {
    color: #ff1493;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff1493;
}

.submit-btn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.4);
}

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

.heart {
    position: absolute;
    font-size: 2rem;
    opacity: 0.8;
    animation: float-up 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart img {
    display: block;
    object-fit: contain;
}

.heart:nth-child(1) { left: 10%; animation-delay: 0s; }
.heart:nth-child(2) { left: 20%; animation-delay: 1s; }
.heart:nth-child(3) { left: 30%; animation-delay: 2s; }
.heart:nth-child(4) { left: 40%; animation-delay: 3s; }
.heart:nth-child(5) { left: 50%; animation-delay: 4s; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
    }
    95% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .love-title {
        font-size: 2.5rem;
    }
    
    .love-subtitle {
        font-size: 1.1rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .nav-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        margin: 0 2px;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .love-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .love-item {
        padding: 25px 20px;
    }
    
    .message-content {
        padding: 25px 20px;
    }
    
    .stats-grid {
        gap: 10px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .love-header {
        padding: 40px 15px 30px;
    }
    
    .love-title {
        font-size: 2rem;
    }
    
    .mobile-nav {
        padding: 15px 10px;
    }
    
    .nav-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .love-item {
        padding: 20px 15px;
    }
    
    .love-icon {
        font-size: 2.5rem;
    }
    
    .memory-item {
        padding: 20px 15px;
    }
    
    .message-content {
        padding: 20px 15px;
    }
    
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100px;
    }
}
