:root {
    --primary-blue: #0077ff;
    --deep-blue: #001f3f;
    --navy-blue: #001233;
    /* Darker navy */
    --aqua: #00f2fe;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-dim: #b0c4de;
    --white-bg: #f8faff;
    --nav-height: 80px;
    --phone-gradient: linear-gradient(to right, #2b3363, #0096d6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #000;
    /* Prevent white flash on bottom overscroll */
}

ul,
li {
    list-style: none;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--deep-blue);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.5s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(0 32 65 / 50%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: 0.3s;
}

/* Navbar Light Mode */
.navbar.light-mode {
    background: rgb(0 32 65 / 50%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.light-mode .nav-links a {
    color: var(--deep-blue);
    /* Dark text for light navbar */
}

.navbar.light-mode .nav-links a:hover {
    color: var(--primary-blue);
}

.navbar.light-mode .hamburger span {
    background: var(--deep-blue);
}

.navbar.light-mode .logo-text {
    /* Adjust gradient for light background if needed */
    background: linear-gradient(to right, var(--deep-blue), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.nav-logo {
    height: 50px;
    /* Logo is now always visible */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(to right, #fff, var(--aqua));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text-img {
    height: 25px;
    /* Adjust to match text visual weight */
    width: auto;
    display: block;
}

.nav-links>ul {
    display: flex;
    list-style: none;
    gap: clamp(15px, 3vw, 30px);
    align-items: center;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: 0.3s;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1100;
}

.header-shop-btn {
    text-decoration: none;
    transition: 0.3s;
}

.shop-text {
    display: inline;
}

@media (max-width: 1024px) {
    .shop-text {
        display: none;
    }
}

nav a {
    text-decoration: none;
    color: #c7cbd0 !important;
    font-size: 0.9rem;
    font-weight: 400;
    /* Increased from 300 for better visibility */
    transition: 0.3s;
    letter-spacing: 1px;
}

nav a:hover {
    color: white !important;
    text-shadow: 0 0 10px var(--aqua);
}

nav a.active {
    color: white !important;
    font-weight: 600;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle::after,
.nav-dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown.active>.dropdown-toggle {
    color: white !important;
    text-shadow: 0 0 10px var(--aqua);
}

.dropdown-menu {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    /* Vertical layout */
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

/* Standardize dropdown appearance */
.dropdown-menu a {
    padding: 12px 25px;
    color: #c7cbd0 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    white-space: nowrap;
    border-radius: 0;
    text-align: center;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white !important;
    transform: translateX(5px);
}

/* 3rd Level Submenu (Flyout) */
.nav-dropdown-submenu {
    position: relative;
    list-style: none;
}

.submenu-list {
    position: absolute;
    top: 0;
    left: 100%;
    list-style: none;
    margin: 0;
    background: rgba(0, 20, 45, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 10px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Fix for Chemicals (last items) to fly out to the LEFT instead of RIGHT */
.nav-dropdown:last-child .submenu-list,
.nav-dropdown:nth-last-child(2) .submenu-list {
    left: auto;
    right: 100%;
    transform: translateX(-10px);
}

.nav-dropdown:last-child .nav-dropdown-submenu:hover>.submenu-list,
.nav-dropdown:nth-last-child(2) .nav-dropdown-submenu:hover>.submenu-list {
    transform: translateX(-5px);
}

.nav-dropdown-submenu:hover>.submenu-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
    pointer-events: auto;
}

.submenu-item a {
    text-align: left !important;
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
}

/* Submenu Arrow Indicator */
.has-submenu::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-dim);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, rgb(7, 76, 155), rgb(1, 147, 236));
    color: white !important;
    text-decoration: none !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: 0;
    /* Remove inherited spacing */
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    margin: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
}

/* Global Button Styles */
[class*="btn-"] {
    text-decoration: none !important;
}

/* Light Mode Styles (Scroll Transition) */
body.light-mode {
    background-color: #ffffff;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    /* Changed from height to min-height to allow growth */
    width: 100%;
    display: flex;
    align-items: center;
    /* Default centering */
    justify-content: center;
    /* overflow: hidden; Removed to prevent cutting off content */
    padding-top: var(--nav-height);
    padding-bottom: 50px;
    /* Ensure space at bottom */
    /* Offset navbar initially */
}

@media (min-width: 1024px) {
    .hero {
        align-items: center;
        padding-top: var(--nav-height);
    }
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.4) contrast(1.1);
    opacity: 0.4;
    /* Reduced transparency, more visible */
    transition: opacity 2s ease;
}

.bg-vignette::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, var(--deep-blue) 90%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 10;
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* MASK EFFECT - STATIC */
.mask-container {
    position: relative;
    width: 350px;
    height: 400px;
    z-index: 2;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Initial reveal animation */
    opacity: 0;
    animation: maskReveal 3.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    /* Transform origin for 3D rotation */
    transform-origin: center center;
    transform-style: preserve-3d;
    will-change: transform, filter, opacity;
}

@keyframes maskReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes maskPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.video-mask-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    /* Using the SVG as a mask */
    /* Updated for universal Safari Compatibility */
    mask-image: url('assets/sada_emblem.svg');
    -webkit-mask-image: url('assets/sada_emblem.svg');
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    /* Ensure hardware acceleration for smoother masking */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);

    background-image: url('https://www.ags.pt/video/home-donut-crop-poster.jpg?v1');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.masked-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optional slight zoom effect if desired, or keep it simple */
    transform: scale(1.1);
    animation: videoZoom 20s infinite alternate;
}

@keyframes videoZoom {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.3);
    }
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-text-content {
    text-align: center;
}

.hero-text-content h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #ffffff 0%, #6783a8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-content p {
    display: block;
    /* Visible on all screens */
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    font-weight: 300;
    color: var(--text-dim);
    margin: 0 auto 30px;
    max-width: 800px;
    line-height: 1.6;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--aqua);
    color: var(--aqua);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

/* ========================================= */
/* PRELOADER STYLES */
/* ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0b0b; /* Very dark background matching screenshot */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

#preloader.preloader-fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Diagonal watermark background */
.preloader-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: clamp(10rem, 30vw, 40rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03); /* Very faint watermark */
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    letter-spacing: -5px;
}

/* Centered container for logo and bar */
.preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.preloader-logo {
    width: 180px;
    height: auto;
}

/* Progress bar holding track */
.progress-bar-container {
    width: 250px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    /* Purple gradient matching the screenshot */
    background: linear-gradient(90deg, #6c30f9, #9e6cf9);
    animation: progressFill 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Sections */
.section-glass {
    padding: 150px 0;
    background: linear-gradient(to bottom, var(--deep-blue), #000);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}


h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 30px;
    font-weight: 300;
}

.section-glass p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 200;
    color: var(--text-dim);
    max-width: 800px;
    margin: 0 auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-actions {
        display: flex;
        gap: 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 15, 30, 0.98);
        backdrop-filter: blur(25px);
        display: block;
        padding-top: 100px;
        padding-bottom: 80px;
        overflow-y: auto;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1090;
    }

    .nav-links.active {
        top: 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
        padding: 0 20px;
        margin: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.3rem;
        display: block;
        text-align: center;
        padding: 12px;
        color: #fff !important;
        font-weight: 500;
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown {
        position: relative;
        width: 100%;
    }

    .dropdown-toggle {
        justify-content: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        padding: 0;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        border-radius: 12px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        min-width: auto;
        box-shadow: none;
    }

    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 2000px;
        padding: 10px 0;
        margin-top: 10px;
    }

    .dropdown-menu a {
        font-size: 1.1rem;
        padding: 12px 20px;
        color: rgba(255, 255, 255, 0.8) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    /* Mobile 3rd Level Submenu */
    .submenu-list {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none !important;
        background: rgba(0, 0, 0, 0.2);
        max-height: 0;
        overflow: hidden;
        min-width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        transition: max-height 0.4s ease;
    }

    .nav-dropdown-submenu.active .submenu-list {
        max-height: 1000px;
        padding: 5px 0;
    }

    .submenu-item a {
        font-size: 1rem !important;
        text-align: center !important;
        padding: 10px 20px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        border: none !important;
    }

    .has-submenu {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .has-submenu::after {
        content: '▼';
        font-size: 0.7rem;
        margin-left: 10px;
        position: static !important;
        transform: none !important;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .nav-dropdown-submenu.active .has-submenu::after {
        transform: rotate(180deg);
    }

    /* Shop Now Button Mobile */
    .nav-links .btn-primary {
        display: none !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mask-container {
        width: clamp(250px, 80vw, 350px);
        /* Slightly larger on mobile */
        height: clamp(300px, 90vw, 400px);
        margin-top: 10px;
    }

    .hero {
        padding-top: 60px;
        min-height: 80vh;
    }

    .hero-text-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.4rem);
        padding: 0 10px;
    }

    .navbar.light-mode .nav-logo {
        filter: invert(1);
        /* Ensure logo is dark on light navbar if it was white */
    }

    .hero-content {
        gap: 20px;
    }

    .hero-text-content p {
        display: block;
        /* Show description on mobile */
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .section-glass {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .cta-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-text-content h1 {
        letter-spacing: -1px;
    }
}

.main-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    flex-shrink: 0;
    z-index: 0;
    /* Place behind main content for reveal effect */
    background: linear-gradient(to bottom, #001f3f, #000);
    padding: 80px 30px 40px;
    color: var(--text-white);
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
    /* Clip bubbles spawning below */
}

.footer-top {
    position: relative;
    /* Ensure it stays above bubbles */
    z-index: 20;
    /* Higher than bubbles (z-index: 1) */
    display: flex;
    flex-wrap: nowrap;
    /* Force single line on desktop */
    justify-content: space-between;
    gap: 20px;
    /* Further reduced gap */
    margin-bottom: 20px;
    align-items: flex-start;
}

/* Footer Layout Columns */
.footer-col {
    flex: 1 1 auto;
    /* Allow shrinking */
    min-width: 0;
    /* Allow shrinking below content size if strictly needed, though unlikely */
    margin-bottom: 30px;
}

.footer-col.brand-col {
    flex: 1.5 0 auto;
    min-width: 220px;
    /* absolute min for readability */
    padding-right: 15px;
}

.footer-col.branches-col {
    flex: 1.2 0 auto;
    min-width: 180px;
}

.footer-col.offices-col {
    flex: 1.2 0 auto;
    min-width: 180px;
}

.footer-col.links-col {
    flex: 0.8 0 auto;
    min-width: 130px;
}

/* Responsive Wrap for smaller screens */
@media (max-width: 1100px) {
    .footer-top {
        flex-wrap: wrap;
        /* Allow wrapping on medium/tablet screens */
    }

    .footer-col {
        min-width: 200px;
        /* Restore comfortable width when wrapped */
        flex: 1 0 auto;
    }
}

.footer-col h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-link-large {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    background: #FFF;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    line-height: 1.2;
    display: inline-block;
}

.footer-link-large:hover {
    transform: translateX(10px);
}

.footer-block p {
    font-size: 1.1rem;
    color: var(--text-white);
    line-height: 1.6;
    max-width: 400px;
}

.footer-phone {
    font-size: 1.25rem;
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 700;
}

.footer-phone:hover {
    opacity: 0.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-dim);
    /* Softer white */
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

/* Robust Visibility Fixes */
.footer-col,
.branch-info,
.footer-block {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block;
    /* Ensure block layout for content */
    opacity: 1 !important;
    visibility: visible !important;
}

.footer-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aqua);
    transition: width 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-col ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo-img {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo-img:hover {
    opacity: 1;
}

.copyright p {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
}

.footer-socials {
    display: flex;
    gap: 25px;
}

.footer-socials a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--aqua);
}

.map-shortcut-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid var(--aqua);
    border-radius: 8px;
    color: var(--aqua);
    transition: all 0.3s ease;
}

.map-shortcut-btn:hover {
    background: var(--aqua);
    color: var(--deep-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

/* Make footer responsive */
@media (max-width: 992px) {
    .main-footer {
        padding: 60px 20px 30px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
    }

    .footer-col {
        min-width: 100%;
        /* Stack fully */
        margin-bottom: 20px;
    }

    .footer-col.contact-col {
        order: -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-footer {
        position: relative;
        z-index: 1;
    }

    .footer-bubbles-container {
        overflow: hidden;
        /* Prevent bubbles from overflowing */
        max-width: 100vw;
    }

    .footer-link-large {
        font-size: 1.4rem;
        word-break: break-all;
        /* Prevent email from overflowing */
    }
}

@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Ensure it's off-screen */
        width: 100%;
        /* Full fullscreen menu style */
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 40px;
        left: auto;
        /* Reset any left positioning */
    }

    .nav-links.active {
        right: 0;
    }
}

/* Ensure body allows sticky behavior */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    position: relative;
    z-index: 20;
    /* Higher than footer */
    background: var(--deep-blue);
    /* Ensure opacity to cover footer */
    flex: 1;
    margin-bottom: 0px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Shadow for depth */
}

/* Core Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background: #f8faff;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 31, 63, 0.08);
    background: #fff;
    border-color: rgba(0, 119, 255, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.value-card h4 {
    color: var(--deep-blue);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
}

.value-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-img {
    height: 50px;
}

.footer-socials {
    display: flex;
    gap: 30px;
}

.footer-socials a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-socials a:hover {
    color: var(--aqua);
    text-shadow: 0 0 10px var(--aqua);
}

/* Footer Bubbles */
.footer-bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.footer-bubble {
    position: absolute;
    bottom: -50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3), 0 0 15px rgba(255, 255, 255, 0.1);
    animation: bubbleRise var(--duration, 10s) linear var(--delay, 0s) infinite;
    width: var(--size, 20px);
    height: var(--size, 20px);
    left: var(--left, 50%);
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-600px) translateX(var(--drift, 0px));
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 60px 20px;
    }
}


/* Utility Gradient Class */
.gradient-text-blue {
    background: linear-gradient(to right, var(--primary-blue), #003366);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #001f3f;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    /* Slightly more rounded than standard 4px */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 40px;
}

.about-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Global Section Tags */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--deep-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* About Us Section Styles - Modern Redesign */
.section-about {
    background-color: #ffffff;
    padding: 120px 0;
    position: relative;
    z-index: 20;
    color: var(--deep-blue);
    /* Base color for visibility on white bg */
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.about-header-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.about-subtitle {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.about-main-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    gap: 0;
    width: 100%;
}

.about-visual-modern {
    flex: 0 0 55%;
    min-height: 600px;
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    will-change: transform;
}

.about-visual-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card {
    flex: 0 0 55%;
    background: white;
    padding: 70px 60px;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 31, 63, 0.15);
    position: relative;
    z-index: 2;
    margin-left: -10%;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    will-change: transform;
}

.about-card h3 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--deep-blue);
    font-weight: 700;
    letter-spacing: -1px;
    will-change: transform;
    /* Prepare for staggered parallax */
}

.about-card-text {
    will-change: transform;
    /* Prepare for staggered parallax */
}

.accent-green {
    color: #2ecc71;
    /* Modern Green from screenshot */
    font-weight: 700;
}

.about-card-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.about-card-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .about-card {
        margin-left: -80px;
        padding: 60px 40px;
    }

    .about-visual-modern {
        flex: 0 0 50%;
    }

    .about-card {
        flex: 0 0 60%;
    }
}

@media (max-width: 768px) {
    .section-about {
        padding: 40px 0;
    }

    .about-main-content {
        flex-direction: column;
        padding: 0 20px;
        gap: 0;
    }

    .about-visual-modern {
        width: 100%;
        flex: none;
        height: 180px;
        /* Reduced height */
        margin-bottom: 0;
        border-radius: 20px 20px 0 0;
        /* Only round top */
        z-index: 1;
    }

    .about-visual-modern img {
        border-radius: 20px 20px 0 0;
    }

    .about-card {
        width: 100%;
        flex: none;
        min-width: unset;
        margin-left: 0;
        margin-top: 0;
        /* Remove negative margin to stop overlapping white space */
        padding: 25px 20px;
        /* Reduced padding */
        border-radius: 0 0 20px 20px;
        /* Only round bottom to connect with image */
        box-shadow: 0 10px 30px rgba(0, 31, 63, 0.1);
        /* Softer shadow */
        background: #fff;
        z-index: 2;
    }
}

/* Team Section Styles */
.team-grid {
    display: flex;
    justify-content: center;
    /* Center the cards in a single line */
    gap: 30px;
    /* Slightly reduced gap to fit better */
    margin-top: 60px;
    flex-wrap: wrap;
    /* Allow wrapping on mobile, but single line on desktop */
}

.team-card {
    background-color: #F3F6F1;
    /* Light sage/beige from reference */
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    /* Distribute space evenly */
    min-width: 280px;
    /* Minimum width before wrapping */
    max-width: 350px;
    /* Prevent them from getting too wide */
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.team-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 5px;
}

.team-role {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    font-weight: 500;
}

.team-image-wrapper {
    width: 220px;
    height: 280px;
    border-radius: 45% 45% 45% 45% / 30% 30% 40% 40%;
    /* Organic oval/arch shape */
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #e0e5de;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    /* B&W effect from reference */
    transition: filter 0.3s ease, transform 0.5s ease;
}

.team-card:hover .team-image-wrapper img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--deep-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
    margin-top: auto;
    cursor: pointer;
    transition: color 0.3s ease;
}

.team-link:hover {
    color: var(--primary-blue);
}

/* EXPERTISE / SERVICES SECTION */
.section-expertise {
    background-color: var(--white-bg);
    /* Use a very light blue/white */
    padding: 100px 0 150px;
    position: relative;
    z-index: 20;
    color: var(--deep-blue);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header p {
    color: #4a5568;
    /* Subtle gray/blue - visible on white backgrounds */
    font-size: 1.15rem;
    line-height: 1.6;
    margin-top: 15px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 119, 255, 0.08);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 119, 255, 0.1);
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    /* Matched with About section h3 */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--deep-blue);
    letter-spacing: -1px;
    /* Unified with About section h3 */
}


.expertise-grid {
    display: flex;
    flex-wrap: nowrap !important;
    gap: 40px;
    height: 700px;
    width: max-content;
    /* Allow track to grow with content */
    margin-top: 50px;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    padding-right: 40px;
}


.expertise-card {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.expertise-card:hover .card-bg {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 31, 63, 0.9) 0%, rgba(0, 31, 63, 0.2) 60%, transparent 100%);
    transition: opacity 0.3s;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.expertise-card:hover .card-content {
    transform: translateY(-20px);
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.1;
}

.card-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    opacity: 0.8;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    /* Optional: Hide p initially and reveal on hover if desired, but good to keep visible for UX */
}

.expertise-card:hover .card-content p {
    opacity: 1;
    transform: translateY(0);
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}

.card-arrow svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.expertise-card:hover .card-arrow {
    background: linear-gradient(45deg, rgb(7, 76, 155), rgb(1, 147, 236));
    transform: scale(1.1);
}

.expertise-card:hover .card-arrow svg {
    transform: translateX(3px);
}


/* CAREER SECTION */
.section-career {
    position: relative;
    padding: 120px 0;
    background-color: var(--navy-blue);
    color: white;
    z-index: 20;
    overflow: hidden;
}

.career-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, #004080 0%, var(--navy-blue) 60%);
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 5;
}

.career-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.career-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.career-content h2 span {
    color: var(--aqua);
}

.career-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .expertise-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .expertise-card {
        height: 400px;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .about-text {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .expertise-card {
        height: auto;
        /* Allow height to grow with content */
        min-height: 400px;
    }

    .card-content {
        padding: 25px;
        /* Reduced padding */
        justify-content: flex-end;
    }

    .card-content h3 {
        font-size: 1.5rem;
        /* Smaller font for long titles */
        margin-bottom: 10px;
    }
}

/* FEATURED PROJECTS SECTION */
.section-projects {
    background-color: #ffffff;
    padding: 100px 0;
    position: relative;
    z-index: 20;
    color: var(--deep-blue);
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Reverse layout for alternating effect */
.project-row-reverse .project-image {
    order: 2;
}

.project-row-reverse .project-content {
    order: 1;
}

.project-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.project-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 31, 63, 0.3) 100%);
    pointer-events: none;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 10px;
    line-height: 1.2;
}

.project-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.project-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-content .btn-learn-more {
    display: inline-block;
    margin-top: 15px;
}

/* Projects Responsive */
@media (max-width: 992px) {

    .project-row,
    .project-row-reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 80px;
        direction: ltr;
    }

    .project-image img {
        height: 350px;
    }

    .project-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section-projects {
        padding: 60px 0;
    }

    .project-row {
        margin-bottom: 60px;
    }

    .project-content h3 {
        font-size: 1.8rem;
    }

    .project-content h4 {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 1rem;
    }
}

/* CLIENT LOGOS MARQUEE SECTION */
.section-clients {
    background-color: #f8faff;
    padding: 80px 0;
    position: relative;
    z-index: 20;
    overflow: hidden;
}

.clients-header {
    text-align: center;
    margin-bottom: 50px;
}

.clients-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    /* Fix horizontal scroll */
    white-space: nowrap;
    padding: 20px 0;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 40px;
    transition: transform 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.1);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
}

/* Responsive */
@media (max-width: 768px) {
    .section-clients {
        padding: 60px 0;
    }

    .client-logo {
        width: 150px;
        height: 80px;
        margin: 0 20px;
    }

    .client-logo img {
        max-height: 60px;
    }

    .marquee-content {
        animation: marquee 20s linear infinite;
    }
}

/* MODERN CONTACT SECTION */
.section-contact {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    padding: 0;
    position: relative;
    z-index: 20;
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 100vh;
    width: 100%;
}

.contact-centered {
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    min-height: auto;
    padding: 100px 20px;
}

/* Branch/Office section for Contact Page */
.section-offices {
    padding: 100px 0;
    background: var(--navy-blue);
}

.offices-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.offices-header {
    text-align: center;
    margin-bottom: 60px;
}

.offices-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.offices-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.contact-centered .contact-form-wrapper {
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.contact-centered .contact-form-header {
    text-align: center;
}

.contact-centered .contact-form-header p {
    margin: 0 auto;
}

.contact-centered .btn-submit {
    align-self: center;
}

/* Background version for Homepage */
.section-contact.contact-has-bg {
    background: linear-gradient(rgba(0, 31, 63, 0.85), rgba(0, 18, 32, 0.95)), url('assets/water%20solution.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
}

.section-contact.contact-has-bg .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 60px;
    margin: 100px auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-contact.contact-has-bg .contact-form-header h2 {
    color: white;
}

.section-contact.contact-has-bg .contact-form-header p {
    color: rgba(255, 255, 255, 0.8);
}

.section-contact.contact-has-bg .contact-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-contact.contact-has-bg .modern-contact-form input,
.section-contact.contact-has-bg .modern-contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.section-contact.contact-has-bg .modern-contact-form input::placeholder,
.section-contact.contact-has-bg .modern-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.section-contact.contact-has-bg .modern-contact-form input:focus,
.section-contact.contact-has-bg .modern-contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--aqua);
}

.section-contact.contact-has-bg .contact-form-header .gradient-text-blue {
    background: linear-gradient(to right, #aebecf, #ffecec);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Left Side - Contact Form */
.contact-form-wrapper {
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-header {
    margin-bottom: 50px;
}

.contact-badge {
    display: inline-block;
    background: rgba(0, 119, 255, 0.1);
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.contact-form-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--deep-blue);
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--aqua));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    max-width: 500px;
}

/* Modern Form Styles */
.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e8ecf4;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--deep-blue);
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(45deg, rgb(7, 76, 155), rgb(1, 147, 236));
    color: white;
    text-decoration: none !important;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 119, 255, 0.3);
    align-self: flex-start;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 119, 255, 0.4);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

/* Footer Link Styles */
.footer-phone-small {
    background: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-phone-small:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.btn-submit:hover svg {
    transform: translateX(5px);
}

/* Right Side - Contact Info */
.contact-info-wrapper {
    background: linear-gradient(135deg, var(--deep-blue), var(--navy-blue));
    padding: 100px 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 25px;
    position: relative;
    overflow: hidden;
}

.contact-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.office-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.office-block:last-child {
    margin-bottom: 0;
}


.contact-info-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-info-header {
    margin-bottom: 50px;
}

.contact-info-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.contact-info-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item:hover {
    padding-left: 10px;
}

.contact-item-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(0, 242, 254, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aqua);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-item-icon {
    background: rgba(0, 242, 254, 0.25);
    transform: scale(1.05);
}

.contact-item-content {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--aqua);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-item-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 5px;
}

.contact-item-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-item-content a:hover {
    color: var(--aqua);
}

.branch-item {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(0, 119, 255, 0.1));
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    padding: 30px 25px;
    margin-top: 10px;
}

.branch-item:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(0, 119, 255, 0.15));
    border-color: rgba(0, 242, 254, 0.3);
}

.map-shortcut-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--aqua);
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    padding: 0;
}

.map-shortcut-btn svg {
    width: 36px;
    height: 36px;
    display: block;
    margin: 0;
}

.map-shortcut-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

/* Contact Responsive */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-form-wrapper {
        padding: 80px 50px;
    }

    .contact-info-wrapper {
        padding: 80px 50px;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 60px 30px;
    }

    .contact-form-header h2 {
        font-size: 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-wrapper {
        padding: 60px 30px;
    }

    .btn-submit {
        width: 100%;
    }

    .contact-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .contact-grid-2col .contact-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding: 20px 0 !important;
    }

    .contact-grid-2col .contact-item:last-child {
        border-bottom: none !important;
    }
}

/* Testimonials Section */
.section-testimonials {
    padding: 120px 0;
    background-color: #fcfdfe;
    /* Very light subtle blue */
    overflow: hidden;
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 80px;
}

.testimonials-header .subtitle {
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
}

.testimonial-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--deep-blue);
    letter-spacing: -1px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.avatar-stack {
    display: inline-flex;
    align-items: center;
}

.stack-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid white;
    background-size: cover;
    background-position: center;
    margin-left: -15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stack-avatar:first-child {
    margin-left: 0;
}

.trustpilot-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e9f0f7;
    padding: 8px 20px;
    border-radius: 50px;
    margin-top: 20px;
}

.trust-icon {
    font-weight: 700;
    color: #444;
}

.trust-text {
    font-size: 0.85rem;
    color: #666;
}

.stars {
    color: #00b67a;
    letter-spacing: 2px;
}

/* Carousel */
.testimonials-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.testimonials-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 40px 10px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    cursor: grab;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.testimonial-card {
    flex: 0 0 400px;
    min-height: 250px;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    user-select: none;
}

.testimonial-card:hover {
    transform: translateY(-10px) rotate(1deg);
}

.card-green {
    background-color: #e6f7ef;
}

.card-beige {
    background-color: #f7f3e6;
}

.card-gray {
    background-color: #f1f3f5;
}

.card-blue {
    background-color: #e6f0f7;
}

.card-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
}

.user-info h4 {
    font-size: 1.1rem;
    color: var(--deep-blue);
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.85rem;
    color: #666;
}

.quote {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    font-style: italic;
}

.card-quote-icon {
    position: absolute;
    top: 40px;
    right: 40px;
    color: rgba(0, 0, 0, 0.05);
}

/* Decorative Squiggles */
.squiggle {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.squiggle-left {
    top: -20px;
    left: 20px;
}

.squiggle-right {
    bottom: -20px;
    right: 20px;
}

@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 300px;
        padding: 30px;
    }

    .testimonial-title {
        font-size: 2.5rem;
    }

    .testimonials-carousel-wrapper {
        padding: 0 20px;
    }
}

/* Sticky Scroll Services Section */
.section-sticky-services {
    padding: 120px 0;
    background-color: #ffffff;
    color: var(--deep-blue);
    position: relative;
    z-index: 10;
}

.sticky-services-wrapper {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.sticky-visual-column {
    flex: 0 0 45%;
    /* Fixed width for better control */
    position: sticky;
    top: 100px;
    height: 80vh;
    /* Taller, similar to the screenshot */
    overflow: hidden;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 31, 63, 0.1);
}

.visual-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #f0f4f8;
    /* Placeholder bg like the screenshot */
}

.visual-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1.05);
    /* Subtle scale */
    visibility: hidden;
}

.visual-item.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
    visibility: visible;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Match the 'clean' look in screenshot if icons are used, or cover for photos */
    padding: 40px;
    /* Add breathing room like the screenshot */
}

/* If it's a photo, maybe object-fit: cover is better. But screenshot looks like 'contain' with padding */
.visual-item img {
    object-fit: cover;
    padding: 0;
}

/* Overriding for a cleaner 'contain' look if preferred */
.visual-item.logo-style img {
    object-fit: contain;
    padding: 60px;
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.05));
}

.scrolling-text-column {
    flex: 1;
    padding-left: 50px;
}

.service-step {
    min-height: 90vh;
    /* Ensures focus on one section at a time */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15vh 0;
}

.step-content {
    opacity: 0.3;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: translateY(30px);
}

.service-step.active .step-content {
    opacity: 1;
    transform: translateY(0);
}

.step-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0, 119, 255, 0.08);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.service-step h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    color: var(--deep-blue);
    letter-spacing: -1px;
}

.service-step h2 span {
    position: relative;
    display: inline-block;
}

.service-step p {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 90%;
}

@media (max-width: 1024px) {
    .section-sticky-services {
        padding: 80px 0;
    }

    .sticky-services-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .sticky-visual-column {
        position: relative;
        top: 0;
        height: 450px;
        width: 100%;
        order: 2;
        border-radius: 24px;
    }

    .scrolling-text-column {
        width: 100%;
        order: 1;
    }

    .service-step {
        min-height: auto;
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .card-arrow {
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.3);
        /* Slightly more visible background */
    }

    .card-arrow svg {
        width: 30px;
        height: 30px;
    }
}

/* --- FORCE FIX FOR SWIMMING POOL CARD --- */
/* Placed at the very end to override any previous specificity issues */
@media (max-width: 768px) {
    .expertise-card {
        height: auto !important;
        min-height: 350px !important;
        /* Let it grow, but keep a minimum */
    }

    .card-content {
        padding: 20px !important;
        /* Force smaller padding */
        justify-content: flex-end;
    }

    .card-content h3 {
        font-size: 1.35rem !important;
        /* Force smaller font */
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
        width: 100%;
        /* Ensure it takes full width */
    }

    .card-content p {
        font-size: 0.95rem !important;
        margin-bottom: 30px !important;
        /* Ensure space for arrow */
        display: block !important;
        /* Ensure visibility */
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- HYBRID MASK FIX FOR MOBILE --- */
/* Override the ID-based mask (Desktop) with Direct File mask (Mobile) */
@media (max-width: 768px) {
    .video-mask-wrapper {
        mask-image: url('assets/sada_emblem.svg') !important;
        -webkit-mask-image: url('assets/sada_emblem.svg') !important;
        mask-size: contain !important;
        -webkit-mask-size: contain !important;
        mask-repeat: no-repeat !important;
        -webkit-mask-repeat: no-repeat !important;
        mask-position: center !important;
        -webkit-mask-position: center !important;
    }
}

/* --- PAGE HERO SECTION (CONTACT & OTHERS) --- */
.page-hero {
    position: relative;
    background-image: url('assets/contact\ us.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.5));
    z-index: -1;
}

.container-hero {
    width: 100%;
    max-width: 1200px;
    /* Ensure enough width */
    margin: 0 auto;
    padding: 0 20px;
}

.container-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    /* Force single line */
}

.container-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* --- COMMON SERVICE PAGE COMPONENTS --- */
.service-hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #001220;
}

.service-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.service-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 800;
}

.solution-section {
    padding: 120px 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-grid.reverse {
    direction: ltr;
    /* Avoid RTL issues */
}

/* Chemical & Feature Item Styles */
.chemical-list {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.chemical-item {
    background: white;
    border: 1px solid #eee;
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.chemical-item:hover {
    border-color: var(--primary-blue);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 122, 255, 0.1);
}

.chemical-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 122, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chemical-item h4 {
    color: var(--deep-blue);
    font-size: 1.1rem;
    margin: 0;
}

.solution-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 31, 63, 0.15);
    aspect-ratio: 16/10;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-grid.reverse {
    direction: rtl;
}

.solution-grid.reverse>* {
    direction: ltr;
}

.feature-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.gradient-text-blue {
    background: linear-gradient(to right, var(--primary-blue), #003366);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: #666;
}

.bg-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sub-service-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 40px rgba(0, 31, 63, 0.1);
}

.sub-service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.sub-service-card:hover .sub-service-icon {
    background: var(--primary-blue);
    color: white;
    transform: rotateY(180deg);
}

.sub-service-card h3 {
    font-size: 1.25rem;
    color: var(--deep-blue);
    margin: 0;
}

.sub-service-card p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* RESPONSIVE OVERRIDES FOR SERVICE COMPONENTS */
@media (max-width: 992px) {
    .service-hero {
        height: 60vh;
        min-height: 400px;
    }

    .service-hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .solution-section {
        padding: 80px 0;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Handle reversed grids on mobile - stack image second */
    .solution-grid.reverse {
        direction: ltr;
        display: flex;
        flex-direction: column;
    }

    .solution-grid.reverse .solution-image {
        order: 2;
    }

    .solution-grid.reverse .solution-content {
        order: 1;
    }

    .solution-image {
        aspect-ratio: 4/3;
        border-radius: 16px;
    }

    .stats-row {
        gap: 30px;
    }

    .sub-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-hero {
        height: 50vh;
    }

    .solution-section {
        padding: 60px 0;
    }

    .chemical-item {
        padding: 15px 20px;
    }

    .chemical-item h4 {
        font-size: 1rem;
    }

    .stats-row {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item h4 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .service-hero h1 {
        font-size: 1.6rem;
    }

    .solution-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 50vh;
    }

    .container-hero h1 {
        font-size: 2.5rem;
        white-space: normal;
        /* Allow wrapping on mobile */
    }
}

/* Cleaned up inline styles */
.about-read-more {
    display: inline-block;
    margin-top: 30px;
}

.expertise-cta {
    text-align: center;
    margin-top: 50px;
}

.service-read-more {
    display: inline-block;
    margin-top: 30px;
}

/* Enhanced Mobile Sticky Visuals */
@media (max-width: 768px) {
    .sticky-visual-column {
        height: 300px;
        /* Reduced from 450px for smaller screens */
    }
}

/* Contact Form Feedback Messages */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    transition: opacity 0.5s ease;
    width: 100%;
}

.form-message.success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.2);
}

.form-message.error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

@media (max-width: 768px) {
    .form-message {
        font-size: 0.85rem;
        padding: 12px;
    }
}

/* Asymmetric Case Studies Section */
.section-case-studies {
    padding: 0;
    background: #000;
    overflow: hidden;
    color: white;
}

.case-studies-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
}

.case-study-col {
    flex: 0 0 25%;
    padding: 0 20px;
    position: relative;
}

.case-study-col.offset-up {
    transform: translateY(-50px);
}

.lqd-fb-card {
    display: block;
    /* Ensure anchor tag fills container */
    position: relative;
    width: 100%;
    padding-top: 130%;
    border-radius: 20px;
    overflow: hidden;
    perspective: 1200px;
    transform-style: preserve-3d;
    cursor: pointer;
}

.lqd-fb-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.lqd-fb-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.lqd-fb-img {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    transition: transform 0.1s linear;
}

.lqd-fb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    pointer-events: none;
}

.lqd-fb-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    transform: translateZ(50px);
    pointer-events: none;
}

.lqd-fb-tag {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--aqua);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.lqd-fb-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

@media (max-width: 1024px) {
    .case-study-col {
        flex: 0 0 50%;
        margin-bottom: 40px;
    }

    .case-study-col.offset-up {
        transform: none;
    }
}

@media (max-width: 600px) {
    .case-study-col {
        flex: 0 0 100%;
    }
}

/* --- NEW PORTFOLIO COLUMNS LAYOUT --- */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 85vh;
    /* Tall layout matching reference */
    overflow: visible;
    /* Changed from hidden to visible */
    /* Padding removed to eliminate spacing */
}

.portfolio-col {
    position: relative;
    flex: 1;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    min-width: 0;
    /* Allow flex shrinking */
    z-index: 1;
}

.portfolio-col:last-child {
    border-right: none;
}

.portfolio-col-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    filter: grayscale(20%) brightness(0.9);
}

.portfolio-col:hover {
    flex: 1.3;
    /* Dramatically reduced from 2.2 to match reference */
    transform: scale(1.1);
    z-index: 30;
    /* Bring to front */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    /* Strong shadow */
}

.portfolio-col:hover .portfolio-col-bg {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    opacity: 1;
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.portfolio-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.portfolio-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin: 0;
    white-space: nowrap;
    /* Prevent wrapping during animation if possible */
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-grid {
        flex-direction: column;
        height: auto;
    }

    .portfolio-col {
        width: 100%;
        height: 500px;
        /* Fixed height on mobile */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: 400px;
    }

    .portfolio-col:hover {
        flex: 1;
        /* Disable flex growth on vertical stack */
        transform: none;
        box-shadow: none;
        z-index: 1;
    }

    .portfolio-col .btn-buy-now {
        opacity: 1;
        transform: none;
    }

    .portfolio-title {
        font-size: 2.5rem;
        white-space: normal;
    }
}

.btn-buy-now {
    margin-top: 20px;
    padding: 10px 24px;
    background: linear-gradient(45deg, rgb(7, 76, 155), rgb(1, 147, 236));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    /* Do not stretch */
    width: max-content;
    /* Force button to fit text */
    opacity: 1;
    /* Permanently visible */
    transform: none;
    /* No initial offset */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.3);
}

.portfolio-col:hover .btn-buy-now {
    opacity: 1;
    transform: none;
}

.btn-buy-now:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 119, 255, 0.5);
}

.section-brochure {
    padding: 60px 0;
    background: #ffffff;
    text-align: center;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1) rotate(5deg);
    color: white;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* Animation Util */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInRight {
    animation-name: fadeInRight;
}

/* Global Specificity Overrides for Mobile Internal Pages */
@media (max-width: 992px) {
    .solution-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px !important;
    }

    .solution-image {
        order: 1 !important;
    }

    .solution-content {
        order: 2 !important;
    }

    .solution-grid.reverse {
        direction: ltr !important;
    }
}