:root {
    --black: #050505;
    --green: #407B06;
    --white: #FAFAFA;
    --gray-text: #A0A0A0;
    --card-bg: #121212;
    --border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --font-heading: 'Gabarito', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

.text-green { color: var(--green); }
.text-cap-with-space {
    letter-spacing: 8px;
    text-transform: uppercase
}
.text-front-back-space {
    padding-left: 16px;
    padding-right: 16px;

}
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid transparent;
}



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

.btn-primary:hover {
    background-color: #4e9408;
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    margin: 0;
    padding: 12px 24px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;

}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-white {
    background-color: var(--white);
    color: var(--black);
}

.btn-white:hover {
    background-color: var(--black);
    color: var(--white);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
}

/* Header */
.header {
    background-color: var(--black);
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-img-top {
    height: 12px; /* matches the font-size of nav-item */
    width: auto;
    display: block;
}

.logo-mark {
    background: var(--white);
    color: var(--black);
    padding: 2px 6px;
    font-size: 0.9rem;
}

.logo-text {
    letter-spacing: 2px;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    color: var(--white);
    text-decoration: none;
    font-size: 15px; /* matches the height of logo-img-top */
    font-weight: 600;
    letter-spacing: 1px;line-height: 12px;   
    text-transform: uppercase;
    display: inline-block;
}

.nav-item:hover, .nav-item.active {
    color: var(--green);
}

/* Base Animation State */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Triggered State */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(5, 5, 5, 0.75), rgba(5, 5, 5, 0.6)), 
                url('https://firebasestorage.googleapis.com/v0/b/instantcorp-2390d.firebasestorage.app/o/bg05.webp?alt=media&token=e8ca6656-bfa7-4890-af63-9147494150fd') 
                center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.hero-content {
    width: 100%; 
    padding-left: 1rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;

    max-width: 900px;
    text-align: left;
}

.label-green {
    color: var(--green);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;

    /* Layout for the line */
    display: flex;
    align-items: center;
    gap: 15px;
}

.label-green::before {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--green);
}

.hero-title {
    font-size: clamp(7rem, 6vw, 7rem);
    line-height: 1.05;
    letter-spacing: -1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    font-family: var(--font-heading);
    font-weight: 600; /* Extra Bold for Geometric impact */
    letter-spacing: -2px; /* Tighter tracking for that premium look */
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(3.5rem, 2.5vw, 3.5rem);
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--gray-text);
    margin-bottom: 2rem;

}

.hero-description {
    max-width: 500px;
    color: var(--gray-text);
    font-family: var(--font-heading);
    line-height: 1.5;
    font-weight: 100;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;

    /* The Green Line Logic */
    padding-left: 1.5rem;
    border-left: 3px solid var(--green);
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1.5 rem;
    justify-content: flex-start; /* Aligns buttons to the left */
    margin-top: 2rem;
}

/* Stats */
.stats-strip {
    background-color: var(--white);
    color: var(--black);
    padding: 4rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.stat-item {
    flex: 1;
    padding-left: 3rem; /* Spacing after the divider */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item:not(:first-child) {
    border-left: 1px solid #d1d1d1;
}

.stat-item:first-child {
    padding-left: 0;
}

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

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: #888; /* Subtle low-contrast gray */
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-heading); /* Geometric Sans-Serif */
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--black);
}

/* About */
.about {
    padding: 8rem 0;
    background-color: var(--black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    border: none;    
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-text {
    color: var(--white); /* White text for the whole block */
}

.about-text .section-title-large {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    color: var(--white);
}

.about-text .section-p {
    color: var(--white); /* Pure white as requested */
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* The Separator Line */
.about-text .link-arrow {
    display: block;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Thin separator line */
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.section-title-large {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-p {
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.link-arrow {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.link-arrow:hover {
    color: var(--white);
    transition: color 0.3s ease;
}

.link-arrow::before {
    content: "";
    width: 25px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4); 
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--black);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    margin-bottom: 60px;
    width: 100%;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.services-subtext {
    color: var(--gray-text);
    max-width: 450px;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.services-main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1;
}

.btn-view-all {
   text-decoration: none;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-view-all:hover {
    color: var(--green);
    border-color: var(--green);
    background-color: rgba(64, 123, 6, 0.05); 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.service-icon {
    width: 28px;
    height: 28px;
    color: var(--gray-text);
    margin-bottom: 30px;
}

.service-card {
    position: relative;
    padding: 60px 40px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* Force the entire card to ignore 'visited' styles */
.service-cta-card, 
.service-cta-card:visited {
    color: var(--white);
    text-decoration: none;
}

/* Ensure the label specifically stays white unless hovered */
.service-cta-card .cta-label,
.service-cta-card:visited .cta-label {
    color: var(--white);
}

/* Ensure the icon/arrow stays white inside the circle */
.service-cta-card .circle-arrow-btn i,
.service-cta-card:visited .circle-arrow-btn i {
    color: var(--white);
}

/* Keep your hover state green */
.service-cta-card:hover .cta-label,
.service-cta-card:hover .circle-arrow-btn i {
    color: var(--green);
}

.top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--green);
    transform: translateX(-101%); /* Hidden to the left */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover States */
.service-card:hover .top-line {
    transform: translateX(0); /* Slides into view */
}

.service-card:hover h3,
.service-card:hover .service-icon {
    color: var(--green); /* Text and icon change color */
    transition: color 0.3s ease;
}

.service-card h3,
.service-icon {
    transition: color 0.3s ease;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    max-width: 250px;
}

.service-card h3,
.service-icon {
    transition: color 0.3s ease;
}

.service-card.active .top-line {
    transform: translateX(0);
}
.service-card.active h3,
.service-card.active .service-icon {
    color: var(--green);
}

.service-card:hover {
    background-color: #0a0a0a;
}

.service-card.active {
    background-color: #1a1a1a;
    border-color: var(--green);
}

.icon-placeholder {
    width: 40px;
    height: 40px;
    background: #333;
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--gray-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: auto;
}

.explore-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 30px;
    transition: color 0.3s ease;
}

.explore-link:hover {
    color: var(--green);
}

.service-cta-card {
    justify-content: center;
    align-items: center;
    background-color: #080808;
}

.circle-arrow-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-cta-card:hover .circle-arrow-btn {
    border-color: var(--green);
    background-color: var(--green);
}

.cta-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.explore-link::before {
    content: "";
    width: 25px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
}

.explore-link::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.circle-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* PRISM */
.prism {
    background-color: var(--white);
    color: var(--black);
    padding: 120px 0;
    overflow: hidden;
}

.prism-header {
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prism-label {
    justify-content: center; /* Centers the text within the flex label */
    padding-left: 0;
    padding-bottom: 4rem;
    margin-left: 0;
    font-size: 1rem;
}

.prism-label::before {
    display: none; /* Removes the horizontal green line */
}

.prism-main-title {
    font-family: var(--font-heading);
    font-size: 4.5rem; /* Large, bold geometric heading */
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.section-title-black {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

.prism-bg-letters {
    position: absolute;
    font-size: 15rem;
    font-weight: 900;
    color: rgba(0,0,0,0.03);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 0;
}

.prism-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
}

.prism-item h4 {
    margin-bottom: 1rem;
    font-weight: 800;
}

.prism-item p {
    font-size: 0.85rem;
    color: #555;
}

.prism-column {
    position: relative;
    padding: 140px 30px 40px 30px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Aligns content to the bottom */
}

.prism-column:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.ghost-letter {
    position: absolute;
    top: 0;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03); 
    line-height: 1;
    user-select: none;
    z-index: 1;
}

.prism-content {
    position: relative;
    z-index: 2;
    margin-top: 56px;
}

.prism-column h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.prism-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.prism-column:hover .ghost-letter {
    color: rgba(232, 237, 226, 0.9);
}

.prism-column:hover .prism-content h4 {
    color: var(--green);
}

.prism-column:hover .prism-content p {
    color: var(--black);
}

/* Execution Section */
.execution {
    padding: 120px 0;
    background-color: var(--black);
}

.execution-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: flex-end; 
}

.execution-content {
    /* Ensures the text doesn't have extra bottom whitespace */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.category-block:last-child {
    margin-bottom: 0;
}

.category-block:last-child .dual-list .dot-list li:last-child {
    margin-bottom: 0;
}

.execution-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4.2rem); 
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    color: var(--white);
    width: 100%;
}

.execution-title .text-green {
    white-space: nowrap;
    display: inline;
}

/* Image Wrapper Adjustment */
.execution-image-area {
    width: 100%;
}

.execution-image-area .image-wrapper {
    margin-bottom: -4px;
}

.facility-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.green-divider {
    width: 50px;
    height: 3px;
    background-color: var(--green);
    margin-bottom: 60px;
}

/* Category & Dual List Styling */
.category-block {
    margin-bottom: 40px;
}

.category-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.dual-list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates the side-by-side list effect */
    gap: 20px;
}

.dot-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.dot-list li {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.dot-list li::before {
    content: "";
    width: 5px;
    height: 5px;
    background-color: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Image & Badge Refinement */
.image-wrapper {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.facility-img {
    width: 100%;
    display: block;
    filter: brightness(0.9);
}

.safety-overlay-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    min-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-accent {
    width: 4px;
    background-color: var(--green);
}

.badge-inner {
    padding: 8px;
}

.badge-inner h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.badge-inner p {
    font-size: 0.8rem;
    color: var(--gray-text);
    line-height: 1.5;
}

.lists-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}



.list-group h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}


/* Image Side */
.execution-image-area .image-container {
    position: relative;
    border: 1px solid var(--border);
    padding: 0;
}

.facility-img {
    width: 100%;
    height: auto;
    display: block;
}

.safety-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    max-width: 280px;
    border: 1px solid var(--border);
}

.badge-accent {
    width: 4px;
    background-color: var(--green);
}

.badge-text {
    padding: 15px 20px;
}

.badge-text h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.badge-text p {
    font-size: 0.75rem;
    color: var(--gray-text);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
    .execution-grid {
        grid-template-columns: 1fr;
    }
    .lists-container {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        /* Switch to flex to easily control visual order */
        display: flex; 
        flex-direction: column-reverse; 
        gap: 3rem;
    }

    .about-text .section-title-large {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
    .about-image-wrapper {
        width: 100%;
    }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .lists-container {
        grid-template-columns: 1fr;
    }
    .services-grid { grid-template-columns: 1fr; }
}


.caps-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 4rem 0;
}

.cap-card .icon-placeholder {
    margin: 0 auto 1rem;
}

.green-band {
    height: 60px;
    background-color: var(--green);
}

/* Final CTA */
.final-cta {
    background-color: var(--green);
    padding: 6rem 0;
}

.cta-title {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
}

.final-cta p {
    margin-bottom: 2.5rem;
}

/* Footer */
.footer {
    padding: 100px 0 40px;
    background-color: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--white);
}

.footer-col.brand-info {
    display: flex;
    flex-direction: column;
}

.footer-logo, 
.footer-col h4 {
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.2;
    height: 1.2rem;
}

.footer-desc {
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-text);
    max-width: 320px;
    padding-bottom: 16px;
}

.footer-green-line {
    width: 72px;
    height: 3px;
    background-color: var(--green);
}

.footer-about {
    margin-top: 1.5rem;
    color: var(--gray-text);
    font-size: 0.85rem;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--white);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 0;
}

.footer-nav a {
    color: var(--gray-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--green);
}

/* Contact Items with Icons */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--green);
}

.contact-info p {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
}

.copyright {
    padding-top: 2rem;
    text-align: center;
    font-size: 0.7rem;
    color: #444;
}

/* Bottom Bar Alignment */
.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 8px; 
    margin-bottom: 30px;
    height: 1.2rem;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    white-space: nowrap;
    line-height: 1;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.copyright, .footer-tagline {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.5px;
}

/* Mobile Nav */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .prism-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .prism-column:nth-child(3) {
        border-right: none;
    }
    .execution-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
    .stat-item {
        border-left: none !important;
        padding-left: 0 !important;
    }
    .prism-main-title {
        font-size: 3rem;
    }
    .prism-grid { grid-template-columns: 1fr; }
    .prism-column {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        min-height: auto;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--black);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
    .hero-btns { flex-direction: column; }
}

.foundation-content {
    display: flex;
    flex-direction: column;
}



.foundation-text p {
    color: var(--gray-text);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
}










@media (max-width: 900px) {
    .footer {
        padding: 60px 0 40px;
    }

    .footer-grid {
        /* Change from 4 columns to 1 column */
        grid-template-columns: 1fr; 
        gap: 40px;
        text-align: center; /* Optional: Center text for mobile aesthetic */
    }

    .brand-info, 
    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers items within each column */
    }

    .footer-logo-row {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%; /* Allows text to wrap to the screen width */
        margin: 0 auto 20px;
    }

    .footer-green-line {
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 30px;
    }
}

/* --- About Page Mobile Responsiveness --- */

@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
    }

    .container {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }

    .about-hero .container, .contact-hero .container {
        padding-left: 0 !important;
        text-align: center;
        width: 100% !important;
    }



    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
        width: 100% !important;
    }
    
    .hero-description {
    max-width: 500px;
    color: var(--gray-text);
    font-family: var(--font-heading);
    line-height: 1.5;
    font-weight: 100;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    margin-left: 0 !important;
    padding-left: 0 !important;

    /* The Green Line Logic */
    padding-left: 1.5rem;
    border-left: 3px solid transparent;
    line-height: 1.6;
}
    .hero-title, .about-title {
        font-size: clamp(2rem, 8vw, 3rem) !important; /* Scalable font */
        width: 100%;
    }

    /* 1. Hero Text Scaling */
    .about-title {
        padding-left: 20px !important;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        max-width: 100vw;
        text-align: center;
    }

    .about-hero {
        height: 50vh; /* Shorter hero for mobile */
    }

    /* 2. Grid Collapsing (Foundation & Vision) */
    .foundation-grid {
        display: flex;
        flex-direction: column;
        align-items: center;;
    } 
    .vision-grid {
        /* gap: 40px !important; */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* 3. Foundation Alignment Fix */
    .foundation-right {
        margin-top: 0 !important; /* Remove the desktop alignment nudge */
    }

    .foundation-title {
        font-size: 2rem !important;
        text-align: left;
    }

    /* 4. Philosophy Section (White Box) */
    .philosophy-title {
        font-size: 2.5rem !important;
        letter-spacing: -1px !important;
    }

    .philosophy-p {
        font-size: 1rem !important;
    }

    /* 5. Vision Image Fix */
    .vision-image {
        order: 2; /* Put image below text on mobile */
    }

    .vision-content {
        order: 1;
        text-align: center;
    }
    
    .vision-title {
        font-size: 2rem !important;
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr !important; /* Stacks columns vertically */
        text-align: center;
        gap: 40px;
    }

    .footer-col {
        align-items: center; /* Centers icons and links */
        width: 100%;
    }

    .footer-logo-row {
        justify-content: center;
    }

}

.animate-on-load {
    animation: fadeUpAbout 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

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