/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;500;600;700;800&family=Outfit:wght@100;300;400;500;600;700&display=swap');

:root {

    /* Colors */
    --success: #4CCD86;
    --info: #5BCDDA;
    --warning: #FFC453;
    --danger: #F85858;
    --on-surface: #111213;
    --black: #000000;
    --white: #FFFFFF;
    --surface: #F0F0F0;
    --primary: #ff4b1f;
    --button-hover: #ff4c1fb0;

    /* Typography */
    --heading: 68px;
    --second-heading: 48px;
    --second-heading-mobile: 38px;
    --sub-heading: 30px;
    --subtitle-lg: 20px;
    --title: 32px;
    --paragraph: 19px;
    --button-lg: 18px;
    --paragraph-sm: 16px;
    --subtitle: 14px;

    /* Spacing */
    --p-space-1: 4px;

    /* Font Weight */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semi-bold: 600;
    --fw-bold: 700;
    --fw-black: 900;
}

*,
body {
    font-family: 'Outfit', sans-serif;
}

main {
    background: #8888881a;
}

.loader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    opacity: 1;
    /* display: none; */
}

.loader img {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 100px;
    aspect-ratio: 1;
    transform: translate(-50%, -45%);
    animation: fade 1.8s infinite ease-in-out alternate;
}

@keyframes fade {
    0% {
        opacity: 0.7;
    }

    100% {
        opacity: 0;
    }
}

/*Navbar*/
.navbar {
    transition: all 0.1s;
    margin-top: -2px;
}

/* .navbar-brand {
    width: 250px;
} */

.navbar-toggler {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 24px;
    background: none;      /* removes default button styling */
    border: none;
    cursor: pointer;
    padding: 0;
    transform: scale(0.8);
}

.bar {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;   /* ensures rotation pivots from the middle of each bar */
}

/* Styles applied ONLY when the "active" class is present (added/removed via JS) */

.navbar-toggler.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);   /* moves top bar down, rotates into one X diagonal */
}

.navbar-toggler.active .bar:nth-child(2) {
    opacity: 0;                                  /* middle bar disappears — X only needs 2 lines */
}

.navbar-toggler.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);  /* moves bottom bar up, rotates into the other diagonal */
}


.navbar-collapse {
    margin-left: -12rem;
}

.nav-link {
    margin-right: 52px;
    font-size: var(--paragraph-sm);
    font-weight: var(--fw-semi-bold);
    line-height: 25px;
    letter-spacing: 0.2px;
    color: var(--black);
    transition: font-size, color, 0.3s ease-in;
}

/* .nav-link:hover {
    transform: scale(1.1);
    font-size: var(--subtitle-lg);
} */

.nav-shrink {
    padding-top: var(--p-space-1);
    background-color: #fffffff0;
    box-shadow: 0 2px 48px 4px rgba(0, 0, 0, .09);
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
    transition: padding 0.3s, box-shadow 0.3s;
}

/*Button*/
.btn {
    padding: 13px 40px;
    font-size: var(--paragraph-sm);
    font-weight: var(--fw-bold);
    line-height: 25px;
    letter-spacing: -0.35px;
    font-family: 'Inter', sans-serif !important;
    transition: .256s;
}

.btn-lg {
    padding: 16px 40px;
    font-size: var(--button-lg);
    font-weight: var(--fw-semi-bold);
    line-height: 25px;
    letter-spacing: -0.35px;
    font-family: 'Inter', sans-serif;
}

.btn-primary-light {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.btn-primary-gradient {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
}

.btn-primary-light:focus,
.btn-primary-light:hover,
.btn-primary-light:active {
    background-color: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    transform: scale(1.035);
    border: 1px solid var(--primary-light) !important;
}

.btn-primary-gradient:focus,
.btn-primary-gradient:hover,
.btn-primary-gradient:active {
    background-color: var(--primary-gradient) !important;
    color: var(--white) !important;
    transform: scale(1.035);
}

/*Slideshow*/
.slideshow {
    /* width: 70%; */
    margin: 0 auto;
    padding: 0 0 0 0;
}

/* .carousel-control-prev-icon, .carousel-control-next-icon {
   background-color: #000000e1;

} */
.hero {
    position: relative;   /* lets the overlay position itself relative to this box */
    width: 100%;           /* full width of the page */
    /*height: 100vh;         /* full height of the screen */
    overflow: hidden;      /* hides any video overflow outside the box */
}

/* The video itself */
.hero video {
    display: block;
    width: 100%;        /* stretch video to fill container width */
    height: 100vh;        /* stretch video to fill container height */
    object-fit: cover;   /* crop video to cover the box without distorting it */
}

/* The gradient overlay sitting on top of the video */
.overlay {
    position: absolute;   /* pulls it out of normal flow, on top of the video */
    top: 0;                 /* aligns it to the top of .hero */
    left: 0;                /* aligns it to the left of .hero */
    width: 100%;           /* covers full width */
    height: 100%;           /* covers full height */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.832) 40%, transparent);
    /* gradient starts see-through at the top, fades to solid black at the bottom */

    display: flex;
    align-items: flex-start;
    justify-content: left;
    flex-direction: column;
    padding: 200px 0 0 100px;
}

.hero h1 {
    font-size: 50px !important;
    color: var(--white);
    padding: 0 0 20px 0;
}

.hero .hero-highlight {
    color: var(--primary);
}

.hero .hero-subtitle {
    font-size: var(--sub-heading);
}

.hero-button {
    border: 2px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    background-color: transparent;
    transition: background-color, color, 0.3s ease-in;
    padding: 5px 10px 5px 10px;
    width: 150px;
    font-size: var(--button-lg);
}

.hero-button:hover {
    color: var(--white);
    background-color: var(--button-hover);
    border-color: var(--white);
}


/* About */
.about-us {
    margin: 50px 0 64px 0;
}

.about-us .container {
    padding: 0 23px 0 23px;
}

.about-us .header-section {
    text-align: center;
    margin-bottom: 64px;
}

.about-us .header-section h2 {
    font-size: var(--title);
    font-weight: var(--fw-bold);
    line-height: 39px;
    letter-spacing: 0.1px;
    color: var(--black);
}

.about-us .body-section {
    width: 70%;
    margin: 0 auto;
}

.about-us .body-section p {
    text-align: justify;
    font-size: var(--paragraph);
    font-weight: var(--fw-light);
    line-height: 28px;
    letter-spacing: 0.2px;
    color: var(--on-surface);
}


/* Industries We Serve */
.industries {
    margin: 50px 0 64px 0;
    padding: 30px 40px 20px 40px;
    color: var(--white);
    background-color: var(--black);
    /* #ff4c1f20 */
}

.industries .header-section {
    text-align: center;
    margin-bottom: 64px;
}

.industries .header-section h2 {
    font-size: var(--title);
    font-weight: var(--fw-bold);
    line-height: 39px;
    letter-spacing: 0.1px;
    color: var(--white);
}

.industries .row {
    margin: 0;
    align-items: flex-start;
}

.industries .col-12 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.industries img {
    width: 50px;
    aspect-ratio: 1/1;
    margin: 0 0 10px 0;
}

.industries-title {
    color: var(--primary);
    font-size: 18px;
    white-space: nowrap;
}

.no-wrap {
    white-space: nowrap !important;
}


/* Services */
.services {
    margin: 0 0 100px 0;
}

.services .header-section {
    text-align: center;
    margin-bottom: 64px;
}

.services .header-section h2 {
    font-size: var(--title);
    font-weight: var(--fw-bold);
    line-height: 39px;
    letter-spacing: 0.1px;
    color: var(--black);
}

.services .row {
    justify-content: center;
}

.services .col-12 {
    min-height: 362px;
    min-width: 40%;
}

.services .cursor {
    cursor: pointer;
    height: 100%;
}

.services .card {
    border: none;
    border-radius: 0px;
    background: var(--white);
    box-shadow: 0px 6px 30px 5px rgba(0, 0, 0, .05);
    height: 100%;
    overflow: hidden;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.services .card-header, .services .card-footer {
    border: none;
    border-radius: 0px;
}

.services .card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--black);
    padding: 12px 10px;
    border-top-left-radius: 30px;
}

.services .card-body {
    padding: 10px 20px;
    background-color: var(--white);
}

.services .title {
    font-size: var(--button-lg);
    font-weight: var(--fw-bold);
    line-height: 25px;
    letter-spacing: -0.35px;
    color: var(--primary);
    margin: 0;
}

.services .desc, .services .bullets {
    color: var(--on-surface);
    font-size: var(--subtitle);
    font-weight: var(--fw-regular);
    margin: 0 0 28px 0;
}

.services .desc {
    line-height: 18px;
    letter-spacing: 0.1px;
}

.services .bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.services .bullets .bullet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.services .bullet i {
    color: var(--primary);
    align-self: center;
}

.services .bullet span {
    white-space: nowrap;
}

.card-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 20px;
    border: 2px solid var(--primary);
    color: var(--white);
    background-color: var(--primary);
    padding: 8px 15px;
    text-decoration: none;
}

.card-button.secondary {
    color: var(--primary);
    background-color: transparent;
}

.services .card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    background-color: var(--white);
    border-bottom-right-radius: 30px;
}

.services .value {
    color: var(--on-surface);
    font-weight: var(--fw-light);
    line-height: 10px;
    letter-spacing: 0.1px;
    font-size: var(--subtitle);
}

/* Products */
.products {
    /* margin: 50px 0 0 0; */
    width: 100%;
    background-color: #ff4c1f20;
    position: relative;   /* so the SVG can be positioned relative to this section */
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.products svg {
  position: absolute;   /* takes the SVG out of normal flow, layers it on top */
  left: 0;                /* aligns to the very left */
  width: 100%;            /* stretches to fill the section's full width */
  height: 60px;           /* controls how tall/deep the curve looks */
  z-index: -1;             /* sends it behind the content, so text isn't covered */
}

.up-curve-svg {
  top: 0;                 /* aligns to the very top of the section */
}

.down-curve-svg {
    bottom: 0;
}

.products .header-section {
    text-align: center;
    /* margin-bottom: 64px; */
}

.products .header-section h2 {
    font-size: var(--title);
    font-weight: var(--fw-bold);
    line-height: 39px;
    letter-spacing: 0.1px;
    color: var(--black);
    margin: 0;
}

.card-products {
    margin: 0;
    position: relative;   /* keeps content above the SVG in stacking order */
    z-index: 1;
    background-color: transparent;
    width: 100%;
    align-self: center;
}

.card-products .row {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 100px 20px 50px 20px;
}

.card-products .card {
    position: relative;
    border: none;
    border-radius: 30px;
    box-shadow: 0 6px 30px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    height: 500px;
    aspect-ratio: 4/5;
}

.card-products .col-lg-6 {
    display: flex;
    justify-content: center;
}

.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.5) 100%);
    backdrop-filter: blur(12px);             /* blurs whatever is BEHIND this element */
    -webkit-backdrop-filter: blur(12px);     /* Safari still needs the -webkit- prefix */
    border: 1px solid rgba(255, 255, 255, 0.3); /* subtle light border helps sell the "glass edge" look */
    border-radius: 16px;                     /* rounded corners read as more "glass panel" than sharp edges */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15); /* soft shadow lifts it off the background */
}

.card-products .card-body {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}


.card-products .card-body img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 15px rgba(0, 0, 0, 0.3));
}


.card-products .carousel-control-prev-icon {
    background-image: url(../img/carousel-left.svg);
}

.card-products .carousel-control-next-icon {
    background-image: url(../img/carousel-right.svg);
}

.card-products .carousel-indicators [data-bs-target] {
    background-color: var(--primary);
}

.card-products .carousel-caption {
    position: relative;
    right: unset;
    left: unset;
    bottom: 0;
    padding: 0;
}

.card-products .carousel-caption h4 {
    margin: 40px 0 10px 0;
    color: var(--black);
}

.card-products .card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-top: none;
    min-height: 50px;
    background-color: transparent;
    padding: 0 0 20px 0;
}


.card-products .content h5 {
    color: var(--black);
    font-size: var(--subtitle-lg);
    font-weight: var(--fw-bold);
    line-height: 20px;
    letter-spacing: 0.02px;
}

.card-products .content p {
    color: var(--on-surface);
    font-size: var(--paragraph-sm);
    font-weight: var(--fw-light);
    margin: 0;
    letter-spacing: -0.32px;
}

/* Clients */
.clients {
    /* display: none !important; */
    width: 70%;
    margin: 0 auto;
    padding: 0 20px;
}

.clients .header-section {
    text-align: center;
    margin-bottom: 64px;
}

.clients .header-section h2 {
    font-size: var(--title);
    font-weight: var(--fw-bold);
    line-height: 39px;
    letter-spacing: 0.1px;
    color: var(--black);
}

.clients .carousel-inner {
    border-radius: 30px;
}

.clients .carousel-control-next, .clients .carousel-control-prev {
    opacity: .7;
}

.clients .carousel-control-next-icon, .clients .carousel-control-prev-icon {
    filter: none;
    background-color: var(--primary);
    /* padding: 8px 20px 8px 20px; */
    border-radius: 50%;
}

.clients .carousel-caption {
    border-radius: 30px;
    color: var(--white);
    background-color: var(--primary);
}

.clients .carousel-caption h5 {
    /* white-space: nowrap; */
    margin: 0;
    padding: 8px 16px;
}

.space {
    height: 100px;
    background: #8888881a;
}

/* Footer */
footer {
    background-color: var(--black);
    box-shadow: 0 12px 66px 0 rgba(229, 232, 222, 0.04);
    padding: 0px 10px 0 10px;
}

.footer-brand img {
    width: 180px;
    filter: invert(100%);
}

footer .p-footer {
    padding: 61px 0 41px 0;
}

footer ul {
    list-style: none;
    padding: 1px;
}

footer .name-head {
    color: var(--primary);
    font-size: var(--subtitle);
    /* font-size: var(--paragraph); */
    font-weight: var(--fw-semi-bold);
    line-height: 18px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

footer .address {
    color: var(--white);
    font-size: var(--subtitle);
    font-weight: var(--fw-light);
    line-height: 18px;
    letter-spacing: 0.1px;
}

.contact span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.contact p {
    color: var(--white);
    font-size: var(--subtitle);
    font-weight: var(--fw-light);
}

.contact span i {
    color: var(--primary);
    font-size: 30px;
}

.contact a{
    color: var(--white);
    text-decoration: none !important;
}

footer .item{
    cursor: pointer;
}

footer .item a{
    color: var(--white);
    font-size: var(--subtitle);
    font-weight: var(--fw-light);
    line-height: 18px;
    letter-spacing: 0.1px;
    margin-bottom: 9px;
}

footer .float-right {
    float: right;
}

.bg-icon-sm {
    width: 35px;
    height: 35px;
    background-color: var(--white);
    color: var(--white);
    font-size: 20px;
    margin-right: 5px;
    padding: 7px;
}

footer .desc{
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--subtitle);
    font-weight: var(--fw-light);
    line-height: 18px;
    letter-spacing: 0.1px;
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer .desc a{
    color: var(--primary);
    text-decoration: underline !important;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 991px) {
    /* Navbar */
    .navbar {
        padding-top: var(--p-space-1);
    }

    .navbar-collapse {
        margin-left: auto;
    }

    .w-50 {
        width: 80% !important;
    }

    /* Slideshow */
    .slideshow {
        padding-top: 4rem;
        width: auto;
    }

    .hero video {
        width: 100%;
        height: auto;
        aspect-ratio: 5/7;
    }

    .overlay {
        padding: 150px 0 0 20px;
        background: rgba(0, 0, 0, 0.73);
    }

    .hero h1 {
        font-size: 40px !important;
        /* padding: 0 0 10px 0; */
    }

    /* .hero-button {
        width: auto;
        font-size: var(--subtitle);
    } */

    /* About */
    .about-us {
        margin: 50px 0 34px 0;
    }

    .about-us .body-section {
        width: auto;
    }

    /* Industries We Serve */
    .industries .industry:not(:last-child) {
        margin: 0 0 50px 0;
    }

    /*Services*/
    .services {
        padding: 0 20px;
    }

    .services .row /*.card*/ {
        gap: 20px;
    }

     .services .col-12 {
        min-height: 410px;
     }

    .services .title {
        font-size: 20px;
    }

    .services .card-body {
        padding: 10px 30px;
    }

    .services .desc, .services .bullets {
        font-size: 15px;
    }

    .services .bullet span {
        white-space: normal;
    }

    .services .col-12:not(:last-of-type) {
        margin-bottom: 50px;
    }

    /* Products */

    .card-products .card {
        height: auto;
        width: 100%;
        aspect-ratio: unset;
    }

    .card-products .row {
        padding-top: 50px;
    }


    .card-products .card-body {
        justify-content: space-between;
    }

    .card-products .card-body.card-one {
        padding-bottom: 20%;
    }

    /* .card-products .card-body {
        height: auto;
        padding-top: 20px;
        padding-bottom: 66px;
    } */

    /* .card-products img {
        margin: 10%;
    } */

    /* .dp-flex {
        display: block;
    } */

    /* Clients */
    .clients {
        width: auto;
    }

    .clients .carousel-caption {
        padding: 5px !important;
    }

    .clients .carousel-caption h5 {
        font-size: var(--subtitle);
    }

    /* Footer */
    footer .float-right {
        float: left !important;
    }

    footer .contact {
        margin-top: 50px;
    }
}

/* Tablet */
@media (min-width: 426px) and (max-width: 1023px) {
    .hero video {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .overlay {
        padding: 250px 0 0 60px;
    }

    /* Products */
    .card-products .row {
        min-height: auto;
    }

    .card-products .card {
        /* width: 50%; */
    }
}

/* Desktop */
@media (max-width: 1023px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        width: 100%;
        padding: 10px 0;
        background-color: var(--white);
        box-shadow: 0 2px 48px 4px rgba(0, 0, 0, 0.09);
        border-bottom-right-radius: 20px;
        border-bottom-left-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .clients .carousel-caption {
        left: 25%;
        right: 25%;
    }
}