

/* ===================================
   Modulinx custom transparent hero header
====================================== */

header.hero-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}



/* Keep the header transparent while it is over the hero */
header.hero-header:not(.sticky-active) .navbar,
header.hero-header:not(.sticky-active) .navbar.header-transparent,
header.hero-header:not(.sticky-active) .navbar.bg-transparent,
header.hero-header:not(.sticky-active) .navbar.glass-effect {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Prevent the hero from being pushed down */

.home-hero {
    width: 100%;
    max-width: 100%;
   
    
        margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Make sure hero image stays behind everything */
.home-hero .hero-bg-img {
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.home-hero .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-hero .shape-image-animation {
    position: absolute;
    z-index: 2;
}

.home-hero .container {
    position: relative;
    z-index: 3;
}

/* Mobile and tablet transparent header */
@media (max-width: 991px) {

    header.hero-header {
        position: fixed !important;
        background: transparent !important;
    }

    header.hero-header .navbar {
        position: relative;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    header.hero-header .container-fluid {
        background: transparent !important;
    }

    /* Smaller logo on mobile */
    header.hero-header .navbar-brand {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    header.hero-header .navbar-brand img {
        max-height: 42px;
    }

    /* White hamburger lines over hero image */
    header.hero-header .navbar-toggler {
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0;
    }

    header.hero-header .navbar-toggler-line {
        background-color: #ffffff !important;
    }

    /* The opened mobile menu needs a readable background */
    header.hero-header .navbar-collapse {
        position: fixed;
        top: 100%;
        left: 15px;
        right: 15px;
        padding: 20px;
        border-radius: 12px;
        background: rgba(5, 12, 25, 0.94) !important;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    }

    header.hero-header .navbar-nav .nav-link {
        color: #ffffff !important;
        padding: 12px 0;
    }

    header.hero-header .navbar-nav .dropdown-menu {
        background: transparent !important;
        box-shadow: none !important;
        padding: 5px 0 10px 15px !important;
    }

    header.hero-header .navbar-nav .dropdown-menu a {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    header.hero-header .navbar-nav .dropdown-menu a:hover {
        color: #ffffff !important;
    }
}

header.hero-header.sticky.sticky-active .navbar.header-reverse.glass-effect {
    background-color: rgba(5, 12, 25, 0.88) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* ===================================
   Modulinx responsive hero typography
====================================== */

.home-hero .hero-title {
    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.05;
    letter-spacing: -2px;
    text-shadow: 1px 2px 5px black;
    max-width: 680px;
}

.home-hero .hero-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.5;
    margin-bottom: 0;
}

.home-hero .hero-buttons {
    gap: 14px;
}

.home-hero .hero-btn.btn.btn-extra-large {
    font-size: 15px;
    line-height: 1.2;
    padding: 14px 30px;
    min-height: 52px;
}

@media (max-width: 991px) {
    .home-hero .hero-title {
        font-size: 44px;
        line-height: 1.08;
        letter-spacing: -1.5px;
        margin-bottom: 18px;
        max-width: 560px;
    }

    .home-hero .hero-subtitle {
        font-size: 16px;
        line-height: 1.45;
        max-width: 480px;
    }

    .home-hero .hero-btn.btn.btn-extra-large {
        font-size: 14px;
        padding: 12px 24px;
        min-height: 46px;
    }
}

@media (max-width: 767px) {
    .home-hero .hero-title {
        font-size: 38px;
        line-height: 1.1;
        letter-spacing: -1px;
        margin-bottom: 15px;
        max-width: 430px;
    }

    .home-hero .hero-subtitle {
        font-size: 15px;
        line-height: 1.45;
        width: 100% !important;
        max-width: 360px;
    }

    .home-hero .hero-buttons {
        gap: 10px !important;
        margin-top: 18px !important;
    }

    .home-hero .hero-btn.btn.btn-extra-large {
        font-size: 13px;
        padding: 10px 18px;
        min-height: 42px;
    }
}

@media (max-width: 480px) {
    .home-hero .hero-title {
        font-size: 32px;
        line-height: 1.12;
        letter-spacing: -0.5px;
        max-width: 330px;
    }

    .home-hero .hero-subtitle {
        font-size: 14px;
        line-height: 1.4;
        max-width: 300px;
    }

    .home-hero .hero-buttons {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 9px !important;
    }

    .home-hero .hero-btn.btn.btn-extra-large {
        font-size: 12.5px;
        padding: 9px 16px;
        min-height: 40px;
    }
}

@media (max-width: 380px) {
    .home-hero .hero-title {
        font-size: 29px;
        line-height: 1.12;
    }

    .home-hero .hero-subtitle {
        font-size: 13px;
    }

    .home-hero .hero-btn.btn.btn-extra-large {
        font-size: 12px;
        padding: 8px 14px;
        min-height: 38px;
    }
}


/* support for  safe area insets on mobile devices with notches or rounded corners */

@supports (padding: env(safe-area-inset-left)) {
    header.hero-header .container-fluid,
    .home-hero .container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}

.shape-image-animation {
    overflow: hidden;
    max-width: 100vw;
}

.shape-image-animation svg {
    width: 100%;
    max-width: 100%;
    display: block;
}