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

:root {
    --primary-color: #CFBDA4;
    --light-color: #f4f4f6;
    --dark-color: #111;
}


body {
    font-family: 'Inconsolata', serif;
    font-size: 16px;
    line-height: 1.5;
    background: #fff;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.logo {
    width: 50px;
    height: auto;
}


/* Navbar */
.navbar {
    background: #fff;
    padding: 20px;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.navbar .main-menu {
    display: flex;
    justify-content: center; /* Centers the menu */
    flex-grow: 1; /* Allows the menu to grow and take available space */
}

.navbar .main-menu ul {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.navbar ul li a {
    padding: 20px 20px;
    display: block;
    font-weight: 600;
    transition: 0.5s;
    font-size: 16px;
    font-weight: 300;
}

.navbar .logo {
    position: absolute;
    left: 40px;
    top: 40px;
}


/* .navbar ul li a:hover {
    color: var(--primary-color); 
}*/

.navbar .hover-underline-animation ul li a {
    display: inline-block;
    position: relative;
}

.navbar .hover-underline-animation ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}
  
.navbar .hover-underline-animation ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom center;
}

.navbar .active {
    color: #9c8b73;
}


/* Hero */
.hero {
    margin-bottom: 20px;
    margin-top: 20px;
}

.hero .container {
    display: flex;  
    justify-content: center;
    align-items: center;
    position: relative;
}

/*.logo-long {
    flex-basis: auto;
    margin-right: auto;
    margin-left: 20px;
    width: 50px;
    height: auto;
}*/

.logo-long {
    position: absolute;
    left: 10%; /* Adjust this value as needed */
    top: 150px; /* Align vertically to the middle */
    padding-top: 40%;
    transform: translateY(-50%);
    width: 80px;
    height: auto;
    object-fit: contain;
    transition: max-width 0.5s ease, max-height 0.5s ease;
}

.hero .hero-content {
    text-align: center;
    flex-grow: 1;
}

.hero .hero-text {
    padding: 20px;
    font-size: 20px;
    font-weight: 400;
}

.hero .gif-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    width: 100%;
    max-width: 300px;
}


/* GALLERY */
.gallery {
    margin-bottom: 20px;
    margin-top: 20px;
}

.gallery .container {
    display: flex;  
    justify-content: center;
    align-items: center;
    position: relative;
}

.gallery .gallery-content {
    display: flex;         /* Allows for flexible layout */
    flex-wrap: wrap;       /* Ensures images wrap onto new lines if they don't fit */
    justify-content: center; /* Centers content horizontally */
    align-items: center;   /* Centers content vertically */
    margin: 30px auto;     /* Adjusts margins for better spacing */
    max-width: 900px;      /* Limits the max width of the gallery content */
    text-align: center;    /* Centers the text within the container */
    padding: 0;       /* Adds some padding for smaller screens */
    gap: 0px;             /* Adjust gap to control spacing between columns */
}


.gallery-content img {
    width: 100%;        /* Changed from fixed width to full width of container */
    height: auto;       /* Ensures the aspect ratio is maintained */
    max-width: 300px;    /* Prevents the image from exceeding its container's width */
    display: block;     /* Removes extra space below images */
    object-fit: cover;  /* Makes the image cover its container while maintaining aspect ratio */
    margin: 5px; /* Adds spacing between rows */
}

/* FORM */
.form {
    margin-bottom: 20px;
    margin-top: 20px;
}

.form .container {
    display: flex;  
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0, 10%;
}

.form .form-content {
    text-align: center;
    flex-grow: 1;
    max-width: 500px;
    height: auto;
    scale: 90%;
}



/* Navbar Footer */
.navbar-footer {
    background: #fff;
    padding: 20px;
    padding-bottom: 10px;
}

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

.navbar-footer .main-menu ul {
    display: flex;
}

.navbar-footer ul li a {
    padding: 10px 20px 10px;
    display: block;
    font-weight: 300;
    transition: 0.5s;
    color: #9c8b73;
}

.logo {
    flex-basis: auto; /* Ensures the logo stays left-aligned */
    margin-right: auto;
}

.navbar-footer .main-menu {
    flex-grow: 1; /* Allows the menu to grow and take available space */
    display: flex;
    justify-content: center; /* Centers the menu */
}


.navbar-footer ul li a:hover {
    color: var(--primary-color); 
}

.navbar-footer .active {
    color: var(--primary-color);
}

/*.navbar-footer .hover-underline-animation ul li a {
    display: inline-block;
    position: relative;
}

.navbar-footer .hover-underline-animation ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom center;
    transition: transform 0.25s ease-out;
}
  
.navbar-footer .hover-underline-animation ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom center;
}*/

.footer-text{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
    font-size: 16px;
    font-weight: 300;
    color: var(--dark-color);
    opacity: 50%;
}

.footer-line {
    width: 550px;
    height: 1px;
    background: var(--dark-color);
    margin: 0 auto;
}


/* Utility Classes */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 6px 30px;
    background: #9c8b73;
    color: var(--light-color);
    font-weight: 400;
    text-decoration: none;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: 0.25s;
}

.btn:hover {
    color: var(--dark-color);
}

/* Text Classes */
.text-xxl {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 600;
    margin: 40px 0 20px;
}

.text-xl {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 40px 0 20px;
}

.text-lg {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 30px 0 20px;
}

.text-md {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 20px 0 10px;
}

.text-sm {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: normal;
    margin: 10px 0 5px;
}

.text-center {
    text-align: center;
}


/* Media Queries */
@media (max-width: 1200px) {
    .logo-long {
        max-width: 60px;
        height: auto;
    }
}


@media (max-width: 670px) {
    
}

@media (max-width: 850px) {


    .navbar ul li a {
        top: 40px;
        font-size: 0.9rem;
        transition: 0.25s;
    }

    .hero .hero-content {
        margin: 40px;
    }

    .hero .hero-text {
        margin: 20px;
        margin-bottom: 30px;
        font-size: 0.8rem;
    }

    .hero .gif-content {
        width: 100%;
        max-width: 250px;
    }

    .btn {
        font-size: 0.8rem;
    }

    .navbar-footer ul li a{
        font-size: 0.8rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }

    .footer-line {
        width: 100%;
    }
}

@media (max-width: 850px) {
    .logo-long {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 0.25s, opacity 0.25s linear;
    }

    .logo {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.25s linear;
    }

}

@media (min-width: 850px) {
    .logo {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 0.25s, opacity 0.25s linear;
    }
    
    .logo-long {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.25s linear;
    }

}

@media (min-width: 1080px) {
    .form .form-content{
        max-width: 700px;
    }
}

@media (max-width: 500px) {

}



/* GALLERY MEDIA QUERIES */
/* Large Desktops (1200px and above) */
@media (min-width: 1200px) {
    .gallery .gallery-content {
        max-width: 900px;  /* Full width for large desktops */
    }

    .gallery-content img {
        max-width: 300px;  /* Larger image size for wide screens */
    }
}

/* Medium Desktops and Tablets (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    
    
    
    .gallery .gallery-content {
        max-width: 700px;  /* Adjust the container width */
    }

    .gallery-content img {
        max-width: 250px;  /* Adjust image size for medium desktops */
    }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 767px) {
    .navbar {
        padding: 0px;
    }
    
    .navbar .container {
        max-width: 90%;
        padding: 0px;
    }

    .gallery .gallery-content {
        display: flex;
        flex-wrap: wrap;        /* Allows the images to wrap to new rows */
        justify-content: center;
        max-width: 100%;
        padding: 0 5px;
        gap: 5px;               /* Smaller, consistent gap between the columns and rows */
    }

    .gallery-content img {
        flex-basis: calc(50% - 5px); /* Each image takes 1/2 of the row, minus the gap */
        height: auto;           /* Maintains aspect ratio */
        max-width: 35%;        /* Prevents images from exceeding container */
        margin-bottom: 5px;     /* Adds smaller spacing between rows */
    }
}


