/* General Setup */
:root {
    /* Fonts */
    --font-main: 'Bebas Neue', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;

    /* Colors */
    --text-color: #3C4A51;
    /* Dark slate grey from logo */
    --primary-color: #0097A7;
    /* Vibrant teal from logo */
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    /* A light grey */
    --background-off-white: #ffffff;
    /* The new default "white" */
    --white-color: #fff;
    /* Retained for specific elements like cards */
    --border-color: #e9ecef;

    /* Spacing */
    --padding-horizontal: 5%;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08);

    /* Sizing & Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --max-width-section: 1400px;
    --max-width-content: 800px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Set base font size to 15px (down from default 16px) to scale down rem units */
    font-size: 15px;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-off-white);
    /* Use off-white as the base */
    transition: background-color 0.3s ease;
    /* For nav-open state */
}

body.nav-open {
    overflow: hidden;
    /* Prevent scrolling when mobile nav is open */
}

/* --- Preloader --- */
body.loading {
    overflow: hidden;
    /* Prevent scrolling while preloader is active */
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-off-white);
    z-index: 9999;
    /* Ensure it's on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    /* Light grey border */
    border-top-color: var(--primary-color);
    /* Primary color for the spinning part */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Utility class to visually hide content but keep it accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Accessibility: Add a clear focus indicator */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Header and Navbar */
.header {
    padding: var(--space-sm) var(--padding-horizontal);
    /* Make it transparent by default */
    background-color: rgba(255, 255, 255, 0.7);
    /* Semi-transparent for blur effect */
    -webkit-backdrop-filter: blur(10px);
    /* For Safari */
    backdrop-filter: blur(10px);
    /* Frosted glass effect */
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    /* To align image and text horizontally */
    align-items: center;
    /* To vertically center them */
    gap: 0.75rem;
    /* Space between logo and text */
    text-decoration: none;
    /* Remove underline from anchor */
    height: 40px;
    /* Adjust height as needed */
}

.header__logo img {
    height: 100%;
}

.header__logo-text {
    font-family: var(--font-main);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color);
    line-height: 1;
    /* Helps with vertical alignment */
}

.header__nav-list {
    list-style: none;
    display: flex;
    gap: var(--space-md);
}

.header__nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    /* Use px to keep it fixed, independent of root font size */
    transition: color 0.3s ease;
}

.header__nav-list a:hover,
.header__nav-list a.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.header__hamburger {
    display: none;
    /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    /* Above the header */
    width: 30px;
    height: 22px;
    position: relative;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.header__hamburger span:nth-child(1) {
    top: 0;
}

.header__hamburger span:nth-child(2) {
    top: 9px;
}

.header__hamburger span:nth-child(3) {
    top: 18px;
}

body.nav-open .header__hamburger span {
    background-color: var(--text-color);
}

body.nav-open .header__hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

body.nav-open .header__hamburger span:nth-child(2) {
    opacity: 0;
}

body.nav-open .header__hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Scroll Animation Container */
.scroll-container {
    /* This container's height provides the scroll distance for the animation */
    height: 200vh;
    /* 100vh for hero view, 100vh to scroll through animation */
    position: relative;
}

/* Hero Section - Now Sticky */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
    /* Use min-height to be flexible */
    /* position: sticky; */
    /* No longer sticky */
    /* top: 0; */
    /* z-index: 10; */
    align-items: center;
}

.hero__content {
    grid-column: 1 / 2;
    /* Place content in the first column */
    grid-row: 1 / 2;
    /* Place content in the first row */
    position: relative;
    /* Needed for z-index to work */
    display: flex;
    z-index: 2;
    /* Bring content in front of image */
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Align items to the left */
    text-align: left;
    /* Align text to the left */
    padding: var(--space-md) var(--padding-horizontal);
}

.hero__content h1 {
    font-family: var(--font-main);
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    max-width: 600px;
}

.hero__content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    max-width: 500px;
}

.typewriter-text-wrapper {
    position: relative;
    display: inline-block;
    /* Allow width to be set */
    min-width: 11ch;
    /* Reserve space for the longest word ("Sustainable") */
    color: var(--primary-color);
    /* Make the animated word stand out */
}

.typewriter-cursor {
    font-weight: 400;
    /* Make cursor a bit thinner */
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero__cta-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.button {
    font-family: var(--font-secondary);
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    transition: all 0.3s ease;
}

.button--primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
    /* Using a slightly more subtle shadow */
}

.button--secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.button--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

/* Hero Image & Animation */
.hero__image-container {
    grid-column: 2 / 3;
    /* Place image in the second column */
    grid-row: 1 / 2;
    /* Place image in the first row */
    height: 100%;
    position: relative;
    /* It will now naturally fill the right grid cell */
    /* The following properties are no longer needed as it's part of the grid flow */
    /* overflow: hidden; */
    /* No longer needed, clip-path handles this */
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    /* The following properties are no longer needed for a static image */
    /* top: 0; */
    /* right: 0; */
    /* Initially, clip the image to show only its right half (50% of its width) */
    /* clip-path: inset(0 0 0 50%); */
}

/* Animations for Hero and Reverse Hero Content */
@media (prefers-reduced-motion: no-preference) {

    /* Initial states for first hero content */
    .hero__content {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .hero__content .hero__cta-buttons {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
        /* Delayed animation */
    }

    /* Active states for first hero content */
    .hero.active .hero__content {
        opacity: 1;
        transform: translateY(0);
    }

    .hero.active .hero__content .hero__cta-buttons {
        opacity: 1;
        transform: translateY(0);
    }

    /* Initial states for reverse hero content */
    .hero__content--reverse {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .hero__content--reverse .feature-cards {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
        /* Delayed animation */
    }

    /* Active states for reverse hero content */
    .hero--reverse.active .hero__content--reverse {
        opacity: 1;
        transform: translateY(0);
    }

    .hero--reverse.active .hero__content--reverse .feature-cards {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- Reverse Hero Animation --- */

.scroll-container--reverse {
    height: 200vh;
    position: relative;
}

.hero--reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 10;
    align-items: center;
}

.hero__content--reverse {
    /* Re-use hero-content styles and add specific alignment */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: var(--space-md) var(--padding-horizontal);
    /* Make sure content is visible above the image */
    position: relative;
    z-index: 11;
    /* Bring content in front of the image */
}

.section-header__tagline {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.hero__content--reverse h1 {
    font-family: var(--font-main);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    max-width: 600px;
}

.hero__content--reverse p {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    max-width: 500px;
}

.hero__image-container--reverse {
    height: 100vh;
    position: absolute;
    /* Take it out of grid flow to be in the background */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 11;
    /* Place image container behind the content */
    pointer-events: none;
    /* Allow clicks to pass through to the content below */
}

.hero__image--reverse {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Initially clip the entire image away, JS will reveal it */
    clip-path: inset(0 100% 0 0);
}

@media (prefers-reduced-motion: reduce) {

    .scroll-container,
    .scroll-container--reverse,
    .leadership {
        height: auto;
    }
}

/* Cards for second section */
.feature-cards {
    display: flex;
    gap: 1.5rem;
    margin-top: var(--space-md);
}

.feature-card {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    flex: 1;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
}

.feature-card__icon {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: var(--space-sm);
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: var(--space-xs);
    font-size: 1.2rem;
    /* Smaller heading */
}

.feature-card p {
    font-size: 1rem;
    /* Smaller paragraph text */
}

/* --- Image Cards Section --- */

.expertise-section {
    padding: var(--space-lg) var(--space-md);
    /* Add horizontal padding */
    background-color: var(--background-off-white);
}

.section-header {
    text-align: center;
    max-width: var(--max-width-content);
    margin: 0 auto var(--space-lg) auto;
}

.section-header h2 {
    font-family: var(--font-main);
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: var(--space-sm);
}

.section-header__subheading {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

.expertise-section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 1200px;
    /* Set a max-width to make cards smaller */
    margin: 0 auto;
    /* Center the container */
}

.expertise-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /* Creates a perfect square shape */
    aspect-ratio: 4 / 5;
    /* A slightly taller aspect ratio */
}

.expertise-card img {
    /* Make image larger than container to allow for parallax movement */
    width: 110%;
    height: 110%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.8s ease-out;
    /* Keep existing transitions */
    /* Center the oversized image */
    position: absolute;
    top: -5%;
    left: -5%;
}

.expertise-card:hover img {
    transform: scale(1.05);
    /* Subtle zoom effect on hover */
}

.expertise-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    color: var(--white-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-align: left;
}

.expertise-card__tagline {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.expertise-card__overlay h3 {
    font-family: var(--font-main);
    font-size: 2rem;
    margin: 0.25rem 0 0.5rem 0;
}

.expertise-card__subtext {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.expertise-card__button {
    background-color: transparent;
    /* Remove background */
    color: var(--white-color);
    /* Set text color to be visible on the overlay */
    padding: 0;
    /* Remove padding */
    text-decoration: none;
    font-weight: 700;
    align-self: flex-start;
    /* Ensure button doesn't stretch */
    transition: text-decoration 0.3s ease;
    border-bottom: 2px solid transparent;
    /* Prepare for hover animation */
}

.expertise-card__button:hover {
    /* Create an underline effect on hover */
    border-bottom-color: var(--white-color);
}

/* --- Industries Section --- */
.industries {
    padding: var(--space-lg) var(--padding-horizontal);
    background-color: var(--background-color);
    /* Use the light grey for banding */
}

.industries .section-header {
    /* Increase space between header and the grid content */
    margin-bottom: calc(var(--space-lg) * 1.5);
}

.industries__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two columns per axis on desktop */
    gap: var(--space-md);
    max-width: var(--max-width-section);
    margin: 0 auto;
}

.industry-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
}

/* .industry-card:hover {
    Hover animation removed for consistency
} */

.industry-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem var(--space-md) var(--space-md);
    /* Reduced top padding for better balance */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 80%);
}

.industry-card h3 {
    font-family: var(--font-main);
    font-size: 1.8rem;
    color: var(--white-color);
    margin-bottom: var(--space-xs);
    /* Add a subtle shadow to ensure text is always readable */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.industry-card__overlay p {
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* --- Scrolling Features Section --- */

.process-section {
    padding: var(--space-lg) 0;
    background-color: var(--background-color);
}

.process-section__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.process-section__content {
    /* This column will contain the sticky content */
    position: relative;
    /* Needed for the sticky container inside */
}

.process-section__sticky-content {
    position: sticky;
    top: 120px;
    /* Adjust this value to set the distance from the top */
    height: calc(100vh - 120px);
    /* Optional: helps with alignment */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Vertically center the content */
}

.process-section__sticky-content .section-header__tagline {
    font-size: 1rem;
}

.process-section__sticky-content h2 {
    font-family: var(--font-main);
    font-size: 2.8rem;
    margin-bottom: var(--space-sm);
}

.process-section__sticky-content .section-header__subheading {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: var(--space-md);
}

.process-steps {
    margin-top: var(--space-lg);
    position: relative;
}

.process-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    position: relative;
    color: var(--secondary-color);
    transition: color 0.4s ease;
}

.process-steps__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 24px;
    /* Center of the number */
    top: 75px;
    /* Start below the number */
    height: calc(100% - 50px);
    width: 2px;
    background-color: var(--border-color);
}

.process-steps__number {
    font-family: var(--font-main);
    font-size: 3rem;
    line-height: 1;
    min-width: 50px;
    /* Ensure alignment */
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.4s ease;
}

.process-steps__title {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.8rem;
}

.process-steps__item.active .process-steps__number,
.process-steps__item.active {
    color: var(--primary-color);
}

.process-image {
    height: 90vh;
    /* Each image section takes up the full viewport height */
    margin-bottom: 2rem;
    /* Space between image items */
    /* padding: 2rem; */
    /* Removed padding to make image and overlay flush */
    position: relative;
    /* For overlay positioning */
    overflow: hidden;
    /* To contain the overlay */
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 12px; */
    /* Removed for sharp corners */
    transition: transform 0.8s ease, opacity 0.8s ease;
    transform: scale(1.1);
    opacity: 0.7;
}

.process-image.active img {
    transform: scale(1);
    opacity: 1;
}

.process-image__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem var(--space-md) 2rem;
    /* Use variable for horizontal padding */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 70%);
    color: var(--white-color);

    /* Animation properties */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Add a text shadow for better readability */
}

.process-image.active .process-image__overlay {
    opacity: 1;
    transform: translateY(0);
}

.process-image__overlay h3 {
    font-family: var(--font-main);
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.process-image__overlay p {
    font-size: 1rem;
    color: #f0f0f0;
    /* Adjust text color for better contrast */
    max-width: 500px;
    /* Limit line length for readability */
}

/* --- Leadership Section --- */

.leadership {
    /* The height determines the scroll duration for the horizontal effect.
       300vw means you scroll vertically for 3 times the viewport width. */
    height: 250vw;
    background-color: var(--background-off-white);
    position: relative;
}

.leadership__sticky-container {
    position: sticky;
    top: 0;
    height: 100dvh;
    /* Use dynamic viewport height for better mobile browser support */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    /* Distribute space between intro and cards */
    align-items: center;
    overflow: hidden;
}

.leadership__intro {
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
    width: 100%;
    padding-top: var(--space-lg);
    /* Remove absolute positioning and top properties */
}

.leadership__intro h2 {
    font-family: var(--font-main);
    font-size: 2.8rem;
    margin-bottom: var(--space-sm);
}

.leadership__intro .section-header__subheading {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

.leadership__cards-wrapper {
    width: 100%;
    /* Remove margin-top, flexbox will handle spacing */
}

.leadership__cards-track {
    display: flex;
    gap: var(--space-lg);
    padding: 0 45vw 0 35vw;
    /* Increased right padding for a better scroll-out effect */
}

.member-card {
    flex: 0 0 30vw;
    /* Increased width */
    max-width: 450px;
    /* Increased max-width */
    aspect-ratio: 1 / 1;
    /* Make it square like other cards */
    aspect-ratio: 4 / 5;
    /* Match other cards' aspect ratio */
    position: relative;
    overflow: hidden;
    /* Remove border-radius and box-shadow for consistency */
}

.member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    /* Add transition for hover effect */
}

.member-card:hover img {
    transform: scale(1.05);
    /* Subtle zoom effect on hover */
}

.member-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 60%);
    /* Match gradient */
    color: white;
}

.member-card__info h3 {
    font-size: 1.6rem;
    /* Slightly larger for better hierarchy */
    font-family: var(--font-main);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    /* Add line-height */
}

.member-card__info p {
    font-size: 1rem;
    font-weight: 500;
    /* Make it slightly bolder */
    opacity: 0.9;
    /* Reduce opacity for a subtle look */
}

/* --- Stats Section --- */
.stats {
    padding: var(--space-lg) var(--padding-horizontal);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    width: 100%;
    max-width: var(--max-width-section);
    margin: 0 auto;
    align-items: center;
}

.stats__content .section-header__subheading {
    font-size: 1.1rem;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 500px;
}

.stats__content h2 {
    font-family: var(--font-main);
    font-size: 2.8rem;
    margin-bottom: var(--space-sm);
}

.stats__cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-item {
    background-color: var(--white-color);
    padding: var(--space-md);
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-item h3 {
    font-family: var(--font-main);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: var(--space-xs);
}

/* --- CTA Section --- */
.cta {
    padding: calc(var(--space-lg) * 2) var(--space-md);
    /* Use variables for padding */
    text-align: center;
    position: relative;
    color: var(--white-color);
    /* Set text color to white for readability */

    /* Parallax background effect */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://plus.unsplash.com/premium_photo-1664297543985-a0cef55975fd?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&q=80&w=2070');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /* This creates the parallax effect */
}

.cta .section-header__tagline {
    color: var(--white-color);
    /* Ensure tagline is white */
}

.cta .section-header .section-header__subheading {
    color: rgba(255, 255, 255, 0.9);
    /* Lighter color for subheading */
}

.cta .section-header {
    margin-bottom: 2.5rem;
    /* Space between text and button */
}

.cta__buttons {
    justify-content: center;
    /* Center the button */
}

/* --- Footer --- */
.footer {
    background-color: var(--background-color);
    /* Match the darker band color */
    color: var(--secondary-color);
    /* Changed for readability */
    padding: var(--space-lg) var(--padding-horizontal) 0;
    font-size: 0.9rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__column h4 {
    font-family: var(--font-main);
    font-size: 1.5rem;
    color: var(--text-color);
    /* Changed for light background */
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.footer__logo {
    /* This is now an h4, so let's match the style */
    font-family: var(--font-main);
    font-size: 1.8rem;
    color: var(--text-color);
    /* Changed for light background */
    margin-bottom: var(--space-sm);
}

.footer__column--about p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.socials {
    display: flex;
    gap: var(--space-sm);
}

.socials a {
    color: var(--text-color);
    /* Improved contrast */
    background-color: var(--background-off-white);
    /* Use variable */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.socials a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.footer__column--links ul {
    list-style: none;
}

.footer__column--links a {
    color: var(--secondary-color);
    /* Changed for light background */
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer__column--links a:hover {
    color: var(--primary-color);
    /* Changed for light background */
    transform: translateX(5px);
}

.footer__column--contact p {
    margin-bottom: 1rem;
}

.footer__column--contact i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer__bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */

/* Tablet View */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
        /* Slightly reduce base font size */
    }

    .hero__content h1 {
        font-size: 3rem;
    }

    .hero__content p {
        font-size: 1.15rem;
    }

    .hero__content--reverse h1 {
        font-size: 3rem;
    }

    .section-header h2,
    .process-section__sticky-content h2,
    .stats__content h2,
    .leadership__intro h2 {
        font-size: 2.5rem;
    }

    .expertise-section__grid {
        gap: var(--space-sm);
    }

    .member-cards-track {
        padding: 0 20vw;
        /* Reduce side padding for more card visibility */
    }

    .member-card {
        flex-basis: 40vw;
        /* Make cards a bit wider on tablets */
    }

    .stats__grid {
        gap: var(--space-md);
    }

    .stat-item h3 {
        font-size: 3rem;
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .header__nav-list {
        display: none;
        /* Hiding nav links, hamburger menu would be next step */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
    }

    body.nav-open .header__nav-list {
        display: flex;
        transform: translateY(0);
    }

    .header__nav-list a {
        font-size: 2rem;
        /* Larger text for mobile menu */
    }

    .header__hamburger {
        display: block;
    }

    .scroll-container {
        height: auto;
        /* Disable scroll animation container on mobile */
    }

    .hero {
        display: block;
        grid-template-columns: 1fr;
        /* Stack content vertically */
        min-height: 0;
        /* Reset min-height */
        position: relative;
        /* Remove sticky behavior */
        text-align: center;
    }

    .hero__content {
        padding: 4rem 1.5rem 2rem;
        /* Adjust padding for better spacing */
        align-items: center;
        text-align: center;
        /* Center align all text inside */
        order: 1;
        /* Show text first */
    }

    .hero__content h1 {
        font-size: 2.5rem;
    }

    .hero__content p {
        text-align: center;
        max-width: none;
        /* Allow paragraph to center fully */
        font-size: 1rem;
    }

    .hero__image-container {
        position: relative;
        width: 100%;
        height: 350px;
        /* Use a fixed pixel height for more control */
        order: 0;
        /* Show image first */
        clip-path: none !important;
        /* Ensure image is always visible */
    }

    .hero__image {
        /* The image is already set to 100% width/height and object-fit: cover */
        position: relative;
        width: 100%;
        clip-path: none !important;
    }

    .scroll-container--reverse {
        height: auto;
    }

    .hero--reverse {
        grid-template-columns: 1fr;
        height: auto;
        position: relative;
    }

    .hero__content--reverse {
        padding: 4rem 1.5rem 2rem;
        align-items: center;
        text-align: center;
        order: 1;
        /* Explicitly set order to show content second */
    }

    .hero__image-container--reverse {
        position: relative;
        width: 100%;
        /* Ensure container takes full width */
        height: 350px;
        /* Use a fixed pixel height for consistency */
        order: 0;
        /* Explicitly set order to show image first */
    }

    .hero__image--reverse {
        clip-path: none !important;
    }

    .process-section__container {
        grid-template-columns: 1fr;
        /* Stack columns */
        padding: 0 1.5rem;
        /* Add horizontal padding */
    }

    .process-section__sticky-content {
        position: relative;
        /* Un-stick the content */
        top: auto;
        height: auto;
        text-align: center;
        /* Center align the header text */
        padding-bottom: 2rem;
        /* Add space between text and images */
    }

    .process-section__sticky-content .section-header__subheading {
        margin-left: auto;
        margin-right: auto;
    }

    .process-steps {
        margin-top: var(--space-md);
        /* Reduce top margin */
    }

    .hero__cta-buttons {
        justify-content: center;
    }

    .expertise-section__grid {
        grid-template-columns: 1fr;
    }

    .industries__grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .stats__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .process-image {
        height: 60vh;
        /* Reduce image height on mobile */
    }

    .leadership {
        height: auto;
        /* Disable horizontal scroll effect */
        padding: 4rem 1rem;
    }

    .leadership__sticky-container {
        position: relative;
        /* Un-stick */
        height: auto;
    }

    .leadership__intro {
        padding: 0 1rem 2rem 1rem;
    }

    .leadership__cards-wrapper {
        position: relative;
        overflow-x: auto;
        /* Enable native horizontal scroll */
        /* Add scroll snapping for a better UX */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        /* Hide the scrollbar for a cleaner look */
        scrollbar-width: none;
        /* Firefox */
    }

    .leadership__cards-wrapper::-webkit-scrollbar {
        display: none;
        /* Safari and Chrome */
    }

    .leadership__cards-track {
        padding: 0 calc(50vw - 40vw);
        /* (viewport_width / 2) - (card_width / 2) */
        gap: var(--space-md);
        /* Reduce gap for mobile */
    }

    .member-card {
        flex: 0 0 80vw;
        /* Make cards take up more width */
        scroll-snap-align: center;
        /* Snap each card to the center of the container */
    }

    .footer__container {
        grid-template-columns: 1fr;
        /* Stack footer columns on mobile */
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    .footer__column--links a:hover {
        transform: none;
        /* Disable hover transform on mobile */
    }
}

/* --- Parallax Hero --- */
.hero--parallax {
    /* Use a fixed height or min-height */
    min-height: 60vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /* The parallax magic */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white-color);
    padding: var(--space-lg) var(--padding-horizontal);
}

/* Overlay for readability */
.hero--parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay */
    z-index: 1;
}

.hero--parallax .hero__content {
    /* Override default hero content styles */
    grid-column: auto;
    grid-row: auto;
    position: relative;
    z-index: 2;
    align-items: center;
    /* Center text horizontally */
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.hero--parallax h1 {
    color: var(--white-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero--parallax p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
}

/* --- Team Grid for About/Investors --- */
.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--padding-horizontal);
}

.team-grid .member-card {
    /* Flex sizing for centered layout */
    flex: 0 1 350px;
    min-width: 300px;
    max-width: 400px;
    width: 100%;
}

/* --- Static Leadership Section (for About/Investors) --- */
.leadership--static {
    height: auto;
    min-height: auto;
    padding-bottom: var(--space-lg);
}

/* --- Product Detail Page --- */
.product-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--padding-horizontal);
    align-items: center;
    background-color: var(--background-off-white);
}

.product-overview__image img {
    width: 100%;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.product-overview__content h2 {
    font-family: var(--font-main);
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-color);
}

.product-overview__content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--secondary-color);
}

.product-specs {
    padding: var(--space-lg) var(--padding-horizontal);
    background-color: var(--white-color);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.specs-table th {
    background-color: var(--background-color);
    font-weight: 700;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .product-overview {
        grid-template-columns: 1fr;
    }
}
/* --- Gallery Page --- */
.gallery-section {
    padding: var(--space-lg) var(--padding-horizontal);
    background-color: var(--background-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item__overlay {
    opacity: 1;
}

.gallery-item__overlay i {
    color: white;
    font-size: 2rem;
}

/* --- Contact Page --- */
.contact-section {
    padding: var(--space-lg) var(--padding-horizontal);
    background-color: var(--background-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-card {
    background-color: var(--white-color);
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.contact-card h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin-bottom: var(--space-xs);
    color: var(--text-color);
}

.contact-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

.contact-form-container {
    background-color: var(--white-color);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.map-section {
    height: 450px;
    width: 100%;
    margin-top: var(--space-lg);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}
