/* --- Global Page Setup --- */
.about-us-page {
    font-family: 'Poppins', sans-serif;
    color: #334155;
    overflow: hidden;
}

.about-hero {
    position: relative;
    width: 100vw;
    /* Maintain full width regardless of container */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
    /* Re-apply your curve */
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Sit behind the overlay and text */
}

.hero-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Use this for the parallax effect instead of fixed positioning */
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darkening shadow */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: -1;
}

.hero-content-clean {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 20px;
}

/* Parallax effect for the image (if supported) */
@media (min-width: 1024px) {
    .hero-img-element {
        /* This creates the parallax feel without heavy JS */
        transform: scale(1.1);
        position: fixed;
    }
}

.about-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    margin: 25px 0;
    /* Text shadow ensures "pop" against any image detail */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.main-intro {
    font-size: 1.1rem;
    color: #f1f5f9;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Brighten the gradient for better visibility on dark backgrounds */
.txt-gradient {
    background: linear-gradient(90deg, #3b82f6, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Section Container --- */
.about-combined-section {
    display: flex;
    padding: 0 0 0 50px;
    height: 850px;
}

.main-content-wrapper {
    display: flex;
    max-width: 1300px;
    width: 100%;
    gap: 100px;
    /* Space between cards and values */
    align-items: flex-start;
}

/* --- Left Side: Overlap Logic --- */
.overlap-container {
    position: relative;
    flex: 0 0 300px;
    margin-right: 200px;
    top: 200px;
}

.overlap-card {
    cursor: pointer;
    position: absolute;
    width: 100%;
    min-height: 320px;
    padding: 40px;
    border-radius: 40px;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

/* Initial States */
.vision-top {
    background: #eaeaf2;
    /* Light Purple/Blue */
    color: #0f172a;
    top: 0;
    left: 0;
    z-index: 2;
}

.mission-bottom {
    background: #ffffff;
    color: #0f172a;
    top: 130px;
    /* Vertical Offset */
    left: 200px;
    /* Horizontal Offset */
    z-index: 1;
    border: 1px solid #e2e8f0;
}

/* Hover/Shuffle Effect */
.overlap-container:hover .vision-top {
    transform: translateY(-40px) scale(0.95);
    z-index: 1;
    opacity: 0.5;
}

.overlap-container:hover .mission-bottom {
    transform: translate(-60px, -160px);
    /* Moves Mission to cover Vision */
    z-index: 3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

/* --- Card Content --- */
.card-inner-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.card-inner-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #334155;
}

/* --- Right Side: Core Values --- */
.values-side-content {
    flex: 1;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: #0f172a;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.value-box {
    background: #bae4e0;
    padding: 0 30px 0 30px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.value-box:hover {
    border-color: #d3d3e8;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.value-box h4 {
    color: #13161a;
    /* Accent color */
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.value-box p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Makes the Client-Centric box span full width for better layout */
.value-box.highlight {
    grid-column: span 2;
    background: #def6de;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1100px) {
    .main-content-wrapper {
        flex-direction: column;
        gap: 60px;
    }

    .overlap-container {
        margin: 0 auto;
        flex: none;
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-box.highlight {
        grid-column: span 1;
    }

    .overlap-card {
        padding: 25px;
    }
}

/* --- Why & What Section --- */
.what-why-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 100px;
    background: #f8fafc;
    padding: 60px;
    border-radius: 40px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.tag-list li {
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Process Flow --- */
.process-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
}

.process-flow {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
    position: relative;
}

.process-step {
    text-align: center;
    flex: 1;
}

.process-step span {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
    margin-bottom: 10px;
}

.process-step p {
    font-weight: 700;
    color: #1e293b;
}

/* --- Commitment & CTA --- */
.commitment-card {
    background: #d9e3e0;
    color: #121316;
    padding: 10px 40px;
    text-align: center;
}

.long-term-tags {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.long-term-tags span {
    border: 1px solid rgb(167, 34, 34);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
}

.final-cta {
    text-align: center;
    padding: 50px 0;
}

.modern-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: #2f80ed;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 25px;
}

.modern-btn:hover {
    background: #1e293b;
    transform: translateY(-5px);
}

/* --- Reveal Animations --- */
/* Change opacity from 0 to 1 to see content immediately */
.reveal {
    opacity: 1;
    /* Was 0 */
    transform: translateY(0);
    /* Was 30px */
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {

    .vision-mission-split,
    .what-why-section,
    .process-flow {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 40px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item.wide {
        grid-column: span 1;
    }

    .process-step {
        margin-bottom: 30px;
    }
}