/* General Body Styling */

/* Apply Eagle Lake globally */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a {
    font-family: 'Eagle Lake', serif;
    /* Eagle Lake as default font */
}

body {
    margin: 0;
    padding: 0;
    font-size: 18px;
    /* Base font size */
    line-height: 1.6;
    /* Improved readability */
}

h1,
h2,
h3 {
    letter-spacing: 1px;
    /* Slight letter spacing for an elegant feel */
}

a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d88a7f;
    /* Soft pink hover for links */
}

/* Header Container (Image Section) */
.header-container {
    width: 100%;
    margin: 0 auto;
}

.header-image {
    width: 100%;
    height: 40vh;
    /* 40% of the viewport height */
    max-height: 400px;
    /* Prevent it from getting too tall */
    min-height: 200px;
    /* Prevent it from shrinking too much */
    background: url('images/header.png') center/cover no-repeat;
    /* Background image */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.header-image h1 {
    font-size: 3rem;
    margin: 0;
}

.header-image p {
    font-size: 1.5rem;
    margin-top: 10px;
}

/* Navigation Bar (Sticky Navbar) */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar nav {
    display: flex;
    justify-content: center;
    /* Centering the links container */
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    /* Horizontal layout for desktop */
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    /* Center the list horizontally */
}

.nav-links li {
    margin: 0 30px;
    /* Spacing between links */
}

.nav-links a {
    text-decoration: none;
    font-family: 'Eagle Lake', serif;
    /* Wedding font */
    font-size: 22px;
    font-weight: bold;
    color: #4b2e39;
    /* Dark plum color */
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d88a7f;
    /* Soft pink on hover */
}

/* Hamburger Menu Icon (Mobile Only) */
.hamburger {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
    position: absolute;
    right: 20px;
    /* Position hamburger on the right */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: #4b2e39;
    /* Plum color */
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger Menu Active State (Turns into "X") */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    /* Hide the middle line */
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide links initially */
        position: absolute;
        top: 70px;
        right: 0;
        background-color: white;
        width: 100%;
        padding: 20px 0;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        flex-direction: column;
        /* Vertical layout */
        text-align: center;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
        /* Show menu links when active */
    }

    .hamburger {
        display: flex;
        /* Show hamburger on small screens */
    }

    .nav-links li {
        margin: 15px 0;
        /* Vertical spacing between links */
    }

    .nav-links a {
        font-size: 20px;
        /* Slightly smaller for mobile */
    }
}


/* Hero Section */
#hero {
    padding: 100px 20px;
    text-align: center;
    font-size: 80px;
    background-color: #fff3ec;
}

#hero h1 {
    font-size: 80px;
}

#hero p {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Our Story Section */
/* Our Story Section */
#our-story {
    background: linear-gradient(to bottom, #ffd1ba, #fff3ec);
    padding: 0;
    text-align: center;
    overflow: hidden;
}

#our-story h2 {
    font-family: 'Eagle Lake', serif;
    font-size: 3rem;
    color: #4b2e39;
    margin-bottom: 20px;
}

/* Video Container */
.video-container {
    max-width: 1200px;  /* Cap the width to 1200px */
    width: 100%;  /* Ensure it stretches to 100% within the max-width limit */
    margin: 0 auto;  /* Center the container horizontally */
    position: relative;  /* Keeps the child elements like the video centered */
    overflow: hidden;  /* Prevents overflow */
}

/* Responsive video */
#our-story-video {
    width: 100%;
    height: auto;  /* Maintain aspect ratio */
    object-fit: cover;  /* Fill the container while keeping the correct aspect ratio */
    background-color: #fff3ec;
    border-radius: 10px;  /* Optional rounded corners */
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.video-controls button {
    background-color: #4b2e39;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Eagle Lake', serif;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.video-controls button:hover {
    background-color: #d88a7f;
}

@media (max-width: 768px) {
    .video-container {
        height: 70vh;
    }

    .video-controls button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .video-container {
        height: 60vh;
    }

    .video-controls {
        flex-direction: column;
        gap: 10px;
    }
}


/* Event Details Section (Parallax Background) */
#event-details {
    background-color: #fff7f3;
    /* Light cream background */
    padding: 80px 20px;
}

#event-details h2 {
    font-size: 40px;
}

#event-details p {
    font-size: 25px;
    max-width: 800px;
    margin: 20px auto;
}


/* RSVP Section Container */
#rsvp {
    background-color: #faf0ec;
    /* Soft blush background */
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

/* Section Title */
#rsvp h2 {
    font-family: 'Eagle Lake', serif;
    font-size: 3rem;
    color: #4b2e39;
    /* Dark plum text */
    margin-bottom: 30px;
}

/* Form Container */
#rsvp-form {
    box-sizing: border-box;
    /* Ensures consistent width calculations */
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    /* Centers the form */
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Form Labels */
#rsvp-form label {
    font-family: 'Eagle Lake', serif;
    font-size: 1.5rem;
    display: block;
    margin-bottom: 10px;
    /* Adds space below the label */
}

/* Input Fields */
#rsvp-form input[type="text"],
#rsvp-form input[type="number"],#rsvp-form input[type="email"] {
    width: calc(100% - 30px);
    /* Full width minus padding for alignment */
    padding: 15px;
    border: 1px solid #d8a4a4;
    /* Soft pink border */
    border-radius: 5px;
    margin-bottom: 20px;
    /* Space between inputs */
    font-size: 18px;
    box-sizing: border-box;
    /* Prevents overflow of width */
}

#rsvp-form input:focus {
    outline: none;
    border-color: #4b2e39;
    /* Plum border on focus */
    box-shadow: 0 0 8px rgba(75, 46, 57, 0.2);
    /* Soft glow effect */
}

/* Submit Button */
#rsvp-form button {
    width: 100%;
    /* Full width for the button */
    padding: 15px;
    background-color: #4b2e39;
    color: white;
    font-family: 'Eagle Lake', serif;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

#rsvp-form button:hover {
    background-color: #d88a7f;
    transform: scale(1.05);
    /* Slight enlarge effect */
}


/* Mobile Adjustments */
@media (max-width: 768px) {
    #rsvp h2 {
        font-size: 2.5rem;
    }

    #rsvp-form {
        padding: 20px;
    }

    #rsvp-form label {
        font-size: 1.2rem;
    }

    #rsvp-form button {
        font-size: 18px;
    }
}

/* Hidden by default */
.hidden {
    display: none;
}

/* Success Message Box */
#success-message {
    margin-top: 20px;
    padding: 20px;
    background-color: #d8f3dc;
    /* Soft green background for success */
    color: #2d6a4f;
    /* Dark green text */
    border: 1px solid #95d5b2;
    border-radius: 5px;
    font-family: 'Eagle Lake', serif;
    /* Romantic font */
    font-size: 1.5rem;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Divider Image */
.divider {
    text-align: center;
    margin: 40px 0;
}

.divider img {
    width: 200px;
    max-width: 100%;
    height: auto;
    opacity: 0.9;
    /* Slight transparency for elegance */
}

/* Footer Section */
footer {
    background-color: #4b2e39;
    color: white;
    padding: 20px;
    text-align: center;
}

footer img {
    width: 100%;
    max-width: 1000px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-image {
        height: 30vh;
        /* Smaller height on mobile */
        max-height: 250px;
    }

    .navbar a {
        font-size: 18px;
        /* Smaller font size for mobile */
    }

    #our-story p,
    #rsvp form {
        padding: 20px;
    }
}

/* Responsive design for mobile devices (small screens) */
@media (max-width: 480px) {
    .header-image {
        height: 25vh;
        /* Smaller height for mobile */
        max-height: 200px;
        /* Prevent it from becoming too tall */
    }

    .header-image h1 {
        font-size: 2rem;
        /* Smaller text size for mobile */
    }

    .header-image p {
        font-size: 1rem;
        /* Smaller subheading */
    }
}

/* Page Title Section */
.page-title {
    background-color: #fff7f3;
    /* Soft cream background for contrast */
    padding: 30px 20px;
    /* Padding for space around the text */
    text-align: center;
}

.page-title h1 {
    font-family: 'Eagle Lake', serif;
    /* Elegant font */
    font-size: 3rem;
    /* Large font for couple names */
    margin: 0 0 10px;
    color: #4b2e39;
    /* Dark plum color for elegance */
}

.page-title h1 span {
    color: #d88a7f;
    /* Soft pink for the "&" symbol */
}

.page-title p {
    font-size: 1.5rem;
    /* Subheading size for date and location */
    color: #4b2e39;
}

.page-title p span {
    font-weight: bold;
}

.page-title p span:not(:last-child)::after {
    content: " • ";
    /* Adds a dot separator between date and location */
    color: #d88a7f;
    /* Soft pink separator */
}

@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2.5rem;
    }

    .page-title p {
        font-size: 1.2rem;
    }
}

#loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);  /* Transparent overlay */
    z-index: 1000;  /* Ensure it appears above everything */
}

.loader-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #4b2e39;  /* Accent color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide the loader initially */
.hidden {
    display: none;
}
