/* General Styles */
html, body {
    height: 100%;
    margin: 0;
}

body {
    overscroll-behavior: None;
    display: flex;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: rgb(113, 110, 108);
    background-color: #f4f4f4;
}

main {
    flex: 1;
    padding-bottom: 4rem;
}

/* Header Styles */
header {
    background-color: rgb(24, 23, 22);
    color: white;
    padding: 0; /* Remove extra padding from header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid rgb(113, 110, 108);
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}

header .logo img {
    height: 2.5rem; /* Adjust based on your navbar height */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensures the logo fits well within its container */
}

.logo {
    display: flex;
    align-items: center;
    height: 80px; /* Adjust based on your layout */
    background-image: url('./images/spaces-bg.jpg'); /* Your new background image */
    background-size: cover;
    background-position: center;
    padding: 0 80px; /* Padding for spacing around the logo */
}

nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-left: 0; /* Add padding to create space on the left */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%; /* Make the navbar take full width */
    gap: 0; /* Ensure no gap between navbar items */
}

nav ul li {
    flex: 1; /* Make each nav item take equal space */
    margin: 0;
}

nav ul li a {
    display: block;
    width: 100%; /* Make anchor take full width */
    height: 50px; /* Adjust height for a more spacious navbar */
    padding: 1rem; /* Adds space around text */
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.5s ease-in-out, color 0.5s ease-in-out;
}

nav ul li a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Slight overlay for readability */
    z-index: 1;
    transition: opacity 0.5s ease;
    opacity: 0.5;
}

nav ul li a:hover::before {
    opacity: 0; /* Remove overlay on hover */
}

nav ul li a:hover {
    color: white;
}

nav ul li a[data-image="./images/spaces-bg.jpg"] {
    background-image: url('./images/spaces-bg.jpg');
}

nav ul li a[data-image="./images/home.png"] {
    background-image: url('./images/home.png');
}

nav ul li a[data-image="./images/gallery.png"] {
    background-image: url('./images/gallery.png');
}

nav ul li a[data-image="./images/testimonials.png"] {
    background-image: url('./images/testimonials.png');
}

nav ul li a[data-image="./images/about_us.png"] {
    background-image: url('./images/about_us.png');
}

nav ul li a[data-image="./images/contact.jpg"] {
    background-image: url('./images/contact.jpg');
}

/* Ensure proper spacing for the header and nav */
header .logo {
    padding-left: 1rem; /* Space for logo */
}

nav ul li a {
    border-radius: 0; /* No border-radius for seamless design */
}


/* Home Page Styles */
.hero {
    position: relative;
    overflow: hidden;
    height: 92vh;
    color: white;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 4rem 2rem;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgb(255, 255, 255);
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ff6600;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #D4AA89;
}

.features {
    padding: 2rem;
    background-color: #f9f9f9;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    color: #333333;
    margin-bottom: 2rem;
}

.feature-items {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-item {
    background-color: #FAF9F6  ;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
}

.feature-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #555555; 
    margin-top: 1rem;
}

.testimonials-preview {
    padding: 3rem;
    background-color: #f4f4f4;
    text-align: center;
}

.testimonials-preview h2 {
    text-align: center;
    font-size: 2rem;
    color: #333333;
    margin-bottom: 1.5rem;
}

.testimonial-item {
    background-color: white;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-author {
    font-weight: bold;
    color: #777777;
    text-align: right;
}

.why-choose-us-item {
    background-color: white;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.cta-button {
    display: inline-block;
    margin-top: 1rem;
    background-color: #777777; 
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #999999;
}

.testimonials-preview .cta-button {
    margin: 0rem auto;
}

/* About Us Page Styles */
.about-us {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.about-us h1 {
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.company-history, .mission-statement {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.company-history h2, .mission-statement h2 {
    font-size: 1.8rem;
    color: #555555;
    margin-bottom: 1rem;
}

.team {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-member {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.team-member img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin-right: 1.5rem;
}

.team-info h3 {
    font-size: 1.5rem;
    color: #777777;
    margin-bottom: 0.5rem;
}

.team-info p {
    margin: 0.5rem 0;
}

/* Photo Gallery Page Styles */
.photo-gallery {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
}

.photo-gallery h1 {
    font-size: 2.5rem;
    color: #333333;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Overlay Styles */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Space between icon and text */
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay::before {
    content: '\1F50D'; /* Unicode for magnifying glass */
    font-size: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: 5% auto;
    display: block;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#caption {
    margin: 2rem auto;
    text-align: center;
    color: #f1f1f1;
    font-size: 1.2rem;
}

/* Contact Us Page Styles */
.contact-us {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

.contact-us-header {
    font-size: 2.5rem;
    color: #392718; 
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Flexbox Layout */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Section Styling */
.contact-info > div {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    font-size: 1.8rem;
    color: #555555;
    margin-bottom: 0.5rem;
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info a {
    color: #777777;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Social Media Logos */
.social-address {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.social-address h2 {
    font-size: 1.8rem;
    color: #555555;
    margin-bottom: 1rem;
}

.social-address p {
    margin: 0.5rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 70px; 
}

.social-links a {
    display: inline-block;
}

.social-logo {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.get-in-touch {
    flex: 1;
    min-width: 250px;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.get-in-touch h2 {
    font-size: 1.8rem;
    color: #555555;
    margin-bottom: 1rem;
    text-align: center;
}

.get-in-touch form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #FAF9F6;
}

.get-in-touch input, .get-in-touch textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 97%;
}

.get-in-touch textarea {
    min-height: 100px;
    resize: vertical;
}

.get-in-touch button {
    background-color: #777777;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.get-in-touch button:hover {
    background-color: #999999;
}

/* Testimonials Page Styles */
.testimonials {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.testimonials h1 {
    font-size: 2.5rem;
    color: 	#333333; 
    margin-bottom: 1.5rem;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem;
}

.testimonial-box {
    position: relative;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    display: flex; /* Ensure content and image are side by side */
    align-items: flex-start; /* Align content with the top of the image */
    flex-direction: row; /* Keep the image and content in a row */
}

.testimonial-photo {
    width: 80px; /* Increase the width */
    height: 100px; /* Increase the height */
    border-radius: 50%; /* Keep the circular shape */
    margin-right: 1.5rem; /* Add a bit more space between the photo and text */
    object-fit: cover; /* Ensure the image covers the entire area */
}

.quote-icon {
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: #929292;
}

.testimonial-content {
    margin-left: 3rem; 
    font-size: 1.2rem;
    line-height: 1.6;
    color: #333;
    flex: 1;
}

.testimonial-person {
    margin-top: 1rem;
    font-weight: bold;
    color: #555555; 
    font-size: 1.5rem;
    text-align: right;
    margin-top: auto; /* Push the name to the bottom */
}

/* Form Styles */
form {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

form label {
    margin: 0.5rem 0;
    font-weight: bold;
    color: #8c5e3c;
}

form input, form textarea {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

form button {
    background-color: #8c5e3c;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

form button:hover {
    background-color: #6d4f28;
}

/* Fancy Text */
h1, h2, h3 {
    font-family: 'Helvetica', 'Arial', sans-serif;
    color: #333333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Additional Styling for Special Sections */
.section-title {
    border-bottom: 2px solid #333333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Footer Styles */
footer {
    background-color: #333333; 
    color: white;
    text-align: center;
    padding: 0rem;
    border-top: 3px solid #333333;
    width: 100%;
    box-sizing: border-box;
}

/* Slider container */
.slider {
    position: relative;
    max-width: 1000px;
    margin: auto;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    object-fit: cover;
}

/* Enhanced navigation buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Initial state (hidden) */
.fade-in {
    opacity: 0;
    transform: translateY(50px); /* Start slightly below */
    transition: opacity 3s ease-out, transform 3s ease-out;
}

/* Final state (visible) when the element comes into view */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* Back to the original position */
}

.team-section {
    margin-top: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.team-quote {
    font-size: 1.4rem;
    color: #777777;
    font-style: italic;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.4;
    font-weight: 300;
}

.full-width-team-image {
    width: 100%;
    margin-top: 1rem;
}

.full-width-team-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}



@media (max-width: 768px) {
    /* Stack navbar items vertically */
    nav ul {
        flex-direction: column;
        display: none; /* Hide navbar items initially */
        background-color: #fff; /* Optional: background color for dropdown */
        position: absolute;
        top: 60px; /* Adjust according to your header height */
        width: 100%;
        left: 0;
    }

    nav ul li {
        text-align: center;
        margin: 0;
    }

    nav ul a {
        padding: 15px 0;
        width: 100%;
    }

    /* Show hamburger menu on smaller screens */
    .hamburger {
        display: block;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .hamburger div {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
    }

    /* Toggle menu when clicked */
    .show-nav nav ul {
        display: flex;
    }

    .testimonial-grid {
        grid-template-columns: 1fr; /* One testimonial per row for small screens */
    }
    
    .team-section {
        padding: 1rem;
    }
    
    .team-quote {
        font-size: 1.2rem;
    }

    .photo-gallery {
        padding: 1rem 0.5rem;
    }
    
    .photo-gallery h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .slider {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .slider img {
        min-height: 200px;
        max-height: 60vh;
        object-fit: cover;
    }
    
    /* Larger navigation buttons for mobile */
    .prev, .next {
        padding: 20px 12px;
        font-size: 20px;
        margin-top: -30px;
    }
    
    /* Modal adjustments for mobile */
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .close {
        top: 10px;
        right: 25px;
        font-size: 35px;
    }
    
    #caption {
        margin: 1rem auto;
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Media query for extra small screens */
@media (max-width: 480px) {
    nav ul a {
        font-size: 14px; /* Adjust font size for smaller screens */
    }

    .hamburger {
        top: 10px;
        right: 10px;
    }

    .testimonial-grid {
        grid-template-columns: 1fr; /* One testimonial per row for small screens */
    }

    .photo-gallery {
        padding: 0.5rem;
    }
    
    .photo-gallery h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .slider {
        max-width: 100%;
        border-radius: 4px;
    }
    
    .slider img {
        min-height: 180px;
        max-height: 50vh;
        border-radius: 4px;
    }
    
    /* Even larger touch targets for small screens */
    .prev, .next {
        padding: 25px 15px;
        font-size: 22px;
        margin-top: -35px;
    }
    
    /* Full-screen modal on very small devices */
    .modal-content {
        width: 98%;
        margin: 5% auto;
        max-height: 80vh;
        object-fit: contain;
    }
    
    .close {
        top: 5px;
        right: 15px;
        font-size: 30px;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #caption {
        margin: 0.5rem auto;
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
}