/* --- HIDE NATIVE SCROLLBAR --- */
html {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Global Styles */
body {
    background-color: #F9F9F7;
    color: #1C1917;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis Smooth Scrolling Required Base */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Chart Container Strict Styling */
.chart-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 350px;
    max-height: 400px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .chart-container {
        height: 300px;
        max-height: 300px;
    }
}

/* Layout Utilities */
.section-padding {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 8rem;
    width: 100%;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Interactive Service Tabs */
.service-tab {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 3px solid transparent;
}

.service-tab:hover {
    background-color: #ffffff;
    border-left-color: rgba(161, 98, 7, 0.5);
    padding-left: 1.5rem;
}

.service-tab.active {
    background-color: #ffffff;
    border-left-color: #A16207;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    padding-left: 1.75rem;
}

/* Premium Auto-Play Progress Bar */
.service-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #A16207;
    width: 0%;
}

.service-tab.active .service-progress {
    width: 100%;
    transition: width 5s linear;
}

/* Process Stepper Line */
.process-line::before {
    content: '';
    position: absolute;
    top: 2rem;
    bottom: 0;
    left: 2rem;
    width: 1px;
    background-image: linear-gradient(to bottom, #E7E5E4 50%, transparent 50%);
    background-size: 1px 12px;
    z-index: 0;
}

@media (min-width: 768px) {
    .process-line::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.hero-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Slow 2s crossfade, and a very slow 8s zoom */
    transition: opacity 2s ease-in-out, transform 8s linear;
    transform: scale(1);
    z-index: 0;
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1.08);
    /* The slow zoom-in target */
    z-index: 1;
}

/* Override for specific sections to fit content height */
#about,
#who-we-work-with,
#process {
    min-height: auto;
    display: block;
}

/* Continuous Marquee Animation */
@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Translates exactly 50% of the parent container, ensuring a perfect loop regardless of gaps */
        transform: translateX(-50%); 
    }
}

.animate-marquee {
    animation: scrollMarquee 25s linear infinite;
}