/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    background-color: #f8f0f0;
    color: #333;
    text-align: center;
    overflow-x: hidden;
    height: 100%;
}

/* Navbar Styles */
#navbar {
    background-color: #d59010;
    color: white;
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#navbar ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
}

#navbar ul li {
    margin: 0 20px;
}

#navbar ul li a {
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

#navbar ul li a:hover {
    color: #9b4d96;
}

/* Home Section */
#home {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('flower-background.jpg') center/cover no-repeat;
    /* Background Image */
    position: relative;
    padding: 0 20px;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.2);
}

.home-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
    color: rgb(251, 251, 251);
    text-shadow: none;
    opacity: 1;
    animation: fadeInUp 2s ease-out forwards;
    letter-spacing: 3px;
    animation-delay: 0.5s;
    transform: translateY(-50px);
}

/* Sparkles */
#sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('sparkle.png') repeat;
    animation: sparkle 1.5s infinite linear;
}

@keyframes sparkle {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 1000px 1000px;
    }
}

/* Video Section */
#video-section {
    padding: 50px 0;
    background-color: #f9f3f3;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.button-background {
    background: #9b4d96;
    padding: 30px 0;
    border-radius: 20px;
}

.action-btn {
    padding: 20px 40px;
    background-color: #9b4d96;
    color: white;
    border: none;
    font-size: 1.3rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    margin: 20px;
    font-family: 'Dancing Script', cursive;
}

.action-btn:hover {
    background-color: #6b1f62;
    transform: scale(1.1);
}

.action-btn:active {
    transform: scale(0.9);
}

/* Hidden Class */
.hidden {
    display: none;
}

/* Image Section */
#image-section {
    padding: 50px 0;
    background-color: #ffe6f0;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.5s forwards;
}

/* Image Container */
#image-container img {
    max-width: 100%;
    border-radius: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out 3s forwards;
}

/* Message Section */
#message-section {
    background-color: #f0e0f1;
    padding: 50px;
    opacity: 0;
    animation: fadeIn 1s ease-out 3.5s forwards;
}

#message p {
    font-size: 1.6rem;
    color: #333;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Collage Section Styles */
#collage-section {
    background-color: #fff0f5;
    /* Light romantic background */
    padding: 50px 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 2s ease-out 4.5s forwards;
    /* Fade in after message section */
}

.collage-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 images per row */
    grid-template-rows: repeat(3, 1fr);
    /* 3 images per column */
    gap: 20px;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Individual Collage Item (Image Styles) */
.collage-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure images fill their container without distortion */
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
    /* Bring the images above the background */
}

/* Hover Effect for Collage Items */
.collage-item:hover {
    transform: scale(1.1) translateY(-10px);
    /* Slight enlarge & upward movement */
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.7);
    /* Soft pink glow effect */
    z-index: 2;
    /* Make hovered image appear above the others */
}

/* Animation for Fade-in Effect */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Add a subtle overlap effect using negative margins to create a layered look */
.collage-item:nth-child(odd) {
    margin-top: -10px;
}

.collage-item:nth-child(even) {
    margin-top: -20px;
}

/* Custom Styles for specific images (optional) */
.collage-item:nth-child(1) {
    grid-column: span 2;
    /* Make the first image wider */
    grid-row: span 2;
    /* Make the first image cover two rows */
}

.collage-item:nth-child(3) {
    grid-column: span 2;
}

/* Responsive Design - For small screens (Mobile) */
@media (max-width: 768px) {
    .collage-container {
        grid-template-columns: 1fr;
        /* One image per row on smaller screens */
    }
}