/* Resetting basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Body Styling */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Headings Styling */
h1, h2, h3, h4 {
    font-family: 'EB Garamond', serif;
}

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

/* Header Styling */
header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    height: 111px;
    width: 138px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* Hamburger Menu Styling */
.hamburger {
    display: none; /* Hidden by default */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    z-index: 2000; /* Ensure it sits above the content */
    transition: transform 0.3s ease; /* Smooth transformation */
}

/* Each bar in the hamburger icon */
.hamburger .bar {
    width: 100%;
    height: 4px;
    background-color: #4A2C2A; /* Dark brown color to match theme */
    border-radius: 4px;
    transition: all 0.3s ease; /* Smooth transition for bar animations */
    padding:3px;
    margin: 5px!important;
}

/* Hamburger Menu Open/Close Animation */
.hamburger.open .bar:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px; /* Adjust the position of the top bar when open */
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0; /* Hide the middle bar when open */
}

.hamburger.open .bar:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    bottom: 8px; /* Adjust the position of the bottom bar when open */
}

/* Navigation Styling */
nav ul {
    display: flex;
    list-style: none;
    justify-content: flex-start;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #4A2C2A;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #D4A5A5;
    transform: translateY(-2px);
    display: inline-block;
}

/* Mobile Responsive - When screen width is 768px or smaller */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Show hamburger icon on small screens */
    }

    /* Hide navigation menu by default */
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: rgba(255, 255, 255, 0.95); /* Ensure background matches */
        width: 100%;
        padding: 20px 0;
        z-index: 1000;
    }

    nav.active {
        display: block; /* Show menu when 'active' class is added */
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul li a {
        font-size: 18px; /* Slightly bigger text for mobile */
    }
}



.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 280px;
}

.hero h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    animation: slideInLeft 1.2s ease;
}

.hero p {
    font-size: 1.8em;
    margin-bottom: 30px;
    animation: slideInRight 1.2s ease;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: #4A2C2A;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    animation: bounceIn 1.5s ease;
}

.btn:hover {
    background: #D4A5A5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.section {
    padding: 100px 0;
    background: #F5E6E8;
}

.section:nth-child(even) {
    background: #fff;
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3em;
    color: #4A2C2A;
    animation: fadeIn 1s ease;
}

#about {
    padding: 50px 0;
    background-color: #f9f9f9;
}


/* Flex Layout for About Content */
.about-content {
    display: flex;
    flex-wrap: wrap; /* Allow for responsive wrap */
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* About Image */
.about-image {
    flex: 1 1 45%; /* Flex to take 45% space, but can shrink or grow */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* About Text */
.about-text {
    flex: 1 1 45%; /* Flex to take 45% space, but can shrink or grow */
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Stack content vertically on smaller screens */
        align-items: center;
    }

    .about-image, .about-text {
        flex: 1 1 100%; /* Make both take full width */
        margin-bottom: 20px;
    }
    .hero-content {
        margin-top: 380px;
        padding: 10px;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #D4A5A5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    transition: transform 0.5s ease;
}

.service-card img:hover {
    transform: scale(1.03);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #D4A5A5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.testimonial-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
    border: 1px solid #D4A5A5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.team-card img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #D4A5A5;
    transition: transform 0.5s ease;
}

.team-card img:hover {
    transform: rotate(5deg);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #D4A5A5;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.faq-question {
    margin-bottom: 10px;
    color: #4A2C2A;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #D4A5A5;
}

.faq-toggle {
    font-size: 14px;
    transition: transform 0.3s ease;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 10px 0;
}

form {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

form.visible {
    opacity: 1;
    transform: translateY(0);
}

form input,
form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #D4A5A5;
    border-radius: 5px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
    border-color: #4A2C2A;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 44, 42, 0.3);
}

form textarea {
    height: 150px;
}

footer {
    background: #4A2C2A;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 272px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

.footer-links a, .footer-contact p {
    color: #F5E6E8;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #D4A5A5;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: #F5E6E8;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #D4A5A5;
    transform: translateY(-3px);
    display: inline-block;
}

footer p {
    font-size: 0.9em;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 8px;
        left: 0;
        width: 100%;
        background: #fff;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav ul li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.2em;
    }

    .about-content {
        flex-direction: column;
    }

    .services-grid,
    .gallery-grid,
    .testimonials-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
