/* Initial state of sections (hidden) */
.hidden {
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Slow fade-in */
}

/* When the section is in view, it becomes visible */
.visible {
    opacity: 1;
}

/* Fullscreen black overlay */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: openFromMiddle 1.5s ease-out 1.5s forwards;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 17px); /* Adjust for scrollbar width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000000;
    color: white;
    padding: 10px 20px;
    z-index: 1000;
    box-sizing: border-box; /* Ensures padding is included in width */
}

/* The animation effect */
@keyframes openFromMiddle {
    0% {
        width: 100%;
        opacity: 1;
    }
    50% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 0%;
        opacity: 0;
    }
}

#intro-image {
    width: 40%;
    height: 35%;
    animation: fadeOutImage 0.5s ease-out 1s forwards;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.company-logo img {
    height: 50px; /* Adjust size as needed */
    width: auto;
    display: block;
}

.company-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.company-name {
    font-family: Arial, sans-serif;
    font-size: 24px;
}

nav {
    margin-left: auto; /* Push the nav to the right */
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #b39d69;
    font-family: 'Arial', sans-serif;
    padding: 5px 10px;
}

.nav-links a:hover {
    background-color: #555;
    border-radius: 5px;
}

/* Section styles */
#about-top {
    padding-top: 70px; /* Adjust this value to the height of your fixed header */
    margin-top: -70px;  /* Ensure the content doesn't get pushed down */
}

#about {
    width: 60%;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

#about-wrapper {
    width: 100%;
    background: linear-gradient(to bottom, #9e9c99, #ceccc6 50%, #9e9c99),
    linear-gradient(to right, #9e9c99, #ceccc6 50%, #9e9c99);
    padding: 80px 0;
}

#about h2 {
    margin-bottom: 50px;
    font-size: 40px;
    font-family: 'Verdana', sans-serif;
    font-weight: 700;
}

#about p {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 24px;
    font-family: 'Verdana', sans-serif;
}

#gallery-wrapper {
    margin-top: 60px;
    width: 100%;
    background: linear-gradient(to bottom, #c7a961, #eeedea 50%, #c7a961),
        linear-gradient(to right, #c7a961, #eeedea 50%, #c7a961);
    background-blend-mode: multiply;
    padding: 60px 0;
}

.slider {
    position: relative;
    width: 90%; /* Increase the width of the slider container */
    margin: auto;
    overflow: hidden;
    max-width: 1400px; /* Optional: Adjust the max width to control the maximum size */
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    width: 100%;
    flex-shrink: 0;
}

.slide img {
    width: 100%; /* Ensures image takes the full width of the slide */
    height: 500px; /* Adjust height as needed to make images larger */
    object-fit: contain; /* Ensures the aspect ratio is maintained */
    display: block; /* Removes any extra space below the image */
}

#our-brands-top {
    padding-top: 70px; /* Adjust this value to the height of your fixed header */
    margin-top: -70px;  /* Ensure the content doesn't get pushed down */
}

#our-brands-wrapper {
    width: 100%;
    background: linear-gradient(to bottom, #dfdcd5, #eeedea 50%, #dfdcd5),
        linear-gradient(to right, #dfdcd5, #eeedea 50%, #dfdcd5);
    background-blend-mode: multiply;
    padding: 100px 0;
}

#our-brands h2 {
    text-align: center;
    margin-bottom: 75px;
    font-size: 50px;
    font-family: 'Verdana', sans-serif;
    font-weight: bold;
}

.image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.image-container div {
    width: 22%;
    text-align: center;
    flex-shrink: 0; /* Prevents shrinking when hovering */
    box-sizing: border-box;
}

#our-brands img {
    width: 200px; /* Default size */
    height: auto;
    box-sizing: border-box; /* Include padding and border in the element's total size */
}

#our-brands img[alt="Image 05"] {
    width: 125px; /* Adjust the width as needed */
    height: auto;
}

#our-brands img[alt="Image 04"] {
    width: 180px; /* Adjust the width as needed */
    height: auto;
}

#our-brands img[alt="Image 08"] {
    width: 150px; /* Adjust the width as needed */
    height: auto;
}  

/* Ensure the anchor wrapping each brand image is a fixed square */
.image-container div a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    margin: auto;
    overflow: hidden;
    position: relative;
    border: 3px solid transparent; /* Reserve space for the border */
    box-sizing: border-box;        /* Ensure the border is included in the element's dimensions */
}

.image-container div a img {
    width: 100%;
    height: 100%;
    object-fit: contain;        /* Scale image while maintaining aspect ratio */
    object-position: center;    /* Center the image within its container */
}

/* On hover, show a uniform square border */
.image-container div a:hover {
    border-color: #959187; /* Change border color on hover without affecting layout */
}

#our-brands p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-family: 'Verdana', sans-serif;
}

#contact-us-wrapper {
    width: 100%;
    background: linear-gradient(to bottom, #9e9c99, #ceccc6 50%, #9e9c99),
    linear-gradient(to right, #9e9c99, #ceccc6 50%, #9e9c99);
    padding: 70px 0;
}

#contact-us-info {
    margin-top: 40px;
    font-weight: bold;
    font-style: italic;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 215px; /* Adjust space between the items */
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icon and text */
    text-decoration: none;
    color: black; /* Adjust as needed */
}

#contact-us-info img{
    width: 60px; /* Adjust the width as needed */
    height: auto;
}

.contact-link {
    text-decoration: none
}

#contact-us h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 35px;
    font-family: 'Verdana', sans-serif;
    font-weight: bold;
}

#contact-us p {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    font-family: 'Verdana', sans-serif;
}

/* Footer Section */
#footer-links {
    bottom: 0;
    width: 100%;
    padding: 25px 0;
    background-color: #333;
    color: white;
}

#footer-links ul {
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer-links li {
    text-align: center;
    display: inline-block;
    margin: 0 15px;
    font-weight: bold;
    color: #b39d69;
}

#footer-links a {
    text-align: center;
    text-decoration: none;
    color: #b39d69;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

#footer-links a:hover {
    background-color: #555;
    border-radius: 5px;
}

.line {
    width: 95%;            /* Full width line */
    height: 2px;            /* Thickness of the line */
    background-color: #ccc; /* Line color */
    margin: 20px auto;         /* Spacing around the line */
}

/* Copyright Section */
#copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #b39d69; /* Slightly lighter color for the copyright text */
    font-family: 'Arial', sans-serif;
}

button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 60px;
    z-index: 10;
}

.prev {
    left: 0px;
}

.next {
    right: 0px;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots {
    display: flex;
    justify-content: center; /* Centers the dots horizontally */
    align-items: center; /* Centers vertically (if needed) */
    margin: 20px auto; /* Centers the oval horizontally */
    padding: 10px 20px; /* Adjusts space inside the oval */
    border: 2px solid rgb(255, 255, 255); /* Creates the oval border */
    border-radius: 30px; /* Makes it oval */
    background-color: rgb(200, 194, 194); /* Optional: Background color */
    width: fit-content; /* Ensures it only wraps around the dots */
}

.dot {
    height: 10px;
    width: 10px;
    margin: 5px;
    background-color: gray;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.active {
    background-color: black;
}

/* Mobile Styles */
@media (orientation: portrait) {
    #contact-us h2 {
        text-align: center;
        margin-bottom: 0px;
        font-size: 25px;
        font-family: 'Verdana', sans-serif;
        font-weight: bold;
    }
    
    #contact-us-info img {
        width: 40px; /* Set a uniform width for mobile */
        height: auto; /* Maintain aspect ratio */
    }

    #contact-us-info {
        display: flex;
        margin-top: 40px;
        font-weight: bold;
        font-style: italic;
        align-items: center;
        flex-direction: column;
        gap: 0px;
    }

    .contact-link {
        display: flex;
        align-items: center;
        font-size: 20px;
        gap: 10px;
        color: black; /* Adjust as needed */
    }
}

@media (max-width: 768px){

    #intro-image {
        width: 40%;
        height: 10%;
        animation: fadeOutImage 0.5s ease-out 1s forwards;
    }

    header {
        text-align: left;
        padding: 10px 10px;
        width: 100%;
    }

    header.visible {
        top: 0; /* Bring it back to the top */
    }

    .company-logo img {
        height: 40px; /* Smaller logo on mobile */
    }

    .nav-links {
        flex-direction: row;
        margin-top: 1px;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 1px;
    }

    .nav-links a {
        font-size: 12px;
    }

    #about {
        width: 80%;
    }

    #gallery-wrapper {
        min-height: 485px;
        overflow: hidden;
    }

    .slider {
        margin-top: 115px;
        display: flex;
        overflow-x: hidden; /* Enables horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Ensures smooth scrolling on mobile */
        scroll-snap-type: x mandatory; /* Optional: Snaps images in place */
    }

    .slide {
        flex-shrink: 0;
        scroll-snap-align: start; /* Snaps images into place */
        width: 100%; /* Ensures each image takes up full width of the container */
    }

    .slide img {
        width: 100%; /* Ensures image takes the full width of the slide */
        height: 200px; /* Adjust height as needed to make images larger */
        object-fit: fill; /* Ensures the aspect ratio is maintained */
        display: block; /* Removes any extra space below the image */
    }

    #our-brands-wrapper {
        padding: 50px 0;
    }

    #our-brands h2 {
        text-align: center;
        margin-bottom: 75px;
        font-size: 40px;
        font-family: 'Verdana', sans-serif;
        font-weight: bold;
    }

    #our-brands img {
        width: 175px; /* Default size */
        height: auto;
        box-sizing: border-box; /* Include padding and border in the element's total size */
    }
    
    #our-brands img[alt="Image 05"] {
        width: 110px; /* Adjust the width as needed */
        height: auto;
    }
    
    #our-brands img[alt="Image 04"] {
        width: 160px; /* Adjust the width as needed */
        height: auto;
    }    

    #our-brands img[alt="Image 08"] {
        width: 125px; /* Adjust the width as needed */
        height: auto;
    }  

    .image-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 45px;
    }

    .image-container div {
        width: 45%;
        margin-left: -25px;
    }

    .company-name {
        font-size: 20px; /* Smaller company name */
    }

    #contact-us h2 {
        text-align: center;
        margin-bottom: 0px;
        font-size: 25px;
        font-family: 'Verdana', sans-serif;
        font-weight: bold;
    }
    
    #contact-us-info img {
        width: 40px; /* Set a uniform width for mobile */
        height: auto; /* Maintain aspect ratio */
    }

    #contact-us-info {
        display: flex;
        margin-top: 40px;
        font-weight: bold;
        font-style: italic;
        align-items: center;
        flex-direction: column;
        gap: 0px;
    }

    .contact-link {
        display: flex;
        align-items: center;
        font-size: 12px;
        gap: 10px;
        color: black; /* Adjust as needed */
    }

    button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.2);
        color: white;
        border: none;
        padding: 10px;
        cursor: pointer;
        font-size: 40px;
        z-index: 10;
    }
    
    .prev {
        left: 0px;
    }
    
    .next {
        right: 0px;
    }
}

@media ((max-width: 1024px) and (orientation: landscape)) {

    .slider {
        margin-top: 115px;
        display: flex;
        overflow-x: hidden; /* Enables horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Ensures smooth scrolling on mobile */
        scroll-snap-type: x mandatory; /* Optional: Snaps images in place */
        align-items: center;
    }

    .slide {
        display: flex;
        align-items: center;
    }

    .slide img {
        margin-left: 170px;
        width: 50%; /* Ensures image takes the full width of the slide */
        height: 200px; /* Adjust height as needed to make images larger */
        object-fit: fill; /* Ensures the aspect ratio is maintained */
        display: block; /* Removes any extra space below the image */
    }
}

