/* Hero Video */
.hero-video {
    position: relative;
    height: 95vh;
    min-height: 480px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #0b1220;
    overflow: hidden;
}

.hero-video__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video__content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-video__content .btn {
    pointer-events: auto;
}

.hero-video__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
    color: #ffffff;
    padding: 0 1.5rem;
    transform: translateY(60px);
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.6s ease;
}

.hero-video__stack.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-video__title {
    margin: 0;
    font-size: clamp(2.4rem, 4vw + 0.8rem, 3.8rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hero-video__subtitle {
    margin: 0;
    font-size: clamp(2rem, 3.5vw + 0.6rem, 3rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.hero-video__cta {
    margin-top: 0.25rem;
    padding: 14px 44px;
    font-size: 1.05rem;
    border-width: 2px;
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(11, 18, 32, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    transition: var(--transition);
}

.hero-video__cta:hover {
    background: rgba(11, 18, 32, 0.6);
    color: #ffffff;
    transform: translateY(-3px);
}

.hero-video__scroll {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #f7f9fc;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Short viewports: tighten hero and scroll button so it stays visible */
@media (max-height: 750px) {
    .hero-video {
        height: 90vh;
        min-height: 440px;
    }

    .hero-video__scroll {
        bottom: 18px;
        width: 54px;
        height: 54px;
    }
}

.hero-video__scroll:hover {
    transform: translate(-50%, -6px);
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.hero-video__scroll-icon {
    width: 12px;
    height: 12px;
    border-right: 3px solid #0b1220;
    border-bottom: 3px solid #0b1220;
    transform: rotate(45deg);
    display: block;
}

/* Hide scroll down button when not visible */
.hero-video__scroll:not(.is-visible) {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

/* Back-to-top arrow (appears after leaving the hero) */
.hero-video__back-to-top {
    position: fixed;
    bottom: 40px;
    right: 22px; /* Adjust this to move the button left/right */
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #f7f9fc;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(120%);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    z-index: 20;
}

.hero-video__back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-video__back-to-top:hover {
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
    transform: translateX(0) translateY(-2px);
}

.hero-video__back-to-top-icon {
    width: 14px;
    height: 14px;
    border-right: 3px solid #0b1220;
    border-bottom: 3px solid #0b1220;
    transform: rotate(-135deg); /* Points the chevron up */
    display: block;
}

@media (max-width: 768px) {
    .hero-video__back-to-top {
        bottom: 28px;
        right: 16px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .hero-video {
        height: 95vh;
        min-height: 320px;
    }

    .hero-video__stack {
        gap: 0.9rem;
        padding-bottom: 100px; /* Make room for scroll button below text */
    }

    .hero-video__title {
        font-size: clamp(1.8rem, 6vw + 0.4rem, 2.6rem);
    }

    .hero-video__subtitle {
        font-size: clamp(1.5rem, 5vw + 0.3rem, 2.2rem);
    }

    .hero-video__cta {
        padding: 12px 36px;
        font-size: 1rem;
    }

    .hero-video__scroll {
        width: 50px;
        height: 50px;
        bottom: auto;
        top: 65%;
    }
}

/* Hero Carousel */
.hero-carousel {
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-position: center 25%;
    object-fit: cover;
    display: block;
}

.carousel-item:nth-child(3) .hero-image {
    object-position: center 100%;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

.carousel-item {
    background-size: cover;
    background-position: center;
}

.carousel-caption {
    bottom: 30%;
    background: transparent;
    border-radius: 15px;
    padding: 30px;
    padding-left: 50px;
    max-width: 700px;
    margin: 0;
    left: 15%;
    right: auto;
    backdrop-filter: none;
    animation: fadeInUp 1s ease;
    border-left: 5px solid #ffffff;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Carousel Caption Responsive Adjustments */
@media (max-width: 1536px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 1366px) {
    .carousel-caption {
        bottom: 25%;
        left: 12%;
        max-width: 650px;
        padding: 25px;
        padding-left: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 992px) {
    .carousel-caption {
        bottom: 20%;
        left: 10%;
        max-width: 80%;
        padding: 20px;
        padding-left: 30px;
        border-left-width: 4px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        top: 50%;
        bottom: auto;
        left: 5%;
        right: 5%;
        transform: translateY(-50%);
        max-width: 90%;
        padding: 15px;
        padding-left: 20px;
        border-left-width: 3px;
        animation: none;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .btn-outline-custom {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        top: 50%;
        bottom: auto;
        left: 3%;
        right: 3%;
        transform: translateY(-50%);
        max-width: 94%;
        padding: 12px;
        padding-left: 15px;
        border-left-width: 2px;
        animation: none;
    }

    .hero-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .btn-outline-custom {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

.btn-outline-custom {
    background: var(--dark-gray);
    border: 2px solid var(--dark-gray);
    color: var(--bg-white);
    padding: 10px 30px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--dark-gray);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* Carousel arrows */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 70%;
}


/* Quick Links Section */
.quick-links {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    height: 20vh;
    display: flex;
    align-items: center;
}

.quick-link {
    text-align: center;
    padding: 0 5px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.quick-link:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.quick-link i {
    font-size: 1.8rem;
    color: var(--light-blue) !important;
    margin-bottom: 5px;
}

.quick-link h4 {
    color: var(--light-blue) !important;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-link p {
    margin-bottom: 0;
    font-size: 0.75rem;
    color: var(--light-blue) !important;
}

@media (max-width: 768px) {
    .quick-links {
        display: none;
    }
}
/*End Quick Links Section*/


/* ==================== About US Section in home ==================================*/

/* Lightweight entrance animations for the three About Us blocks */
@keyframes aboutFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aboutFadeFromRight {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutFadeFromLeft {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section 1: intro text slides up */
#about-us .about-us-lead h1,
#about-us .about-us-lead p {
    opacity: 1;
    transform: none;
    will-change: auto;
}

#about-us .about-us-lead p {
    animation-delay: 0.24s;
}

/* Section 2: mirrored text glides in from the right */
#about-us-section-2 .about-us-lead h3,
#about-us-section-2 .about-us-lead p,
#about-us-section-2 .ul-about-us li {
    opacity: 1;
    transform: none;
    will-change: auto;
}

#about-us-section-2 .about-us-lead p {
    animation-delay: 0.28s;
}

#about-us-section-2 .ul-about-us li:nth-child(1) { animation-delay: 0.34s; }
#about-us-section-2 .ul-about-us li:nth-child(2) { animation-delay: 0.38s; }
#about-us-section-2 .ul-about-us li:nth-child(3) { animation-delay: 0.42s; }

/* Section 3: text enters from the left */
#about-us-section-3 .about-us-lead h3,
#about-us-section-3 .about-us-lead p,
#about-us-section-3 .ul-about-us li {
    opacity: 1;
    transform: none;
    will-change: auto;
}

#about-us-section-3 .about-us-lead p {
    animation-delay: 0.28s;
}

#about-us-section-3 .ul-about-us li:nth-child(1) { animation-delay: 0.34s; }
#about-us-section-3 .ul-about-us li:nth-child(2) { animation-delay: 0.38s; }
#about-us-section-3 .ul-about-us li:nth-child(3) { animation-delay: 0.42s; }
#about-us-section-3 .ul-about-us li:nth-child(4) { animation-delay: 0.46s; }
#about-us-section-3 .ul-about-us li:nth-child(5) { animation-delay: 0.50s; }

/* JS-triggered scroll animations: prepare hidden state only when JS opts-in */
.about-animate #about-us .about-us-lead h1,
.about-animate #about-us .about-us-lead p {
    opacity: 0;
    transform: translateY(18px);
    will-change: transform, opacity;
}

.about-animate #about-us.is-visible .about-us-lead h1,
.about-animate #about-us.is-visible .about-us-lead p {
    animation: aboutFadeUp 1.3s ease forwards;
    animation-delay: 0.1s;
}

.about-animate #about-us.is-visible .about-us-lead p {
    animation-delay: 0.24s;
}

.about-animate #about-us-section-2 .about-us-lead h3,
.about-animate #about-us-section-2 .about-us-lead p,
.about-animate #about-us-section-2 .ul-about-us li {
    opacity: 0;
    transform: translateX(18px);
    will-change: transform, opacity;
}

.about-animate #about-us-section-2.is-visible .about-us-lead h3,
.about-animate #about-us-section-2.is-visible .about-us-lead p,
.about-animate #about-us-section-2.is-visible .ul-about-us li {
    animation: aboutFadeFromRight 1.3s ease forwards;
    animation-delay: 0.12s;
}

.about-animate #about-us-section-2.is-visible .about-us-lead p { animation-delay: 0.28s; }
.about-animate #about-us-section-2.is-visible .ul-about-us li:nth-child(1) { animation-delay: 0.34s; }
.about-animate #about-us-section-2.is-visible .ul-about-us li:nth-child(2) { animation-delay: 0.38s; }
.about-animate #about-us-section-2.is-visible .ul-about-us li:nth-child(3) { animation-delay: 0.42s; }

.about-animate #about-us-section-3 .about-us-lead h3,
.about-animate #about-us-section-3 .about-us-lead p,
.about-animate #about-us-section-3 .ul-about-us li {
    opacity: 0;
    transform: translateX(-18px);
    will-change: transform, opacity;
}

.about-animate #about-us-section-3.is-visible .about-us-lead h3,
.about-animate #about-us-section-3.is-visible .about-us-lead p,
.about-animate #about-us-section-3.is-visible .ul-about-us li {
    animation: aboutFadeFromLeft 1.3s ease forwards;
    animation-delay: 0.12s;
}

.about-animate #about-us-section-3.is-visible .about-us-lead p { animation-delay: 0.28s; }
.about-animate #about-us-section-3.is-visible .ul-about-us li:nth-child(1) { animation-delay: 0.34s; }
.about-animate #about-us-section-3.is-visible .ul-about-us li:nth-child(2) { animation-delay: 0.38s; }
.about-animate #about-us-section-3.is-visible .ul-about-us li:nth-child(3) { animation-delay: 0.42s; }
.about-animate #about-us-section-3.is-visible .ul-about-us li:nth-child(4) { animation-delay: 0.46s; }
.about-animate #about-us-section-3.is-visible .ul-about-us li:nth-child(5) { animation-delay: 0.50s; }

@media (prefers-reduced-motion: reduce) {
    #about-us .about-us-lead h1,
    #about-us .about-us-lead p,
    #about-us-section-2 .about-us-lead h3,
    #about-us-section-2 .about-us-lead p,
    #about-us-section-2 .ul-about-us li,
    #about-us-section-3 .about-us-lead h3,
    #about-us-section-3 .about-us-lead p,
    #about-us-section-3 .ul-about-us li {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Icon styling for mission and vision */
#about-us .fa-solid,
#about-us-section-2 .fa-solid {
    font-size: 3rem;
    color: #ff8c00;
    margin-bottom: 15px;
}

/* Section Box Styling */
.section-box {
    padding: 40px 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

/* Font Awesome Icon Styling - replaces images */
.section-box i {
    font-size: 4rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.section-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.section-box p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-box {
        margin-bottom: 20px;
        padding: 20px 15px;
    }

    .section-box h3 {
        font-size: 1.25rem;
    }

    .section-box i {
        font-size: 3rem;
    }
}

/* ==================== About Us Section 1 Background ==================================*/
#about-us {
    /* Responsive horizontal shift: eases off on narrower viewports */
    --about-us-shift: clamp(-18%, -11vw, -7%); /* Custom property that slides section left on wide screens */
    position: relative; /* Enables absolute children like the glow layer */
    padding-top: 5%; /* Vertical spacing above the content */
    padding-bottom: 8%;/* Give the section more breathing room */
    min-height: clamp(520px, 100vh, 900px);/* Ensure the background has room to breathe */
    scroll-margin-top: 80px; /* Keeps anchor scroll clear of the navbar */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%, /* Solid white start */
            rgba(255, 255, 255, 1) 35%, /* Maintain white through one third */
            rgba(255, 255, 255, 0.9) 48%, /* Start fading transparency */
            rgba(255, 255, 255, 0.6) 58%, /* Midway fade */
            rgba(255, 255, 255, 0.2) 72%, /* Near transparent */
            rgba(255, 255, 255, 0) 85%), /* Fully transparent tail */
        url('/static/images/home/carousel/home10.webp'); /* Right-side illustration */
    background-size: auto 100%, 65% 100%; /* Stretch gradient full height, image to 65% height */
    background-position: left center, right top; /* Anchor gradient left, image top-right */
    background-repeat: no-repeat, no-repeat; /* Prevent tiling on both layers */
}

#about-us .about-us-lead {
    max-width: 1100px; /* Constrain text width for readability */
    margin-left: auto; /* Center horizontally */
    margin-right: auto; /* Center horizontally */
    padding-left: clamp(0.5rem, 5vw, 5rem); /* Responsive left padding */
    padding-right: clamp(0.5rem, 3vw, 2rem); /* Responsive right padding */
}

#about-us .about-us-lead h1,
#about-us .about-us-lead p {
    text-align: left; /* Align text to left edge for Section 1 */
}

/* Apply the horizontal shift to the About Us containers */
#about-us .about-us-lead,
#about-us .container,
#about-us .btn-wrapper {
    position: relative; /* Allows shifting without affecting flow */
    left: var(--about-us-shift); /* Pull containers left on large screens */
}

#about-us::before {
    content: ''; /* Generate decorative overlay */
    position: absolute; /* Sit on top of background */
    top: 0; /* Start at top edge */
    left: 0; /* Span full width */
    right: 0; /* Span full width */
    height: 12%; /* Thin strip for glow */
    background:
        radial-gradient(ellipse 120% 80% at 20% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%), /* Blue glow left */
        radial-gradient(ellipse 100% 70% at 80% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%), /* Blue glow right */
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%); /* Soft center glow */
    filter: blur(40px); /* Blur the glows for softness */
    pointer-events: none; /* Keep overlay non-interactive */
}

#about-us>* {
    position: relative; /* Keep children above the glow */
    z-index: 1; /* Lift content above ::before */
}

/* Content Section Styling */
#about-us h1 {
    font-size: 2.5rem; /* Large heading for Section 1 */
    font-weight: 700; /* Bold for emphasis */
    margin-bottom: 30px; /* Space under heading */
    color: #333; /* Dark text color */
}

#about-us-here {
    scroll-margin-top: 96px; /* Anchor offset for internal link */
}

#about-us-here:empty {
    display: block; /* Ensure anchor exists in layout */
    height: 0; /* No visible height */
}

/* Orange highlight effect */
#about-us h1 .highlight {
    color: #ff8c42; /* Accent orange for highlighted word */
    font-weight: 800; /* Extra bold highlight */
}

#about-us p {
    font-size: 1.1rem; /* Comfortable body size */
    line-height: 1.8; /* Spacious line height */
    color: #333; /* Dark paragraph text */
    margin-bottom: 50px; /* Space after intro text */
}

/* Button Wrapper */
.btn-wrapper {
    margin-top: 30px; /* Gap above CTA button */
}

.btn-get-quote {
    font-size: 1rem; /* Button label size */
    font-weight: 700; /* Bold label */
    text-decoration: none; /* Remove underline */
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4); /* Soft orange shadow */
    background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 100%); /* Orange gradient fill */
    color: white; /* White text */
    border: none; /* No border */
    height: 50px; /* Fixed button height */
    padding: 0 40px; /* Horizontal padding */
    display: inline-flex; /* Align text centrally */
    align-items: center; /* Vertical center text */
    justify-content: center; /* Horizontal center text */
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease; /* Smooth hover effects */
    text-transform: none; /* Preserve casing */
}

.btn-get-quote:hover {
    background: linear-gradient(135deg, #ff6b1a 0%, #ff8c42 100%); /* Reverse gradient on hover */
    transform: translateY(-2px); /* Lift on hover */
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5); /* Stronger hover shadow */
    color: white; /* Keep text white */
}

/* Responsive Typography */
@media (max-width: 768px) {
    #about-us h1 {
        font-size: 2rem; /* Scale heading down on mobile */
    }

    #about-us p {
        font-size: 1rem; /* Slightly smaller body on mobile */
    }

    #about-us .about-us-lead {
        padding-left: 1rem; /* Tighter side padding on mobile */
        padding-right: 1rem; /* Tighter side padding on mobile */
    }

    #about-us {
        --about-us-shift: 0px; /* Reset shift on small screens to avoid clipping */
        padding-top: 8%; /* More top padding on mobile */
        padding-bottom: 12%;/* Maintain breathing room without forcing large min-heights */
        min-height: auto;/* Let content dictate height on small screens */
        background:
            linear-gradient(135deg,
                rgba(255, 255, 255, 0.97) 0%, /* Softer white start */
                rgba(255, 255, 255, 0.94) 28%, /* Gentle gradient */
                rgba(255, 255, 255, 0.7) 65%, /* Light fade */
                rgba(255, 255, 255, 0.35) 100%), /* Transparent tail */
            url('/static/images/home/aboutus/background-aboutuspng.webp'); /* Simpler mobile image */
        background-size: cover; /* Fill the whole section with a softly visible image */
        background-position: center; /* Keep subject centered */
        background-repeat: no-repeat; /* Avoid tiling */
    }

    #about-us-here {
        scroll-margin-top: 82px; /* Smaller offset for mobile nav height */
    }
}

/* ===================== About Us Section 2 (mirrored layout) ============================== */
#about-us-section-2 {
    position: relative; /* Required for pseudo glow */
    padding-top: 5%; /* Top spacing for Section 2 */
    padding-bottom: 8%; /* Give the section more breathing room */
    min-height: clamp(520px, 100vh, 900px); /* Ensure the background has room to breathe */
    scroll-margin-top: 80px; /* Anchor offset */
    overflow-x: hidden; /* Prevent horizontal overflow */
            background: linear-gradient(270deg,
                        rgba(255, 255, 255, 1) 0%,
                        /* White start on right-to-left gradient */
                        rgba(255, 255, 255, 1) 35%,
                        rgba(255, 255, 255, 0.9) 48%,
                        rgba(255, 255, 255, 0.6) 58%,
                        rgba(255, 255, 255, 0.2) 72%,
                        rgba(255, 255, 255, 0) 85%),
        url('/static/images/home/aboutus/background-aboutuspng.webp'); /* Left image for mirrored layout */
    background-size: auto 100%, 65% 100%; /* Match Section 1 image proportion */
    background-position: right center, left center; /* Keep image left without stretching */
    background-repeat: no-repeat, no-repeat; /* Prevent tiling */
    display: flex; /* Center content vertically */
    align-items: center; /* Center block along Y-axis */
    justify-content: flex-end; /* Push content to the right */
}

#about-us-section-2 .container {
    width: auto; /* Let content determine width */
    max-width: 65%; /* Limit to right portion of screen */
    padding-right: clamp(1rem, 2vw, 2rem); /* Right padding */
}

#about-us-section-2 .about-us-lead {
    max-width: 850px; /* Limit line length */
    margin-left: auto; /* Push to right */
    margin-right: 0; /* Align to right edge */
    padding-top: clamp(0.75rem, 3vw, 2.25rem); /* Nudge content downward */
    padding-left: clamp(0.5rem, 2vw, 1.5rem); /* Responsive left padding */
    padding-right: clamp(0.5rem, 2vw, 1.5rem); /* Responsive right padding */
}

#about-us-section-2 .about-us-lead h3,
#about-us-section-2 .about-us-lead p,
#about-us-section-2 .ul-about-us {
    text-align: right; /* Mirror text alignment for Section 2 */
}

#about-us-section-2 .ul-about-us {
    display: flex; /* Stack list items */
    flex-direction: column; /* Vertical list */
    align-items: flex-end; /* Align list to the right */
    gap: 6px; /* Space between list items */
    padding-left: 0; /* Remove default list indent */
}

#about-us-section-2::before {
    content: ''; /* Decorative glow strip */
    position: absolute; /* Overlay positioning */
    top: 0; /* Start at top */
    left: 0; /* Span full width */
    right: 0; /* Span full width */
    height: 12%; /* Thin glow band */
    background:
        radial-gradient(ellipse 120% 80% at 80% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%), /* Right glow */
        radial-gradient(ellipse 100% 70% at 20% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%), /* Left glow */
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%); /* Center glow */
    filter: blur(40px); /* Soften glows */
    pointer-events: none; /* Keep overlay non-clickable */
}

#about-us-section-2>* {
    position: relative; /* Layer above glow */
    z-index: 1; /* Ensure visibility */
}

#about-us-section-2 h3 {
    font-size: 1.75rem; /* Section 2 heading size */
    font-weight: 700; /* Bold heading */
    margin-bottom: 18px; /* Space below heading */
    color: #333; /* Dark heading color */
}

#about-us-section-2 p {
    font-size: 1.1rem; /* Body size for Section 2 */
    line-height: 1.8; /* Roomy line spacing */
    color: #333; /* Dark text */
    margin-bottom: 30px; /* Space under paragraphs */
}

/* Medium screens (1600px and below) */
@media (max-width: 1600px) {
    #about-us-section-2 .container {
        max-width: 55%;
    }
}

/* Smaller desktops (1400px and below) */
@media (max-width: 1400px) {
    #about-us-section-2 .container {
        max-width: 55%;
    }
    
    #about-us-section-2 .about-us-lead {
        max-width: 650px;
    }
}

/* Small laptops like 1344px screens (1366px and below) */
@media (max-width: 1366px) {
    #about-us-section-2 .container {
        max-width: 58%;
    }
    
    #about-us-section-2 .about-us-lead {
        max-width: 600px;
    }
    
    #about-us-section-2 h3 {
        font-size: 1.5rem;
    }
    
    #about-us-section-2 p {
        font-size: 1rem;
    }
}

/* Tablets and small laptops (1200px and below) */
@media (max-width: 1200px) {
    #about-us-section-2 .container {
        max-width: 60%;
    }
    
    #about-us-section-2 .about-us-lead {
        max-width: 550px;
    }
}

/* Smaller tablets (992px and below) */
@media (max-width: 992px) {
    #about-us-section-2 {
        justify-content: center;
    }
    
    #about-us-section-2 .container {
        max-width: 85%;
    }
    
    #about-us-section-2 .about-us-lead {
        max-width: 100%;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    #about-us-section-2 {
        padding-top: 8%; /* Extra top padding on mobile */
        padding-bottom: 12%; /* Maintain breathing room without forcing large min-heights */
        min-height: auto; /* Let content dictate height on small screens */
        display: block; /* Reset flex for stacked mobile layout */
        background:
            linear-gradient(135deg,
                rgba(255, 255, 255, 0.97) 0%, /* Mobile-friendly gradient */
                rgba(255, 255, 255, 0.94) 28%,
                rgba(255, 255, 255, 0.7) 65%,
                rgba(255, 255, 255, 0.35) 100%),
            url('/static/images/home/aboutus/background.png'); /* Reuse lighter mobile image */
        background-size: cover; /* Cover on small screens */
        background-position: center; /* Center focal point */
        background-repeat: no-repeat; /* Prevent tiling */
    }

    #about-us-section-2 .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #about-us-section-2 .about-us-lead {
        max-width: 100%;
        padding-left: 1rem; /* Compact left padding */
        padding-right: 1rem; /* Compact right padding */
    }
}

/* ===================== About Us Section 3 (same layout as section 1: text left, image right) ============================== */
#about-us-section-3 {
    --about-us-section-3-shift: clamp(10%, 16vw, 24%); /* Pull text block right to balance image */
    --about-us-section-3-image-width: clamp(58%, 62vw, 70%); /* Prevent over-stretching the hero image */
    --about-us-section-3-image-offset: clamp(6%, 10vw, 14%); /* Start image slightly off-canvas to the right */
    position: relative; /* Base for glow overlay */
    padding-top: 5%; /* Top spacing for Section 3 */
    scroll-margin-top: 80px; /* Anchor offset */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%, /* White start */
            rgba(255, 255, 255, 1) 45%,
            rgba(255, 255, 255, 0.9) 48%,
            rgba(255, 255, 255, 0.6) 52%,
            rgba(255, 255, 255, 0.2) 72%,
            rgba(255, 255, 255, 0) 75%),
        url('/static/images/home/aboutus/vision.webp'); /* Right-side artwork */
    background-size: auto 100%, var(--about-us-section-3-image-width) 100%; /* Keep image narrower to avoid stretching */
    background-position: left center, calc(100% + var(--about-us-section-3-image-offset)) top; /* Push image start further right */
    background-repeat: no-repeat, no-repeat; /* No tiling */
}

#about-us-section-3 .about-us-lead {
    max-width: 1100px; /* Limit content width */
    margin-left: auto; /* Center wrapper */
    margin-right: auto; /* Center wrapper */
    padding-left: clamp(0.5rem, 3vw, 2rem); /* Responsive left padding */
    padding-right: clamp(0.5rem, 5vw, 5rem); /* Responsive right padding */
}

#about-us-section-3 .about-us-lead h3,
#about-us-section-3 .about-us-lead p,
#about-us-section-3 .ul-about-us {
    text-align: left; /* Match Section 1 alignment */
}

#about-us-section-3 .ul-about-us {
    display: flex; /* Flex list container */
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Left align list items */
    gap: 6px; /* Space between bullets */
    padding-left: 0; /* Remove default indent */
}

#about-us-section-3 .about-us-lead {
    max-width: 600px; /* Narrow text column for Section 3 */
    margin-left: 0; /* Anchor to left */
    margin-right: auto; /* Allow flex centering if needed */
    position: relative; /* Enable shift */
    left: var(--about-us-section-3-shift); /* Nudge content toward center */
}

#about-us-section-3::before {
    content: ''; /* Decorative glow band */
    position: absolute; /* Overlay positioning */
    top: 0; /* Start at top edge */
    left: 0; /* Span full width */
    right: 0; /* Span full width */
    height: 12%; /* Thin glow strip */
    background:
        radial-gradient(ellipse 120% 80% at 20% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%), /* Left glow */
        radial-gradient(ellipse 100% 70% at 80% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%), /* Right glow */
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%); /* Center glow */
    filter: blur(40px); /* Soften glow */
    pointer-events: none; /* Non-interactive overlay */
}

#about-us-section-3 > * {
    position: relative; /* Keep content above overlay */
    z-index: 1; /* Ensure visibility */
}

#about-us-section-3 h3 {
    font-size: 1.75rem; /* Section 3 heading size */
    font-weight: 700; /* Bold heading */
    margin-bottom: 18px; /* Gap below heading */
    color: #333; /* Dark heading */
}

#about-us-section-3 p {
    font-size: 1.1rem; /* Paragraph size */
    line-height: 1.8; /* Comfortable line height */
    color: #333; /* Dark text */
    margin-bottom: 30px; /* Space after paragraph */
}

#about-us-section-3 .fa-solid {
    font-size: 3rem; /* Icon size for Section 3 */
    color: #ff8c00; /* Orange icon color */
    margin-bottom: 15px; /* Space below icon */
}

@media (max-width: 768px) {
    #about-us-section-3 {
        --about-us-section-3-shift: 0; /* Remove lateral shift on mobile */
        padding-top: 8%; /* Extra top padding on mobile */
        background:
            linear-gradient(135deg,
                rgba(255, 255, 255, 0.97) 0%, /* Mobile gradient start */
                rgba(255, 255, 255, 0.94) 28%,
                rgba(255, 255, 255, 0.7) 65%,
                rgba(255, 255, 255, 0.35) 100%),
            url('/static/images/home/aboutus/vision.webp'); /* Mobile-friendly background */
        background-size: cover; /* Cover entire area */
        background-position: center; /* Center background */
        background-repeat: no-repeat; /* Prevent tiling */
    }

    #about-us-section-3 .about-us-lead,
    #about-us-section-3 .col-md-6 {
        padding-left: 1rem; /* Compact padding left */
        padding-right: 1rem; /* Compact padding right */
    }
}

/*End About Us Section*/

/* ================================================================================
   NEW SERVICES HERO SECTIONS
   Full-viewport hero blocks with text overlaying a side image.
   
   LAYOUTS:
   - .services-hero           → Text LEFT, image RIGHT (default)
   - .services-hero--mirror   → Text RIGHT, image LEFT (flipped)
   - .services-hero--feature  → Narrow text column, larger image
   
   IMAGE VARIANTS (add alongside layout class):
   - .services-hero--diecasting  → Aluminium die-casting image
   - .services-hero--powder      → Powder coating image, text shifted further left
   - .services-hero--machining   → Machining image
   - .services-hero--tools       → Tools/instruments image, text shifted right
   - .services-hero--friction    → Friction welding image
   
   KEY CSS VARIABLES:
   - --services-shift       → Horizontal offset for text block (negative = left, positive = right)
   - --services-hero-image  → Background image URL
   
   GRADIENT STOPS (controls white overlay fade):
   - 0%-24%   → Solid white (text area)
   - 36%-48%  → Transition zone (smooth fade)
   - 60%-72%  → Near-transparent to transparent (image visible)
   
   To show MORE image: reduce the % values in gradient stops
   To shift text LEFT: decrease --services-shift (more negative)
   To shift text RIGHT: increase --services-shift (more positive)
================================================================================ */

/* -----------------------------------------------------------------------------
   Base Layout: Text LEFT, Image RIGHT
----------------------------------------------------------------------------- */
.services-hero {
    /* Text horizontal offset: negative = push left */
    --services-shift: clamp(-18%, -11vw, -7%);
    /* Default background image */
    --services-hero-image: url('/static/images/home/services/possibly.webp');

    position: relative;
    padding-top: 5%;
    padding-bottom: 8%;
    min-height: clamp(520px, 95vh, 940px);
    scroll-margin-top: 80px;

    /* Center content vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* White-to-transparent gradient over the image */
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,      /* Solid white start */
            rgba(255, 255, 255, 1) 24%,     /* Hold solid white */
            rgba(255, 255, 255, 0.9) 36%,   /* Begin fade */
            rgba(255, 255, 255, 0.55) 48%,  /* Mid fade */
            rgba(255, 255, 255, 0.2) 60%,   /* Almost transparent */
            rgba(255, 255, 255, 0) 72%),    /* Fully transparent */
        var(--services-hero-image);
    /* Image sized to ~95% width, auto height keeps aspect ratio */
    background-size: auto 100%, 95% auto;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
}

/* Text container positioning */
.services-hero .services-lead {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.5rem, 5vw, 5rem);
    padding-right: clamp(0.5rem, 3vw, 2rem);
    position: relative;
    left: var(--services-shift);
}

/* Default text alignment */
.services-hero h1,
.services-hero p {
    text-align: left;
}

/* Decorative glow overlay at top */
.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12%;
    background:
        radial-gradient(ellipse 120% 80% at 20% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 80% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

/* Ensure content sits above glow */
.services-hero > * {
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------------------------------------
   Typography
----------------------------------------------------------------------------- */
.services-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

.services-hero h1 .highlight {
    color: #ff8c42;
    font-weight: 800;
}

.services-hero p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

/* -----------------------------------------------------------------------------
   Mirrored Layout: Text RIGHT, Image LEFT
   Use: .services-hero.services-hero--mirror
----------------------------------------------------------------------------- */
.services-hero--mirror {
    /* Text offset: positive = push right */
    --services-shift: clamp(7%, 11vw, 18%);

    min-height: clamp(520px, 95vh, 1100px);

    /* Gradient direction flipped (270deg = right-to-left) */
    background:
        linear-gradient(270deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 24%,
            rgba(255, 255, 255, 0.9) 36%,
            rgba(255, 255, 255, 0.55) 48%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0) 72%),
        var(--services-hero-image);
    /* Image sized to ~95% width, auto height keeps aspect ratio */
    background-size: auto 100%, 95% auto;
    background-position: right center, left center; /* Image anchored left, vertically centered */
    background-repeat: no-repeat, no-repeat;
}

/* Mirror text alignment */
.services-hero--mirror .services-lead,
.services-hero--mirror .services-lead h1,
.services-hero--mirror .services-lead p {
    text-align: right;
}

/* Mirror text container padding */
.services-hero--mirror .services-lead {
    padding-left: clamp(0.5rem, 3vw, 2rem);
    padding-right: clamp(0.5rem, 5vw, 5rem);
    left: var(--services-shift);
}

/* Mirror glow positions */
.services-hero--mirror::before {
    background:
        radial-gradient(ellipse 120% 80% at 80% 15%, rgba(44, 62, 80, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 70% at 20% 20%, rgba(52, 73, 94, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse 150% 90% at 50% 25%, rgba(74, 95, 122, 0.2) 0%, transparent 60%);
}

/* -----------------------------------------------------------------------------
   Feature Layout: Narrow text column with larger image
   Use: .services-hero.services-hero--feature
----------------------------------------------------------------------------- */
.services-hero--feature {
    --services-shift: clamp(10%, 16vw, 24%);

    padding-top: 5%;
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 24%,
            rgba(255, 255, 255, 0.9) 36%,
            rgba(255, 255, 255, 0.55) 48%,
            rgba(255, 255, 255, 0.2) 60%,
            rgba(255, 255, 255, 0) 72%),
        var(--services-hero-image);
    /* Image sized to 100% width, auto height keeps aspect ratio */
    background-size: auto 100%, 100% auto;
    background-position: left center, right center;
    background-repeat: no-repeat, no-repeat;
}

.services-hero--feature .services-lead {
    max-width: 700px;
    padding-left: clamp(0.5rem, 3vw, 2rem);
    padding-right: clamp(0.5rem, 5vw, 5rem);
    left: var(--services-shift);
}

/* -----------------------------------------------------------------------------
   Image Variants
   Add these classes to set the background image and optional text shift
----------------------------------------------------------------------------- */

/* Intro hero (services landing) */
.services-hero--intro {
    --services-hero-image: url('/static/images/home/services/possibly.webp');
}

/* Aluminium Die-Casting (default for base & mirror layouts) */
.services-hero--diecasting {
    --services-hero-image: url('/static/images/home/services/aluminium_diecasting.webp');
    --services-shift: clamp(-24%, -16vw, -11%);
    /* Match the narrower gradient/image treatment used on powder coating */
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: left center, 104% center;
    background-repeat: no-repeat, no-repeat;
}

/* Powder Coating - text shifted further LEFT, image less zoomed, softer gradient */
.services-hero--powder {
    --services-hero-image: url('/static/images/home/services/powder_coating.webp');
    --services-shift: clamp(-24%, -16vw, -11%);
    /* Custom gradient with smaller white area and softer transition */
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    /* First layer = gradient (full height); second layer = image scaled to ~80% width (auto height keeps ratio) */
    background-size: auto 100%, 80% auto;
    /* Gradient anchored left; image pushed right (adjust second value: 60%-100%) */
    background-position: left center, 104% center;
    background-repeat: no-repeat, no-repeat; /* Prevent tiling on both layers */
}

/* Machining */
.services-hero--machining {
    --services-hero-image: url('/static/images/home/services/machining.webp');
    --services-shift: clamp(-24%, -16vw, -11%);
    /* Match powder-style gradient and image sizing to reveal more photo */
    background:
        linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: left center, 104% center;
    background-repeat: no-repeat, no-repeat;
}

/* Tool Equipment - text shifted RIGHT */
.services-hero--tools {
    --services-hero-image: url('/static/images/home/services/maintool.webp');
    --services-shift: clamp(10%, 16vw, 24%);
}

/* Tool Equipment button nudged toward the right */
#services-hero-5 .btn-get-quote {
    margin-left: 15%;
}

/* Aluminium Diecasting button nudged toward the right */
#services-hero-3 .btn-get-quote {
    margin-left: 15%;
}

/* Friction Welding */
.services-hero--friction {
    --services-hero-image: url('/static/images/home/services/friction_welding.webp');
}

/* -----------------------------------------------------------------------------
   Combination Overrides
   Fine-tune text position when combining layout + image variant
----------------------------------------------------------------------------- */

/* Mirror + Diecasting: push text further right */
.services-hero--mirror.services-hero--diecasting {
    --services-shift: clamp(14%, 20vw, 28%);
    /* Mirror the powder-style gradient so white sits under the right-aligned text */
    background:
        linear-gradient(270deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: right center, -4% center;
    background-repeat: no-repeat, no-repeat;
}

/* Mirror + Machining: mirror the powder-style layout */
.services-hero--mirror.services-hero--machining {
    --services-shift: clamp(14%, 20vw, 28%);
    background:
        linear-gradient(270deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 26%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.55) 46%,
            rgba(255, 255, 255, 0.25) 58%,
            rgba(255, 255, 255, 0.08) 68%,
            rgba(255, 255, 255, 0) 76%),
        var(--services-hero-image);
    background-size: auto 100%, 80% auto;
    background-position: right center, -4% center;
    background-repeat: no-repeat, no-repeat;
}

/* -----------------------------------------------------------------------------
   Scroll Animations (JS adds .is-visible class on scroll)
   Reuses About Us keyframes: aboutFadeUp, aboutFadeFromRight, aboutFadeFromLeft
----------------------------------------------------------------------------- */
.services-animate .services-hero .services-lead h1,
.services-animate .services-hero .services-lead p {
    opacity: 0;
    transform: translateY(18px);
    will-change: transform, opacity;
}

.services-animate .services-hero.is-visible .services-lead h1,
.services-animate .services-hero.is-visible .services-lead p {
    animation: aboutFadeUp 1.3s ease forwards;
    animation-delay: 0.1s;
}

.services-animate .services-hero.is-visible .services-lead p {
    animation-delay: 0.24s;
}

/* Mirror animation (slide from right) */
.services-animate .services-hero--mirror .services-lead h1,
.services-animate .services-hero--mirror .services-lead p {
    transform: translateX(18px);
}

.services-animate .services-hero--mirror.is-visible .services-lead h1,
.services-animate .services-hero--mirror.is-visible .services-lead p {
    animation: aboutFadeFromRight 1.3s ease forwards;
    animation-delay: 0.12s;
}

.services-animate .services-hero--mirror.is-visible .services-lead p {
    animation-delay: 0.28s;
}

/* Feature animation (slide from left) */
.services-animate .services-hero--feature .services-lead h1,
.services-animate .services-hero--feature .services-lead p {
    transform: translateX(-18px);
}

.services-animate .services-hero--feature.is-visible .services-lead h1,
.services-animate .services-hero--feature.is-visible .services-lead p {
    animation: aboutFadeFromLeft 1.3s ease forwards;
    animation-delay: 0.12s;
}

.services-animate .services-hero--feature.is-visible .services-lead p {
    animation-delay: 0.28s;
}

/* -----------------------------------------------------------------------------
   Mobile Responsive (768px and below)
----------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .services-hero,
    .services-hero--mirror,
    .services-hero--feature {
        --services-shift: 0;  /* Reset horizontal shift */
        padding-top: 8%;
        padding-bottom: 12%;
        min-height: auto;

        /* Simpler gradient for mobile */
        background:
            linear-gradient(135deg,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.94) 28%,
                rgba(255, 255, 255, 0.7) 65%,
                rgba(255, 255, 255, 0.35) 100%),
            var(--services-hero-image);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .services-hero .services-lead,
    .services-hero--mirror .services-lead,
    .services-hero--feature .services-lead {
        padding-left: 1rem;
        padding-right: 1rem;
        left: 0;
    }

    /* Reset mirror text alignment on mobile */
    .services-hero--mirror .services-lead h1,
    .services-hero--mirror .services-lead p {
        text-align: left;
    }
}
/*========================= End of Services ============================*/
/*=========================== Old Services CODE ===========================*/
/*Service Class*/

/* Services Section - matches actual HTML structure */

/* Services Section Container */
.services-section {
    background-color: #d3d3d3;
}

.services-section h1 {
    color: black;
}

.services-section > .container > .row > p {
    color: black;
}

/* Section heading and paragraph */
#services h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: black;
    margin-bottom: 20px;
}

#services~.container p,
.container-fluid p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: black;
    margin-bottom: 50px;
}

/* Service Cards */

.service-card {
    min-height: 520px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

#services .card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: none;
    animation: fadeInUp 0.6s ease;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

#services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Card image container */
.card-image-container {
    width: 100%;
    min-height: 240px;
    flex: 1 1 auto;
    overflow: hidden;
    background-color: white;
    border-radius: 10px 10px 0 0;
}

#services .card>div:first-child {
    position: relative;
}

#services .card>div:first-child a {
    display: block;
    width: 100%;
    height: 100%;
}

#services .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    border: 0;
}

#services .card:hover img {
    transform: scale(1.1);
}

/* Card content */
.card-content {
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 16px 18px 20px;
    gap: 8px;
}

#services .card .row {
    background: white;
}

#services .card h4 {
    color: black;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    width: 100%;
}

#services .card p {
    color: black;
    width: 100%;
}

/* Card link styling - make entire card clickable */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Service Card Button - targeting the actual button classes */
#services .card .btn-warning {
    background: var(--primary-orange);
    color: var(--bg-white);
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
    padding: 12px 50px !important;
    width: 100%;
    display: inline-block;
    pointer-events: none;
}

.card-link:hover .btn-warning {
    background: var(--dark-orange);
    color: var(--bg-white);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    #services .card {
        height: auto;
    }

    #services .card h4 {
        font-size: 1.15rem;
    }
}

@media (max-width: 992px) {
    #services h1 {
        font-size: 2rem;
    }

    .container-fluid p {
        font-size: 1rem;
    }

    #services .card {
        height: auto;
    }
}

@media (max-width: 768px) {
    #services h1 {
        font-size: 1.8rem;
    }

    #services .card {
        height: auto;
        margin: 0 auto 20px !important;
    }

    #services .card h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    #services .card .btn-warning {
        padding: 8px 25px !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    #services h1 {
        font-size: 1.5rem;
    }

    .container-fluid p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    #services .card {
        height: auto;
    }

    #services .card h4 {
        font-size: 1rem;
    }

    #services .card .btn-warning {
        padding: 7px 20px !important;
        font-size: 0.85rem;
    }
}

/*================================= End of OLD  Service Section ===========================================*/
/*Start of news section*/
/* News Section */
.news-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #e8eef3 100%);
}

.news-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(44, 62, 80, 0.1);
    transition: var(--transition);
    height: 100%;
    background: var(--bg-white);
    border: 1px solid rgba(11, 92, 146, 0.1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(11, 92, 146, 0.2);
}

.news-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.news-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(44, 62, 80, 0.3) 100%);
    transition: var(--transition);
}


.news-date {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-gray) 100%);
    color: var(--bg-white);
    padding: 5px 15px;
    border-radius: 20px;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(11, 92, 146, 0.3);
}

.news-content {
    padding: 20px;
    background: var(--bg-white);
}

.news-title {
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
    transition: var(--transition);
}

.news-card:hover .news-title {
    color: var(--light-blue);
}

.news-content p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-content .btn-outline-danger {
    background: transparent;
    border: 2px solid var(--light-blue);
    color: var(--light-blue);
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.news-content .btn-outline-danger:hover {
    background: var(--light-blue);
    color: var(--bg-white);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(11, 92, 146, 0.3);
}

/* News Section Title */
.news-section .section-title h2 {
    color: var(--dark-gray);
}

.news-section .section-title p {
    color: var(--medium-gray);
}

.news-section .view-all {
    color: var(--light-blue);
}

.news-section .view-all:hover {
    color: var(--dark-gray);
}

/* Alert styling for no articles */
.news-section .alert-info {
    background: rgba(11, 92, 146, 0.1);
    border: 1px solid var(--light-blue);
    color: var(--dark-gray);
    border-radius: 10px;
    padding: 20px;
}

.news-section .alert-info i {
    color: var(--light-blue);
}

/* Featured News Card */
.featured-news-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.15);
    transition: var(--transition);
    background: var(--bg-white);
    border: 1px solid rgba(11, 92, 146, 0.1);
    height: 350px;
}

.featured-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(11, 92, 146, 0.25);
}

.featured-news-img {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.featured-news-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(44, 62, 80, 0.3) 100%);
    transition: var(--transition);
}

.featured-news-content {
    padding: 40px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.featured-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.featured-news-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 15px;
    line-height: 1.3;
    transition: var(--transition);
}

.featured-news-card:hover .featured-news-title {
    color: var(--light-blue);
}

.featured-news-description {
    color: var(--medium-gray);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.featured-read-more {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.featured-read-more:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateX(10px);
    color: white;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Responsive Design for Featured News */
@media (max-width: 768px) {
    .featured-news-card {
        height: auto;
    }
    
    .featured-news-img {
        height: 250px;
    }
    
    .featured-news-content {
        height: auto;
        padding: 25px;
    }
    
    .featured-news-title {
        font-size: 1.4rem;
    }
    
    .featured-news-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .featured-news-img {
        height: 200px;
    }
    
    .featured-news-content {
        padding: 20px;
    }
    
    .featured-news-title {
        font-size: 1.2rem;
    }
    
    .featured-read-more {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}
/*End of News Section*/

/*Map Section*/
.map-wrapper {
    width: 80%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border: 3px solid var(--dark-gray);
    border-radius: 16px;
}

@media (max-width: 768px) {
    #interactive-map,
    .map-wrapper {
        display: none; /* Hide the full map section on small screens to avoid layout squeeze */
    }
}

#europe-map {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
}

.leaflet-container {
    background: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* L-shaped markers (teal + orange) */
.l-marker {
    width: 12px;
    height: 12px;
    transform: none; /* Remove rotation */
}

.l-marker-inner {
    width: 100%;
    height: 100%;
}

/* Only apply dot styling to non-office markers */
.l-marker:not(.l-marker--office) .l-marker-inner {
    border-radius: 50%; /* Make it circular */
    border: 2px solid white; /* White border for visibility */
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Add shadow for depth */
}

.l-marker--teal .l-marker-inner {
    background-color: #0ea5e9; /* Solid teal background */
    border-left: none; /* Remove old border styles */
    border-top: none;
}

.l-marker--orange .l-marker-inner {
    background-color: #f97316; /* Solid orange background */
    border-right: none; /* Remove old border styles */
    border-bottom: none;
}

/* Office marker styling - keep it as is */
.l-marker--office {
    width: 32px;
    height: 32px;
    transform: none;
}

.l-marker--office .l-marker-inner {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Cluster bubbles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.9) 0, rgba(59, 130, 246, 0.7) 40%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 999px;
    border: 2px solid #1d4ed8;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.7);
    color: #111827;
}

.marker-cluster div {
    background: #1d4ed8;
    color: #ffffff;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    box-shadow: inset 0 0 0 2px rgba(191, 219, 254, 0.9);
}
/*End of Section*/
/*Start of Contact US section*/

.animated-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.animated-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.custom-btn {
    background: linear-gradient(90deg, #ff8800, #d33d10);
    border: none;
    border-radius: 50px;
    color: #fff;
    padding: 12px 30px;
}


.contact-hero {
    height: 600px;
    position: relative;
    overflow: hidden;
}


.contact-hero-bg {
    /* background-image removed — set by HTML to make image source explicit in markup */
    background: none;
    background-color: #0b1220;
    /* dark fallback while image loads */
    background-position: center center;
    background-size: cover;
    filter: blur(5px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scale(1.05);
    /* prevents edges from appearing after blur */
}


.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}


.contact-hero-content {
    position: relative;
    z-index: 2;
}
/*End of Contact US section*/

/*About US STATS SECTION*/

/* Company Overview Stats */
.company-overview {
    margin-bottom: 4rem;
    padding: 3rem 0 2rem; /* Add breathing room away from borders */
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 300;
    color: #0b5c92;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Stats: mobile-friendly scaling */
@media (max-width: 768px) {
    .company-overview {
        margin-bottom: 2.5rem;
        padding: 2rem 0 1.5rem; /* Slightly tighter padding on mobile */
    }

    .stat-card {
        padding: 1.25rem 0.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
        margin-bottom: 0.35rem;
    }

    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 0.35px;
    }
}

.ul-about-us {
  line-height: 1.8;
  padding-left: 30%;
  color: #333;
}

.ul-about-us a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.ul-about-us a:hover {
  color: #007bff;
  text-decoration: none;
}