/* ==========================================================================
   CSS Resets & Variables
   ========================================================================== */
:root {
    --primary-color: #d4af37;
    /* Construction Yellow/Gold */
    --primary-color-hover: #e0bb43;
    --dark-bg: #151515;
    --darker-bg: #0f0f0f;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --text-muted: #aaaaaa;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.yellow-text {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark-bg);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 38px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: var(--dark-bg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.header.scrolled .logo-img {
    height: 70px;
    margin-top: -10px;
    margin-bottom: -15px;
    transform: scale(1.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-heading);
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-top: -20px;
    margin-bottom: -30px;
    margin-left: -5px;
    transform: scale(1.8);
    transform-origin: left center;
}

.footer-img {
    height: 120px;
    margin-top: -30px;
    margin-bottom: -40px;
}

.nav-action {
    display: none;
}

@media (min-width: 993px) {
    .nav-action {
        display: block;
        margin-left: 1.5rem;
    }
}

.btn-sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--white);
}

/* --- Top Announcement Bar --- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 38px;
    background-color: #000000;
    z-index: 1001; /* Above header if needed */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.top-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.top-bar-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.top-bar-icon {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .top-bar-text {
        font-size: 0.65rem;
        line-height: 1.4;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background-image: url('new-hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 5rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Features Stat Bar
   ========================================================================== */
.features-bar {
    background-color: var(--dark-bg);
    padding: 2.5rem 0;
    border-bottom: 2px solid var(--primary-color);
}

.features-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Motion Design & Animations
   ========================================================================== */
[data-animate="slide-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

[data-animate="slide-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-parallax="true"] {
    will-change: transform;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    padding: 6rem 0;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text-content {
    margin-bottom: 2rem;
}

.about-text-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-top: 5px;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    position: relative;
    padding-bottom: 4rem;
    /* For staggered layout */
}

.about-img {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.about-img::before {
    /* Subtle overlay to enhance contrast for the cinematic feel */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.3));
    z-index: 1;
    pointer-events: none;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover effect on images */
.about-img:hover img {
    transform: scale(1.03);
}

.premium-img-1 {
    grid-column: 1 / 3;
    aspect-ratio: 16/9;
}

.premium-img-2 {
    grid-column: 1 / 3;
    /* Extended to fill more width and look larger relative to the grid */
    width: 75%;
    /* Make it 75% of the container width to keep it offset */
    justify-self: end;
    /* Align it to the right */
    aspect-ratio: 4/3;
    margin-top: -150px;
    /* Increased overlap effect */
    border: 12px solid var(--white);
    /* Thicker border to match its larger size */
    z-index: 2;
}

/* Yellow accent block behind the images */
.premium-grid::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50%;
    height: 60%;
    background-color: var(--primary-color);
    z-index: -1;
    border-radius: 4px;
}

/* ==========================================================================
   Services Section (Light Theme)
   ========================================================================== */
.section-light {
    background-color: var(--light-bg);
}

.services {
    position: relative;
    padding: 6rem 0;
}

.services-container {
    position: relative;
    z-index: 2;
}

.services-header {
    margin-bottom: 4rem;
}

.services-lead {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    max-width: 600px;
    line-height: 1.6;
    margin-top: 1rem;
}

.dark-text {
    color: var(--dark-bg) !important;
}

.text-muted {
    color: #666 !important;
}

.text-left {
    text-align: left;
}

.layout-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    /* Slightly reduced gap to ensure words aren't too squished in 4 cols */
}

.solid-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.solid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon-box {
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    min-height: 50px;
}

.service-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--dark-bg);
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.btn-card-action:hover,
.btn-filled {
    background-color: var(--primary-color);
}

.arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--dark-bg);
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
}

/* ==========================================================================
   What We Offer Section (Split Screen)
   ========================================================================== */
.what-we-offer.split-layout {
    background-color: var(--white);
    padding: 8rem 0;
}

.offer-split-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 992px) {
    .offer-split-container {
        flex-direction: row;
        align-items: stretch;
        gap: 0;
    }
}

/* --- Left Side: Dynamic Image --- */
.offer-image-side {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .offer-image-side {
        min-height: auto;
        padding-right: 4rem;
    }
}

.offer-image-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.offer-dynamic-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: background-image 0.6s ease-in-out;
}

.offer-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
}

.offer-image-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
}

/* --- Right Side: Interactive List --- */
.offer-list-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offer-interactive-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.offer-list-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.offer-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    transition: margin var(--transition-normal);
}

.offer-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 1.5rem;
    width: 40px;
}

.offer-name {
    font-size: 1.8rem;
    color: var(--dark-bg);
    margin: 0;
    flex-grow: 1;
    transition: color var(--transition-fast);
}

.offer-arrow {
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.offer-item-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: calc(40px + 1.5rem);
    /* Align with text, skipping number */
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

.offer-item-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-link {
    color: var(--dark-bg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 4px;
    transition: color var(--transition-fast);
}

.btn-link:hover {
    color: var(--primary-color);
}

/* Active State Hover/Click */
.offer-list-item:hover .offer-name,
.offer-list-item.active .offer-name {
    color: var(--primary-color);
}

.offer-list-item:hover .offer-arrow,
.offer-list-item.active .offer-arrow {
    color: var(--primary-color);
    transform: translateX(10px);
}

.offer-list-item.active .offer-item-header {
    margin-bottom: 1.5rem;
}

.offer-list-item.active .offer-item-content {
    max-height: 200px;
    /* Arbitrary large enough height */
    opacity: 1;
    padding-bottom: 1rem;
}

/* ==========================================================================
   Project Evolution (Before & After Slider)
   ========================================================================== */
.project-evolution {
    padding: 6rem 0;
    background-color: var(--light-bg);
}

.evolution-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

.slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    width: 100%;
    aspect-ratio: 16/9;
    /* Maintain a consistent aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--white);
    touch-action: pan-y;
    /* Prevent page scroll when interacting horizontally */
    user-select: none;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image-cont {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-image-cont img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Prevent image dragging in browsers */
    pointer-events: none;
}

/* CSS Blueprint Filter Strategy */
/* Originally used a filter here, but we now have dedicated before/after imagery */

.before-img {
    width: 50%;
    /* Initial exposed width */
    z-index: 2;
    /* Optional edge highlight where the cut occurs */
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    /* Initial position matching .before-img width */
    transform: translateX(-50%);
    width: 4px;
    z-index: 3;
    pointer-events: none;
    /* Let the container handle the drag events */
}

.handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background-color: var(--primary-color);
}

.handle-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background-color: var(--dark-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    /* Handle needs to be clickable/tappable if interacting specifically with it */
    cursor: ew-resize;
    /* Horizontal resize cursor */
}

/* Add an active state for visual feedback */
.slider-wrapper.is-sliding .handle-button {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-color: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 0.1s ease, background-color 0.2s;
}


/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects {
    padding: 6rem 0;
    background-color: #9ab4c2;
    /* Faded blue/grey from image */
    background-image: linear-gradient(rgba(45, 64, 89, 0.8), rgba(45, 64, 89, 0.8)), url('https://images.unsplash.com/photo-1508450859948-4e04fabaa4ea?q=80&w=2079&auto=format&fit=crop');
    /* City backdrop */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.text-white {
    color: var(--white) !important;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Carousel Container */
.projects-carousel-wrapper {
    position: relative;
    padding-top: 2rem;
}

/* Horizontal Scroll Track */
.projects-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 1.5rem;
    padding-bottom: 2rem;
    /* Hide scrollbar for clean look */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar {
    display: none;
}

/* Individual Cinematic Card */
.carousel-card {
    flex: 0 0 350px;
    /* Fixed width for consistent swiping */
    scroll-snap-align: start;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background-color: var(--dark-bg);
}

.card-img {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-card:hover .card-img img {
    transform: scale(1.08);
    /* Cinematic zoom */
}

/* Dark Gradient Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 17, 19, 0.95) 0%, rgba(16, 17, 19, 0.4) 50%, transparent 100%);
    opacity: 0.8;
    transition: opacity var(--transition-normal);
}

.carousel-card:hover .card-overlay {
    opacity: 0.95;
}

/* Text Content Reveal */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-card:hover .card-info {
    transform: translateY(0);
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.card-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: 0.1s;
}

.carousel-card:hover .card-info p {
    opacity: 1;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-fast);
}

.carousel-arrow:hover {
    background-color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: -25px;
}

.next-arrow {
    right: -25px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary-color);
}

/* ==========================================================================
   Client Logos Section
   ========================================================================== */
.client-logos {
    padding: 6rem 0;
    background-color: var(--white);
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* subtle separation */
}

.logo-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    /* Optional: Fade edges for a cleaner look */
    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);
}

.logo-track {
    display: inline-block;
    padding: 2rem 0;
    /* The animation duration determines speed. Lower = faster. */
    animation: scroll-logos 30s linear infinite;
}

/* Pause the scrolling on hover so users can see a logo */
.logo-track:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 80px;
    /* Standardize height */
    width: auto;
    max-width: 250px;
    margin: 0 4rem;
    /* Spacing between logos */
    vertical-align: middle;
    filter: grayscale(100%) opacity(0.6);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Move left by exactly half the track width (one full set of logos) */
        transform: translateX(-50%);
    }
}

.dot.active {
    background-color: var(--primary-color);
}



/* ==========================================================================
   Contact / Quote Section
   ========================================================================== */
.contact-section {
    background-color: var(--darker-bg);
}

.contact-split {
    display: flex;
    flex-wrap: wrap;
    min-height: 600px;
}

.contact-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.contact-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
}

/* Gradient overlay on the image to blend into form */
.contact-image::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--darker-bg));
}

.contact-form-container {
    flex: 1;
    min-width: 0;
    /* Changed from 300px to avoid breaking tiny screens */
    padding: 6rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--darker-bg);
    /* Ensure solid background on mobile if wrapped */
    z-index: 2;
}

.form-lead {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.advanced-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
}

.form-section-title {
    font-size: 1rem;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.single-col .form-group {
    flex: 100%;
}

/* Modern Input Styling */
.advanced-form input,
.advanced-form select,
.advanced-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 1rem 0 0.5rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 0;
    transition: border-color var(--transition-fast);
}

.advanced-form select {
    appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

.advanced-form select option {
    background-color: var(--darker-bg);
    color: var(--white);
    padding: 10px;
}

/* Floating Labels for text/email inputs */
.advanced-form label {
    position: absolute;
    top: 1.2rem;
    left: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.2s ease;
}

.advanced-form input:focus~label,
.advanced-form input:not(:placeholder-shown)~label,
.advanced-form textarea:focus~label,
.advanced-form textarea:not(:placeholder-shown)~label {
    top: -0.5rem;
    font-size: 0.75rem;
    color: var(--primary-color);
}

.advanced-form input:focus,
.advanced-form select:focus,
.advanced-form textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.advanced-form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Submit Row Styling */
.form-submit-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    gap: 1.5rem;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    height: 100%;
}

.file-upload-label {
    position: static;
    /* Overwrite floating label absolute styling */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    pointer-events: auto;
    /* Re-enable pointer events removed from general label style */
    transition: color var(--transition-fast);
}

.file-upload-label:hover {
    color: var(--white);
}

/* Image overlay specifics */
.contact-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(16, 17, 19, 0.4) 0%, var(--darker-bg) 100%);
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.contact-info-block {
    color: var(--white);
    max-width: 400px;
}

.contact-info-block h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-info-block p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-details strong {
    color: var(--primary-color);
    margin-right: 0.5rem;
}



/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background-color: var(--darker-bg);
    color: var(--text-light);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-size: 0.8rem;
    font-weight: 400;
    font-family: var(--font-body);
    letter-spacing: 2px;
    color: var(--text-muted);
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-list a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-list a:hover {
    color: var(--primary-color);
}

.footer-list li {
    color: var(--text-muted);
    line-height: 1.5;
}

.footer-bottom {
    background-color: #0a0a0a;
    text-align: center;
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mobile-break {
    display: none;
}

/* ==========================================================================
   Responsive / Mobile Optimization
   ========================================================================== */
@media (max-width: 992px) {

    body,
    html {
        overflow-x: hidden;
        width: 100%;
    }

    .mobile-break {
        display: block;
    }

    .desktop-space {
        display: none;
    }

    .nav-action {
        display: block;
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav-action .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
        text-align: center;
        line-height: 1.2;
    }

    .about {
        padding: 3rem 0;
        /* Tighten gap above About section */
    }

    .about-container,
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Overlapping Image Collage on Mobile */
    .premium-grid {
        display: block;
        position: relative;
        padding-left: 15px;
        /* Space for yellow bar */
        padding-bottom: 2rem;
    }

    .premium-grid::before {
        display: block;
        content: '';
        position: absolute;
        top: 20px;
        left: 0;
        right: auto;
        width: 30px;
        height: 70%;
        background-color: var(--primary-color);
        z-index: -1;
        border-radius: 4px;
    }

    .premium-img-1 {
        position: relative;
        width: 90%;
        margin: 0;
        z-index: 1;
        border-radius: 4px;
        transform: none !important;
        /* Disable JS parallax on mobile */
    }

    .premium-img-2 {
        position: relative;
        width: 75%;
        margin: -15% 0 0 auto;
        /* Pull up over top image and push right */
        right: 0;
        left: auto;
        border: 6px solid var(--white);
        z-index: 2;
        border-radius: 4px;
        transform: none !important;
        /* Disable JS parallax on mobile */
    }

    .layout-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-container {
        padding: 3rem 1.5rem;
        /* Reduced padding further to prevent horizontal scrolling */
    }

    .contact-image::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .layout-cards {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .features-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding-left: 0;
        gap: 0.2rem;
        width: 100%;
    }

    /* Scale down the icons slightly to fit all 3 on one line */
    .feature-item {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
        flex: 1;
        min-width: 0;
        /* Allows item to shrink past text width, preventing horizontal scroll */
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-text {
        font-size: 0.7rem;
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.2;
    }

    .what-we-offer.split-layout {
        padding: 4rem 0;
    }

    .offer-split-container {
        gap: 2rem;
    }

    .offer-image-side {
        min-height: 250px;
    }

    .contact-split {
        flex-direction: column;
    }

    .contact-image {
        width: 100%;
        min-height: 300px;
    }

    .contact-image-overlay {
        padding: 2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .footer-container {
        gap: 2rem;
    }

    .client-logos {
        padding: 4rem 0;
    }

    .client-logo {
        height: 40px;
        margin: 0 1.5rem;
    }

    .partners-container {
        justify-content: center;
    }
}