/* Define the font using @font-face */
@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-rg.2307556d95af.otf") format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-rg-it.35d3555742ce.otf") format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-bd.649ca377a06e.otf") format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-bd-it.404493a9b3d6.otf") format('opentype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-el.0fe09fdde5c6.otf") format('opentype');
    font-weight: 200; /* Extra light */
    font-style: normal;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-el-it.be68a43bea12.otf") format('opentype');
    font-weight: 200; /* Extra light */
    font-style: italic;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-lt.0919296af47b.otf") format('opentype');
    font-weight: 300; /* Light */
    font-style: normal;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-lt-it.235e8b1ad14e.otf") format('opentype');
    font-weight: 300; /* Light */
    font-style: italic;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-sb.03faf2906e09.otf") format('opentype');
    font-weight: 600; /* Semi-bold */
    font-style: normal;
}

@font-face {
    font-family: 'Built Titling';
    src: url("../resources/fonts/built-titling-sb-it.6f609d21dd6e.otf") format('opentype');
    font-weight: 600; /* Semi-bold */
    font-style: italic;
}

/* Define the Montserrat font using @font-face */
@font-face {
    font-family: 'Montserrat';
    src: url("../resources/fonts/montserrat/Montserrat-VariableFont_wght.e6cb49ef6502.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url("../resources/fonts/montserrat/Montserrat-Italic-VariableFont_wght.87a9f36eac8c.ttf") format('truetype');
    font-weight: normal;
    font-style: italic;
}

/* Reset margins and paddings.
   height: 100% on both elements made each a scrollport, so the document could
   move under the intro and overscroll past Contact. The body grows with the
   content; only the root clips horizontal overflow. */
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overscroll-behavior-y: none;
    font-family: 'Built Titling';
    scroll-behavior: auto; /* Enable smooth scrolling */
}

html.showreel-scroll-lock {
    overflow: hidden;
}

html.showreel-scroll-lock body {
    position: fixed;
    inset: 0;
    width: 100%;
    overflow: hidden;
    touch-action: none;
}

/* General styles for the navigation */
header {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Dark transparent background */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 60px; /* Adjust height as needed */
    transition: background-color 0.3s ease; /* Smooth background color transition */
}

header.scrolled {
    background-color: #000; /* Solid black background */
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 60px; /* Ensure the height is set correctly */

}

.main-nav.hidden {
    display: none;
}

.nav-items-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center; /* Centers the items horizontally */
    align-items: center;
    height: 60px; /* Adjust height as needed */
    flex-grow: 1; /* Ensure the navigation items container grows */

}

.main-nav li {
    margin: 0 15px; /* Spacing between menu items */
}

.main-nav a {
    text-decoration: none;
    color: #ffffff; /* Text color */
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
    font-family: 'Built Titling'; /* Use Built Titling for navigation items */
}

.main-nav a:hover {
    color: #9A1F24; /* Highlight color on hover */
}

.main-nav .logo {
    display: flex;
    align-items: center; /* Vertically center the logo */
    height: 60px; /* Ensure the height is set correctly */
}

.main-nav .logo img {
    height: 40px;
    margin: auto 0; /* Center the image vertically */
}

.language-switcher select {
    background: transparent;
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid transparent;
    color: #ffffff; /* White text */
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.language-switcher select option {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.language-switcher select:hover,
.language-switcher select:focus {
    color: #9A1F24; 
}

.dropdown-language-buttons {
    display: none; /* Hidden by default, shown in mobile view */
}

.social-icons {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.social-icons a {
    color: #ffffff; /* Icon color */
    font-size: 20px; /* Icon size */
    margin-left: 15px; /* Spacing between icons */
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #9A1F24; /* Highlight color on hover */
}

/* Apply background image to all sections except showreel */
/* section {
    background-image: url("../images/background.08a87d464ada.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; 
} */

.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../images/background.08a87d464ada.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2; /* Keep it behind the content */
}


.services-left ul,
.services-right ul,
.about-header p,
.contact-info p,
.contact-form label,
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button {
    font-family: 'Montserrat', sans-serif;
}

/* Showreel Section */
/* Add scroll margin to all sections */
#showreel {
    position: relative;
    scroll-margin-top: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.showreel-container {
    position: relative;
    margin-top: 0;
    top: -60px; /* Adjust based on the height of the navigation */
    width: 100%;
    height: 100vh; /* Takes up the full viewport height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* #logo-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
} */

/* Full-screen overlay for the logo animation */
#logo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000; /* Black background */
    z-index: 10000; /* Ensure it is above everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#logo-animation {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.showreel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensure the video is behind the text */
}

.showreel-link {
    position: relative;
    z-index: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.showreel-link:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* End of showreel section */


/* Services Section */

/* Full-screen layout for the services section */
#services {
    min-height: 100vh;
    padding: 40px;
    box-sizing: border-box; /* Include padding in height */
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Prevent overflow into other sections */


}

.services-header {
    top: 40px; /* 40px from the top */
    width: 100%;
    text-align: center;
}

.services-header h1 {
    font-size: 4rem;
    margin-bottom: 40px;
}

.services-video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10rem;
    justify-content: center;        /* Center videos in the grid */
}

.services-video-container {
    position: relative;
}

.services-video-container video {
    width: 33vh;
    height: 28.8vh;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Add drop shadow */

}

.services-video-container .services-video-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 65px;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    text-align: center;
}
/* End of services section */


/* Portfolio Section */
#portfolio {
    min-height: 100vh;
    padding: 40px;
    box-sizing: border-box; /* Include padding in height */
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Prevent overflow into other sections */

}

/* Portfolio Header */
.portfolio-header h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

.portfolio-header p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.portfolio-category + .portfolio-category {
    margin-top: 3.5rem;
}

.portfolio-category-title {
    font-family: 'Built Titling', sans-serif;
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 0 0 0.75rem;
    text-align: center;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Always 4 items per row */
    gap: 20px;
    padding: 10px; /* Add spacing inside the grid */
    box-sizing: border-box; /* Include padding in height calculation */
}

/* Portfolio Item */
.portfolio-item {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain video aspect ratio */
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Add drop shadow */
}

.portfolio-item iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* End of portfolio section */


/* About Section */
#about {
    min-height: 100vh;
    /* Increase top padding to push video down from the very top */
    padding: 40px; 
    box-sizing: border-box;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: visible;
}
.services-header {
    margin-bottom: 40px; /* Space below the header before the video */
}

.about-header h1 {
    font-size: 4rem;
    margin: 0; /* Remove default margin */
}

.about-video-container {
    position: relative; /* So text can be absolutely positioned over the video */
    width: 80%;         /* Adjust to control the video width on larger screens */
    max-width: 1200px;  /* Prevent it from going too wide on very large monitors */
    margin: 0 auto;     /* Center horizontally if there's extra screen width */
}
  
  /* Actual video */
.about-video {
    width: 100%;  
    height: auto; /* Keeps aspect ratio */
    display: block;
    border-radius: 40px; /* Optional rounded corners */
}
  
  /* Overlay text inside the video container */
.about-video-text {
    position: absolute;
    top: 0;      /* Fill entire video container */
    left: 0;   
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: center;     /* center vertically */
    text-align: center;
    color: #fff;
    padding: 2rem;          /* some breathing room from edges */
    box-sizing: border-box;
    font-size: 2.5rem;
    font-size: clamp(1rem, 2.5vw, 2.5rem); /* Responsive font size */
    font-family: 'Built Titling', sans-serif; /* Use Built Titling font */
}

.spacer {
    margin-bottom: 1rem; /* Adjust the spacing as needed */
}

/* End of about section */



/* Contact Section */
#contact {
    display: flex; /* Enable flexbox */
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    min-height: 100vh;
    padding: 40px;
    text-align: center;
    color: #fff;
    text-align: left;
    
    background-image: url("../images/contact.bb5715d97d42.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Make the background image fixed */
}


/* Contact Container: Two-column layout */
.contact-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
}

/* Left Column: Contact Info */
.contact-info {
    flex: 1;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
    padding: 20px;
    border-radius: 10px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 1.8rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-link {
    color: #9A1F24;
    text-decoration: none;
    transition: color 0.3s ease;
    padding-right: 15px; /* Add padding to the right */
}

.contact-link:hover {
    color: #641C7D;

}


/* Right Column: Contact Form */
.contact-form {
    flex: 1;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent black */
    padding: 20px;
    border-radius: 10px;
}

.contact-form h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form button {
    width: 100%;
    padding: 10px 20px 10px 10px; /* Add padding to the right */
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    padding-right: 10px; /* Add padding to the right */
    box-sizing: border-box; /* Ensure padding is included in the width */


}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: #fff;
    color: #000;
}

.contact-form textarea {
    resize: none;
}

.contact-form button {
    background: #FF5252;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background: #FF1744; /* Darker red */
}

.popup-message {
    display: none; /* Shown by script, and immediately when .is-open is present */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.popup-message.is-open {
    display: block;
}

.contact-note {
    font-family: 'Montserrat', sans-serif;
}


/* End of contact section */


/* Client logos */
#clients {
    min-height: 0;
    padding: 5rem 0 6rem;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    position: relative;
}

.clients-header {
    margin-bottom: 2.5rem;
    padding-inline: 40px;
}

.clients-header h1 {
    font-family: 'Built Titling', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.clients-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 42rem;
    margin: 1.25rem auto 0;
    white-space: pre-line;
}

.client-logo-marquee {
    --client-logo-gap: 4.5rem;
    --client-logo-fade: 6rem;
    container-type: inline-size;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, #fff var(--client-logo-fade), #fff calc(100% - var(--client-logo-fade)), transparent);
    mask-image: linear-gradient(to right, transparent, #fff var(--client-logo-fade), #fff calc(100% - var(--client-logo-fade)), transparent);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.client-logo-list {
    display: flex;
    width: max-content;
    animation: client-logo-marquee 45s linear infinite;
}

.client-logo-sequence {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: var(--client-logo-gap);
    min-width: 100cqi;
    margin: 0;
    padding: 0;
    padding-inline-end: var(--client-logo-gap);
    list-style: none;
    box-sizing: border-box;
}

.client-logo-sequence li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.client-logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
}

@keyframes client-logo-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* End of client logos */

.menu-toggle {
    display: none;
}



/* MOBILE styles */
@media (max-width: 768px) {
    /* General adjustments */
    body, html {
        font-size: 14px; /* Reduce the base font size */
    }

    /* Navigation adjustments */
    .main-nav {
        flex-direction: column; /* Stack navigation items vertically */
        align-items: center;
        height: auto;
    }

    .nav-items-container {
        position: static; /* Remove absolute positioning */
        transform: none; /* Remove centering transform */
        margin-top: 10px; /* Add spacing */
    }

    .main-nav ul {
        flex-direction: column; /* Stack menu items vertically */
        height: auto;
    }

    .main-nav li {
        margin: 10px 0; /* Add spacing between items */
    }

    .main-nav .logo img {
        height: 30px; /* Adjust logo size */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        color: #fff; /* White text */
        font-size: 1.4rem; /* Adjust font size */
        font-weight: bold; /* Make text bold */
        top: 50%;
        left: 30%; /* Position on the left side */
        transform: translateY(-50%); /* Vertically center */
        z-index: 1001; /* Ensure it is above the dropdown */
        cursor: pointer; /* Ensures the cursor changes to a pointer */
        }
        
    /* Navigation adjustments */
    .nav-items-container {
        display: none;
        flex-direction: column;
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        background-color: rgba(0, 0, 0, 0.9); /* Dark background */
        position: absolute;
        top: 50px; /* Below the header */
        left: 0;
        width: 50%; /* Full width */
        z-index: 1000;
        padding: 20px;
    }

    /* Show navigation items when the menu is open */
    .nav-items-container.open {
        display: flex;
    }

    /* Navigation links styling for dropdown */
    .nav-items-container ul {
        flex-direction: column; /* Stack items vertically */
        align-items: flex-start;
    }

    .nav-items-container li {
        margin: 10px 0; /* Spacing between menu items */
    }

    .nav-items-container a {
        font-size: 1.2rem; /* Adjust font size */
        color: #fff; /* White text */
        text-decoration: none;
    }

    .language-switcher {
        display: none !important;
    }

    .dropdown-language-buttons {
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 24px;
        margin-bottom: 8px;
    }
    .dropdown-language-buttons button {
        background: #222;
        color: #fff;
        border: none;
        border-radius: 5px;
        padding: 8px 18px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
    }
    .dropdown-language-buttons button.active,
    .dropdown-language-buttons button:hover {
        background: #9A1F24;
        color: #fff;
    }

    .social-icons {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
    }

    .logo {
        position: absolute;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
    }


    /* Section MOBILE adjustments */
    section {
        min-height: 100vh; /* Ensure each section takes at least the viewport height */
        margin: 0; /* Remove any unwanted margins */
        position: relative; /* Stack sections properly */
    }


    /* Showreel MOBILE adjustments */
    #showreel {
        margin-bottom: 0; /* Ensure no overlap with the next section */
        height: 100vh; /* Explicitly set height */
        display: flex; /* Keep current layout */
        flex-direction: column; /* Ensure responsiveness */
    }

    .showreel-container {
        width: 100vw; /* Full viewport width */
        height: 100vh;
        padding: 0;
        margin: 0;
        margin-top: 0; 
        overflow: hidden; /* Ensure no overflow */
        position: relative; /* Ensure it is positioned correctly */
        left: 0; /* Align to the left */
    }

    .showreel-video {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }
    /* End of showreel adjustments */



    /* Services section MOBILE adjustments */
    /* Ensure #services does not overlap */

    #services {
        padding: 20px; /* Add spacing */
    }

    .services-header h1 {
        padding-top: 40px;
        font-size: 2rem; /* Reduce font size */
    }

    .services-video-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .services-video-container {
        width: 44%; /* Each video takes almost half of the screen */
        position: relative;
    }

    .services-video-container video {
        width: 100%; /* Fit the container */
        height: auto; /* Maintain aspect ratio */
        object-fit: cover;
        border-radius: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Add drop shadow */
        pointer-events: none; /* Disable interaction */
    }
    
    .services-video-container .services-video-label {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 2.7rem;
        color: #fff;
        padding: 5px 10px;
        border-radius: 3px;
        text-align: center;
    }




    /* Portfolio section MOBILE adjustments */
    #portfolio {
        padding: 20px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* Reduce grid columns to 2 */
        gap: 10px; /* Adjust spacing */
    }

    .portfolio-header h1 {
        padding-top: 40px;

        font-size: 2rem; /* Reduce font size */
    }

    .portfolio-category + .portfolio-category {
        margin-top: 2.25rem;
    }

    .portfolio-category-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Two videos per row */
        gap: 10px; /* Reduce spacing for a tighter layout */
        padding: 5px;
    }

    .portfolio-item {
        width: 100%;
        aspect-ratio: 16 / 9; /* Maintain YouTube video aspect ratio */
    
    }

    .portfolio-item iframe {
        width: 100%;
        height: 100%;
        border: none;
    }




    /* About section MOBILE adjustments */
    #about {
        padding: 20px 0; /* Remove side padding to allow full-width video */
    }

    .about-header h1 {
        padding-top: 40px;
        font-size: 2rem; /* Reduce font size */
    }

    .about-video-container {
        width: 100%; /* Make the video take full width */
        height: 50vh; /* Make the video take up 50% of the screen height */
        position: relative;
        overflow: hidden; /* Ensure the cropped video looks clean */
    }

    .about-video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensure it fills the entire container */
        border-radius: 0; /* Remove border-radius to fit full width */
        pointer-events: none; /* Prevent any user interaction */
    }

    
    .about-video-text {
        position: absolute;
        top: 50%; /* Center vertically */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%; /* Reduce width for better fit */
        padding: 1rem;
        font-size: clamp(1rem, 4vw, 1.6rem); /* Scale text dynamically */
        line-height: 1.4; /* Improve readability */
        text-align: center;
        color: #fff;
        border-radius: 10px; /* Soft edges */
    }

    .spacer {
        display: 1rem;
    }
    

    /* Contact section MOBILE adjustments */
    #contact {
        flex-direction: column; /* Stack columns vertically */
        padding: 20px;
        background-attachment: scroll; /* Allow the background to scroll */
    }

    .contact-container {
        flex-direction: column; /* Stack columns */
        gap: 20px;
    }

    .contact-info, .contact-form {
        width: 92%; /* Full width */
        padding: 15px; /* Adjust padding */
    }

    .contact-info h2, .contact-form h2 {
        font-size: 1.8rem; /* Reduce font size */
    }

    .contact-info p, .contact-form label {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }

    .contact-form input, .contact-form select, .contact-form textarea {
        font-size: 0.9rem; /* Smaller input font size */
    }

    #clients {
        min-height: 0;
        padding: 3rem 0 4rem;
    }

    .clients-header {
        margin-bottom: 2rem;
        padding-inline: 20px;
    }

    .clients-header h1 {
        font-size: 2rem;
    }

    .client-logo-marquee {
        --client-logo-gap: 2.75rem;
        --client-logo-fade: 2.75rem;
    }

    .client-logo-image {
        height: 56px;
    }
}

/* Consent pop-up */
#klaro {
    display: none;
}

/* Show #klaro when the body has the 'show-klaro' class */
body.show-klaro #klaro {
    display: block;
}

#klaro .klaro .cm-modal {
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    position: fixed !important;
    z-index: 9999;
}

#klaro * {
    font-family: 'Montserrat', sans-serif !important;
}

#klaro .klaro .cm-modal.cm-open {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }
    to {
      transform: translateY(0%);
      opacity: 1;
    }
}

#klaro .klaro .cm-modal .cm-header {
    border-bottom: 1px solid #ccc;
}

body.klaro-no-scroll {
    overflow: visible !important;
    position: static !important;
    height: auto !important;
}

/* keep modal content scrollable on mobile */
#klaro .klaro .cm-modal .cm-content {
    max-height: 60vh;
    overflow-y: auto;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.menu-toggle { border: 0; background: transparent; }
.main-nav a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.form-field.has-error input, .form-field.has-error textarea, .form-field.has-error select { outline: 2px solid #ff5252; }
.field-error { color: #ffb3b3; margin-top: -.5rem; }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }

    .client-logo-marquee {
        -webkit-mask-image: none;
        mask-image: none;
        overflow: visible;
        padding-inline: 40px;
        box-sizing: border-box;
    }

    .client-logo-list {
        animation: none;
        transform: none;
        width: auto;
        max-width: 72rem;
        margin-inline: auto;
        justify-content: center;
    }

    .client-logo-sequence {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        min-width: 0;
        padding-inline-end: 0;
    }

    .client-logo-sequence[aria-hidden="true"] {
        display: none;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .client-logo-marquee {
        padding-inline: 20px;
    }
}
