:root {
    --bg-color: #000000;
    --text-dark: #ffffff;
    --text-gray: #e2e8f0;
    --navbar-bg: rgba(12, 12, 14, 0.5);
    --navbar-text: #ffffff;
    --accent-gold: #f5a934;

    /* Shared noise background for glass elements */
    --noise-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'SUSE', sans-serif;
}

body,
html {
    width: 100%;
    min-height: 100vh;
    background-color: transparent;
}

/* ================================================
   PRELOADER
   ================================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: #1d1d1d;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader-logo-container {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 20px rgba(249, 157, 58, 0.2));
}

#preloader-logo-container svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

#preloader-logo-container .st0 {
    fill: url(#logoGradient);
    fill-opacity: 0;
    stroke: #f49522;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ================================================
   BACKGROUND VIDEO
   ================================================ */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-color);
}

.video-bg-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.video-bg::-webkit-media-controls,
.video-bg::-webkit-media-controls-enclosure,
.video-bg::-webkit-media-controls-start-playback-button,
.video-bg::-webkit-media-controls-panel,
.video-bg::-webkit-media-controls-play-button,
.video-bg::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none !important;
}

/* ================================================
   UTILITIES
   ================================================ */
.hidden {
    display: none !important;
}

/* ================================================
   WHITE CONTENT SECTION / SERVICES
   ================================================ */
.content-section {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    width: 100%;
    padding: 4rem 0; 
    color: #000000;
    display: block;
}

.services-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem; /* Very narrow margin left and right */
}

.services-header {
    margin-bottom: 0.5rem;
}

.services-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.5px;
    color: #000;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: #000000;
    margin: 1.2rem 0;
}

/* ================================================
   SEQUENTIAL ANIMATIONS INITIAL STATES
   ================================================ */
.seq-anim[data-anim-type="line"] {
    width: 0;
}

.seq-anim[data-anim-type="box"] {
    opacity: 0;
    transform: scale(0.9);
}

.seq-anim[data-anim-type="text"] {
    opacity: 0;
    transform: translateY(20px);
}

.service-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-content h3 {
    font-size: 2.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #000;
}

.service-content p {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 90%;
}

/* Clickable service titles — pointer cursor only */
.service-title-link a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Read More link */
.read-more-link {
    display: inline-block;
    width: fit-content;
    margin-top: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    transition: transform 0.3s ease;
    transform-origin: left center;
}

.read-more-link:hover {
    transform: scale(1.05);
}

.service-image-box {
    width: 22.5%; /* Halved width to reduce height by 50% while keeping ratio */
    aspect-ratio: 2.39 / 1; /* Always 2.39:1 cinematic ratio */
    height: auto;
    background-color: #e5e5e5;
    flex-shrink: 0;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.service-image-box:hover {
    width: 27%;
}

@media (max-width: 992px) {
    .service-row {
        gap: 2rem;
    }
    .service-content h3 {
        font-size: 2.5rem;
    }
    .service-image-box {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .services-container {
        padding: 0 1rem;
    }
    .service-row, .service-row.reverse {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .service-image-box {
        width: 100%;
        /* aspect-ratio: 16 / 9 automatically scales height here */
    }
    .service-content h3 {
        font-size: 2.2rem;
    }
}

/* ================================================
   SITE FOOTER
   ================================================ */
.site-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 2.5rem 3rem 1.5rem;
    color: #ffffff;
    font-family: 'SUSE', sans-serif;
    background-color: #000000; /* Block video background */
}

.footer-glass {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.05), rgba(0, 212, 255, 0.05)),
        linear-gradient(135deg, rgba(22, 22, 26, 0.75) 0%, rgba(10, 10, 12, 0.9) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow: inset 0 1px 3px rgba(200, 200, 200, 0.08);
    pointer-events: none;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    max-width: 400px;
}

.footer-logo {
    height: 42px;
    width: auto;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-company-name {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.footer-summary {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

.footer-links-wrapper {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #f5a934; /* Using the accent gold from variables */
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1440px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 4rem 2rem 2rem;
    }
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }
    .footer-links-wrapper {
        gap: 3rem;
        width: 100%;
        justify-content: space-between;
    }
}

/* ================================================
   LAYOUT
   ================================================ */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 3rem;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 1.5rem 3rem;
    position: relative;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.wrapper .main-content {
    pointer-events: auto;
}

/* ================================================
   NAVBAR SHELL
   The shell itself has NO background or overflow:hidden.
   This allows mega menus to overflow below it freely.
   ================================================ */
.navbar {
    border-radius: 4px;
    padding: 0.9rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 6rem);
    max-width: 1440px;
    margin: 0 auto;
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    /* Positioning context for mega menus */
    /* No overflow:hidden here — that lives in .navbar-glass */
}

/* ================================================
   NAVBAR GLASS LAYER
   This is the decorative glass background.
   It sits behind the content using z-index and
   uses overflow:hidden to clip the shimmer animation.
   ================================================ */
.navbar-glass {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    overflow: hidden;
    z-index: 0;
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.05), rgba(0, 212, 255, 0.05)),
        linear-gradient(135deg, rgba(22, 22, 26, 0.75) 0%, rgba(10, 10, 12, 0.9) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow: inset 0 0 3px 2px rgba(200, 200, 200, 0.08);
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Shimmer animation lives on the glass layer */
.navbar-glass::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(1);
    animation: shimmer-move 14s infinite linear, shimmer-breathe 4s infinite ease-in-out;
    pointer-events: none;
}

@keyframes shimmer-move {
    0% {
        left: -15%;
    }

    100% {
        left: 115%;
    }
}

@keyframes shimmer-breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

/* Hover state — only on the glass layer */
.navbar:hover .navbar-glass {
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.08), rgba(0, 212, 255, 0.08)),
        linear-gradient(135deg, rgba(28, 28, 34, 0.8) 0%, rgba(12, 12, 16, 0.95) 100%);
}

/* Dynamic Dark Glass shading (triggers when navbar scrolls over white/bright backgrounds) */
.navbar.dark-glass .navbar-glass {
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.08), rgba(0, 212, 255, 0.08)),
        linear-gradient(135deg, rgba(10, 10, 12, 0.9) 0%, rgba(5, 5, 6, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(220%);
    -webkit-backdrop-filter: blur(40px) saturate(220%);
}

.navbar.dark-glass:hover .navbar-glass {
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.1), rgba(0, 212, 255, 0.1)),
        linear-gradient(135deg, rgba(12, 12, 14, 0.95) 0%, rgba(6, 6, 8, 1) 100%);
}

/* ================================================
   NAVBAR CONTENT (sits above glass layer)
   ================================================ */
.navbar-brand,
.navbar-nav,
.navbar-search {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navbar-text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-logo-img {
    height: 22px;
    width: auto;
    display: block;
}

.navbar-nav {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.2rem;
    list-style: none;
    margin: 0;
}

/* Nav item — positioning parent for mega menus */
.nav-item {
    position: relative;
}

.nav-link {
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    transition: color 0.3s ease;
    position: relative;
    letter-spacing: 0.5px;
    white-space: nowrap;
    /* Reset button styles */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
}

/* Chevron rotation when menu is open */
.nav-chevron {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-link.active .nav-chevron {
    transform: rotate(180deg);
}

.navbar-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.navbar-search {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navbar-text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.25rem;
}

.navbar-search:hover {
    color: var(--accent-gold);
}

/* Mobile hamburger — hidden on desktop, shown on mobile */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--navbar-text);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
    outline: none;
}

.mobile-menu-btn:hover {
    color: var(--accent-gold);
}

.mobile-menu-btn.active .fa-bars::before {
    content: "\f00d";
    /* switches to X icon */
}

/* ================================================
   MEGA MENU
   ================================================ */
.mega-menu {
    position: absolute;
    top: calc(100% + 1.8rem);
    /* gap below the navbar */
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 320px;
    z-index: 100;
    border-radius: 4px;
    overflow: hidden;

    /* Glassmorphism — mirrors the navbar glass */
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.06), rgba(0, 212, 255, 0.06)),
        linear-gradient(135deg, rgba(18, 18, 22, 0.85) 0%, rgba(8, 8, 10, 0.95) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 3px 2px rgba(200, 200, 200, 0.08);

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Solution mega menu: wider + pinned to navbar left edge */
#menu-solution {
    min-width: 520px;
    max-width: 90vw;
    left: 0;
    transform: translateY(-8px);
}

#menu-solution.open {
    transform: translateY(0);
}

#menu-solution .mega-menu-col {
    min-width: 200px;
}

.mega-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-inner {
    display: flex;
    gap: 0;
    padding: 1.25rem;
}

.mega-menu-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 140px;
}

.mega-menu-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.55rem;
    padding-left: 0.35rem;
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.45rem 0.5rem;
    border-radius: 7px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.mega-menu-link i {
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.mega-menu-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(3px);
}

.mega-menu-link:hover i {
    color: var(--accent-gold);
}

.mega-menu-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 1rem;
    flex-shrink: 0;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 0 4rem;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    transform: translateY(-3rem);
}

.hero-text h1 {
    font-size: 4.2rem;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.hero-text h1 span.light {
    font-weight: 400;
    display: block;
    white-space: nowrap;
    opacity: 0;
}

.hero-text h1 span.bold {
    font-weight: 800;
    display: block;
    margin-top: 0.2rem;
    white-space: nowrap;
    opacity: 0;
}


/* ================================================
   CLIENT & PARTNER
   ================================================ */
.client-partner-section {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 900px;
    z-index: 5;
}

.client-partner-title {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.client-partner-marquee {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 700px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.client-partner-marquee:hover .client-partner-logos {
    animation-play-state: paused;
}

.client-partner-logos {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
    flex-shrink: 0;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
    to {
        transform: translateX(-100%);
    }
}

.client-partner-logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.client-partner-logos img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* ================================================
   MOBILE DRAWER
   ================================================ */
.mobile-drawer {
    display: none;
    /* only visible on mobile via media query */
    position: absolute;
    /* float above content — does NOT push anything down */
    top: calc(100% + 0.5rem);
    /* just below the navbar */
    left: 0;
    right: 0;
    z-index: 200;
    border-radius: 4px;
    overflow: hidden;
    /* Slide-down entrance */
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.mobile-drawer.open {
    max-height: 1200px;
    opacity: 1;
}

/* Glass layer for the drawer */
.mobile-drawer-glass {
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background:
        var(--noise-svg),
        linear-gradient(115deg, rgba(245, 169, 52, 0.06), rgba(0, 212, 255, 0.06)),
        linear-gradient(135deg, rgba(18, 18, 22, 0.85) 0%, rgba(8, 8, 10, 0.95) 100%);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 3px 2px rgba(200, 200, 200, 0.08);
    pointer-events: none;
    z-index: 0;
}

.mobile-drawer-content {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0;
}

/* Each accordion section */
.mobile-section {
    padding: 0 0.25rem;
}

.mobile-section-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'SUSE', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    cursor: pointer;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    outline: none;
}

.mobile-section-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--accent-gold);
}

.mobile-section-toggle.active {
    color: var(--accent-gold);
}

.mobile-chevron {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.mobile-section-toggle.active .mobile-chevron {
    transform: rotate(180deg);
    color: var(--accent-gold);
}

/* Accordion submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 1rem;
}

.mobile-submenu.open {
    max-height: 600px;
}

.mobile-submenu-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0.5rem 0 0.4rem 0.3rem;
}

.mobile-submenu-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 0.5rem;
    border-radius: 7px;
    transition: background 0.2s ease, color 0.2s ease;
    margin-bottom: 0.05rem;
}

.mobile-submenu-link i {
    width: 15px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.mobile-submenu-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.mobile-submenu-link:hover i {
    color: var(--accent-gold);
}

.mobile-submenu .mobile-submenu-link:last-child {
    margin-bottom: 0.5rem;
}

.mobile-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0.2rem 1rem;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .wrapper {
        padding: 1rem 1.5rem;
    }

    .navbar {
        width: calc(100% - 3rem);
        top: 1rem;
    }

    .hero-text h1 {
        font-size: 3.2rem;
    }

    .navbar-nav {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    /* Show hamburger on mobile */
    .mobile-menu-btn {
        display: flex;
    }

    /* Show mobile drawer on mobile */
    .mobile-drawer {
        display: block;
    }

    .main-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        margin-top: 4rem;
    }



    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h1 span.light,
    .hero-text h1 span.bold {
        white-space: normal;
    }

    .client-partner-section {
        margin-top: 2rem;
        gap: 0.8rem;
        padding: 0 1rem;
    }
    
    .client-partner-logos {
        gap: 1.2rem;
        padding-right: 1.2rem;
    }
    
    .client-partner-logos img {
        height: 25px;
    }
}

/* ================================================
   NEW SECTION (Slide-up page)
   ================================================ */
.new-section {
    position: relative;
    z-index: 2;
    background-color: #0f172a;
    /* Navy */
    min-height: 200vh;
    width: 100%;
}

/* ================================================
   SCROLL TO EXPLORE INDICATOR
   ================================================ */
.scroll-explore {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s ease;
    animation: scroll-fade-in 1s ease-in forwards;
    animation-delay: 2s;
}

@keyframes scroll-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

.scroll-explore i {
    font-size: 0.7rem;
    animation: scroll-bounce 2s infinite ease-in-out;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }
}

.horizontal-scroll-wrapper {
    height: 400vh;
    position: relative;
    width: 100%;
}

.services-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.services-heading {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.services-heading h2 {
    font-size: 4.2rem;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.services-heading h2 span.light {
    font-weight: 400;
    display: block;
    white-space: nowrap;
    opacity: 0;
}

.services-heading h2 span.bold {
    font-weight: 800;
    display: block;
    margin-top: 0.2rem;
    white-space: nowrap;
    opacity: 0;
}

.carousel {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 0.8rem;
    padding: 0 5vw;
    /* Aligns the first slide to the left edge with a margin */
    width: max-content;
    will-change: transform;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    position: relative;
    flex: 0 0 auto;
    width: clamp(300px, 85vw, 850px);
    background-color: #020617;
    /* Darker Navy */
    border-radius: 8px;
    padding: 3.5rem 3.5rem 2.5rem 2.5rem;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 520px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (hover: hover) {
    .carousel-slide:hover {
        transform: translateY(-12px);
    }
}

.slide-content {
    display: flex;
    flex-direction: column;
}

.slide-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.slide-content h4 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.slide-content p {
    font-size: 0.95rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 0;
}

.slide-content .learn-more {
    position: absolute;
    bottom: 2.5rem;
    right: 3.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.slide-content .learn-more:hover {
    color: var(--accent-gold);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
    padding: 0;
}

.carousel-dots .dot.active {
    background-color: #ffffff;
    width: 28px;
}

@media (max-width: 1024px) {
    .carousel-track {
        padding: 0 calc(50vw - 350px);
    }

    .services-heading h2 {
        font-size: 3.2rem;
    }
}

@media (max-width: 768px) {
    .services-content {
        justify-content: flex-start;
        padding-top: 7.5rem;
    }

    .services-heading {
        margin-top: 0;
        margin-bottom: 2rem;
    }

    .services-heading h2 {
        font-size: 2.3rem;
    }

    .carousel {
        padding-top: 0;
        padding-bottom: 1rem;
    }

    .carousel-track {
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .carousel-slide {
        scroll-snap-align: center;
        padding: 2.5rem 2rem;
        min-height: 530px;
    }

    .slide-content .learn-more {
        right: 2rem;
        bottom: 2rem;
    }

    .slide-content h3 {
        font-size: 1.8rem;
    }

    .slide-content h4 {
        font-size: 1.1rem;
    }

    .slide-content p {
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .services-content {
        padding-top: 6rem;
    }

    .services-heading h2 {
        font-size: 1.85rem;
    }

    .slide-content h3 {
        font-size: 1.5rem;
    }

    .slide-content h4 {
        font-size: 0.95rem;
    }

    .slide-content p {
        font-size: 0.72rem;
    }

    .slide-content .learn-more {
        right: 1.5rem;
        bottom: 1.5rem;
        font-size: 0.85rem;
    }

    .navbar {
        width: calc(100% - 2rem);
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .services-content {
        height: auto;
        min-height: 100vh;
    }

    .carousel-slide {
        min-height: 300px;
    }
}

.navy-section {
    position: relative;
    z-index: 3;
    background-color: #0a0a1a;
    height: 100vh;
    width: 100%;
    margin-top: -100vh;
}

/* ================================================
   TEXT REVEAL SECTION
   ================================================ */
#text-reveal-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    width: 100%;
    position: relative;
    padding: 0 5vw;
}

.reveal-text-container {
    text-align: center;
    max-width: 1200px;
}

#reveal-text {
    font-size: 5vw;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #e5e5e5; /* Light grey initial state */
}

@media (min-width: 1200px) {
    #reveal-text {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    #reveal-text {
        font-size: 2.5rem;
    }
}

/* ================================================
   TECH BACKBONE SECTION
   ================================================ */
#tech-backbone-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

#tech-backbone-section .tech-text-content h2 {
    color: #ffffff;
}

#tech-backbone-section .tech-text-content p {
    color: #d1d5db;
}

#tech-backbone-section .read-more-link {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.tech-top-row {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 3.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.tech-image-box {
    background-color: #e5e5e5;
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 2/1;
}

.tech-text-content {
    padding-top: 1rem;
}

.tech-text-content h2 {
    font-size: 3.4rem;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.tech-text-content p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tech-bottom-row {
    background-color: #e5e5e5;
    border-radius: 4px;
    padding: 4.5rem 3rem;
    width: 100%;
    color: #111;
}

.sintesa-content {
    max-width: 45%;
}

.sintesa-logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.sintesa-logo-area span {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.sintesa-content p {
    font-size: 0.82rem;
    color: #333;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .sintesa-content {
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .tech-top-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .tech-text-content h2 {
        font-size: 2rem;
    }
    .tech-bottom-row {
        padding: 2rem;
    }
    .sintesa-content {
        max-width: 100%;
    }
}

/* ================================================
   PRODUCTS & ARTICLES SECTION
   ================================================ */
#products-articles-section {
    background-color: #1a1a1a; /* Dark mode background */
    color: #ffffff;
}

#products-articles-section .services-header h2,
#products-articles-section .product-text-content h3 {
    color: #ffffff;
}

#products-articles-section .product-text-content p {
    color: #d1d5db;
}

#products-articles-section .read-more-link {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

#products-articles-section .divider-line {
    background-color: #333333;
}
.product-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.product-text-content h3 {
    font-size: 5.5rem;
    font-weight: 800;
    color: #111;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.product-text-content p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.product-image-box {
    background-color: #e5e5e5;
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 16/9;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 3rem 0 4rem 0;
}

.article-box {
    background-color: #e5e5e5;
    border-radius: 4px;
    width: 100%;
    aspect-ratio: 1/1;
}

.article-item {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.article-text a {
    text-decoration: none;
    color: #ffffff;
}

.article-text h4 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    color: #ffffff;
    transition: color 0.2s ease;
}

.article-text a:hover h4 {
    text-decoration: underline;
}

.article-text p {
    font-size: 0.85rem;
    color: #d1d5db;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .product-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-row {
        grid-template-columns: 1fr;
    }
    .product-text-content h3 {
        font-size: 4rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

.services-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}