/* Universal styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    background-image: url(wood-1759566_1280.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    font-family:  sans-serif;
}

/* Navbar styling */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-end; 
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    cursor: pointer;
    height: 80px;
    background: rgba(53, 53, 53, 0.6);
    letter-spacing: 1px;

}


a {
    text-decoration: none;
    color: white;
}

nav a:hover {
    border: 1px solid white;
    border-radius: 5px;
    padding: 10px;
}

header{
    border-bottom: 1px solid white
}

/* Home container styling */
.home-container {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 80vh;
    text-align: left;
    margin: 20px;
}

h1 {
    font-size: 3.3rem;
    letter-spacing: 1px;

}

h3 {
    font-size: 1.2rem;
    margin-top: 0.3rem;
    font-weight: lighter;
    font-style: italic
}

p {
    margin-top: 1.5rem;
    color: white;
    /* width: 70%; */
    letter-spacing: 1px;
}

.home-btns {
    display: flex;
    margin-top: 3rem;
    align-items: center;
    gap: 20px;
    height: 100px;
}


button a {
    color: white; 
    text-decoration: none;
}
button {
    width: 25%;
    height: 45%;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    background-color: transparent;
    border: 2px solid white; 
    color: white; 
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold
}

button a {
    color: white;
    text-decoration: none;
}


/* Info section styling */
.info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 2rem;
    width: 80%;
    border: 3px solid #e3e3e3;
    border-radius: 5px;
    padding: 20px;
    margin: auto;
    margin-top: -5%;
    background: rgba(53, 53, 53, 0.6);

}

.info-section p {
    font-size: 1rem;
}

.info-section h4 {
    margin-bottom: 10px;
}

.info-section hr {
    width: 60%;
    text-align: center;
    margin-bottom: 20px;
}

footer {
    width: 100%;
    /* text-align: center; */
    border-top: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    background: rgba(53, 53, 53, 0.6);

}



/* Carousel styling */
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    
}

.carousel {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    width: 90%;
}

.carousel img {
    width: 450px;
    height: 350px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    width: 100px;
    height: 80px;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

nav{
    font-size: 1.2rem;
}

/* Hide scrollbar on Chrome, Safari, and Opera */
.carousel::-webkit-scrollbar {
    display: none;
}

/* Responsive styling */
@media (max-width: 1024px) {
    /* Navbar font size adjustment */
    nav ul {
        font-size: 1rem;
        gap: 1rem;
    }
    /* Adjust .home-container width */
    .home-container {
        width: 60%;
    }
    h1 {
        font-size: 2.5rem;
    }
    .info-section {
        font-size: 1.8rem;
        width: 90%;
    }
}

@media (max-width: 768px) {
    nav ul {
        justify-content: center;
        padding: 10px;
        font-size: 1rem;
        gap: 1rem;
    }
    /* Adjust .home-container and font sizes */
    .home-container {
        width: 80%;
    }
    h1 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1rem;
    }
    .home-btns {
        flex-direction: column;
        gap: 10px;
        height: auto;
    }
    button {
        width: 80%;
    }
    .carousel img {
        width: 350px;
        height: 250px;
    }
    .info-section {
        font-size: 1.5rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    /* Adjust font sizes for small screens */
    h1 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 0.9rem;
    }
    p {
        font-size: 0.9rem;
    }
    .home-container {
        width: 90%;
    }
    .carousel img {
        width: 300px;
        height: 200px;
    }
    .carousel-btn {
        width: 100px;
        height: 30px;
        font-size: 1.5rem;
    }
    .info-section {
        font-size: 1.2rem;
    }

    .carousel-btn{
        height: 80px
    }
}