/* ==============================================
   CSS VARIABLES & RESET
   ============================================== */
:root {
    --orange: #FD783C;
    --teal: #46B4A9;
    --light-teal: #CDEDE9;
    --teal-fade: #DFE8E7;
    --green: #006E6B;
    --dark-green: #004341;
    --light-gray: #F8F8F8;
    --medium-gray: #E6F0EF;
    --dark-gray: #333333;
    --white: #FFFFFF;
    --header-height: 112px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================================
   BASE TYPOGRAPHY & LAYOUT
   ============================================== */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--dark-green);
    background: var(--white);
    padding: 0.5rem;
    border: 1px solid var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-logos img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==============================================
   DEVELOPMENT SECTION
   ============================================== */
.development-section {
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.development-section::after {
    content: '';
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 400px;
    background: url('../images/icon-hex-green.svg') no-repeat center/contain;
    opacity: 1;
    z-index: 10;
}

.development-section .container {
    position: relative;
    z-index: 20;
}

.development-content h3 {
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.development-content p {
    color: var(--dark-green);
}

.development-cta {
    color: var(--teal);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.development-graphic {
    margin-top: 2rem;
}

.development-graphic img {
    width: 100%;
    height: auto;
}

.biotechnology-box {
    background: var(--dark-green);
    padding: 1rem;
    color: var(--white);
    position: relative;
    transition: box-shadow 0.3s ease;
}

.biotechnology-box:hover {
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.1),
        10px 10px 0 0 var(--teal);
}

#slide_top {
    display: none !important;
}

.sustainable-logo-img {
    max-height: 60px;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Typography Hierarchy */
h1,
h2 {
    color: var(--green);
    hyphens: none !important;
}

h3 {
    color: var(--orange);
    hyphens: none !important;
}

h4,
h5,
h6 {
    color: var(--dark-green);
    hyphens: none !important;
}

p,
span,
div {
    color: var(--dark-green);
}

p+p {
    margin-top: 1rem;
}

/* Text Utilities */
.highlight-green {
    color: var(--green);
    font-weight: 500;
}

.highlight-orange {
    color: var(--orange);
    font-weight: 500;
}

.highlight-teal {
    color: var(--teal);
    font-weight: 500;
}

/* Links */
a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--green);
}

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */
.header-section .navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: var(--white);
    width: 100%;
}

.header-section .navbar .container {
    /*
    width: 100%;
    max-width: none;
    padding: 0 20px;
    */
}

.header-section .navbar .logo-img {
    height: 80px;
    transition: height 0.3s ease;
}

.header-section .navbar .nav-link {
    font-weight: 600;
    font-size: 1.125rem;
    color: #000;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.header-section .navbar .nav-link:hover {
    color: var(--teal);
}

.cta-button,
.contact-btn {
    background: var(--orange) !important;
    color: var(--white) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cta-button:hover,
.cta-button:focus,
.cta-button:active,
.cta-button.active,
.contact-btn:hover,
.contact-btn:focus,
.contact-btn:active,
.contact-btn.active {
    background: #e56429;
    color: var(--white);
    transform: translateY(-2px);
}

/* Social Links - Match Footer Style */
.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--dark-green);
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    font-size: 16px;
}

.social-links a:hover {
    background: var(--green);
    color: var(--white);
}

.social-links i {
    color: var(--white);
}

/* Active Navigation */
nav a.active {
    color: var(--teal) !important;
    font-weight: 600;
}

nav a.active.contact-btn {
    color: var(--white) !important;
}


/* Mobile Navigation - Modern Upmarket Design */
.offcanvas-header {
    background: var(--dark-green) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.offcanvas-title {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.btn-close-white {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.btn-close-white:hover {
    opacity: 1;
}

.offcanvas-body {
    background: var(--white);
    padding: 2rem 1.5rem;
}

.mobile-nav-link {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--orange) 0%, #e56429 100%);
    margin: 0 0 1rem 0;
    padding: 1.25rem 2rem;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(253, 120, 60, 0.2);
    border: none;
    position: relative;
    overflow: hidden;
}

.biotechnology-box h3 {
    font-size: 1.5rem;
    color: var(--orange);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.biotechnology-box p {
    color: var(--white);
}

.biotechnology-tagline {
    color: var(--teal);
    margin-bottom: 1rem;
}

.biotechnology-image {
    width: 100%;
    overflow: hidden;
}

.biotechnology-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==============================================
   CONTACT SECTION
   ============================================== */
.contact-section {
    background: url('../images/map.svg') no-repeat center left;
    background-attachment: local;
    background-position: center left;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--teal-fade);
}

.contact-section .contact-btn {
    /*font-size: 1.25rem;*/
}

.contact-heading {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--green);
}

.contact-intro-box {
    background: var(--light-teal);
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    line-height: 1.3;
}

.team-card {
    background-color: var(--green);
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-info h4 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    color: #ffffff;
}

.team-info p {
    margin: 0.1rem 0;
    color: #ffffff;
    line-height: 1.2;
}

.team-photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.team-contact {
    font-size: 0.875rem;
}

.team-contact i {
    margin-right: 0.5rem;
    color: var(--orange);
}

.team-contact a,
.team-contact span {
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
}

.team-location {}

.contact-details-box {
    padding: 0 0 1rem 0;
}

.contact-details-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--green);
}

.contact-details-box p {
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.manufacturing-box {
    background: var(--white);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.manufacturing-box ul {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.manufacturing-box li {
    margin-bottom: 0.5rem;
    color: #000;
}

.manufacturing-box i {
    color: #46B4A9 !important;
    margin-right: 6px;
}

/* ==============================================
   FOOTER
   ============================================== */
footer {
    background-color: #E1E9E8;
    width: 100%;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--dark-green);
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
    border-radius: 6px;
    margin-left: 10px;
}

.footer-social a:hover {
    background: var(--green);
}

.footer-social i {
    font-size: 16px;
    color: var(--white);
}

.footer-bottom {
    background: var(--dark-green);
    color: var(--white);
    font-size: 0.7rem;
    width: 100%;
}

.footer-links a {
    color: var(--white);
    font-size: 0.7rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
}

/* ==============================================
   MODAL
   ============================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 4px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--orange);
}

.modal h2 {
    color: var(--green);
    margin-bottom: 1rem;
}

/* Contact Form 7 Styling */
.modal .wpcf7 {
    margin: 0;
}

.modal .wpcf7-form {
    margin: 0;
}

.modal .wpcf7-form p {
    margin: 0 0 1.5rem 0;
}

.modal .wpcf7-form label {
    display: block;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.modal .wpcf7-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--dark-green);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.modal .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(70, 180, 169, 0.1);
}

.modal .wpcf7-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.modal .wpcf7-date {
    cursor: pointer;
}

.modal .wpcf7-submit {
    background: var(--orange) !important;
    color: var(--white) !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(253, 120, 60, 0.3) !important;
    width: 100% !important;
    border-radius: 4px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.modal .wpcf7-submit:hover {
    background: #e56429 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(253, 120, 60, 0.4) !important;
}

.modal .wpcf7-submit:disabled,
.modal .wpcf7-submit.disabled {
    background: var(--medium-gray) !important;
    color: var(--dark-gray) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Form Validation States */
.modal .wpcf7-form-control.wpcf7-not-valid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.modal .wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Response Messages */
.modal .wpcf7-response-output {
    margin: 1rem 0 0 0;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.modal .wpcf7-form.sent .wpcf7-response-output,
.modal .wpcf7-form.failed .wpcf7-response-output,
.modal .wpcf7-form.invalid .wpcf7-response-output {
    display: block;
    margin-top: 1em;
}

.modal .wpcf7-mail-sent-ok {
    background: rgba(70, 180, 169, 0.1);
    color: var(--green);
    border: 1px solid var(--teal);
}

.modal .wpcf7-validation-errors,
.modal .wpcf7-mail-sent-ng {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.modal .screen-reader-response,
.modal .hidden-fields-container {
    display: none;
}

/* Loading spinner */
.modal .wpcf7-submit.has-spinner::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal .wpcf7-submit.has-spinner.wpcf7-submitting::after {
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==============================================
   RESPONSIVE DESIGN - CRITICAL FIXES
   ============================================== */

/* Ensure all sections are full width */
section {
    width: 100%;
    box-sizing: border-box;
}

/* lg: max-width: 1023px */
@media (max-width: 1023px) {
    .container {
        padding: 0 40px;
        width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-left {
        padding-bottom: 2rem;
    }

    .capabilities-section .container {
        max-width: 100%;
        padding: 0 40px;
        width: 100%;
    }

    .swiper-outer-container {
        max-width: 100%;
        padding: 0 40px;
        width: 100%;
    }

    .swiper-inner-container {
        max-width: 100%;
        width: 100%;
    }

    .swiper-container {
        padding-bottom: 8rem;
        width: 100%;
    }

    .capabilities-swiper .swiper-slide {
        max-width: calc(100vw - 100px);
    }

    .applications-swiper .swiper-slide {
        /*width: 260px;*/
        max-width: calc(100vw - 100px);
    }

    .development-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .capabilities-section {
        padding: 40px 0 80px 0;
    }

    .capabilities-section .container,
    .applications-section .container {
        padding: 0 30px;
        width: 100%;
    }

    .applications-section {
        padding: 40px 0 0 0;
        overflow: hidden;
    }

    .applications-swiper .swiper-outer-container {
        padding: 0 30px;
        max-width: 100vw;
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }

    .applications-swiper .swiper-inner-container {
        max-width: calc(100vw - 60px);
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }

    .applications-swiper .swiper-container {
        max-width: calc(100vw - 60px);
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }

    .application-card .card-content {
        right: 15px;
    }

    .swiper-outer-container {
        padding: 0 30px;
        width: 100%;
    }

    /* Hero responsive fixes for tablet */
    .hero {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 40px;
        min-height: 60vh;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        min-height: 50vh;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .hero-text {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        order: 1;
        padding: 2rem;
        max-width: 600px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        align-self: center;
    }

    .cta-button:hover {
        transform: translateY(-2px);
    }

    .hero-video {
        display: none;
    }

    .hero-background .hero-circle-logo {
        width: 60%;
        left: 20%;
        top: 60%;
        opacity: 0.1;
    }

    .development-text h3 {
        font-size: 1.8rem;
    }

    .development-text p {
        font-size: 1rem;
    }

    .development-cta {
        font-size: 1rem;
    }

    .biotechnology-box {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .biotechnology-box h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .biotechnology-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* md: max-width: 767px */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
        width: 100%;
    }

    .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }

    .section-header p {
        font-size: 1rem;
        line-height: 1.5;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Hide decorative elements */
    .about-section::before,
    .about-section::after,
    .development-section::after {
        display: none;
    }

    .contact-section {
        background: var(--teal-fade);
        background-image: none;
    }

    /* Hero mobile fixes */
    .hero {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 40px;
        min-height: 80vh;
    }

    .hero-content {
        flex-direction: column;
        gap: 1rem;
        min-height: 60vh;
        text-align: center;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
    }

    .hero-text {
        position: relative;
        left: auto;
        bottom: auto;
        width: 100%;
        max-width: 90%;
        padding: 2rem;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        order: 1;
    }

    .hero-content .cta-button {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        align-self: center;
    }

    .hero-video {
        display: none;
    }

    .hero-background .hero-circle-logo {
        width: 80%;
        left: 10%;
        top: 50%;
        opacity: 0.05;
    }

    .capabilities-section {
        padding: 30px 0 60px 0;
        overflow: hidden;
    }

    .capabilities-section .container,
    .applications-section .container {
        padding: 0 20px;
        max-width: 100vw;
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }

    .applications-section {
        padding: 30px 0 0 0;
        overflow: hidden;
    }

    .swiper-outer-container {
        padding: 0 20px;
        max-width: 100vw;
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }

    .swiper-inner-container {
        max-width: calc(100vw - 40px);
        overflow: hidden;
        box-sizing: border-box;
        width: 100%;
    }

    .capabilities-swiper .swiper-slide {
        /*width: calc(100vw - 80px) !important;*/
        max-width: 320px !important;
        flex-shrink: 0;
    }

    .applications-swiper .swiper-slide {
        /*width: calc(100vw - 80px) !important;*/
        max-width: 320px !important;
        flex-shrink: 0;
    }

    .application-card .card-content {
        right: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .contact-heading {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        text-align: center;
    }

    .contact-intro-box {
        text-align: center;
    }

    .manufacturing-box {
        align-self: center;
        text-align: center;
        margin-top: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .contact-details-box p {
        margin-bottom: 1rem;
    }

    .swiper-container {
        padding-bottom: 6rem;
        margin-top: 2rem;
        width: 100%;
    }

    .capability-card .image-container {
        aspect-ratio: 3/4;
    }

    .capability-card .card-content {
        bottom: -45px;
        min-height: 110px;
        padding: 1.25rem;
    }

    .application-card .image-container {
        aspect-ratio: 4/3;
    }
}

/* sm: max-width: 640px */
@media (max-width: 640px) {
    .container {
        padding: 0 15px;
        width: 100%;
    }

    .about-section::before,
    .about-section::after,
    .development-section::after {
        display: none;
    }

    .contact-section {
        background: var(--teal-fade);
        background-image: none;
    }

    .capabilities-section {
        padding: 20px 0 40px 0;
    }

    .capabilities-section .container,
    .applications-section .container {
        padding: 0 15px;
        width: 100%;
    }

    .applications-section {
        padding: 20px 0 0 0;
    }

    .swiper-outer-container {
        padding: 0 15px;
        max-width: 100vw;
        overflow: hidden;
        width: 100%;
    }

    .swiper-inner-container {
        max-width: calc(100vw - 30px);
        overflow: hidden;
        width: 100%;
    }

    .capabilities-swiper .swiper-slide {
        /*width: 260px !important;*/
        max-width: calc(100vw - 60px) !important;
        flex-shrink: 0;
    }

    .applications-swiper .swiper-slide {
        width: 260px !important;
        max-width: calc(100vw - 60px) !important;
        flex-shrink: 0;
    }

    .application-card .card-content {
        right: 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    .logo img {
        height: 60px;
    }

    .development-content {
        gap: 2rem;
    }

    .development-text h3 {
        font-size: 1.6rem;
    }

    .biotechnology-box {
        padding: 1.25rem;
    }

    .biotechnology-box h3 {
        font-size: 1.6rem;
    }

    .manufacturing-box {
        align-self: center;
        text-align: center;
        margin-top: 1rem;
        width: 100%;
        max-width: 280px;
    }
}

/* xs: max-width: 479px - CRITICAL FIX FOR SMALL SCREENS */
@media (max-width: 479px) {

    /* Force full width on very small screens */
    html {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    body {
        width: 100% !important;
        min-width: 320px !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Fix container width restrictions */
    .container {
        padding: 0 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Fix all sections to be full width */
    section {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Header fixes */
    .header-section .navbar {
        width: 100% !important;
    }

    .header-section .navbar .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .section-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
        word-wrap: break-word;
        hyphens: auto;
    }

    .section-header p {
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Swiper container fixes for very small screens */
    .applications-swiper .swiper-outer-container,
    .capabilities-swiper .swiper-outer-container,
    .swiper-outer-container {
        padding: 0 10px !important;
        max-width: 100vw !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .applications-swiper .swiper-inner-container,
    .capabilities-swiper .swiper-inner-container,
    .swiper-inner-container {
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }

    .applications-swiper .swiper-container,
    .capabilities-swiper .swiper-container,
    .swiper-container {
        max-width: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        margin-top: 1.5rem;
        padding-bottom: 4rem;
    }

    .capabilities-swiper .swiper-slide {
        /*width: calc(100vw - 40px) !important;*/
        max-width: 280px !important;
        flex-shrink: 0;
    }

    .capability-card .image-container {
        aspect-ratio: 3/4;
    }

    .capability-card .card-content {
        bottom: -35px;
        min-height: 90px;
        padding: 1rem;
    }

    .capability-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .capability-card p {
        font-size: 0.85rem;
    }

    .applications-swiper .swiper-slide {
        width: calc(100vw - 40px) !important;
        max-width: 280px !important;
        flex-shrink: 0;
    }

    .application-card .card-content {
        right: 15px;
        bottom: -30px;
        min-height: 80px;
        padding: 0.875rem;
    }

    .application-card .image-container {
        aspect-ratio: 4/3;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .contact-heading {
        font-size: 1.6rem;
    }

    .modal-content {
        padding: 1rem;
        margin: 15% auto;
    }

    .manufacturing-box {
        align-self: center;
        text-align: center;
        margin-top: 1rem;
        width: 100%;
        max-width: 280px;
    }

    /* Footer fixes */
    footer {
        width: 100% !important;
    }

    .footer-bottom {
        width: 100% !important;
    }
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, var(--green) 0%, var(--dark-green) 100%);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 110, 107, 0.3);
}

.mobile-nav-link:hover::before {
    left: 100%;
}

.social-link-mobile {
    width: 50px;
    height: 50px;
    background: var(--green);
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 110, 107, 0.2);
    border: 2px solid transparent;
}

.social-link-mobile:hover {
    background: var(--orange);
    color: var(--white) !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(253, 120, 60, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link-mobile i {
    color: var(--white) !important;
}

/* Mobile menu improvements */
.offcanvas {
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    border: none;
}

.nav.flex-column {
    gap: 0;
}

.social-links.d-flex.gap-3.mt-4 {
    gap: 1rem !important;
    margin-top: 2.5rem !important;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

/* XL Desktop: Larger logo for extra large screens */
@media (min-width: 1280px) {
    .header-section .navbar .logo-img {
        height: 90px;
    }
}

/* Tablet Navigation Fix: 992px to 1199px */
@media (max-width: 1199px) and (min-width: 992px) {
    .header-section .navbar .logo-img {
        height: 60px;
    }

    .header-section .navbar .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .contact-btn {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.85rem;
    }

    .social-links a {
        font-size: 16px;
    }
}

/* Large Tablet Navigation: 1024px to 1199px */
@media (max-width: 1199px) and (min-width: 1024px) {
    .header-section .navbar .logo-img {
        height: 65px;
    }

    .header-section .navbar .nav-link {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .contact-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .social-links a {
        font-size: 18px;
    }
}

/* Fix header height calculation for different screen sizes */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Adjust header height variable for different screen sizes */
@media (min-width: 1280px) {
    :root {
        --header-height: 130px;
        /* Larger logo = taller header */
    }
}

@media (max-width: 1279px) and (min-width: 1024px) {
    :root {
        --header-height: 115px;
        /* Medium logo = medium header */
    }
}

@media (max-width: 1023px) and (min-width: 992px) {
    :root {
        --header-height: 100px;
        /* Smaller logo = shorter header */
    }
}

/* ==============================================
   HERO SECTION
   ============================================== */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    max-width: 1440px;
    position: relative;
}

/* Hero Background with Mask */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    mask: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 65%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 65%, rgba(0, 0, 0, 0) 100%);
}

.hero-background::before {}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--teal);
    opacity: 0.5;
    mix-blend-mode: multiply;
    z-index: 2;
}

.hero-circle-logo {
    position: absolute;
    left: 20px;
    top: calc(50% + 20px);
    transform: translateY(-50%);
    width: 50%;
    height: auto;
    z-index: 3;
    opacity: 1;
    mix-blend-mode: multiply;
    background: url('../images/biome-icon-light-bg.svg') center/contain no-repeat;
    aspect-ratio: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.6) 70%, rgba(255, 255, 255, 1) 100%),
        linear-gradient(to bottom, rgba(0, 110, 107, 0.3) 0%, rgba(0, 110, 107, 0.1) 70%, rgba(0, 110, 107, 0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    min-height: 70vh;
}

.hero-text {
    position: absolute;
    left: 0;
    bottom: 15%;
    background: var(--green);
    padding: 3rem;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: min(50vw, 600px);
    z-index: 5;
}

.hero-video {
    position: relative;
    width: min(66.67vw, 900px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-left: min(33vw, 400px);
}

.hero-video video,
.hero-video img {
    width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--white);
    line-height: 1.4;
}

.hero-content .cta-button {
    position: absolute;
    bottom: -25px;
    left: 3rem;
    z-index: 6;
}

/* Hero Video Responsive Fix for 992px - 1360px */
@media (min-width: 992px) and (max-width: 1360px) {
    .hero-video {
        width: min(50vw, 650px);
        margin-left: min(30vw, 350px);
    }

    .hero-text {
        width: min(40vw, 450px);
    }

    .hero-content .cta-button {
        left: 2rem;
    }
}

/* Mobile Hero Override - Force Mobile Layout */
@media (max-width: 991px) {
    .hero {
        padding-top: calc(var(--header-height) + 20px) !important;
        padding-bottom: 40px !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
    }

    .hero-content {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        min-height: 60vh !important;
        gap: 0 !important;
    }

    .hero-text {
        position: static !important;
        left: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
        padding: 2rem !important;
        text-align: center !important;
        order: 1 !important;
    }

    .hero-video {
        display: none !important;
    }

    .hero-content .cta-button {
        position: static !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem !important;
        order: 2 !important;
    }

    .hero-background .hero-circle-logo {
        width: 70% !important;
        left: 15% !important;
        top: 50% !important;
        opacity: 0.08 !important;
    }
}

/* ==============================================
   CTA BUTTON
   ============================================== */
.cta-button {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #e56429;
    color: var(--white);
    transform: translateY(-2px);
}

.cta-button i {
    font-size: 1rem;
    margin-right: 10px;
}

/* ==============================================
   SECTION BASE STYLES
   ============================================== */
section {
    padding: 40px 0;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    contain: layout;
    z-index: 1;
    /*height: 100dvh;*/
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--dark-green);
    max-width: 800px;
    margin: 0 auto;
}

/* ==============================================
   ABOUT SECTION
   ============================================== */
.about-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Hexagon decorations */
.about-section::before {
    content: '';
    position: fixed;
    left: 0;
    bottom: -50px;
    width: 300px;
    height: 400px;
    background: url('../images/icon-hex-orange.svg') no-repeat center/contain;
    opacity: 1;
    z-index: 10;
    transform: translateY(-15%);
}

.about-section::after {
    content: '';
    position: fixed;
    right: 0;
    top: 27%;
    width: 300px;
    height: 400px;
    background: url('../images/icon-hex-orange.svg') no-repeat center/contain;
    transform: rotate(180deg);
    opacity: 1;
    z-index: 10;
}

.about-section .container {
    position: relative;
    z-index: 20;
}

.about-card {
    background: var(--dark-green);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    padding: 1rem 1rem 2rem 1rem;
    height: 100%;
    position: relative;
}

.about-card:hover {
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.1),
        10px 10px 0 0 var(--teal);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
}

/* ==============================================
   SWIPER SLIDER SYSTEM
   ============================================== */
.swiper-outer-container {
    position: relative;
    max-width: min(1400px, 100vw);
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
    box-sizing: border-box;
}

.swiper-inner-container {
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    max-width: min(1280px, calc(100vw - 120px));
    margin: 0 auto;
    box-sizing: border-box;
}

.swiper-container {
    position: relative;
    margin-top: 0;
    padding-bottom: 6rem;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    display: flex;
    flex-direction: column;
    width: auto;
}

/* Navigation Arrows */
.swiper-outer-container .swiper-button-next,
.swiper-outer-container .swiper-button-prev {
    width: 25px;
    height: 25px;
    margin-top: 0;
    background: var(--orange);
    border-radius: 50%;
    color: var(--white) !important;
    font-size: 12px !important;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(253, 120, 60, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.swiper-outer-container .swiper-button-next:hover,
.swiper-outer-container .swiper-button-prev:hover {
    background: #e56429;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(253, 120, 60, 0.4);
}

.swiper-outer-container .swiper-button-next::after,
.swiper-outer-container .swiper-button-prev::after {
    font-size: 12px !important;
    color: var(--white);
}

.swiper-outer-container .swiper-button-next {
    right: 20px;
}

.swiper-outer-container .swiper-button-prev {
    left: 20px;
}

.swiper-outer-container .swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Pagination */
.swiper-container .swiper-pagination {
    bottom: 10px !important;
}

.swiper-container .swiper-pagination-bullet {
    background: var(--teal);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-container .swiper-pagination-bullet-active {
    background: var(--green);
    opacity: 1;
    transform: scale(1.2);
}

.swiper-scrollbar .swiper-scrollbar-drag {
    background-color: var(--orange);
}

/* ==============================================
   CAPABILITIES SECTION
   ============================================== */
.capabilities-section {
    background: var(--medium-gray);
    position: relative;
    overflow: hidden;
    padding: 60px 0 100px 0;
    height: 100dvh;
}

.capabilities-section .container {
    max-width: 1440px;
    padding: 0 40px;
    overflow: hidden;
    box-sizing: border-box;
}

.capabilities-slider .swiper {
    padding-bottom: 5rem;
}

.capabilities-swiper .swiper-slide {
    /*max-width: calc(100vw - 120px);*/
}

.capability-card {
    overflow: visible;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0;
}

.capability-card:hover {
    transform: translateY(-5px);
}

.capability-card .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 400px;
    overflow: hidden;
    border: 3px solid var(--orange);
}

.capability-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.capability-card .card-content {
    position: absolute;
    bottom: -50px;
    left: 30px;
    right: 40px;
    background: var(--green);
    color: var(--white);
    padding: 1rem;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 5px 5px 20px -7px rgba(0, 0, 0, 0.35);
}

@media (max-width: 906px) {
    .capability-card .card-content {
        min-height: 215px;
    }
}

.capability-card h3 {
    color: var(--orange);
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 1.25rem;
}

.capability-card p {
    color: var(--white);
    margin-bottom: 1rem;
    flex-grow: 1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.capability-card .download-link {
    color: var(--white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    margin-top: auto;
    font-size: 0.9rem;
    line-height: 1.2;
}

.capability-card .download-link:hover {
    opacity: 0.8;
}

.capability-card .download-link i {
    font-size: 1rem;
}

.capability-card .download-link .download-icon {
    width: 18px;
    height: 18px;
    margin-right: 0.15rem;
    vertical-align: middle;
}

/* Card positioning */
.capabilities-swiper .swiper-slide:nth-child(odd) .capability-card {
    margin-right: auto;
    margin-left: 0;
}

.capabilities-swiper .swiper-slide:nth-child(even) .capability-card {
    margin-left: auto;
    margin-right: 0;
}

/* ==============================================
   APPLICATIONS SECTION
   ============================================== */
.applications-section {
    background: var(--white);
    position: relative;
    padding: 60px 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;

}

.applications-section .container {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.applications-slider {
    margin-bottom: 2rem;
}

.applications-slider .swiper {
    padding-bottom: 7rem;
}

.applications-slider .swiper .swiper-scrollbar {
    margin-top: 60px;
}

.applications-section .section-header {
    flex-shrink: 0;
}

.applications-swiper .swiper-container {
    padding-bottom: 8rem;
    max-width: min(1000px, 100vw);
    overflow: hidden;
    box-sizing: border-box;
}

.applications-swiper .swiper-outer-container {
    max-width: min(1200px, 100vw);
    overflow: hidden;
    box-sizing: border-box;
}

.applications-swiper .swiper-slide {
    width: 280px;
    max-width: calc(100vw - 120px);
}

.application-card {
    overflow: visible;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0;
}

.application-card:hover {
    transform: translateY(-5px);
}

.application-card .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 3px solid var(--orange);
}

.application-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.application-card .card-content {
    position: absolute;
    bottom: -80px;
    left: 30px;
    right: -30px;
    background: var(--dark-green);
    color: var(--white);
    padding: 1rem 1rem 1rem 1rem;
    min-height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 5px 5px 20px -7px rgba(0, 0, 0, 0.35);
}


.application-card h3 {
    color: var(--orange);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.25rem;
}

.application-card p {
    color: var(--white);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Certifications */
.certifications-section {
    background: var(--teal);
}

.certifications-section h3 {
    font-size: 2rem;
    z-index: 10;
}

.certifications-section .certifications-title {
    position: relative;
}

.certifications-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background-image: url('../images/biome-icon-dark-bg.svg');
    background-position: center center;
    background-repeat: no-repeat;
}

.cert-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.cert-logos img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.text-teal {
    color: var(--green) !important;
}

.text-black {
    color: #000 !important;
}

strong {
    font-weight: 500;
}