@font-face {
    font-family: 'Aptos';
    src: url('fonts/Aptos.ttf') format('truetype'), url('fonts/Aptos-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('../img/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


header,
nav,
main,
article,
aside,
p,
a,
li,
span,
button,
input,
textarea {
    font-family: 'Aptos', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
    {
    font-family: 'Aptos-Bold', sans-serif !important;
}





/*adjust navbar height */
section {
    scroll-margin-top: 75px;
}





/* nav-bar */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}

.custom-navbar {
    padding-top: 0rem;
    padding-bottom: 0rem;
}

.custom-navbar .navbar-brand {
    padding: 0;
}

.custom-navbar .navbar-nav .nav-link {
    padding-top: 0rem;
    padding-bottom: 0rem;
}

.navbar-nav .nav-link {
    color: #1E305F;
    /* Default color */
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffffff;
    /* Hover color */
}

/*Custom Navbar */
.custom-navbar {
    background: rgba(30, 48, 95, 1.0);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.custom-navbar .navbar-brand img {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 1));
}

.custom-navbar .nav-link {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.custom-navbar .nav-link.active,
.custom-navbar .nav-link:hover {
    color: #ffffff;
    font-weight: bold;
}





/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

/* Slideshow */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation: fade 16s infinite ease-in-out;
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 48, 95, 0.5);
    z-index: 1;
}

/* Each image with different delay */
.slideshow img:nth-child(1) {
    animation-delay: 0s;
}

.slideshow img:nth-child(2) {
    animation-delay: 4s;
}

.slideshow img:nth-child(3) {
    animation-delay: 8s;
}

.slideshow img:nth-child(4) {
    animation-delay: 12s;
}

/* Fade Animation */
@keyframes fade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    35% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}



.btn-zoom {
    transition: transform 0.3s ease;
    /* smooth animation */
}

.btn-zoom:hover {
    transform: scale(1.05);
    /* slight zoom */
}

.hero-section p {
    font-size: 24px;
}



/* About Section */
#about {
    
    position: relative;
    color: #fff;
}


#about .container,
#about .row {
    position: relative;
    z-index: 1;
}

#about h2 {
    color: #ffffff;

}

#about p {
    color: #ffffff;
    text-align: left;
}

#about .card {
    background: rgba(30, 48, 95, 0.5);
    border: none;
    color: white;
    transition: background-color 0.3s ease;
}





/* Manufacturing Section */
#manufacturing {
    
    color: #fff;
}

#manufacturing .card {
    background: rgba(30, 48, 95, 0.5);
    border: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dice-5 {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}

.tech-img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.tech-img:hover {
    transform: scale(1.05);
}






/* Operational Flow */
.flow-line {
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.flow-step {
    flex: 0 0 auto;
}

.flow-card {
    width: 180px;
    position: relative;
}

.pop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
    position: relative;
}

/* Smooth pop-out hover */
.flow-card:hover .pop-img {
    transform: scale(1.6) translateY(-20%);
    z-index: 10;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Keep text below the image, no movement */
.flow-card p {
    margin-top: 8px;
}

/* Responsive tweaks */
@media(max-width: 768px) {
    .flow-card {
        width: 140px;
    }

    .flow-card:hover .pop-img {
        transform: scale(1.4) translateY(-15%);
    }
}





/* Technology */
.tech-img {
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

/* Hover effect on images */
.tech-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}





/* Products Section */
#products {
    
    position: relative;
    color: #ffffff;
}

#products .container-fluid,
#products .product-slider {
    position: relative;
    z-index: 1;
}

/*Products Full-width slider */
.product-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.product-track {
    display: flex;
    gap: 30px;
    width: calc(2 * 8 * 300px + 2 * 30px * 8);
    /* total width of duplicated cards */
    animation: scroll 30s linear infinite;
    /* adjust 15s for speed */
}

/* Duplicate cards in HTML for seamless scroll */
.product-track>.product-card:nth-child(n+9) {
    /* these are duplicates */
}

.product-card {
    flex: 0 0 auto;
    width: 300px;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(30, 48, 95, 0.7);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* scroll half the duplicated track */
}





/* Facilities Section */
#facilities {
    
    color: #ffffff;
}

.facility-card {
    background: rgba(30, 48, 95, 0.6);
    border: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

#facilities p {
    text-align: justify;
}

#facilities .facility-card:hover {
    transform: translateY(-8px) scale(1.05);
}





/* Clients Section */
#clients {
    
    position: relative;
    color: #ffffff;
}

/*Client Full-width smooth marquee */
.client-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
    background-color: rgba(30, 48, 95, 0.8);
    padding: 15px 0;
    border-radius: 12px;
    box-shadow: rgba(74, 144, 226, 0.1);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-content img {
    height: 75px;
    margin: 0 50px;
    object-fit: contain;
}

#clients .container-fluid,
#clients .client-marquee,
#clients .key-region {
    position: relative;
    z-index: 1;
}

.client-marquee img {
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.client-marquee img:hover {
    filter: grayscale(0%);
}

/* Marquee animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}





/* Key Region */
.region-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
}

.region-card:hover .region-img {
    transform: scale(1.05);
}

.region-img {
    width: 100%;
    display: block;
    border-radius: 10px;
    transition: transform 0.5s ease;
}




/* Management Section */
#management {
    
    position: relative;
    color: white;
}

#management .container,
#management .row {
    position: relative;
    z-index: 1;
}

#management .director-card {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#management .director-card img {
    position: relative;
    z-index: 3;
    filter: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.director-card img {
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f8f9fa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#management .director-card:hover {
    transform: translateY(-10px);
}






/* Certificates */
#certifications {
    
    color: white;
}

.certificate-card {
    max-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.certificate-card img {
    max-height: 150px;
    width: auto;
    height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #fff;
    padding: 10px;
}

.certificate-card:hover img {
    transform: scale(1.05);
}

/* Certifications Section */


.certificate-card img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #ffd700;
}





/*why-choose-us*/
#why-choose-us {
    

}

#why-choose-us h2 {
    color: #ffffff;
}

#why-choose-us p.lead {
    font-size: 1.2rem;
    color: #ffffff;
    text-align: justify;
}

#why-choose-us .card {
    border-radius: 15px;
    background-color: rgba(30, 48, 95, 0.5);
}

#why-choose-us .card:hover {
    transform: scale(1.0);
    /* zoom effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}





/* Contact Section */
#contact {
    
}


.map-container {
    height: 350px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(30, 48, 95, 0.6);
    padding: 20px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}


/* Footer */
footer {
    
    font-size: 0.9rem;
}