/* About Us Page Styles */
:root {
    --about-hero-height: 100vh;
}

/* Page Wrapper */
.about-page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* Hero Section */
.about-hero {
    height: var(--about-hero-height);
    background-color: var(--primary-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Added background image + dark overlay gradient */
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('../img/about-hero-bg.webp');
    background-size: cover;
    background-position: left;
    opacity: 1;
    /* Changed from 0.6 to full opacity as the image has its own overlay */
    z-index: 1;
    will-change: transform;
}

/* Ensure scroll indicator is clickable and visible */
.scroll-indicator {
    z-index: 20;
    bottom: 40px;
    cursor: pointer;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.about-hero-eyebrow {
    color: var(--btn-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0;
    /* Animated */
    transform: translateY(20px);
}

.about-hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    /* Animated */
    transform: translateY(30px);
}

.about-hero-desc {
    font-size: 1.25rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0;
    /* Animated */
    transform: translateY(20px);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--btn-color), transparent);
    margin-bottom: 0.5rem;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--btn-color);
}

/* About Content Sections */
.about-section {
    padding: 8rem 0;
    position: relative;
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.1);
    /* Zoom effect for parallax */
    transition: transform 0.5s ease;
}

.about-text-content {
    padding-left: 2rem;
}

.section-label {
    color: var(--btn-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-heading {
    font-size: 3rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-body {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Stats / Features Grid */
.features-section {
    background-color: #fff;
    padding: 6rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--btn-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--btn-color);
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-color);
    font-size: 1rem;
}

/* Mission / Vision Split */
.mission-vision-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0;
    overflow: hidden;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.mv-item {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.mv-item:last-child {
    border-right: none;
}

.mv-bg-icon {
    position: absolute;
    right: -50px;
    bottom: -50px;
    font-size: 15rem;
    opacity: 0.05;
    color: var(--btn-color);
    pointer-events: none;
}

.mv-title {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.mv-text {
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* Enhanced Stats Styling */
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
}

.stat-icon-wrapper {
    min-width: 60px;
    height: 60px;
    background: var(--btn-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(252, 163, 17, 0.4);
}

.stats-card-container {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* =========================================
   RESPONSIVE DESIGN SYSTEM
   ========================================= */

/* Tablet & Smaller Desktop (max-width: 992px) */
@media (max-width: 992px) {
    .about-hero-title {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        /* Center text on tablet for better balance */
    }

    .about-text-content {
        padding-left: 0;
        padding-right: 0;
    }

    .about-image {
        transform: scale(1);
        /* Disable zoom on touch/smaller screens */
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .mv-item {
        padding: 4rem 2rem;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .features-list {
        display: inline-block;
        text-align: left;
        /* Keep list left-aligned even if wrapper is centered */
    }

    .floating-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 cols on tablet */
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --about-hero-height: 100svh;
        /* Use SVH for better mobile browser support */
    }

    .about-hero-content {
        padding: 0 1.5rem;
    }

    .about-hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .about-hero-desc {
        font-size: 1rem;
    }

    .about-section {
        padding: 4rem 0;
        /* Reduce padding significantly */
    }

    .section-heading {
        font-size: 2rem;
    }

    .features-section {
        padding: 4rem 0;
    }

    .stats-card-container {
        padding: 2rem 1.5rem;
        margin-top: 0;
        /* floating effect often breaks on mobile, reset margin if needed, or keep overlapping */
    }

    .floating-stats-grid {
        grid-template-columns: 1fr !important;
        /* 1 col on mobile */
        gap: 2rem !important;
    }

    .mv-item {
        padding: 3rem 1.5rem;
    }

    .mv-title {
        font-size: 2rem;
    }

    /* Order change: Text first, then Image */
    .about-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    /* Fix text content spacing */
    .about-text-content {
        margin-bottom: 2rem;
        padding: 0 1rem;
        text-align: center;
        /* Generally center text */
    }

    /* Force button to be more accessible */
    .about-text-content .btn-primary {
        display: block;
        width: 100%;
        margin-top: 2rem;
        text-align: center;
    }

    /* Fix list alignment on mobile - keep checks aligned */
    .features-list {
        display: inline-block;
        text-align: left;
        margin-top: 2rem;
        width: 100%;
        /* Ensure it takes width but aligns content left-center */
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .features-list .d-flex {
        justify-content: flex-start;
        /* Align icon and text start */
    }

    /* Fix Mission Vision Heading Size */
    .section-heading {
        font-size: 1.75rem;
        /* Smaller purely for mobile */
        line-height: 1.3;
    }

    /* Adjust floating stats overlapping */
    .container[style*="margin-top: -100px"] {
        margin-top: -50px !important;
        /* Less overlap on mobile */
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .about-hero-title {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .stat-icon-wrapper {
        min-width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}