/* =========================================
       GLOBAL LOGO SIZING
       ========================================= */
       
    /* 1. Header Logo */
   
    .logo:hover img {
        transform: scale(1.05); /* Slight pop when hovering in the navbar */
    }

/* =========================================
       2. LOGO GROUP (BACK IN THE FLOW)
       ========================================= */
    .logo-group {
        position: relative; /* Kills the floating effect */
        top: 0;
        left: 0;
        display: flex;
        align-items: center; 
        gap: 15px; 
        text-decoration: none;
    }

    /* 3. SCALED TO FIT INSIDE THE 80PX HEADER */
    
    .logo img.global-brand-logo {
        /* --- CHANGE THESE TWO VALUES TO ADJUST THE DIAMETER --- */
        height: 55px !important; 
        width: 55px !important;  
        /* ------------------------------------------------------ */

        background-color: #ffffff !important; /* Creates the solid white background */
        border-radius: 50% !important; /* Turns the square background into a perfect circle */
        object-fit: contain !important; /* Ensures the logo never stretches, staying perfectly inside the circle */
        padding: 1px !important; /* Adds breathing room between the logo edges and the white circle */
        
        display: block;
        transition: transform 0.3s ease;
        /* NOTE: mix-blend-mode: screen; HAS BEEN REMOVED so the black logo remains visible! */
    }

    /* Targets ONLY the text image and overpowers any other rules */
    .header-text-img {
        height: 45px !important; /* Control your text size independently here */
        width: auto !important;
        display: block;
        transition: opacity 0.3s ease;
        mix-blend-mode: screen; 
    }

    .logo-group:hover .header-text-img {
        opacity: 0.8; 
    }
   



    /* Mobile Scaling for the text image */
    @media (max-width: 900px) {
        .header-text-img {
            height: 25px; 
        }
    }

    /* 2. About Section Logo */
    .about-section-logo {
        height: 60px; 
        width: auto;
        margin-bottom: 25px;
        display: block;
    }

    /* 3. Footer Logo */
    .footer-section-logo {
        height: 70px;
        width: auto;
        margin: 0 auto 20px auto; /* Centers it above the text */
        display: block;
        opacity: 0.8; /* Slightly faded so it doesn't distract from the form */
    }

    /* Mobile Scaling */
    @media (max-width: 900px) {
        .logo img { height: 35px; }
        .about-section-logo { height: 45px; margin-bottom: 15px; }
        .footer-section-logo { height: 50px; }
    }

:root {
    /* Set to 1 to flow left, set to -1 to flow right */
    --wave-flow-direction: -1; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Added for smooth scrolling between sections */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #0d0d0d;
    position: fixed;
    width: 100%;
    height:80px;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #b0b0b0;
}

/* Hero Section with updated Cloudinary URL */
.hero {
    height: 100vh;
    /* Updated Cloudinary URL */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end; 
    align-items: flex-end; 
    padding-right: 10%;
    padding-bottom: 12%;
    position: relative;
    color: #ffffff;
}

/* Add this to the VERY TOP of your CSS file */
:root {
    /* Set to 1 to flow left, set to -1 to flow right */
    --wave-flow-direction: 1; 
}

/* ----------------------------------------- */
/* Replace your existing Hero & Wave CSS with this: */

.hero {
    height: 100vh;
    display: flex;
    justify-content: flex-end; 
    align-items: flex-end; 
    padding-right: 10%;
    padding-bottom: 12%;
    position: relative;
    color: #ffffff;
    overflow: hidden; /* Prevents the widened wave from causing horizontal scrolling */
}

/* New styling for the video background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Keeps it behind everything */
}

/* The dark overlay (Maintains your black filter) */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1; /* Sits between the video and the text */
}

.hero-content {
    z-index: 2;
    text-align: right; 
    max-width: 600px; 
}

/* =========================================
       HERO TEXT (STATIC ON DESKTOP)
       ========================================= */

    .hero-marquee-container {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Top text: Now White and Static */
    .hero-marquee-text {
        display: block;
        font-weight: 400;
        font-size: 1.0rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        color: #ffffff; /* Changed from copper to white */
    }

    /* Middle larger text: Static */
    .hero-marquee-text-large {
        display: block;
        font-family: 'Playfair Display', serif;
        font-size: 2.0rem; 
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    /* Keep the Animation Engine here for the mobile CSS to use */
    @keyframes heroScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }

    /* 5. Update the new main static text (H1) */
    .hero-content h1 {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        /* Shrunk to 2.5rem because this new sentence is much longer */
        font-size: 2.5rem; 
        letter-spacing: 2px;
        margin-bottom: 30px;
        line-height: 1.3;
    }

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #FFC000; /* Solid Hard Hat Yellow */
    color: #050505; /* Dark text */
    border: 2px solid #FFC000;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 30px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: transparent;
    color: #FFC000;
    transform: translateY(-3px); /* Slight lift effect */
}

/* Updated Flowing Wavy Divider */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.flowing-wave {
    position: relative;
    display: block;
    width: calc(200% + 1.3px); /* Double width so we have track to animate */
    height: 80px; 
    /* The animation duration (6s) controls the speed of the flow */
    animation: flowWave 15s linear infinite; 
}

.custom-shape-divider-bottom .shape-fill {
    fill: #151515; 
}

@keyframes flowWave {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Uses your variable to decide which way to pull the SVG */
        transform: translateX(calc(-50% * var(--wave-flow-direction)));
    }
}

/* --- Unconventional Layout: Absolute Anchors & Stacked Images --- */

.about {
    padding: 120px 5%; /* Increased padding to accommodate protruding stats */
    background-color: #151515;
    color: #ffffff;
    display: flex;
    justify-content: center;
}

.about-split-layout {
    display: flex;
    width: 100%;
    max-width: 1200px;
    gap: 80px; /* Distance between the text cluster and the image stack */
    align-items: center; /* Vertically centers the left and right columns */
}

/* --- Left Side: Text Box & Absolute Stats --- */
.about-left-complex {
    flex: 1.2; /* Takes up slightly more room than the images */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-text-anchor {
    position: relative; /* This is the anchor point for the stats and connectors */
    background-color: #1a1a1a;
    padding: 50px;
    border: 1px solid #444444;
    border-radius: 4px;
    z-index: 5;
    /* Margin gives the absolute positioned stats room to breathe outside the box */
    margin: 40px; 
}

.about-text-anchor h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-text-anchor p {
    font-size: 1rem;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 15px;
}

.about-text-anchor p:last-child {
    margin-bottom: 0;
}

/* Smaller, corner-locked stat cards */
.stat-card {
    position: absolute;
    background-color: #0d0d0d;
    border: 1px solid #444444;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    width: 120px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10; /* Keeps them above the connectors */
}

/* Locking them exactly halfway off the corners */
.top-left { top: -45px; left: -60px; }
.top-right { top: -45px; right: -60px; }
.bottom-left { bottom: -45px; left: -60px; }
.bottom-right { bottom: -45px; right: -60px; }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SVG Connectors */
.connector {
    position: absolute;
    z-index: 1; /* Sits behind the text box border and stat cards */
}

.horiz-connector {
    left: 0;
    /* Adjusts the placement so the rebar aligns with the center of the stat cards */
}
.horiz-connector.top { top: -6px; }
.horiz-connector.bottom { bottom: -6px; }

.vert-connector {
    top: 0;
}
.vert-connector.left { left: -8px; }
.vert-connector.right { right: -8px; }


/* --- Right Side: Stacked Images --- */
.about-right-images {
    flex: 0.8; /* Slightly narrower column */
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between the two stacked images */
}

/* --- Upgraded Photo Frames: Clean Structural Borders --- */

.image-wrapper {
    position: relative;
    padding: 15px;
    background-color: #1a1a1a;
    border-radius: 4px;
    /* Clean, contained frame that respects padding */
    border: 1px solid #444444; 
    /* Bold copper accent on the top edge */
    border-top: 4px solid #54a5d7; 
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Smooth hover effect that lifts the frame up slightly */
.image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: #de9d67; /* The entire frame glows copper on hover */
}

.img-bordered {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #2a2a2a;
    border-radius: 2px;
    display: block; /* Removes any tiny phantom gaps below the image */
}

.image-caption {
    text-align: center;
    padding-top: 15px;
}

.image-caption h4 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.image-caption p {
    font-size: 0.9rem;
    color: #54a5d7; 
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1000px) {
    .about-split-layout {
        flex-direction: column;
    }
    /* On small screens, we pull the stats into a normal grid so they don't break off the screen */
    .about-text-anchor {
        margin: 0;
        padding: 30px;
    }
    .stat-card, .connector {
        display: none; /* Hides the complex desktop-only structure on mobile */
    }
}

/* --- Slam Entry Animations --- */

/* --- Cinematic Zoom & Swoop Animations --- */

.swoop-left, .swoop-right {
    opacity: 0;
    /* Ensures the scaling happens from the center of the element */
    transform-origin: center center; 
}

/* JavaScript triggers these classes */
.swoop-left.is-visible {
    animation: swoopCurveLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.swoop-right.is-visible {
    animation: swoopCurveRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered delays for a cascading build-in effect */
.about-text-anchor.swoop-left { animation-delay: 0s; }
.stat-card.top-left.swoop-left { animation-delay: 0.1s; }
.about-right-images.swoop-right { animation-delay: 0.15s; }
.stat-card.bottom-left.swoop-left { animation-delay: 0.2s; }
.stat-card.top-right.swoop-right { animation-delay: 0.25s; }
.stat-card.bottom-right.swoop-right { animation-delay: 0.35s; }

/* The Keyframes that create the curved path and scaling */
@keyframes swoopCurveLeft {
    0% {
        opacity: 0;
        /* Starts massive (scale 3) and offset to the right/bottom to simulate being centered on screen */
        transform: translate(40vw, 20vh) scale(3); 
    }
    40% {
        opacity: 1;
        /* Arcs high and slightly past its final destination to create the curve */
        transform: translate(-5vw, -10vh) scale(1.2); 
    }
    100% {
        opacity: 1;
        /* Slams perfectly into its grid place */
        transform: translate(0, 0) scale(1); 
    }
}

@keyframes swoopCurveRight {
    0% {
        opacity: 0;
        /* Starts massive (scale 3) and offset to the left/bottom */
        transform: translate(-40vw, 20vh) scale(3); 
    }
    40% {
        opacity: 1;
        /* Arcs high and slightly past its destination to the right */
        transform: translate(5vw, -10vh) scale(1.2); 
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1); 
    }
}

/* --- Our Services: Blueprint Theme --- */

.services-blueprint {
    position: relative;
    background-color: #0a3663; 
    /* The first linear-gradient is the new 60% Black Filter */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; 
    background-position: 0 0, 0 0, 0 0, 0 0; /* Reset to 0 0 for perfect alignment with the SVG */
    
    padding: 100px 5%; 
    min-height: 80vh; 
    color: #ffffff;
    margin-top: 40px; 
}

/* Sharp Upward Torn Paper Divider */
.blueprint-tear-top {
    position: absolute;
    /* Exactly matches the 100px height so the grid grids align flawlessly */
    top: -100px; 
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    z-index: 5; 
}

.blueprint-tear-top svg {
    position: relative;
    display: block;
    height: 100%;
}

.services-content {
    position: relative;
    z-index: 15;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Upgraded Services Pipeline Layout --- */

.services-content {
    position: relative;
    z-index: 15;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Blueprint Title Block */
.blueprint-title-block {
    text-align: center;
    margin-bottom: 60px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(10, 54, 99, 0.7); /* Slightly darker blue */
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.blueprint-title-block h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    color: #ffffff;
    margin-bottom: 5px;
}

.blueprint-title-block p {
    font-size: 0.9rem;
    letter-spacing: 5px;
    color: #de9d67;
}

/* Pipeline Grid */
.services-pipeline {
    width: 100%;
}

.pipe-row {
    display: flex;
    align-items: center;
    height: 140px; /* Taller to accommodate the larger tags */
    position: relative;
}

.pipe-row.ltr { flex-direction: row; }
.pipe-row.rtl { flex-direction: row-reverse; }

/* The Node Container */
.node-box {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    /* Pre-animation state */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* The Drawn Circle Intersection */
.node-point {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #0a3663;
    position: absolute;
    /* Centers the circle on the wire depending on direction */
}
.ltr .node-point { right: -8px; }
.rtl .node-point { left: -8px; }

/* The Drafting Tag Design */
.node-draft-tag {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05); /* Slight frosted look */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #de9d67; /* Thick copper structural line */
    padding: 15px 30px 15px 20px;
    margin: 0 30px; /* Space between tag and the wire */
    /* Diagonal clipped corner for a technical folder look */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

/* --- NEW: Node Icons --- */
.node-icon {
    width: 32px;
    height: 32px;
    margin-right: 20px;
    color: #de9d67; /* Sets the stroke color of the SVG to your copper accent */
    flex-shrink: 0;
}

/* The Elegant Serif Number */
.node-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #ffffff;
    opacity: 0.9;
    margin-right: 25px;
    line-height: 1;
}

.node-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffffff;
    max-width: 250px;
}

/* Glowing Wires */
.pipe-horiz {
    flex-grow: 1; 
    height: 2px;
    position: relative;
}

.pipe-horiz::before {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 0; 
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255,255,255,0.5); /* Slight glow */
    transition: width 0.5s linear;
}

.ltr .pipe-horiz::before { left: 0; }
.rtl .pipe-horiz::before { right: 0; }

.pipe-vert {
    position: absolute;
    width: 2px;
    height: 100%; 
    top: 50%;
    z-index: 1;
}

.ltr .pipe-vert { right: 0; }
.rtl .pipe-vert { left: 0; }

.pipe-vert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0; 
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: height 0.5s linear;
    transition-delay: 0.5s; 
}

/* --- Final Row Wire Routing --- */

/* Creates an invisible barrier so the horizontal wire container cannot cross the center of the screen */
.pipe-row.final-row .pipe-horiz {
    margin-right: 50%; /* Changed from margin-left for the new LTR layout */
}

/* Now the wire can safely draw to 100% of its new, perfectly centered container */
.pipe-row.final-row.is-drawn .pipe-horiz::before { 
    width: 100%; 
}

/* Forces the vertical drop to start exactly where the horizontal wire stops */
.pipe-row.final-row .pipe-vert {
    left: 50%; 
    right: auto; /* Overrides the default LTR setting */
    height: 150px; 
}

/* Animation Classes */
.pipe-row.is-drawn .node-box {
    opacity: 1;
    transform: translateY(0);
}

.pipe-row.is-drawn .pipe-horiz::before { width: 100%; }
.pipe-row.is-drawn .pipe-vert::before { height: 100%; }


/* --- The Terminal Ground End Stamp --- */
.pipeline-end-stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 80px;
    /* Fades in slightly after the pipeline draws */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 1.5s;
}

.pipeline-end-stamp.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Electrical Ground Symbol Lines */
.ground-line {
    height: 3px;
    background-color: #ffffff;
    margin-bottom: 5px;
}
.ground-line.lg { width: 60px; }
.ground-line.md { width: 40px; }
.ground-line.sm { width: 20px; }

.pipeline-end-stamp p {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #de9d67;
    margin-top: 10px;
    font-weight: 700;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .pipe-row.rtl { flex-direction: row; } 
    .pipe-horiz { display: none; } 
    .ltr .pipe-vert, .rtl .pipe-vert { 
        left: 21px; 
        right: auto;
        top: 60px; 
    }
    .pipe-vert::before { transition-delay: 0s; } 
    .node-draft-tag { margin: 0 10px; padding: 10px; }
    .node-number { font-size: 2rem; margin-right: 15px; }
    .node-text { font-size: 0.9rem; }

    /* Keeps the final drop aligned to the left on mobile screens */
    .pipe-row.final-row .pipe-vert {
        left: 21px; 
        height: 100%;
    }
}



/* =========================================
       MOBILE UI OVERHAUL FIXES
       ========================================= */

    /* =========================================
       MOBILE HERO SCROLLING ENGINE
       ========================================= */
    @media (max-width: 900px) {
        
   /* =========================================
       PREMIUM LONG-FORM CINEMATIC REVEAL (MOBILE)
       ========================================= */
    @media (max-width: 900px) {
        
        .hero-welcome-container {
            flex-direction: column !important; 
            align-items: flex-start !important;
            gap: 20px !important; /* Slightly more breathing room */
            position: relative !important;
            top: -40px !important;
        }

        /* 1. WELCOME - Massive, Ultra-Bold, and Slow */
        .welcome-word {
            font-size: 2.4rem !important; /* Made it much larger */
            font-weight: 900 !important; /* Maximum boldness */
            letter-spacing: 2px !important;
            /* Runs for 2.5 seconds with an ultra-smooth glide */
            animation: focusReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) both !important;
        }

        /* 2. COMPANY NAME - Thin, Sleek, and Delayed */
        .welcome-company {
            font-size: 0.85rem !important; 
            font-weight: 300 !important; /* Much lighter/thinner than before */
            letter-spacing: 2.5px !important; /* Widened the tracking for an expensive look */
            line-height: 1.4 !important;
            opacity: 0.85 !important; /* Slight transparency so it doesn't fight 'Welcome' */
            /* Runs for 2.5 seconds, but waits almost a full second before starting */
            animation: focusReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both !important;
        }

        /* 3. The New 'Focus-Pull' Animation Engine */
        @keyframes focusReveal {
            0% { 
                opacity: 0; 
                transform: translateY(30px) scale(0.95); /* Starts lower and slightly shrunk */
                filter: blur(10px); /* Starts completely out of focus */
            }
            100% { 
                opacity: 1; 
                transform: translateY(0) scale(1); /* Snaps perfectly into place */
                filter: blur(0); /* Sharpens completely */
            }
        }

        .hero-content h1 {
            font-size: 1.6rem !important; 
            line-height: 1.3 !important;
            margin-bottom: 20px !important;
            
            /* The same blur animation, but waits 1.6 seconds to start */
            animation: focusReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) 1.6s both !important;
        }
    }
    }

    /* 3. Shorter Waves */
    .custom-shape-divider-bottom svg, 
    .wave-transition {
        height: 40px !important; /* Stops the wave from stretching vertically */
    }

    /* 4. Services Timeline/Nodes Alignment */
    /* This overrides the alternating left/right layout and forces a straight left line */
    .timeline::before {
        left: 20px !important; /* Moves the central line to the left edge */
    }
    .timeline-item {
        width: 100% !important;
        padding-left: 60px !important; /* Makes room for the line on the left */
        padding-right: 0 !important;
        left: 0 !important;
        text-align: left !important;
    }
    .timeline-item::after {
        left: 11px !important; /* Aligns the node circles perfectly with the line */
    }

    /* 5. Thinner Project Cards */
    .project-card {
        min-width: 75vw !important; /* Takes up 75% of phone width instead of fixed desktop pixels */
    }

    /* 6. Google Transition Card Optimization */
    .google-transition-card {
        padding: 15px 20px !important; 
        flex-direction: column; /* Stacks the content on very small screens if needed */
        text-align: center;
    }
    .google-transition-text {
        font-size: 0.85rem !important;
        white-space: nowrap; /* Stops "Verified client reviews" from breaking into multiple lines */
    }

    /* 7. Footer Order Fix */
    /* Forces the grid container to stack, and ensures the footer drops to the absolute bottom */
    .contact-container {
        display: flex;
        flex-direction: column;
    }
    .contact-info {
        order: 1; /* Address goes first */
    }
    .contact-form-wrapper {
        order: 2; /* Form goes second */
    }
    .footer-credits {
        order: 3; /* Footer is forced to the bottom */
        margin-top: 40px !important;
    }

/* --- Background Blueprint Decorations (Fixed, Scaled & Faded) --- */
.blueprint-decorations {
    /* Locks the container to the background so it cannot push content down */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; 
    z-index: 1; /* Forces it strictly behind the pipeline (which is z-index 15) */
    overflow: hidden;
}

.decor-compass {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 150px; /* Scaled down from 300px */
    height: 150px; 
}

.decor-plan {
    position: absolute;
    bottom: 10%;
    left: 2%; /* Pulled in slightly so it doesn't get cut off entirely */
    width: 200px; /* Scaled down from 400px */
    height: 150px; 
}

.decor-dimensions {
    position: absolute;
    top: 40%;
    right: 12%;
    width: 50px; /* Scaled down from 100px */
    height: 150px; 
}

/* New Decorative Element Positions */
.decor-iso {
    position: absolute;
    top: 25%;
    left: 4%;
    width: 160px;
    height: 160px;
}

.decor-topo {
    position: absolute;
    top: 35%;
    left: 0;
    width: 100%; /* Spans the entire width of the background */
    height: 300px;
    z-index: -1; /* Pushes the topo lines behind all the other icons */
}

.decor-protractor {
    position: absolute;
    bottom: 8%;
    right: 8%;
    width: 180px;
    height: 135px;
}

/* --- Expanding the Decor Fleet --- */
.decor-golden-ratio {
    position: absolute;
    top: 6%;
    left: 2%;
    width: 250px;
    height: 160px;
}

.decor-truss {
    position: absolute;
    top: 65%;
    right: 3%;
    width: 350px;
    height: 120px;
}

.decor-gear {
    position: absolute;
    bottom: 5%;
    left: 40%; /* Anchors it nicely in the lower-middle space */
    width: 180px;
    height: 180px;
}

/* --- Our Projects: Concrete Monolith Theme --- */

/* --- Our Projects: Cinematic Video Theme --- */
.projects-monolith {
    position: relative;
    background-color: #121212; 
    padding: 180px 0 100px 0; 
    min-height: 80vh;
    color: #ffffff;
    overflow: hidden; 
}

/* --- NEW: Cinematic Video Background (Forced Absolute Positioning) --- */
.monolith-bg-video {
    position: absolute !important; /* Forces the video to ignore other layout rules */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; 
    z-index: 1; /* Anchors it to the very back */
    transition: opacity 0.8s ease; 
    pointer-events: none; /* Ensures the video can't accidentally block clicks to your buttons */
}

.monolith-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.95) 100%);
    z-index: 2; 
    pointer-events: none;
}

/* Ensure the main content floats securely above the video layer */
.monolith-content {
    position: relative;
    z-index: 10;
}

/* --- Heavy Steel Diagonal Transition (Solid Black) --- */
.steel-diagonal-cut {
    position: absolute;
    bottom: -1px; 
    left: 0;
    width: 100%;
    height: 120px; 
    background-color: #050505; 
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 5; 
}

/* --- Authentic Google Reviews Section --- */
.google-reviews-section {
    background-color: #f8f9fa; /* Classic Solid Google White */
    padding: 140px 0 100px 0; 
    color: #202124; 
    position: relative;
    /* REMOVED overflow: hidden so the centerpiece can break out of the top */
    z-index: 10; /* Ensures the centerpiece floats above the black diagonal cut */
}

/* --- NEW: The Floating Google Centerpiece --- */
.google-centerpiece {
    position: absolute;
    top: -50px; /* Pulls the card exactly halfway up over the black cut */
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 25px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 30; 
    border-top: 4px solid #1a73e8; /* Classic Google Blue accent */
}

.centerpiece-score {
    font-size: 3.5rem;
    font-family: Arial, sans-serif;
    font-weight: 700;
    color: #202124;
    line-height: 1;
}

.centerpiece-details {
    display: flex;
    flex-direction: column;
}

.centerpiece-stars {
    color: #fbbc04;
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.centerpiece-text {
    color: #5f6368;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.centerpiece-text img {
    height: 18px;
}

.google-header {
    text-align: center;
    margin-bottom: 50px;
}

.google-header h2 {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    color: #202124;
}
/* --- The Ticker Layout --- */
.ticker-container {
    position: relative;
    margin-bottom: 40px;
    padding: 0 5%;
}

.google-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    padding: 10px 0;
    /* THIS IS THE FIX: Stops CSS from breaking the JS auto-scroll */
    scroll-behavior: auto !important; 
}

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

/* Ticker Navigation Buttons */
.ticker-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 50%;
    color: #5f6368;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.ticker-nav-btn:hover {
    background-color: #f1f3f4;
    color: #202124;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ticker-left { left: 2%; }
.ticker-right { right: 2%; }

/* --- Google Review Card Design --- */
.google-card {
    flex: 0 0 380px; /* Fixed width */
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 25px;
    font-family: Arial, sans-serif;
}

.g-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.g-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a73e8; /* Google Blue */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Alternate avatar colors to look authentic */
.g-avatar.green { background-color: #1e8e3e; }
.g-avatar.orange { background-color: #e37400; }
.g-avatar.purple { background-color: #9334e6; }

.g-user-info {
    flex-grow: 1;
}

.g-name {
    font-weight: 600;
    font-size: 1rem;
    color: #202124;
    margin-bottom: 2px;
}

.g-date {
    font-size: 0.85rem;
    color: #70757a;
}

.g-icon {
    width: 24px;
    height: 24px;
}

.g-stars {
    color: #fbbc04;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.g-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #3c4043;
}

/* Downward Torn Blueprint Divider */
.blueprint-tear-bottom {
    position: absolute;
    top: -1px; /* Prevents background bleeding */
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    /* Flips the SVG upside down so it tears downwards over the concrete */
    transform: scaleY(-1); 
}

.blueprint-tear-bottom svg {
    position: relative;
    display: block;
    height: 100%;
}

.monolith-header {
    padding: 0 5%;
    margin-bottom: 60px;
}

.monolith-header h2 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.monolith-header p {
    font-size: 1rem;
    letter-spacing: 4px;
    color: #ffffff; /* Copper accent */
}

/* --- The Clean Horizontal Scrolling Track --- */
.monolith-track {
    display: flex;
    gap: 40px;
    /* The 40px padding provides a nice gap between the top scrollbar and the cards */
    padding: 0 5% 40px 5%; 
    overflow-x: auto; 
    scrollbar-width: thin; 
    scrollbar-color: #de9d67 rgba(255, 255, 255, 0.05); 
    
    /* THE FLIP: Turns the container upside down, pushing the scrollbar to the top */
    transform: rotateX(180deg);
}

/* Designing the persistent architectural scrollbar */
.monolith-track::-webkit-scrollbar {
    height: 12px;
}
.monolith-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0 5%; 
}
.monolith-track::-webkit-scrollbar-thumb {
    background: #de9d67; 
    border-radius: 10px;
    border: 2px solid #383b3e; 
}
.monolith-track::-webkit-scrollbar-thumb:hover {
    background: #c68551;
}

/* Ensure the parent container can anchor the absolute buttons */
.monolith-content {
    position: relative;
}

/* --- Navigation Arrow Buttons --- */
.monolith-nav-btn {
    position: absolute;
    top: 55%; 
    transform: translateY(-50%);
    background-color: rgba(20, 20, 20, 0.9);
    color: #de9d67;
    border: 2px solid #de9d67;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 20; 
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.monolith-nav-btn:hover {
    background-color: #de9d67;
    color: #121212;
    transform: translateY(-50%) scale(1.1); 
}

.left-btn { left: 2%; }
.right-btn { right: 2%; }

/* --- Button Visibility Toggle --- */
.monolith-nav-btn.is-hidden {
    opacity: 0;
    pointer-events: none; 
    transform: translateY(-50%) scale(0.8);
}

/* --- Concrete Project Cards (Dynamic Sizes) --- */
.monolith-card {
    flex-shrink: 0; 
    background-color: rgba(20, 20, 20, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #de9d67;
    display: flex;
    flex-direction: column;
    
    /* THE REVERSE FLIP: Turns the cards back right-side up so they are readable */
    transform: rotateX(180deg);
}

/* New Specific Widths for the different image ratios */
.monolith-card.card-vertical { width: 350px; }
.monolith-card.card-horizontal-single { width: 500px; }
.monolith-card.card-horizontal-double { width: 850px; }

/* Image Box / Placeholder */
.card-image-box {
    width: 100%;
    background-color: #2a2a2a;
    position: relative;
    overflow: hidden;
}

/* --- NEW: Mathematical Aspect Ratios --- */
.card-vertical .card-image-box {
    aspect-ratio: 9 / 16;
}

.card-horizontal-single .card-image-box {
    aspect-ratio: 16 / 9;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
    transition: opacity 0.3s ease;
}

/* --- Multi-Image Layout --- */
.card-image-box.double {
    display: flex;
    gap: 4px; 
}

.card-image-box.double .img-slot {
    flex: 1;
    position: relative;
    height: 100%;
}

/* --- Concrete Project Cards --- */
.monolith-card {
    flex: 0 0 400px; /* Fixed width for horizontal scrolling */
    background-color: rgba(20, 20, 20, 0.8); /* Dark inset panel against the concrete */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #de9d67;
    display: flex;
    flex-direction: column;
}

/* Image Box / Placeholder */
.card-image-box {
    width: 100%;
    height: 250px;
    background-color: #2a2a2a;
    position: relative;
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* --- Multi-Image Layout --- */
.card-image-box.double {
    display: flex;
    gap: 4px; /* Slight concrete gap between the two photos */
}

.card-image-box.double .img-slot {
    flex: 1;
    position: relative;
    height: 100%;
}

.card-image-box.double .placeholder-overlay span {
    font-size: 0.8rem;
}

/* --- Button Visibility Toggle --- */
.monolith-nav-btn.is-hidden {
    opacity: 0;
    pointer-events: none; /* Prevents clicking when invisible */
    transform: translateY(-50%) scale(0.8);
}

/* The Placeholder Graphic (Shows when img is empty) */
.placeholder-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.02),
        rgba(255,255,255,0.02) 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
}

.placeholder-overlay span {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

/* Data Section */
.card-data {
    padding: 30px;
    position: relative;
}

.card-number {
    position: absolute;
    top: -45px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #ffffff;
    opacity: 0.2;
    line-height: 1;
    z-index: 5;
}

.card-data h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 25px;
    min-height: 40px; /* Keeps headers aligned even if text wraps */
}

.card-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.spec-row span {
    font-size: 0.75rem;
    color: #de9d67;
    letter-spacing: 1px;
}

.spec-row p {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 500;
    text-align: right;
}

/* --- Premium Fullscreen Lightbox --- */
.monolith-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.monolith-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.monolith-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #de9d67;
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
    color: #ffffff;
}

/* --- Auto-Injected Hover Expand Icon --- */
.fullscreen-expand-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid #de9d67;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none; /* Lets the click pass through to the image */
    z-index: 10;
}

.fullscreen-expand-icon svg {
    width: 20px;
    height: 20px;
    stroke: #de9d67;
}

/* Show the icon when hovering over the image box or slot */
.card-image-box:hover .fullscreen-expand-icon,
.img-slot:hover .fullscreen-expand-icon {
    opacity: 1;
    transform: scale(1);
}

.card-number {
    display: none; /* Instantly hides the numbers across all 18 cards */
}

/* --- Our Reviews: The Infinite Steel Ticker --- */

.reviews-section {
    position: relative;
    /* Matches the diagonal cut perfectly for a seamless transition */
    background-color: #050505; 
    padding: 100px 0 150px 0;
    color: #ffffff;
    overflow: hidden;
}

.reviews-header {
    text-align: center;
    margin-bottom: 80px;
}

.reviews-header h2 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.reviews-header p {
    font-size: 1rem;
    letter-spacing: 4px;
    color: #de9d67;
}

/* Ticker Structural Setup */
.ticker-wrapper {
    width: 100%;
    overflow: hidden; /* Hides the cards outside the screen */
    margin-bottom: 30px;
    /* Fades the edges of the screen so cards slowly appear/disappear */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    gap: 30px;
    width: max-content; /* Allows the track to be as wide as the cards need */
}

/* The Magic Pause-on-Hover */
.ticker-track:hover {
    animation-play-state: paused !important;
}

/* Animations */
.scroll-left {
    animation: scrollLeft 40s linear infinite;
}

.scroll-right {
    /* Starts halfway through and moves backwards */
    animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    /* Moves exactly half its width (the 3 original cards) so the loop is invisible */
    100% { transform: translateX(calc(-50% - 15px)); } 
}

@keyframes scrollRight {
    0% { transform: translateX(calc(-50% - 15px)); }
    100% { transform: translateX(0); }
}

/* --- Review Card Design --- */
.review-card {
    width: 450px;
    background-color: rgba(255, 255, 255, 0.03); /* Subtle glass effect */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background-color 0.3s ease;
    cursor: default;
}

.review-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(222, 157, 103, 0.3); /* Slight copper glow on hover */
}

.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #de9d67;
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    font-style: italic;
}

.reviewer-info {
    margin-top: auto; /* Pushes the name to the bottom of the card */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.reviewer-info h4 {
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.reviewer-info span {
    color: #de9d67;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Contact & Footer Section --- */
.contact-section {
    background-color: #050505; /* Pitch Black */
    color: #ffffff;
    position: relative;
    padding: 160px 0 100px 0;
}

.wave-transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

/* Left Side Styling */
.contact-kicker {
    color: #de9d67; /* Copper */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 15px 0 30px 0;
}

/* --- Contact Typography & Spacing --- */
.contact-desc {
    font-family: Arial, sans-serif;
    color: #a0a0a0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.info-block {
    display: flex;
    gap: 15px; /* Tightened from 20px to fit all 5 rows cleanly */
    margin-bottom: 25px; /* Tightened from 30px */
}

.info-icon {
    font-size: 1.5rem;
    line-height: 1.2;
}

.info-block h4 {
    font-family: Arial, sans-serif;
    color: #de9d67;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.info-block p {
    font-family: Arial, sans-serif;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.footer-credits {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 0.9rem;
}

.footer-credits a {
    color: #de9d67;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: #ffffff;
}

/* Right Side: Form Styling */
.contact-form-wrapper {
    background: #111111;
    padding: 50px;
    border-radius: 8px;
    border: 1px solid #222;
    align-self: center;
}

.contact-form-wrapper h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    background: #050505;
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: #de9d67;
}

.submit-btn {
    width: 100%;
    background: #FFC000; /* Hard Hat Yellow */
    color: #050505;      /* Heavy dark text */
    border: none;
    padding: 18px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #ffffff;
    color: #050505;
}

/* Responsive formatting for mobile */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-title {
        font-size: 2.5rem;
    }
    .contact-form-wrapper {
        padding: 30px;
    }

    /* --- Hero Section Mobile Centering --- */
    .hero {
        justify-content: center;
        align-items: center;
        padding-right: 0;
        padding-bottom: 0;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 20px;
    }
}

/* --- Desktop Header Base Styling (Adjust to match your site) --- */
.site-header {
    position: fixed;
    top: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 50px;
    z-index: 100;
}
.hamburger-btn { display: none; }
.mobile-video { display: none; }
.desktop-video { display: block; }

/* =========================================
   MOBILE OPTIMIZATION & MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {

    /* --- Navigation & Hamburger --- */
    .desktop-nav { display: none; }
    .site-header { padding: 20px 25px; }
    
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 35px; height: 24px;
        background: transparent; border: none; cursor: pointer;
        z-index: 1000;
    }

    .hamburger-btn .bar {
        width: 100%; height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Hamburger "X" Animation */
    .hamburger-btn.open .bar:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
    .hamburger-btn.open .bar:nth-child(2) { opacity: 0; }
    .hamburger-btn.open .bar:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

    /* --- The 50vh Half-Screen Menu --- */
    .mobile-menu {
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 50vh; /* Exactly half the screen */
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 3px solid #de9d67; /* Copper bottom border */
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%); /* Hidden completely above the screen */
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .mobile-menu.active {
        transform: translateY(0); /* Slides down to top edge */
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }

    .mobile-link {
        font-family: 'Playfair Display', serif;
        color: #ffffff;
        font-size: 2rem;
        text-decoration: none;
        letter-spacing: 2px;
        transition: color 0.3s ease;
    }

    .mobile-link:hover { color: #de9d67; }

    /* --- Global Typographic & Layout Scaling --- */
    .contact-container {
        grid-template-columns: 1fr; /* Stacks Contact Section vertically */
        padding: 0 20px;
        gap: 50px;
    }
    
    .contact-title, .google-header h2 {
        font-size: 2.5rem; /* Shrinks massive headers */
    }
    
    .contact-section { padding: 120px 0 60px 0; }
    .google-reviews-section { padding: 100px 0 80px 0; }
    .contact-form-wrapper { padding: 30px 20px; }
}

/* =========================================
   MOBILE HEADER & MENU OPTIMIZATION
   ========================================= */

/* Hide these elements on desktop */
.hamburger-btn { display: none; }
.mobile-menu { display: none; }
.swipe-prompt { display: none; }

/* =========================================
   3D CAROUSEL & ONGOING PROJECT STYLES
   ========================================= */

/* The Trigger Card */
.special-ongoing-card {
    border-top: 4px solid #54a5d7 !important; /* Blue blueprint accent */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.special-ongoing-card:hover {
    box-shadow: 0 -15px 30px rgba(84, 165, 215, 0.2);
}

.ongoing-badge {
    background-color: #54a5d7;
    color: #121212;
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-radius: 2px;
}

.click-to-view-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.8);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.special-ongoing-card:hover .click-to-view-overlay {
    opacity: 1;
}

.click-to-view-overlay span {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
    border: 1px solid #ffffff;
    padding: 10px;
    font-size: 0.8rem;
    text-align: center;
}

/* The 3D Room Overlay */
.carousel-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    overflow: hidden;
}

.carousel-modal.active {
    opacity: 1;
    pointer-events: all;
}

.carousel-close {
    position: absolute;
    top: 30px; right: 40px;
    background: none; border: none;
    color: #54a5d7; font-size: 3rem;
    cursor: pointer; z-index: 10001;
    transition: transform 0.2s ease, color 0.2s;
}

.carousel-close:hover {
    transform: scale(1.2); color: #fff;
}

/* The Physics Engine Math */
.carousel-scene {
    width: 100%; height: 100%;
    perspective: 1200px; /* Gives the ring a 3D depth vanishing point */
    display: flex; align-items: center; justify-content: center;
}

.carousel-ring {
    width: 400px; height: 260px;
    position: relative;
    transform-style: preserve-3d; /* Allows children to sit in 3D space */
    cursor: grab;
}

.carousel-ring:active {
    cursor: grabbing;
}

/* Mathematically positioning panels using dynamic JS variables */
.carousel-panel {
    position: absolute;
    width: 100%; height: 100%;
    left: 0; top: 0;
    /* Uses the dynamic angle calculated by JavaScript! */
    transform: rotateY(calc(var(--panel-idx) * var(--rotation-angle))) translateZ(350px);
    border: 2px solid #54a5d7;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(84, 165, 215, 0.2);
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, rgba(0,0,0,0.3));
}

.carousel-panel img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    pointer-events: none;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

.carousel-instructions {
    position: absolute;
    bottom: 50px;
    color: #54a5d7;
    font-size: 0.9rem;
    letter-spacing: 4px;
    animation: pulseSwipe 2s infinite;
    pointer-events: none;
}

/* Update the mobile ring as well */
@media (max-width: 900px) {
    .carousel-ring { width: 260px; height: 180px; }
    .carousel-panel { transform: rotateY(calc(var(--panel-idx) * var(--rotation-angle))) translateZ(220px); }
}

/* =========================================
       SLEEK 3D GALLERY PROMPT (REPLACES PULSE)
       ========================================= */

    .click-to-view-overlay {
        opacity: 1 !important; 
        top: auto !important; 
        bottom: 0 !important; 
        height: auto !important;
        background: #FFC000 !important; /* Solid Hard Hat Yellow */
        padding: 8px 15px !important; /* Thinner, sleeker profile */
    }

    .click-to-view-overlay span {
        border: none !important; 
        color: #050505 !important; 
        font-family: 'Montserrat', sans-serif !important;
        font-size: 0.75rem !important; /* Smaller, sharper text */
        font-weight: 700 !important; 
        letter-spacing: 3px !important; /* Wide, premium tracking */
        text-transform: uppercase !important;
        display: block !important;
        text-align: center !important;
        
        /* THIS KILLS THE KIDDISH ANIMATION */
        animation: none !important; 
    }

    /* =========================================
       PREVENT IMAGE HIGHLIGHTING & DRAGGING
       ========================================= */

    .carousel-ring, 
    .carousel-panel, 
    .carousel-panel img {
        /* Kills the blue highlight selection */
        user-select: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        
        /* Stops the browser from creating a "ghost" image when dragging */
        -webkit-user-drag: none !important;
    }

    /* =========================================
       SCROLL LOCKS & INTERACTION FIXES
       ========================================= */

    /* BUG FIX 3: Ultimate Horizontal Scroll Lock for Mobile */
    html, body {
        overflow-x: hidden !important; 
        max-width: 100vw !important;
        position: relative;
    }

    /* Prevents the scrolling tracks from breaking the global body lock */
    .monolith-track, .ticker-track {
        max-width: 100vw;
    }

    /* BUG FIX 2: Locks all vertical and horizontal scrolling when Carousel is open */
    body.carousel-locked {
        overflow: hidden !important;
    }

    /* Prevents the modal itself from "rubber-banding" on iPhones */
    .carousel-modal {
        overscroll-behavior: contain !important; 
    }

    /* =========================================
       OUR ESTEEMED CLIENTS SECTION
       ========================================= */

    .clients-section {
        background-color: #ffffff; /* Pure white background */
        padding: 100px 5%;
        text-align: center;
        position: relative;
        z-index: 10;
    }

    .clients-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    .clients-heading {
        font-family: 'Playfair Display', serif;
        font-size: 3rem;
        color: #121212; /* Dark text for contrast */
        margin-bottom: 60px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    /* The self-balancing flex grid */
    .clients-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 50px;
    }

    .client-logo {
        flex: 0 1 200px; /* Base width per logo */
        height: 100px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        transition: transform 0.3s ease;
    }

    /* Slight pop effect when hovered */
    .client-logo:hover {
        transform: scale(1.08);
    }

    .client-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* Standardized Fade-in Animation Engine */
    .fade-in-element {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
        /* Uses the inline HTML delay so they cascade in 1, 2, 3, 4, 5 */
        transition-delay: var(--delay, 0s); 
    }

    .fade-in-element.is-visible {
        opacity: 1;
        transform: translateY(0);
    }


    /* =========================================
       CLIENTS SECTION WAVY DIVIDER
       ========================================= */

    .wave-transition-clients {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px; /* Smooth height for desktop */
        z-index: 10;
        /* Drops a tiny shadow to give the wave depth against the white background */
        filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.03));
    }

    /* Keeps the wave from looking stretched out and weird on phone screens */
    @media (max-width: 900px) {
        .wave-transition-clients {
            height: 35px; 
        }
    }

    /* Mobile Scaling */
    @media (max-width: 900px) {
        .clients-heading {
            font-size: 2.2rem;
            margin-bottom: 40px;
        }
        .clients-grid {
            gap: 30px;
        }
        .client-logo {
            flex: 0 1 140px; /* Shrinks the logos slightly for phone screens */
            height: 80px;
        }
    }

@media (max-width: 900px) {
    
    /* Hide Desktop Nav on mobile */
    .desktop-nav { display: none; }
    
    /* Show Hamburger Button */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 35px; height: 24px;
        background: transparent; border: none; cursor: pointer;
        z-index: 1000;
    }

    .hamburger-btn .bar {
        width: 100%; height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Hamburger "X" Animation */
    .hamburger-btn.open .bar:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
    .hamburger-btn.open .bar:nth-child(2) { opacity: 0; }
    .hamburger-btn.open .bar:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

    /* The Half-Screen Mobile Menu */
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0; left: 0;
        width: 100%;
        height: 50vh;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 3px solid #de9d67;
        z-index: 999;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%); /* Start hidden off-screen */
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .mobile-menu.active {
        transform: translateY(0); /* Slide down smoothly */
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .mobile-link {
        font-family: 'Playfair Display', serif;
        color: #ffffff;
        font-size: 1.8rem;
        text-decoration: none;
        letter-spacing: 2px;
    }

    /* Center Hero Text on Mobile */
    .hero {
        justify-content: center;
        align-items: center;
        padding-right: 0;
        padding-bottom: 0;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 20px;
    }
/* =========================================
       NEW MOBILE SERVICES TIMELINE REDESIGN
       ========================================= */
       
    .services-pipeline {
        position: relative;
        padding-left: 10px; 
    }

    /* Draws a single, unbroken line down the left side */
    .services-pipeline::before {
        content: '';
        position: absolute;
        top: 0;
        left: 17px; 
        width: 2px;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.2);
        z-index: 1;
    }

    /* Forces all rows to stack normally */
    .pipe-row {
        height: auto !important; 
        margin-bottom: 25px !important;
        flex-direction: row !important; 
    }

    /* Hides the complex desktop drawing pipes */
    .pipe-horiz, .pipe-vert {
        display: none !important;
    }

    /* Pre-Animation State: Hidden and shifted to the right */
    .node-box {
        width: 100% !important;
        opacity: 0;
        transform: translateX(40px); 
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    /* Post-Animation State: Slides in smoothly as you scroll */
    .pipe-row.is-drawn .node-box {
        opacity: 1;
        transform: translateX(0);
    }

    /* Places the dot perfectly on the vertical line */
    .node-point {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10;
    }

    /* Cleans up the tag to fit mobile screens perfectly */
    .node-draft-tag {
        margin: 0 0 0 35px !important; 
        width: calc(100% - 35px) !important;
        padding: 15px !important;
        clip-path: none !important; 
        border-radius: 6px !important;
    }

    .node-number {
        font-size: 2rem !important;
        margin-right: 15px !important;
    }

    .node-text {
        font-size: 0.95rem !important;
        white-space: normal !important; 
    }

    .pipeline-end-stamp {
        margin-top: 40px !important;
        padding-left: 30px !important; 
        align-items: flex-start !important; 
    }

    /* =========================================
       ULTIMATE MOBILE CLEANUP 
       ========================================= */

    /* 1. Rogue Menu Text Fix */
    .mobile-menu {
        transform: none !important; /* Disable buggy transform */
        top: -120vh !important; /* Physically move it way above the screen */
        visibility: hidden; /* Hide it entirely until active */
        transition: top 0.5s ease, visibility 0.5s ease !important;
    }
    .mobile-menu.active {
        top: 0 !important;
        visibility: visible;
    }

    /* 2. Fluid Responsive Hero Text */
    .hero-content {
        width: 100% !important;
        padding: 0 15px !important;
    }
    .hero-content h1 {
        /* clamp() shrinks the text smoothly as the screen gets smaller */
        font-size: clamp(2rem, 8vw, 3.5rem) !important; 
        white-space: normal !important;
    }
    .hero-content h2 {
        font-size: clamp(0.7rem, 3.5vw, 1rem) !important;
    }

    /* 3. Compact Google Review Card */
    .google-centerpiece {
        width: 85% !important;
        max-width: 320px !important;
        padding: 15px 20px !important;
        gap: 15px !important;
        top: -40px !important;
        flex-direction: row !important; /* Forces items side-by-side */
        justify-content: center !important;
    }
    .centerpiece-score {
        font-size: 2.5rem !important;
    }
    .centerpiece-stars {
        font-size: 1.1rem !important;
    }
    .centerpiece-text {
        font-size: 0.8rem !important;
        white-space: nowrap !important; /* Keeps text on one line */
    }
    .centerpiece-text img {
        height: 14px !important;
    }

    /* 4. Hide Slider Buttons on Mobile */
    .monolith-nav-btn, .ticker-nav-btn {
        display: none !important;
    }

    /* =========================================
       FINAL MOBILE POLISH (CARDS, TRAY, SCROLL)
       ========================================= */

    /* 5. Dynamic Mobile Menu Tray Fix */
    .mobile-menu {
        height: auto !important; /* Stops it from being locked at exactly 50% */
        min-height: 50vh !important;
        padding: 80px 0 40px 0 !important; /* Gives the links breathing room */
    }
    .mobile-nav {
        gap: clamp(15px, 3vh, 25px) !important; /* Shrinks the gap on short screens */
    }
    .mobile-link {
        font-size: clamp(1.4rem, 6vw, 1.8rem) !important; /* Fluid text sizing */
    }

    /* 6. Dynamic Project Cards Fix */
    .monolith-card {
        width: 85vw !important; /* Forces the card to strictly obey the screen width */
        flex: 0 0 85vw !important;
        max-width: 360px !important; /* Prevents them from getting too wide on tablets */
        min-width: unset !important;
    }
    .card-data {
        padding: 20px !important; /* Reduces bulky desktop padding */
    }
    .card-data h3 {
        font-size: clamp(1rem, 5vw, 1.2rem) !important; /* Scales title text */
        white-space: normal !important; /* Allows text to wrap to the next line safely */
        word-wrap: break-word !important;
    }
    .spec-row p, .spec-row span {
        font-size: clamp(0.75rem, 3.5vw, 0.9rem) !important; /* Scales the specs */
    }

    /* 7. The Mobile Swipe Prompt */
    .swipe-prompt {
        display: block !important;
        text-align: center;
        color: #de9d67;
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-bottom: 15px;
        animation: pulseSwipe 2s infinite;
    }

    @keyframes pulseSwipe {
        0% { opacity: 0.4; }
        50% { opacity: 1; }
        100% { opacity: 0.4; }
    }

    .google-card {
            width: 85vw !important; /* Strict fluid width based on screen size */
            flex: 0 0 85vw !important;
            max-width: 360px !important; /* Caps the width on wider tablets */
            padding: 20px !important; /* Tighter padding for smaller screens */
        }
        
        .g-text {
            font-size: clamp(0.85rem, 4vw, 0.95rem) !important; /* Fluid review text */
            line-height: 1.5 !important;
            word-wrap: break-word !important;
            white-space: normal !important;
        }

        .g-name {
            font-size: clamp(0.9rem, 4.5vw, 1rem) !important; /* Scales the reviewer's name */
        }

        .g-stars {
            font-size: 1rem !important; /* Slightly smaller stars to fit the mobile scale */
            margin-bottom: 10px !important;
        }

}



/* =========================================
       HARD HAT YELLOW: ONGOING PROJECTS
       ========================================= */
    /* The card top border */
    .special-ongoing-card {
        border-top: 4px solid #FFC000 !important; 
    }
    
    /* The "Ongoing Project" Badge */
    .ongoing-badge {
        background-color: #FFC000 !important;
        color: #050505 !important; /* Black text for high contrast */
    }

    /* The "Click to Spin" interaction banner */
    .click-to-view-overlay {
        background: rgba(255, 192, 0, 0.95) !important; 
    }

    /* The 3D Carousel Panels */
    .carousel-panel {
        border: 2px solid #FFC000 !important;
        box-shadow: 0 0 20px rgba(255, 192, 0, 0.2) !important;
    }
    .carousel-close, .carousel-instructions {
        color: #FFC000 !important;
    }



    /* =========================================
       MOBILE HEADER LOGO SIZING FIX
       ========================================= */
    @media (max-width: 900px) {
        
        /* 1. Shrinks the gap between the logo and text */
        .logo-group {
            gap: 8px !important; 
            max-width: 75vw !important; /* Strictly limits the width so the hamburger always has 25% of the screen */
        }
        
        /* 2. Forces the main icon to shrink back down for phones */
        .logo img.global-brand-logo {
            height: 40px !important; 
            width: auto !important;
            margin-top: 0 !important;
        }

        /* 3. Keeps the text image proportionate */
        .header-text-img {
            height: 18px !important; 
            width: auto !important;
        }
    }