/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #5a4a4a;
    background-color: #fffaf7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

.hero-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: fadeInDown 1.5s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.5s ease;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #d46a92;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #888;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1529636798458-92182e662485?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1469&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(212, 106, 146, 0.7), rgba(255, 182, 193, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-control {
    margin-top: 2rem;
    animation: fadeIn 2s ease;
}

.music-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.music-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* Message Section */
.message-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-header {
    margin-bottom: 60px;
}

.heart-divider {
    text-align: center;
    margin: 20px 0 30px;
}

.heart-divider i {
    color: #f8a5c2;
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
}

.message-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 992px) {
    .message-content {
        grid-template-columns: 2fr 1fr;
    }
}

.message-text {
    background-color: #fff9fb;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(212, 106, 146, 0.1);
    border-left: 5px solid #f8a5c2;
}

.message-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.message-text p:first-child {
    font-weight: 600;
    color: #d46a92;
    font-size: 1.3rem;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: #d46a92;
    text-align: right;
    margin-top: 30px;
}

/* Interactive Card */
.interactive-card {
    perspective: 1000px;
    height: 400px;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(212, 106, 146, 0.2);
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.card-front {
    background: linear-gradient(135deg, #f8a5c2 0%, #fbcfe8 100%);
    color: #fff;
}

.card-back {
    background: linear-gradient(135deg, #fbcfe8 0%, #f8a5c2 100%);
    color: #fff;
    transform: rotateY(180deg);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.card-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.card-instruction {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.flower-decoration {
    display: flex;
    gap: 20px;
    font-size: 1.8rem;
    margin-top: 20px;
}

.flower-decoration i:nth-child(2) {
    color: #ffebee;
}

.card-message {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.card-heart {
    font-size: 3rem;
    margin: 20px 0;
    animation: heartbeat 1.5s infinite;
}

.close-card {
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.close-card:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: #fff9fb;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 250px;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(212, 106, 146, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #f8a5c2;
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 50px 0;
    background: linear-gradient(135deg, #d46a92 0%, #f8a5c2 100%);
    color: white;
    text-align: center;
}

.footer-heart {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: heartbeat 1.5s infinite;
}

.footer-message {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.footer-copyright {
    font-size: 1rem;
    opacity: 0.9;
}

.footer-copyright i {
    color: #ffebee;
    margin: 0 5px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .message-text {
        padding: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .interactive-card {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .card-title {
        font-size: 1.8rem;
    }
    
    .card-message {
        font-size: 1rem;
    }
}