@import url("https://fonts.googleapis.com/css2?family=Imperial+Script&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap");

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Libre Baskerville", serif;
    background: #8d9698
        url(https://images.unsplash.com/photo-1615800098779-1be32e60cca3?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=1310)
        no-repeat center center fixed;
    background-size: cover;
    color: #34513a;
}

/* Password Prompt Styling */
.password-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.password-container {
    background-color: #fff2e7;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

.password-container h2 {
    color: #34513a;
    font-family: "Libre Baskerville", serif;
    margin-bottom: 20px;
}

.password-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #e78b2d;
    border-radius: 5px;
    font-size: 16px;
}

.password-container button {
    background-color: #e78b2d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.password-container button:hover {
    background-color: #ffbe98;
}

/* Navbar Styles */
.navbar {
    background-color: #34513a;
    overflow: visible;
    position: relative;
    height: 50px;
}

.navbar ul {
    list-style-type: none;
    padding: 14px 0;
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.navbar li {
    display: inline;
}

.navbar li a {
    color: #fff2e7;
    text-decoration: none;
    padding: 14px 20px;
    position: relative;
}

.navbar li a:hover {
    background-color: transparent;
}

.navbar li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background: linear-gradient(
        to right,
        transparent,
        #e78b2d 20%,
        #e78b2d 80%,
        transparent
    );
    transition:
        width 0.3s ease,
        left 0.3s ease;
}

.navbar li a:hover::after {
    width: 80%;
    left: 10%;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff2e7;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Content sections */
.content {
    margin: 20px;
    line-height: 1.6;
}

.center-content {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Imperial Script", cursive;
    color: #e78b2d;
    font-size: 48px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

/* 'Welcome to our Wedding heading */
.welcome-heading {
    text-align: center;
    font-size: 96px;
    color: #e78b2d;
}

p {
    color: #34513a;
    line-height: 1.6;
    font-size: 16px;
}

.slider {
    overflow: hidden;
}

.slides {
    display: flex;
    gap: 0;
    width: 600%; /* 18 slides, each 100% viewport width */
    height: 800px;
    animation: slide 60s linear infinite;
}

.slides div {
    width: 5.555%; /* 1/18 of track = 33.33% of viewport (3 visible on desktop) */
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-66.6%); /* Slide through 15 slides, loop back */
    }
}

/* General Styling */
.line-break {
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        #e78b2d 20%,
        #e78b2d 80%,
        transparent
    );
    margin: 20px auto;
    max-width: 300px;
}

/* FAQ Styles */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e78b2d;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #fff2e7;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #ffbe98;
}

.faq-question h3 {
    margin: 0;
    font-size: 0.9em;
    color: #34513a;
    font-family: "Libre Baskerville", serif;
}

.faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #e78b2d;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
    background-color: #ffffff;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Venue Page Flex Layout */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 40px 20px;
    padding: 20px;
    text-align: center;
}

.image-flex {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: #ffbe98;
    border-radius: 8px;
    overflow: hidden;
}

.image-flex img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-flex {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 50px;
        left: 0;
        width: 100%;
        background-color: #34513a;
        flex-direction: column;
        align-items: center;
        padding: 0;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    body.no-scroll {
        overflow: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        display: block;
        margin: 10px 0;
    }

    .nav-links li a {
        padding: 12px 20px;
        font-size: 18px;
    }

    .flex-container {
        flex-direction: column;
    }

    .image-flex,
    .content-flex {
        width: 100%;
        margin-bottom: 20px;
    }

    .welcome-heading {
        font-size: 72px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 36px;
    }

    .slider {
        overflow: hidden;
    }

    .slides {
        height: 400px;
        width: 1800%; /* 18 slides × 100% = 1800% */
    }

    .slides div {
        width: 5.555%; /* 1/18 of track = 100% of viewport (1 visible on mobile) */
    }

    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(
                -83.33%
            ); /* Slide through 15 slides, loop back */
        }
    }
}

@media (max-width: 480px) {
    .welcome-heading {
        font-size: 48px;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        font-size: 24px;
    }

    .password-container {
        padding: 20px;
    }

    .password-container input {
        padding: 8px;
        font-size: 14px;
    }

    .password-container button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Improve animation performance */
