/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kubh Sans', sans-serif;
}

/* Navbar Styles */
.navbar {
    background-color: #060736;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0%;
    z-index: 1000;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    padding: 0 50px;
}

#navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    gap: 10px;
}

.navbar__logo-img {
    width: 100%;
    max-width: 100px;
    height: 100%;
    border-radius: 5px;
    object-fit: contain;
    background-color: transparent;
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar__links:hover {
    color: #a33d3d;
    transition: all 0.2s ease-in-out;
}

/* Mobile Navbar Styles */
@media screen and (max-width: 960px) {
    .navbar__container {
        justify-content: space-between;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        /* height: 50vh; */
        z-index: -1;
        background-color: #060736;
    }

    .navbar__menu.active {
        background-color: #141457;
        top: 100%;
        opacity: 1;
        z-index: 99;
        transition: all 0.5s ease;
        /* height: 50vh; */
        font-size: 1.5rem;
    }

    #navbar__logo-img {
        width: 100%;
        height: 100%;
    }

    .navbar__toggle {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: #fff;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        padding: 10px 0;
        width: 100%;
        text-align: center;
        /* display: table; */
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* About Us Section */
.main {
    background-color: #fff;
    margin-bottom: 40px;
}

.main__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    height: 90vh;
    background-color: #fff;
}
.main__image {
    width: 100%;
    height: 100%;         
    margin: 0;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    overflow: hidden;
}
.main__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main__container h1 {
    font-size: 3rem;
    color: #060736;
    margin-bottom: 20px;
}

.main__container p {
    font-size: 1.5rem;
    color: #060736;
    margin-bottom: 20px;
}

/* About Us Section for Small Screens */
@media screen and (max-width: 768px) {
    .main__container {
        grid-template-columns: 1fr;
        padding: 20px;
        margin-bottom: 60px;
    }

    .main__container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .main__container h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .main__container p {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
}

.main__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
    position: relative;
    display: block;
}

@media screen and (max-width: 768px) {
    .main__image {
        max-width: 100%;
        height: auto;
        margin: 20px auto;
    }
}

/* Catalog Section */
.catalog {
    margin: 40px auto;
    padding-top: 20px;
    max-width: 1200px;
    text-align: center;
    margin-top: 20px;
}

.catalog__title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.catalog__container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.catalog__item {
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    padding: 10px;
    background-color: transparent;
    text-align: center;
    max-width: 300px;
}

.catalog__img {
    max-width: 100%;
    height: 150px;
    border-radius: 5px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}
.catalog__img:hover {
    transform: scale(1.05);
}
.catalog__item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}
.catalog__item:hover .catalog__img {
    transform: scale(1.05);
}

.catalog__item h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    color: #333;
}

.catalog__description {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #555;
}

/* Catalog Section for Small Screens */
@media (max-width: 768px) {
    .catalog__item {
        flex: 1 1 calc(50% - 20px);
    }
    .catalog{
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .catalog__item {
        flex: 1 1 100%;
    }
}

/* Door Categories Container: two columns on large screens */
.door-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 32px auto;
    max-width: 1200px;
    width: 100%;
    align-items: start;
}

/* Responsive: stack door categories on small screens */
@media (max-width: 900px) {
    .door-categories {
        grid-template-columns: 1fr;
    }
}

/* Door Category: acts as a grid item, not a grid/flex container */
.door-category {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    padding: 20px;
    margin: 0;
    width: 100%;
    max-width: none;
    display: block;
}

.door-category__title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333;
}

.door-category__description {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Carousel Styles */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel__track-container {
    overflow: hidden;
    position: relative;
}

.carousel__track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel__slide {
    min-width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.carousel__image {
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Carousel Buttons */
.carousel__button {
    background-color: #060736;
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

.carousel__button:hover {
    background-color: #060736;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel__button--left {
    left: 10px;
}

.carousel__button--right {
    right: 10px;
}

.carousel__button:focus {
    outline: none;
}

/* Door Category for Small Screens */
@media screen and (max-width: 768px) {
    .door-category {
        width: 100%;
        margin-bottom: 20px;
    }

    .carousel__image {
        height: 100%;
        object-fit: scale-down;
    }
}

/* Gallery Section */
.gallery {
    padding: 20px;
    text-align: center;
}

.gallery__title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #060736;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 20px; /* Spacing between items */
    max-width: 1200px;
    margin: 0 auto;
}

.gallery__item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gallery__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery__info {
    padding: 10px;
    text-align: center;
}
.gallery__price {
    font-size: 1.2rem;
    color: #333;
    margin-top: 5px;
    font-weight: bold;
}
.gallery__desc{
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}