/* General styles */
body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f0f0f0;
}

header, footer {
    background-color: #f8f9fa;
}

header h1, footer h2 {
    color: #5a442a;
}

.header-logo {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.nav-link {
    color: #5a442a;
}

.nav-item.border-right {
    border-right: 1px solid #333;
    padding-right: 10px;
    margin-right: 10px;
}

nav ul.nav {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul.nav li.nav-item {
    margin: 5px;
    transition: background-color 0.3s;
}

nav ul.nav li.nav-item:hover {
    background-color: #eaeaea;
}

nav a.nav-link {
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

nav a.nav-link:hover {
    color: #333;
}

@media screen and (max-width: 768px) {
    nav ul.nav {
        flex-direction: column;
    }

    nav ul.nav li.nav-item {
        width: 100%;
        text-align: center;
    }

    nav ul.nav li.nav-item.border-right {
        border-right: none;
        border-bottom: 1px solid #333;
    }

    nav ul.nav li.nav-item:last-child {
        border-bottom: none;
    }
}

section h2 {
    color: #5a442a;
}

.logo {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 20px auto;
}

#displayImage img {
    width: 100%;
    height: 83vh;
    object-fit: cover;
}

.parallax {
    background-attachment: scroll;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    height: 83vh;
}

.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('imgs/homeProductDisplay.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    filter: brightness(75%);
}

#displayImage img {
    visibility: hidden;
}

#displayImage .display-image-overlay {
    display: none;
    position: absolute;
    bottom: 10vh;
    left: 0;
    width: 100%;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.5);
    color: #5a442a;
    padding: 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .parallax {
        background-attachment: fixed;
    }

    .parallax::before {
        background-attachment: fixed;
    }
}

#introduction .intro-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    padding: 50px 0;
}

#introduction .intro-text {
    order: 1;
    flex: 1;
    padding-right: 20px;
    text-align: center;
}

#introduction .gallery-title {
    order: 2;
    font-size: 24px;
    color: #5a442a;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 10px;
}

#introduction .image-gallery {
    order: 3;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

#introduction .gallery-caption {
    order: 4;
    font-size: 18px;
    color: #5a442a;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
    font-style: italic;
    line-height: 1.5;
}

#introduction .intro-logo {
    order: 5;
    flex-basis: 30%;
    text-align: center;
}

#introduction .logo {
    max-width: 100%;
    height: auto;
}

#introCarousel {
    width: 100%;
    margin-top: 20px;
}

#introduction h2 {
    font-size: 30px;
    padding-bottom: 15px;
    color: #5a442a;
}

.intro-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
    opacity: 0;
    animation: fadeIn 10s ease-in-out forwards;
    padding: 50px 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.intro-text {
    flex: 1 1 60%;
    background: #f8f9fa;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

.intro-text:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.intro-img {
    flex: 1 1 50%;
    margin-left: 50px;
    padding: 20px;
    border-radius: 10px;
}

.intro-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

#introCarousel, #aboutCarousel,
#introCarousel .carousel-inner, #aboutCarousel .carousel-inner,
#introCarousel .carousel-item, #aboutCarousel .carousel-item {
    padding: 0;
    margin: 0;
}

#introCarousel .carousel-inner, #aboutCarousel .carousel-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

#introCarousel img, #aboutCarousel img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.gallery-title {
    font-size: 24px;
    color: #5a442a;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 10px;
}

.gallery-caption {
    font-size: 18px;
    color: #5a442a;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 0 20px;
    font-style: italic;
    line-height: 1.5;
}

@media screen and (max-width: 768px) {
    #introCarousel, #aboutCarousel {
        height: 300px;
    }

    #introCarousel .carousel-inner, #aboutCarousel .carousel-inner {
        height: 100%;
        text-align: center;
    }

    #introCarousel img, #aboutCarousel img {
        display: inline-block;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    #introCarousel {
        margin-bottom: 20px;
    }

    #aboutCarousel {
        margin-top: 20px;
    }
}

@media screen and (min-width: 769px) {
    header {
        top: 0;
        width: 100%;
        z-index: 1030;
    }

    .navbar-toggler {
        display: none;
    }

    .collapse {
        display: block !important;
    }

    nav ul.nav {
        display: flex;
        justify-content: center;
    }

    #displayImage .display-image-overlay {
        display: none;
    }

    .image-gallery {
        justify-content: flex-start;
    }

    .intro-image {
        width: calc(50% - 10px);
        max-width: 100%;
    }

    #introduction .intro-card {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    #introduction .intro-text {
        order: 1;
        text-align: center;
    }

    #introduction .gallery-title {
        order: 2;
        text-align: center;
    }

    #introduction .image-gallery {
        order: 3;
    }

    #introduction .gallery-caption {
        order: 4;
    }

    #introduction .intro-logo {
        order: 5;
        width: 100%;
        padding: 20px;
    }

    #introCarousel {
        width: 100%;
        display: block;
    }

    #introCarousel .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        min-height: 500px;
    }

    #introCarousel .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        min-height: 300px;
    }

    #introduction .intro-logo {
        flex-basis: 20%;
    }

    #introduction .intro-text,
    #introduction .intro-logo {
        padding: 0 15px;
    }

    .social-media-logo {
        width: 20%;
    }

    #introduction .intro-logo img {
        max-width: 100%;
        max-height: 250px;
    }

    #introCarousel .carousel-inner {
        align-items: flex-start;
    }

    #introduction .intro-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.intro-image {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
    object-fit: cover;
}

.intro-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.image-gallery {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
}

.first-image {
    max-height: 1600px;
    max-width: 100%;
}

.carousel .carousel-item {
    transition: opacity 1s;
}
.carousel-item:not(.active) {
    position: absolute;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s;
}

.carousel-item img {
    display: block;
    width: 100%;
    max-height: 1600px;
    height: auto;
    border-radius: 10px;
}

.carousel-inner {
    margin-left: 35px;
}

.carousel-item {
    height: 500px;
    overflow: hidden;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-inner:hover img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#products {
    padding-bottom: 100px;
}

.scrolling-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.product-image {
    display: inline-block;
    max-width: 25%;
    height: auto;
    margin: auto;
    border-radius: 5px;
    transition: transform .2s;
}

.product-image:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.scrolling-wrapper::-webkit-scrollbar {
    height: 10px;
}

.scrolling-wrapper::-webkit-scrollbar-thumb {
    background: #5a442a;
    border-radius: 10px;
}

.scrolling-wrapper::-webkit-scrollbar-thumb:hover {
    background: #5a442a;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: #5a442a;
    border-radius: 20px;
    border: 3px solid #f0f0f0;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #5a442a #f0f0f0;
}

.about-card {
    display: flex;
    flex-direction: column; /* Column direction for larger screens */
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
    padding: 50px 0;
    gap: 20px;
}

.about-text {
    flex: 1 1 65%;
    background: #f8f9fa;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

.about-text:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.about-img {
    flex: 1 1 45%;
    padding: 20px;
    border-radius: 10px;
}

.about-img img {
    display: block;
    width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

.about-img:hover img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 768px) {
    .about-card {
        flex-direction: column-reverse;
    }

    .about-text, .about-img {
        flex: 1 1 100%;
    }

    .about-img {
        margin-right: 0;
        padding-left: 0;
    }

    .about-img img {
        display: block;
        margin: auto;
    }
}

#contact {
    background-color: #f8f9fa;
    padding: 50px 0;
}

#contact h2 {
    text-align: center;
    color: #5a442a;
}

.project-inquiry {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

.project-inquiry p {
    margin: 0;
    padding: 10px;
}

.project-inquiry:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.contact-info div {
    text-align: center;
    width: 30%;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.contact-info div:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.logo-container {
    text-align: center;
    margin-top: 50px;
}

.logo-container a img {
    max-width: 400px;
    height: auto;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    cursor: pointer;
    border-radius: 50%;
}

.logo-container a img:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-10px);
}

.developer-info {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
}

.developer-info a {
    color: #5a442a;
    text-decoration: none;
}

.developer-info p {
    margin: 0;
    padding: 5px 0;
}

.developer-logo {
    max-width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #5a442a;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out;
}

#back-to-top-btn:hover {
    background-color: #5a442a;
}

#back-to-top-btn:hover {
    background-color: #d2b48c;
    color: #5a442a;
}

.navbar-toggler {
    border: none;
    background: transparent;
}

.navbar-toggler .navbar-toggler-icon {
    display: inline-block;
    width: 30px;
    height: 3px;
    background-color: #5a442a;
    position: relative;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #5a442a;
    top: -10px;
}

.navbar-toggler .navbar-toggler-icon::after {
    top: 10px;
}

.social-media-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.social-media-logo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.social-media-logo:active {
    transform: translateY(-3px);
}

@media screen and (max-width: 320px) {
    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-item.border-right {
        border-right: none;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .nav-link {
        padding: 5px 0;
    }

    #products h2 a.nav-link {
        font-size: smaller;
    }

    .product-image {
        max-width: 90%;
    }

    .about-card {
        flex-direction: column-reverse;
    }

    .about-text, .about-img {
        flex: 1 1 100%;
    }

    .about-img {
        margin-right: 0;
        padding-left: 0;
    }

    .about-img img {
        display: block;
        margin: auto;
    }

    #about .carousel-inner img {
        position: relative;
        left: 500px;
    }

    .developer-logo {
        max-width: 60px;
    }

    .logo-container a img {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    header {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
    }

    header h1 {
        display: none;
    }

    .header-logo {
        max-width: 120px;
        margin: 0 auto;
    }

    body {
        padding-top: 183px;
    }

    .nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .nav-item.border-right {
        border-right: none;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .nav-link {
        padding: 0 5px;
    }

    #displayImage .display-image-overlay {
        display: block;
    }

    .intro-card {
        flex-direction: column-reverse;
    }

    .intro-image {
        margin-bottom: 1rem;
    }

    .intro-text, .intro-img {
        flex: 1 1 100%;
    }

    #introduction .intro-text h2 {
        text-align: center;
    }

    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .intro-image {
        width: 100%;
        max-width: 100%;
    }

    .product-image {
        max-width: 90%;
    }

    #products h2 a.nav-link {
        font-size: smaller;
    }

    .about-card {
        flex-direction: column-reverse;
    }

    .about-text, .about-img {
        flex: 1 1 100%;
    }

    .about-img {
        margin-right: 0;
        padding-left: 0;
    }

    .about-img img {
        display: block;
        margin: auto;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-info div {
        width: 70%;
        margin-bottom: 20px;
    }

    .logo-container a img {
        max-width: 80%;
    }

    .developer-logo {
        max-width: 60px;
    }

    .social-media-logo {
        width: 50%;
    }

    #introduction .intro-logo {
        display: none;
    }
}

@media screen and (min-width: 769px) {
    header {
        top: 0;
        width: 100%;
        z-index: 1030;
    }

    .navbar-toggler {
        display: none;
    }

    .collapse {
        display: block !important;
    }

    nav ul.nav {
        display: flex;
        justify-content: center;
    }

    #displayImage .display-image-overlay {
        display: none;
    }

    .image-gallery {
        justify-content: flex-start;
    }

    .intro-image {
        width: calc(50% - 10px);
        max-width: 100%;
    }

    #introduction .intro-card {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    #introduction .intro-text {
        order: 1;
        text-align: center;
    }

    #introduction .gallery-title {
        order: 2;
        text-align: center;
    }

    #introduction .image-gallery {
        order: 3;
    }

    #introduction .gallery-caption {
        order: 4;
    }

    #introduction .intro-logo {
        order: 5;
        width: 100%;
        padding: 20px;
    }

    #introCarousel {
        width: 100%;
        display: block;
    }

    #introCarousel .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        min-height: 500px;
    }

    #introCarousel .carousel-item img {
        width: 100%;
        height: auto;
        object-fit: contain;
        min-height: 300px;
    }

    #introduction .intro-logo {
        flex-basis: 20%;
    }

    #introduction .intro-text,
    #introduction .intro-logo {
        padding: 0 15px;
    }

    .social-media-logo {
        width: 20%;
    }

    #introduction .intro-logo img {
        max-width: 100%;
        max-height: 250px;
    }

    #introCarousel .carousel-inner {
        align-items: flex-start;
    }

    #introduction .intro-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    #aboutCarousel .carousel-item img {
        width: 100%;
        max-height: 450px; /* Adjusted size for larger screens */
        height: auto;
        object-fit: contain;
    }

    .image-gallery img {
        width: calc(40% - 100px); /* Adjusted size for gallery images */
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}


