/* styles.css */

:root {
    /* navbar variable value is defined in js */
    /* --navbar-expand: 20vh; */
    /* --navbar-collapse: 18vh; */
    scroll-padding-top: var(--navbar-collapse);
}

/************************* 
 variable
*************************/

/************************* 
 id - color
*************************/

#index-whatWeOffer {
    /* background-color: #fcffff; */
    background-color: #edf7ffd0;
}

#index-department {
    background-color: #92aedc;
}

#index-brands {
    background-color: #ffffff;
}


#contact-departments {
    background-color: #f4f8ffd0;
}

#contact-inquiry {
    background-color: #ffffff;
}

/************************* 
 Global
*************************/

/* 
 preloader
*/

/* styles.css */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #706d5d;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 0s ease;
}

#preloader img {
    width: 100px;
    /*size of loader image */
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}



a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

a:hover {
    color: #31aae2;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}





/************************* 
 NavBar
*************************/


/* Navbar */

#navbar {
    /* background-color: transparent; */
    transition: background-color 0.8s ease, height 0.5s ease;
    height: var(--navbar-expand);
}

#navbar .navbar-brand {
    text-shadow: 2px 2px 4px rgba(0, 0, 0);
    font-family: Baskerville, Georgia, "Kaiti", "Liberation Serif", "Kaiti SC", STKaiti, "AR PL UKai CN", "AR PL UKai HK", "AR PL UKai TW", "AR PL UKai TW MBE", "AR PL KaitiM GB", KaiTi, KaiTi_GB2312, DFKai-SB, "TW\-Kai", serif;
}

#navbar .navbar-brand img {
    max-height: calc(var(--navbar-expand));
    transition: all 1s ease;
}




@media (max-width: 1px) {

    #navbar,
    #navbar .navbar-nav {
        background-color: #333333 !important;
        padding: 20px;
    }


    #navbar .container {
        transform: translateY(-10px);
    }

    #navbar .navbar-collapse {
        transform: translateY(calc(var(--navbar-collapse) - var(--navbar-expand)));
    }
}


#navbar.navbar-scrolled {
    background-color: #333333 !important;
    height: var(--navbar-collapse);
}





#navbar .nav-link {
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

#navbar .nav-link:hover {
    border-bottom: 2px solid white;
}

.nav-item .nav-active {
    border-bottom: 2px solid white !important;
}

/* Dropdown menu */

#navbar .dropdown-menu {
    display: flex;
    transform: translateY(-10px);
    left: 0;
    width: 100%;
    /* Animation */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;

    max-height: 60vh;
}



#navbar .nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
    border-top: 3px solid rgb(88, 88, 88);
}


#navbar .dropdown-menu .dropdown-item {
    border-right: 2px solid rgb(220, 220, 220);
    border-bottom: 1px solid rgb(242, 242, 242);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}


#navbar .dropdown-menu .dropdown-item:hover {
    background-color: #c7edff;
    color: #4690ff;
    transform: translateX(10px);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}


.dropdown {
    position: static !important;
}




/************************* 
 Sidebar
*************************/

.sidebar {
    position: sticky;
    border-right: 1px solid #ddd;
    height: 100vh;
    top: var(--navbar-collapse);
    bottom: var(--navbar-collapse);

    /* put on top of other container */
    z-index: 1000;
}

.sidebar-container {
    height: 100vh;
    /* Full height for scrolling */
    overflow-y: auto;
    /* Enable vertical scrolling */
}


#flush-collapseOne .sidebar-link.active {
    background-color: #cfe2ff;
    transform: translateX(15px) scale(1.1);
    z-index: 2;
    color: #fff;
    border-right: 6px solid #aed5ff;
}

#flush-collapseOne .sidebar-link:not(.active):hover {
    transform: translateX(10px);
}

#flush-collapseOne .sidebar-link:hover {
    background-color: #d4e9ffc9;
}


.sidebar-link {

    border-right: 1px solid transparent;
    border-bottom: 1px solid rgba(205, 205, 205, 0.492);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.1s ease, border-color 0.5s ease;
}

#flush-collapseTwo .sidebar-link:hover {
    background-color: #d4e9ff67;
}


#flush-collapseTwo .sidebar-link:hover {
    transform: scale(1.3);
}

/************************* 
 Carousel
*************************/


/* Set the height of the carousel container to 80vh */
.carousel-inner {
    height: 80vh;
    position: relative;
}

/* Set the height of each carousel item to match the height of the container */
.carousel-item {
    height: 100%;
    position: relative;
    /* Keep items in the correct order */
}

/* Make images fill the carousel item with correct object-fit behavior */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers the entire area */
}

/* Shadow effect on images */
.carousel-inner img {
    filter: brightness(50%);
}

/* Styling for carousel captions */
.carousel-caption {
    text-shadow: 4px 4px 2px rgba(0, 0, 0, 0.5);
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    color: white;
    visibility: visible;
}

@media (max-width: 767px) {
    .carousel-caption {
        bottom: 10px;
        left: 10px;
        right: 10px;
        font-size: 1rem;
    }

    .carousel-inner {
        height: 60vh;
        position: relative;
    }

}

/* Keep carousel items in the correct order */
.carousel-inner .carousel-item {
    opacity: 0;
    /* Start with the first item hidden */
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    position: absolute;
}

/* Ensure the first item is visible */
.carousel-inner .carousel-item:first-of-type {
    position: relative;
}

.carousel-inner .active {
    opacity: 1;
    /* Make the active carousel item visible */
}






/************************* 
 Section
*************************/



/************************* 
 Footer
*************************/



footer img {
    max-height: 100px;
    object-fit: contain;
}

footer .footer-section-1 {
    background-color: #333;
    color: #fff;
}

footer .footer-section-1 h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0);
    font-family: Baskerville, Georgia, "Kaiti", "Liberation Serif", "Kaiti SC", STKaiti, "AR PL UKai CN", "AR PL UKai HK", "AR PL UKai TW", "AR PL UKai TW MBE", "AR PL KaitiM GB", KaiTi, KaiTi_GB2312, DFKai-SB, "TW\-Kai", serif;
}

footer .footer-section-2 {
    background-color: #222;
    color: #fff;
}

footer a {
    color: #31aae2;
}

footer a:hover {
    color: #e6e6e6 !important;
}

.footer-section-2 .footer-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}




/* footer social links */

.footer .social-links a {
    font-size: 20px;
    width: 42px;
    height: 42px;
    color: #6b6b6b;
    background-color: #4a4a4a;
    line-height: 42px;
    border-radius: 50%;
}

.footer .social-links a:hover {
    color: #ffffff;
    background-color: #31aae2;
}



/************************* 
 Breadcrumb
*************************/


.breadcrumb-item:hover a {
    color: #326cff;
    text-decoration: none;
}




/************************* 
 Parallax
*************************/


.parallax-section {
    position: relative;
    min-height: 350px;
    overflow: auto;
}

.parallax-image {
    filter: brightness(30%);
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../img/img-page-title.jpg');
    background-size: cover;
    background-attachment: fixed;
    /* Creates the parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;


}


.parallax-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 20px;
    top: 50%;
    transform: translateY(-50%);
}


/************************* 
 Card
*************************/

/* product-details-card */
.product-details-card {
    user-select: none;
    transition: none;
}

.product-details-card:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    border: 1px solid rgba(255, 37, 37, 0.6) !important;
    color: rgb(255, 37, 37) !important;
}

.product-brand-details-href:hover {
    color: #757575 !important;
}




/* product-type-active-button, product-size-active-button */
.product-size-active-button,
.product-type-active-button {
    background-color: #f8f9fa;
    border-color: rgb(255, 37, 37) !important;
    color: rgb(255, 37, 37) !important;
    transform: scale(1.01);

}

/* product-form-card */
.product-form-card {
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

.product-form-card:hover {
    transform: scale(1.1);
}

.product-form-card .view-product {
    transition: transform 0.2s ease;
    transform: translateY(-40px);
    z-index: 1;
}

.product-form-card:hover .view-product {
    transform: translateY(0);
}



/* contact-departments */
#index-products .department-card,
#contact-departments .department-card {
    transition: box-shadow 0.5s ease;
}

#index-products .department-card:hover,
#contact-departments .department-card:hover {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

.department-card .department-img {
    transition: filter 0.5s ease;
}

#nav-tabContent img:hover,
.department-card .department-img:hover {
    filter: brightness(1.08);
}


/* contact department card's address */
.department-card address a {
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.department-card address a:hover {
    transform: translateX(10px);
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#index-products .index-department address,
#contact-departments .index-department address {
    transition: all 0.5s ease;
    transform: translateY(10px);
    background-color: #fff3d2b8;
}

#contact-departments .index-department:hover address {
    box-shadow: 3px 2px 6px #888888;
    transform: translateY(0px);
    background-color: #fffcf4b8;
}

#contact-departments .index-department img {
    transform: translateY(-40px);
    transition: all 0.5s ease;
}

#contact-departments .index-department:hover img {
    transform: translateY(-10px);
}



/* hover index department icon effect */
.index-department img {
    transition: filter 0.3s ease-in-out;
}

.index-department.dark-img img {
    filter: brightness(0.5);
}


.index-department .image-container {
    position: relative;
}

.index-department .image-container .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* font-size: 200px; For a fixed size */

}

.index-department-address .icon-link {
    transition: transform 0.3s ease;
}

.index-department-address i {
    text-shadow: 3px 3px 2px rgba(0, 0, 0, 0.1);
}

.index-department-address .icon-link:hover {
    transform: scale(1.3);
}




/* Nav Tab */

#nav-tabContent img {
    transition: box-shadow 0.5s ease, filter 0.5s ease;
}

#nav-tabContent img:hover {
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    filter: brightness(1.08);
}


.nav-tabs .nav-link.active {
    background-color: #66b0ff;
    transform: translateY(-5px);
    z-index: 2;
    color: #fff;
    border-bottom: 8px solid #46a0ff;
}

.nav-tabs .nav-link {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.5s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #d4e9ff;
}












/************************* 
 Back to Top
*************************/



#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    /* Hidden by default */
    z-index: 100;
}


/************************* 
 Tab
*************************/