/* --- CSS VARIABLES & BASE STYLES --- */
:root {
    --color-dark: #1C1D21;
    --color-accent1: #A288A6;
    --color-accent2: #BB9BB0;
    --color-light: #F4F4F4;
    --color-text: #EAEAEA;

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Roboto Flex', sans-serif;

    --container-width: 1200px;
    --spacing-medium: 2rem;
    --spacing-large: 5rem;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: var(--color-text);
    font-family: var(--font-secondary);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-light);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
a { color: var(--color-accent2); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

section
{
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

.section-padding { padding: var(--spacing-large) 0; }
.text-center { text-align: center; }

/* --- BUTTONS & TAGS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent1);
    color: var(--color-dark);
}
.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-accent1);
    color: var(--color-accent1);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-light);
    border-color: var(--color-light);
}
.btn-secondary:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
    transform: translateY(-3px);
}

.section-tag {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--color-accent2);
    font-family: var(--font-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.section-title { margin-bottom: 1.5rem; }
.section-subtitle { max-width: 600px; margin: 0 auto 2rem auto; opacity: 0.8; }

/* --- HEADER & NAVIGATION --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(28, 29, 33, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.logo {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--color-light);
}

.main-nav .nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-medium);
}

.main-nav a {
    color: var(--color-light);
    font-weight: 700;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent1);
    transition: width 0.3s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav .btn { margin-left: 1rem; }

.nav-toggle { display: none; }

/* --- SECTION 1: HERO --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(28, 29, 33, 1), rgba(28, 29, 33, 0.4));
}
.hero-content { position: relative; z-index: 1; }
.hero-title { font-weight: 900; margin-bottom: 1rem; }
.hero-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

/* --- SECTION 2: CORE VALUES --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-medium);
}
.value-card {
    background-color: rgba(255,255,255,0.05);
    padding: var(--spacing-medium);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.value-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255,255,255,0.1);
    border-color: var(--color-accent1);
}
.value-icon {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent1);
    margin-bottom: 1rem;
}
.value-card h3 { color: var(--color-accent2); margin-bottom: 0.5rem; }

/* --- SECTION 3: ABOUT US --- */
#about { background-color: rgba(0,0,0,0.1); }
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-large);
    align-items: center;
}
.about-image-stack { position: relative; }
.about-img-1 {
    width: 80%;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.about-img-2 {
    position: absolute;
    bottom: -10%;
    right: 0;
    width: 50%;
    border-radius: var(--border-radius);
    border: 5px solid var(--color-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.about-content { padding-left: 2rem; }

/* --- SECTION 4: SPOTLIGHT --- */
#spotlight {
    position: relative;
    overflow: hidden;
}
.spotlight-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('images/spotlight-bg.webp');
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.7);
    transform: scale(1.1);
}
.spotlight-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
}
.spotlight-content {
    width: 50%;
    padding: 20px;
}
.glass-effect {
    background: rgba(28, 29, 33, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.spotlight-stats {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-medium);
    border-top: 1px solid var(--color-accent1);
    padding-top: 1rem;
}
.spotlight-stats strong { color: var(--color-accent2); }

/* --- SECTION 5: PROCESS --- */
.process-timeline {
    position: relative;
    margin-top: 3rem;
}
.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: rgba(162, 136, 166, 0.3);
}
.process-item {
    position: relative;
    width: 50%;
    padding: 2rem;
    margin-bottom: 2rem;
}
.process-item:nth-child(odd) { left: 0; }
.process-item:nth-child(even) { left: 50%; }
.process-content {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-accent1);
}
.process-step {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-accent1);
    color: var(--color-dark);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid var(--color-dark);
}
.process-item:nth-child(odd) .process-step { right: -25px; }
.process-item:nth-child(even) .process-step { left: -25px; }

/* --- SECTION 6: GALLERY --- */
#gallery { background-color: rgba(0,0,0,0.1); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

/* --- SECTION 7: CTA --- */
#cta {
    background: linear-gradient(45deg, var(--color-accent1), var(--color-accent2));
}
#cta .section-title, #cta p { color: var(--color-dark); }
.cta-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    gap: var(--spacing-large);
}
.cta-image img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
#cta .btn-secondary {
    border-color: var(--color-dark);
    color: var(--color-dark);
}
#cta .btn-secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-light);
}

/* --- MISSION PAGE STYLES --- */

/* --- Section 1: Mission Hero --- */
#mission-hero {
    overflow: hidden; /* Contains the slide-in elements */
}
.mission-hero-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: var(--spacing-large);
    align-items: center;
    padding-top: 1rem;
}
.mission-hero-title {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.mission-hero-image img {
    border-radius: var(--border-radius);
    object-fit: cover;
    height: 100%;
    max-height: 600px;
    box-shadow: -10px 10px 0px var(--color-accent1);
}

/* --- Section 2: Mission Statements --- */
#mission-statements {
    background-color: rgba(0,0,0,0.1);
}
.statements-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-large);
}
.mission-block, .vision-block {
    padding: 1.5rem;
}
.mission-block {
    border-right: 1px solid rgba(162, 136, 166, 0.3);
}
.statements-container .section-title {
    color: var(--color-accent2);
}
.statements-container blockquote {
    font-size: 1.1rem;
    font-style: italic;
    border-left: 3px solid var(--color-accent1);
    padding-left: 1.5rem;
    opacity: 0.9;
}

/* --- Section 3: Guiding Principles --- */
/* --- GUIDING PRINCIPLES - MODERN TABS STYLES --- */
.principles-tabs-container {
    max-width: 900px;
    margin: 3rem auto 0 auto;
}

/* Tab Navigation */
.principles-tab-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.principle-tab-btn {
    background: none;
    border: none;
    color: var(--color-text);
    opacity: 0.7;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.principle-tab-btn:hover {
    opacity: 1;
}

.principle-tab-btn.active {
    color: var(--color-accent2);
    opacity: 1;
}

/* Sliding Indicator */
.tab-indicator {
    position: absolute;
    bottom: -1px; /* Sits on top of the border */
    height: 3px;
    background-color: var(--color-accent1);
    border-radius: 3px;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Tab Content */
.principles-tab-content-area {
    margin-top: 2.5rem;
}

.principle-tab-content {
    display: none;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    animation: fadeInTab 0.6s ease-in-out;
}

.principle-tab-content.active {
    display: grid;
}

.principle-tab-content .principle-icon {
    margin: 0;
    width: 90px;
    height: 90px;
}

.principle-tab-content .principle-icon span {
    font-size: 3rem;
}

.principle-tab-content h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--color-light);
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .principle-tab-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .principle-tab-content .principle-icon {
        margin: 0 auto;
    }
}
/* --- Section 4: Sustainability Focus --- */
#sustainability-focus {
    padding: 8rem 0;
    position: relative;
    background-image: url('images/sust-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}
#sustainability-focus::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(28, 29, 33, 0.7);
}
.sustainability-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}
.sustainability-content {
    max-width: 800px;
    text-align: center;
    padding: 3rem;
}

/* --- Section 5: Community Impact --- */
#community-impact {
    background-color: rgba(0,0,0,0.1);
}
.impact-grid {
    margin-top: 3rem;
    display: grid;
    gap: var(--spacing-large);
}
.impact-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-medium);
    align-items: center;
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
}
.impact-item:nth-child(even) .impact-image {
    order: 2;
}
.impact-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.impact-text {
    padding: 2rem;
}

/* --- Section 6: Tech Ethos --- */
.tech-ethos-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-large);
    align-items: center;
}
.tech-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.tech-images-grid img {
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}
.tech-images-grid img:hover {
    transform: scale(1.05);
    z-index: 5;
    position: relative;
}

/* --- Section 7: Mission Promise --- */
/* --- REDESIGNED Mission Promise Section --- */
#mission-promise {
    padding: var(--spacing-large) 0;
    position: relative;
    background-image: linear-gradient(rgba(28, 29, 33, 0.85), rgba(28, 29, 33, 0.85));
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.promise-container {
    display: flex;
    max-width: 950px;
    margin: 0 auto;
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.promise-seal-box {
    flex: 0 0 280px; /* Fixed width for the seal area */
    background: linear-gradient(45deg, var(--color-accent1), var(--color-accent2));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.promise-seal {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-dark);
    padding: 6px;
    background-color: rgba(255,255,255,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.promise-content-box {
    flex: 1; /* Takes up remaining space */
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promise-content-box .section-title {
    margin-bottom: 1rem;
}

.promise-content-box p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.promise-content-box .btn-primary {
    align-self: flex-start; /* Aligns button to the left */
}

/* Responsive Styles for the Redesigned Section */
@media (max-width: 992px) {
    #mission-promise {
        background-attachment: scroll; /* Disable parallax on mobile */
    }
    .promise-container {
        flex-direction: column;
    }
    .promise-seal-box {
        flex-basis: auto; /* Resets the fixed width */
    }
    .promise-content-box {
        padding: 2.5rem;
        text-align: center;
    }
    .promise-content-box .btn-primary {
        align-self: center; /* Center button on mobile */
    }
}

/* --- MISSION PAGE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .mission-hero-container, .statements-container, .tech-ethos-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mission-hero-image img {
        margin: 2rem auto 0 auto;
        max-height: 400px;
        box-shadow: 0px 10px 0px var(--color-accent1);
    }
    .mission-block { border-right: none; }
    .statements-container { gap: 1rem; }
    .impact-item, .impact-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .impact-item:nth-child(even) .impact-image { order: 1; }
    .tech-ethos-container { gap: 2rem; }
}

@media (max-width: 768px) {
    .mission-hero-title { font-size: 2.5rem; }
    #sustainability-focus { background-attachment: scroll; } /* Disable parallax on mobile for performance */
}

/* --- SERVICES PAGE STYLES --- */

/* --- Section 1: Services Hero --- */
.services-hero-container {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: var(--spacing-medium);
    align-items: center;
}
.services-hero-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
}
.services-hero-collage {
    position: relative;
    height: 450px;
}
.collage-img-1, .collage-img-2 {
    position: absolute;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: cover;
}
.collage-img-1 {
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    z-index: 1;
}
.collage-img-2 {
    bottom: -10%;
    right: 0;
    width: 50%;
    height: 60%;
    z-index: 2;
    border: 4px solid var(--color-dark);
}

/* --- Section 2: Core Services --- */
#core-services {
    background-color: rgba(0,0,0,0.1);
}
.core-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-medium);
    margin-top: 3rem;
}
.service-card {
    background-color: var(--color-dark);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    border-top: 4px solid transparent;
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--color-accent1);
}
.service-icon {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-primary);
    color: var(--color-accent2);
    margin-bottom: 1rem;
}

/* --- Section 3: Service Detail (Pre-construction) --- */
/* --- REDESIGNED Pre-construction Section --- */
#service-detail-precon {
    background-color: rgba(0,0,0,0.1);
    /* Subtle blueprint-like grid pattern */
    background-image: 
        linear-gradient(rgba(162, 136, 166, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(162, 136, 166, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    overflow: hidden; /* Important for containing the overlapping element */
}

.precon-layout-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    position: relative;
}

.precon-image-wrapper {
    position: relative;
    padding: 1.5rem;
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
}

.precon-image-wrapper img {
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
    display: block;
}

.precon-content-wrapper {
    position: relative;
    background-color: var(--color-dark);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    border-left: 4px solid var(--color-accent1);
    /* The key to the overlap effect */
    transform: translateX(-80px); 
    z-index: 2;
}

.precon-key-services {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.key-service-item {
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-accent2);
    margin-bottom: 1.5rem;
}
.key-service-item:last-child {
    margin-bottom: 0;
}

.key-service-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: 0.25rem;
}

.key-service-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Responsive Styles for the Redesigned Section */
@media (max-width: 992px) {
    .precon-layout-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .precon-content-wrapper {
        /* Remove the overlap on smaller screens */
        transform: none; 
        margin-top: -3rem; /* Create a more subtle overlap vertically */
        border-left: none;
        border-top: 4px solid var(--color-accent1);
    }
}

@media (max-width: 768px) {
    .precon-content-wrapper {
        padding: 2rem;
        margin-top: 0; /* Stack directly on mobile */
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    .precon-image-wrapper {
        padding: 1rem;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    .precon-image-wrapper img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
}
/* --- Section 4: Specialized Services (Bento Grid) --- */
#specialized-services {
    background-color: rgba(0,0,0,0.1);
}
.bento-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1rem;
}
.bento-item {
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bento-item h3 { color: var(--color-accent2); margin-bottom: 0.5rem; }
.bento-item.bento-large-text {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--color-accent1), var(--color-accent2));
}
.bento-large-text h3, .bento-large-text p {
    color: var(--color-dark);
}
.bento-item.bento-image {
    padding: 0;
    overflow: hidden;
}
.bento-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Section 5: Project Lifecycle --- */
.lifecycle-wrapper {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.lifecycle-step {
    text-align: center;
    position: relative;
}
.lifecycle-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 25px;
    right: -35px;
    font-size: 2rem;
    color: var(--color-accent1);
    opacity: 0.5;
}
.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem auto;
    border: 2px solid var(--color-accent1);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent1);
}
.lifecycle-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- Section 6: Technology Integration --- */
/* --- REDESIGNED Technology Integration Section --- */
#tech-integration {
    background-color: rgba(0,0,0,0.1);
    overflow: hidden; /* Prevents staggered images from creating scrollbars */
}

.tech-layout-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr; /* Image | Text | Image */
    align-items: center;
    gap: 2rem;
    position: relative;
}

.tech-content-card {
    background-color: var(--color-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-top: 4px solid var(--color-accent1);
    grid-column: 2 / 3; /* Places it in the center column */
    grid-row: 1 / 2;    /* Ensures it's on the same row */
    z-index: 10;        /* Sits on top of the images */
}

.tech-image-left,
.tech-image-right {
    position: relative;
}

/* Staggering effect */
.tech-image-left { transform: translateY(-30px); }
.tech-image-right { transform: translateY(30px); }

.tech-image-left img,
.tech-image-right img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 400px;
    object-fit: cover;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.tech-highlights {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
}

.tech-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.tech-highlight-item:last-child {
    margin-bottom: 0;
}

.tech-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-accent2);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--color-accent2);
}

.tech-highlight-item h3 {
    font-size: 1.1rem;
    color: var(--color-light);
    margin-bottom: 0.25rem;
}

.tech-highlight-item p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Responsive Styles for the Redesigned Section */
@media (max-width: 992px) {
    .tech-layout-container {
        grid-template-columns: 1fr; /* Stack elements vertically */
        gap: 2rem;
    }
    .tech-content-card {
        grid-column: 1 / -1; /* Take full width */
        grid-row: 2 / 3;     /* Place it second in the order */
    }
    .tech-image-left {
        grid-row: 1 / 2;
        transform: translateY(0); /* Reset staggering */
    }
    .tech-image-right {
        grid-row: 3 / 4;
        transform: translateY(0); /* Reset staggering */
    }
}
/* --- Section 7: Services CTA --- */
#services-cta {
    padding: var(--spacing-large) 0;
    background-image: linear-gradient(rgba(28, 29, 33, 0.85), rgba(28, 29, 33, 0.85)), url('images/serv-cta-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}
.cta-content-box {
    max-width: 700px;
    margin: 0 auto;
}
#services-cta .section-title {
    color: var(--color-light);
}
#services-cta p {
    color: var(--color-text);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* --- SERVICES PAGE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .services-hero-container, .service-detail-container, .tech-integration-container {
        /* grid-template-columns: 1fr; */
        display: block;
        text-align: center;
    }
    .services-hero-collage { margin-top: 3rem; height: 350px; }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .lifecycle-wrapper { grid-template-columns: repeat(2, 1fr); }
    .lifecycle-step:nth-child(2)::after { content: none; }
    .lifecycle-step:not(:last-child)::after {
        content: '↓';
        top: 110%;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    .tech-integration-container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .services-hero-title { font-size: 2rem; }
    #services-cta { background-attachment: scroll; }
    .bento-grid, .lifecycle-wrapper {
        grid-template-columns: 1fr;
    }
    .bento-item.bento-large-text { grid-column: span 1; grid-row: span 1; }
    .lifecycle-step::after { content: '↓' !important; }
    .lifecycle-step:last-child::after { content: none !important; }
}

/* --- PORTFOLIO PAGE STYLES --- */

/* --- Section 1: Portfolio Hero --- */
#portfolio-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('images/port-bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#portfolio-hero .hero-title { font-size: 3.2rem; }

/* --- Section 2: Portfolio Gallery --- */
#portfolio-gallery {
    background-color: rgba(0,0,0,0.1);
}
.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 3rem 0;
}
.filter-btn {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-accent1);
    color: var(--color-dark);
    border-color: var(--color-accent1);
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: block; /* for filtering */
}
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-item:hover img {
    transform: scale(1.1);
}
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(28, 29, 33, 0.9), transparent);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    color: var(--color-light);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.project-item:hover .project-overlay {
    transform: translateY(0);
}
.project-overlay h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.project-overlay span { color: var(--color-accent2); font-weight: bold; }
.project-item.hide {
    display: none;
}

/* --- Section 3: Featured Project --- */
/* --- REDESIGNED Featured Project Section --- */
#featured-project {
    background-color: rgba(0,0,0,0.1);
}

.case-study-layout {
    margin-top: 3rem;
    display: grid;
    /* Balanced three-column grid: text | image | text */
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.case-study-description p {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.case-study-image {
    position: relative;
    padding: 1rem;
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 0 0 2px var(--color-accent1); /* Accent outline */
}

.case-study-image img {
    border-radius: var(--border-radius);
    display: block;
    width: 100%;
    height: 400px;
    max-height: 550px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.case-study-image:hover img {
    transform: scale(1.03);
}

.case-study-stats {
    background-color: var(--color-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.case-study-stats h3 {
    color: var(--color-accent2);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-stats-list div {
    margin-bottom: 1rem;
}
.project-stats-list div:last-child {
    margin-bottom: 0;
}
.project-stats-list strong {
    color: var(--color-light);
    opacity: 0.7;
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

/* Responsive Styles for the Redesigned Section */
@media (max-width: 992px) {
    .case-study-layout {
        grid-template-columns: 1fr; /* Stack elements vertically */
        gap: 2rem;
    }
    .case-study-image {
        /* Reorder elements for mobile: Image on top */
        order: -1; 
    }
}
/* --- Section 4: Client Testimonial --- */
#portfolio-testimonial {
    background-image: linear-gradient(rgba(28, 29, 33, 0.8), rgba(28, 29, 33, 0.8)), ;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#portfolio-testimonial blockquote {
    font-size: 1.8rem;
    font-family: var(--font-primary);
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.4;
    border: none;
    padding: 0;
}
#portfolio-testimonial cite {
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent1);
}

/* --- Section 5: By the Numbers --- */
#by-the-numbers {
    background-color: var(--color-accent1);
}
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.number-stat {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-primary);
    color: var(--color-dark);
}
.number-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    opacity: 0.8;
}

/* --- Section 6: Project Map --- */
/* --- REDESIGNED Geographic Reach Section --- */
#geographic-reach {
    position: relative;
    overflow: hidden;
    background-color: var(--color-dark);
}

/* The map is now a background pseudo-element for better control */
#geographic-reach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/geo.webp');
    background-size: cover;
    background-position: center;
    /* Sophisticated monochrome + branded color filter */
    filter: grayscale(1) contrast(1.2) brightness(0.6) sepia(0.3) hue-rotate(220deg);
    opacity: 0.8;
    z-index: 1;
}

#geographic-reach .container {
    position: relative;
    z-index: 2; /* Ensures content is above the map */
}

.reach-content-card {
    max-width: 500px; /* Constrain width for better readability */
    background-color: var(--color-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-left: 4px solid var(--color-accent1);
}

/* Animated Pings */
.map-ping {
    position: absolute;
    z-index: 1;
    width: 12px;
    height: 12px;
    background-color: var(--color-accent2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent2);
}

/* Ping Radiating Animation */
.map-ping::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color-accent2);
    animation: pulse 2s infinite ease-out;
}

/* Ping Positions (adjust percentages as needed) */
.ping-1 { top: 40%; left: 80%; animation-delay: 0s; } /* East Coast */
.ping-2 { top: 55%; left: 20%; animation-delay: 0.5s; } /* West Coast */
.ping-3 { top: 60%; left: 50%; animation-delay: 1s; } /* Central */

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(5);
        opacity: 0;
    }
}

/* Responsive Styles for the Redesigned Section */
@media (max-width: 992px) {
    .reach-content-card {
        margin: 0 auto; /* Center the card on tablets */
    }
}

@media (max-width: 768px) {
    /* On mobile, we hide the pings and simplify the background for clarity */
    .map-ping {
        display: none;
    }
    #geographic-reach::before {
        opacity: 0.3;
        filter: grayscale(1) brightness(0.4);
    }
}
/* --- Section 7: Start Project CTA --- */
#start-project-cta {
    background-color: #111215;
}

/* --- PORTFOLIO PAGE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .featured-project-container, .map-container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    #portfolio-hero { min-height: 60vh; background-attachment: scroll; }
    #portfolio-hero .hero-title, #portfolio-testimonial blockquote { font-size: 1.8rem; }
    .project-overlay { transform: translateY(0); background: linear-gradient(to top, rgba(28, 29, 33, 0.9), transparent 80%); }
    .project-overlay h3 { font-size: 1.1rem; }
    #portfolio-testimonial { background-attachment: scroll; }
}

/* --- SAFETY PAGE STYLES --- */

/* --- Section 1: Safety Hero --- */
/* --- REDESIGNED Safety Hero Section --- */
#safety-hero {
    position: relative; /* Anchor for pseudo-elements and background text */
    overflow: hidden; /* Contains the background text and clipped image */
    padding-top: 8rem; /* Extra padding for a more epic feel */
    padding-bottom: 8rem;
}

.hero-background-text {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    font-size: clamp(100px, 20vw, 300px); /* Responsive font size */
    font-weight: 900;
    font-family: var(--font-primary);
    color: rgba(255, 255, 255, 0.03);
    z-index: 1;
    user-select: none; /* Make it non-selectable */
}

.safety-hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--spacing-large);
    align-items: center;
    position: relative;
    z-index: 2; /* Ensures content is above the background text */
}

.safety-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
}

.safety-hero-image-wrapper {
    position: relative;
    /* This creates the parallelogram shape */
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0% 100%);
}

/* This pseudo-element creates the colored "frame" behind the image */
.safety-hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-color: var(--color-accent1);
    z-index: -1;
    clip-path: inherit; /* Inherits the same shape as the parent */
}

.safety-hero-image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* Responsive Styles for the Redesigned Section */
@media (max-width: 992px) {
    .safety-hero-layout {
        grid-template-columns: 1fr; /* Stack vertically on tablets */
        text-align: center;
    }
    .safety-hero-image-wrapper {
        margin-top: 3rem;
        /* On smaller screens, a simple rectangle is cleaner */
        clip-path: none;
        border-radius: var(--border-radius);
    }
    .safety-hero-image-wrapper::before {
        display: none; /* Hide the frame for a simpler look */
    }
    .safety-hero-image-wrapper img {
        border-radius: var(--border-radius);
    }
    .hero-background-text {
        font-size: 15vw;
        right: -20%;
    }
}

@media (max-width: 768px) {
    #safety-hero {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    .safety-hero-title {
        font-size: 2.5rem;
    }
}
/* --- Section 2: Core Philosophy --- */
#core-philosophy {
    background-color: rgba(0,0,0,0.1);
}

/* --- Section 3: Safety Program (Accordion) --- */
.safety-program-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-large);
    align-items: center;
}
.safety-program-intro img {
    margin-top: 2rem;
    border-radius: var(--border-radius);
}
.accordion-item {
    border-bottom: 1px solid rgba(162, 136, 166, 0.3);
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    color: var(--color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    cursor: pointer;
    text-align: left;
}
.accordion-header h3 { font-size: 1.3rem; }
.accordion-icon {
    font-size: 2rem;
    color: var(--color-accent1);
    transition: transform 0.3s ease;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}
.accordion-content p {
    padding-bottom: 1.5rem;
    opacity: 0.9;
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}
.accordion-item.active .accordion-content {
    max-height: 1000px; /* Adjust as needed */
    transition: max-height 1s ease-in-out;
}

/* --- Section 4: Safety Pillars --- */
/* --- REDESIGNED Safety Pillars Section (Slider) --- */
#safety-pillars {
    background: linear-gradient(135deg, var(--color-accent1), var(--color-accent2));
    overflow: hidden;
}

.pillars-slider-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Visual Slider Part */
.pillars-slider-visual {
    position: relative;
    height: 120px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.pillars-slider-track {
    display: flex;
    align-items: center;
    position: absolute;
    left: 0%; /* Center the track initially */
    transform: translateX(-50%);
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-slide-item {
    flex-shrink: 0;
    margin: 0 1.5rem;
    cursor: pointer;
    transform: scale(0.8);
    opacity: 0.5;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.pillar-slide-item.active {
    transform: scale(1);
    opacity: 1;
}

.pillar-slide-item .pillar-icon {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: var(--font-primary);
    color: var(--color-dark);
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    background-color: rgba(28, 29, 33, 0.15);
    border-radius: 50%;
    border: 3px solid transparent;
}

.pillar-slide-item.active .pillar-icon {
    background-color: rgba(28, 29, 33, 0.2);
    border-color: var(--color-dark);
}

/* Content Part */
.pillars-content-container {
    position: relative;
    min-height: 150px; /* Prevent layout shift */
}

.pillar-content-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
}

.pillar-content-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.4s 0.2s ease, transform 0.4s 0.2s ease, visibility 0s;
}

.pillar-content-item h3, .pillar-content-item p {
    color: var(--color-dark);
}

/* Controls Part */
.pillars-slider-controls {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.slider-nav-btn {
    background: none;
    border: 2px solid rgba(28, 29, 33, 0.5);
    color: var(--color-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav-btn:hover {
    background-color: rgba(28, 29, 33, 0.2);
}

.slider-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background-color: rgba(28, 29, 33, 0.2);
    margin: 0 1rem;
    border-radius: 2px;
}

.progress-bar-fill {
    width: 33.33%;
    height: 100%;
    background-color: var(--color-dark);
    border-radius: 2px;
    transition: width 0.4s ease;
}
/* --- Section 5: Certifications --- */
#certifications {
    background-color: var(--color-dark);
}
.logos-grid {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.logos-grid img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%) invert(80%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.logos-grid img:hover {
    filter: none;
    opacity: 1;
}

/* --- Section 6: Worker Wellbeing --- */
.wellbeing-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-large);
    align-items: center;
}
.wellbeing-image-box {
    position: relative;
}
.wellbeing-image-box::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: -2rem;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent1);
    border-radius: var(--border-radius);
    z-index: -1;
}
.wellbeing-image-box img {
    border-radius: var(--border-radius);
}

/* --- Section 7: Safety in Action Gallery --- */
#safety-in-action {
    background-color: rgba(0,0,0,0.1);
}
.action-gallery {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.action-gallery-item {
    overflow: hidden;
    border-radius: var(--border-radius);
}
.action-gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- SAFETY PAGE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .safety-hero-container, .safety-program-container, .wellbeing-container {
        /* grid-template-columns: 1fr; */
        display: block;

        text-align: center;
    }
    .safety-hero-image img { margin-top: 2rem; }
    .safety-program-intro img { max-width: 400px; width: 100%; margin: 2rem auto; }
    .wellbeing-image-box { max-width: 500px; margin: 0 auto 3rem auto; }
}
@media (max-width: 768px) {
    .safety-hero-title { font-size: 2.5rem; }
    .action-gallery { grid-template-columns: 1fr; }
}

/* --- TEAM PAGE STYLES --- */

/* --- Section 1: Team Hero --- */
#team-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center 30%;
}

/* --- Section 2: Leadership --- */
#leadership {
    background-color: rgba(0,0,0,0.1);
}
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.leader-card {
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.leader-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(60%);
    transition: filter 0.3s ease;
}
.leader-card:hover .leader-image img {
    filter: grayscale(0%);
}
.leader-info {
    padding: 1.5rem;
}
.leader-info h3 { color: var(--color-light); }
.leader-info span {
    display: block;
    color: var(--color-accent1);
    font-weight: 700;
    margin: 0.2rem 0 1rem 0;
}

/* --- Section 3: Team Culture --- */
/* --- REDESIGNED Team Culture Section --- */
#team-culture {
    padding: 0; /* Remove default padding for a full-bleed layout */
    background-color: var(--color-dark);
}

.culture-split-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Text pane is slightly larger */
    min-height: 80vh;
}

.culture-text-content {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Aligns the inner container to the right */
    position: relative;
    z-index: 2; /* Ensures text content is above the image's gradient */
}

.culture-text-inner {
    padding: var(--spacing-large);
    max-width: 650px;
}

.culture-pillars-list {
    margin-top: 2.5rem;
    display: grid;
    gap: 2rem;
}

.culture-pillar {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.pillar-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    display: grid;
    place-items: center;
}

.culture-pillar h3 {
    color: var(--color-accent2);
    margin-bottom: 0.5rem;
}

.culture-pillar p {
    margin-bottom: 0;
    opacity: 0.8;
}

.culture-image-pane {
    position: relative;
    overflow: hidden;
}

.culture-image-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay for a smooth transition */
.culture-image-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, var(--color-dark), transparent);
    z-index: 1;
}

/* Responsive Styles for the Redesigned Section */
@media (max-width: 992px) {
    .culture-split-container {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    .culture-image-pane {
        grid-row: 1 / 2; /* Image on top */
        min-height: 400px;
    }
    .culture-text-content {
        justify-content: center; /* Center the text container */
    }
    .culture-text-inner {
        padding: 3rem 2rem;
        max-width: 100%;
    }
    .culture-image-pane::before {
        /* Change gradient direction for vertical stacking */
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, var(--color-dark), transparent);
    }
}

/* --- Section 4: Department Showcase (Tabs) --- */
#department-showcase {
    background-color: rgba(0,0,0,0.1);
}
.tab-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}
.tab-btn {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}
.tab-btn:hover, .tab-btn.active {
    background-color: var(--color-accent2);
    color: var(--color-dark);
    border-color: var(--color-accent2);
}
.tab-content {
    display: none;
    padding: 2rem;
    background-color: var(--color-dark);
    border-radius: var(--border-radius);
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}
.tab-content h3 { color: var(--color-accent1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- REDESIGNED Testimonial Feature Section --- */
#testimonial-feature {
    background-color: rgba(0,0,0,0.1);
}

.feature-card {
    position: relative; /* Anchor for the absolute positioned quote mark */
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--color-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 3rem;
    display: grid;
    grid-template-columns: auto 1fr; /* Auto width for image, rest for text */
    gap: 2.5rem;
    align-items: center;
    overflow: hidden; /* Important for containing the quote mark */
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.feature-quote-mark {
    position: absolute;
    top: -1rem;
    left: 0.5rem;
    font-size: 12rem; /* Huge font size for the mark */
    font-weight: 900;
    font-family: var(--font-primary);
    color: rgba(162, 136, 166, 0.07); /* Very faint accent color */
    line-height: 1;
    z-index: 1;
    user-select: none;
}

.feature-profile-image {
    position: relative;
    z-index: 2; /* Sits above the quote mark */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--color-accent1);
    box-shadow: 0 0 20px rgba(162, 136, 166, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.feature-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    position: relative;
    z-index: 2; /* Sits above the quote mark */
}

.feature-content blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    border: none;
    color: var(--color-light);
}

.feature-attribution {
    text-align: right;
    margin-top: 1.5rem;
}

.feature-attribution h4 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--color-light);
}

.feature-attribution span {
    color: var(--color-accent2);
    font-weight: 700;
}

/* Responsive Styles for the Redesigned Section */
@media (max-width: 768px) {
    .feature-card {
        grid-template-columns: 1fr; /* Stack elements vertically */
        padding: 2rem;
        text-align: center;
        gap: 2rem;
    }
    .feature-profile-image {
        margin: 0 auto; /* Center the image */
        width: 120px;
        height: 120px;
    }
    .feature-content blockquote {
        font-size: 1.1rem;
    }
    .feature-attribution {
        text-align: center; /* Center the attribution text */
    }
    .feature-quote-mark {
        font-size: 10rem;
        top: -0.5rem;
        left: -1rem;
    }
}

/* --- Section 6: Join Us --- */
#join-us {
    background-image: linear-gradient(rgba(162, 136, 166, 0.9), rgba(187, 155, 176, 0.9)),;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
#join-us .section-title, #join-us .section-subtitle {
    color: var(--color-dark);
}
#join-us .btn-primary {
    background-color: var(--color-dark);
    color: var(--color-light);
}
#join-us .btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-dark);
    color: var(--color-dark);
}

/* --- Section 7: Team in the Community --- */
#team-community {
    background-color: rgba(0,0,0,0.1);
}
.community-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.community-item {
    overflow: hidden;
    border-radius: var(--border-radius);
}
.community-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- TEAM PAGE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .culture-container, .spotlight-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .culture-image { grid-row: 1; margin-bottom: 2rem; }
    .spotlight-image { max-width: 400px; margin: 0 auto 3rem auto; }
    .spotlight-image img { box-shadow: 10px 10px 0 var(--color-accent1); }
    .spotlight-content blockquote { text-align: left; }
}
@media (max-width: 768px) {
    #join-us { background-attachment: scroll; }
    .community-grid { grid-template-columns: 1fr; }
    .tab-nav { flex-direction: column; }
}

/* --- CLIENTS PAGE STYLES --- */

/* --- Section 1: Clients Hero --- */
#clients-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* --- Section 2: Client Logos --- */
#client-logos {
    background-color: var(--color-dark);
}
.logos-container {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.client-logo img {
    max-height: 50px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}
.client-logo img:hover {
    opacity: 1;
    transform: scale(1.1);
}
/* --- REDESIGNED Client Partnership Section --- */
#client-partnership {
    padding: 0; /* Full-bleed section */
    position: relative;
}

.partnership-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 90vh;
}

.partnership-content {
    background-color: var(--color-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-large);
    position: relative;
    z-index: 5;
}

.content-inner {
    max-width: 600px;
    margin-left: auto; /* Align content to the right */
}

.content-inner > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.partnership-pillars {
    display: grid;
    gap: 2rem;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.pillar-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-accent1);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.pillar-icon span {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--color-accent1);
}

.pillar-item h3 {
    margin-bottom: 0.5rem;
}
.pillar-item p {
    margin: 0;
    opacity: 0.8;
}

.partnership-image-pane {
    position: relative;
    overflow: hidden;
}

.partnership-image-pane img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient overlay for a smooth text-to-image transition */
.partnership-image-pane::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(28, 29, 33, 1) 5%, transparent 100%);
    z-index: 2;
}

/* The unique connector element */
.partnership-connector {
    position: absolute;
    top: 50%;
    left: calc(100% * (1.1 / 2.1)); /* Position on the grid line */
    transform: translate(-50%, -50%);
    width: 4px;
    height: 120px;
    background-color: var(--color-accent1);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--color-accent1);
    z-index: 10;
}

.partnership-connector::before,
.partnership-connector::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: var(--color-accent1);
    border: 2px solid var(--color-dark);
    border-radius: 50%;
}
.partnership-connector::before { top: -6px; }
.partnership-connector::after { bottom: -6px; }

/* Responsive Styles for the Redesigned Section */
@media (max-width: 992px) {
    .partnership-layout {
        grid-template-columns: 1fr; /* Stack vertically */
    }
    .partnership-image-pane {
        order: -1; /* Image on top */
        min-height: 400px;
    }
    .content-inner {
        margin: 0 auto; /* Center content */
    }
    .partnership-connector {
        display: none; /* Hide the connector on mobile */
    }
    .partnership-image-pane::before {
        /* Adjust gradient for vertical stacking */
        width: 100%;
        height: 60%;
        left: 0;
        top: auto;
        bottom: 0;
        background: linear-gradient(to top, rgba(28, 29, 33, 1) 5%, transparent 100%);
    }
}

/* --- Section 4: Testimonial Slider --- */
#testimonials {
    overflow: hidden;
}
.testimonial-slider-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    text-align: center;
}
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--color-accent1);
}
.testimonial-slide blockquote {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    border: none;
    padding: 0;
}
.testimonial-slide cite {
    font-style: normal;
    font-weight: 700;
    color: var(--color-accent2);
}
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}
.slider-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.slider-btn.prev { margin-left: -60px; }
.slider-btn.next { margin-right: -60px; }
.slider-btn:hover { background-color: var(--color-accent1); }

/* --- Section 5: Client Case Study --- */
#client-case-study {
    padding: var(--spacing-large) 0;
    position: relative;
}
.case-study-bg-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('images/case-bg.webp');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}
.case-study-container {
    position: relative; z-index: 2;
    display: flex; justify-content: flex-start;
}
.case-study-content {
    width: 50%;
    padding: 1.5rem;
}
.case-study-content strong {
    color: var(--color-accent2);
}

/* --- Section 6: Sector Expertise --- */
#sector-expertise {
    background-color: rgba(0,0,0,0.1);
}
.sectors-grid {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.sector-card {
    background-color: var(--color-dark);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.sector-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--color-accent1);
}
.sector-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.sector-card h3 {
    margin-bottom: 0.5rem;
}

/* --- Section 7: Partner CTA --- */
#partner-cta {
    background-color: #111215;
}

/* --- CLIENTS PAGE RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .partnership-container { grid-template-columns: 1fr; }
    .partnership-image { max-width: 500px; margin: 0 auto 2rem auto; }
    .case-study-content { width: 80%; margin: 0 auto; }
    .case-study-container { justify-content: center; }
}
@media (max-width: 768px) {
    .slider-btn.prev { margin-left: 0; }
    .slider-btn.next { margin-right: 0; }
    .testimonial-slide blockquote { font-size: 1.1rem; }
}

/* --- FOOTER --- */
.site-footer-main {
    background-color: #111215;
    padding-top: var(--spacing-large);
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-medium);
    padding-bottom: var(--spacing-large);
}
.footer-about p { opacity: 0.7; }
.footer-links h4, .footer-contact h4, .footer-social h4 {
    color: var(--color-light);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-contact p { margin-bottom: 0.5rem; }
.social-icons a {
    display: inline-block;
    width: 40px; height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--color-light);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: background-color 0.3s ease;
    font-family: var(--font-primary);
    font-weight: bold;
}
.social-icons a:hover { background-color: var(--color-accent1); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    opacity: 0.7;
}

/* --- SCROLL ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in { transform: translateY(30px); }
.fade-in-up { transform: translateY(50px); }
.slide-in-left { transform: translateX(-50px); }
.slide-in-right { transform: translateX(50px); }

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .about-container, .cta-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-content { padding-left: 0; margin-top: var(--spacing-large); }
    .about-image-stack { margin: 0 auto; max-width: 500px; }
    
    .spotlight-content { width: 80%; margin: 0 auto; }
    
    .process-timeline::before { left: 25px; }
    .process-item, .process-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 70px;
    }
    .process-step, .process-item:nth-child(odd) .process-step, .process-item:nth-child(even) .process-step {
        left: 0;
    }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .section-padding { padding: 4rem 0; }
    .header-container { padding: 0 1rem; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .main-nav.is-open { right: 0; }
    .main-nav .nav-links {
        flex-direction: column;
        font-size: 1.5rem;
    }
    .main-nav .btn { margin-left: 0; margin-top: 2rem; }
    
    .nav-toggle {
        display: block;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
    }
    .hamburger, .hamburger::before, .hamburger::after {
        content: '';
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--color-light);
        transition: all 0.3s ease-in-out;
    }
    .hamburger::before { transform: translateY(-8px); }
    .hamburger::after { transform: translateY(8px); }
    
    .nav-toggle.is-open .hamburger { background: transparent; }
    .nav-toggle.is-open .hamburger::before { transform: rotate(45deg); }
    .nav-toggle.is-open .hamburger::after { transform: rotate(-45deg) translateY(-6px) translateX(6px); }

    .spotlight-content { width: 100%; }
}

/* --- LEGAL PAGES STYLES (Privacy Policy, Terms, etc.) --- */

.legal-hero {
    padding: 6rem 0;
    background-color: var(--color-dark);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.legal-page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.legal-page-subtitle {
    font-size: 1.2rem;
    color: var(--color-accent2);
}

.legal-content {
    padding: var(--spacing-large) 0;
}

.legal-content-container {
    max-width: 800px; /* Narrower width for better readability of long text */
}

.legal-content-container article {
    margin-bottom: 3rem;
}

.legal-content-container h2 {
    font-size: 1.8rem;
    color: var(--color-accent1);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.legal-content-container p, 
.legal-content-container li {
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.9;
}

.legal-content-container ul {
    list-style: disc;
    padding-left: 2rem;
    margin-top: 1rem;
}

.legal-content-container li {
    margin-bottom: 1rem;
}

.last-updated {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 3rem;
}

/* --- THANK YOU / UTILITY PAGE STYLES --- */

/* Full-screen centered layout for the body */
.utility-page-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--color-dark);
}

.thank-you-box {
    background-color: #111215;
    padding: 3rem;
    border-radius: var(--border-radius);
    border-top: 4px solid var(--color-accent1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 550px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thank-you-box h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-light);
}

.thank-you-box p {
    color: var(--color-text);
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.thank-you-box .btn {
    margin-top: 1rem;
}

/* Animated Checkmark SVG */
.checkmark-container {
    margin-bottom: 1.5rem;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: var(--color-accent1);
    stroke-miterlimit: 10;
    margin: 0 auto;
    animation: scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: rgba(162, 136, 166, 0.3);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

/* Responsive Styles for the Thank You Page */
@media (max-width: 768px) {
    .thank-you-box {
        padding: 2rem;
    }
    .thank-you-box h1 {
        font-size: 1.5rem;
    }
}