/* ===========================
   ABOUT PAGE STYLES
   =========================== */

/* Utilities */
.text-center {
    text-align: center;
}

/* About Hero */
.about-hero {
    min-height: 60vh;
    padding-top: 130px;
    padding-bottom: 50px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-hero-content {
    max-width: 900px;
}

.about-hero h1 {
    font-size: clamp(42px, 8vw, 90px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -3px;
    color: #000;
    margin-bottom: 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.about-hero-desc {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    max-width: 600px;
    font-weight: 400;
}

/* ========== VIDEO SECTION ========== */
.about-video-section {
    padding: 40px 0 20px;
    background: #fff;
}

.about-video-wrapper {
    max-width: 100%;
    margin: 30px auto 0;
    padding: 0;
}

.about-video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.85);
    will-change: transform;
}

.about-video-container video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px;
}



/* Story Section */
.about-story-section {
    padding: 50px 0;
    background: #fff;
}

.story-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.section-heading {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    color: #000;
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.story-right-col p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.story-right-col p:last-child {
    margin-bottom: 0;
}

/* Mission, Vision, Values */
.mvv-section {
    padding: 40px 0;
    background: #ffffff;
    position: relative;
}

.mvv-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Split Layout */
.mvv-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Left — Sticky */
.mvv-left {
    position: sticky;
    top: 120px;
}

.mvv-left-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-top: 20px;
    max-width: 420px;
}

/* Right — Cards */
.mvv-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mvv-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-left: 4px solid #26d367;
}

.mvv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.mvv-card-top {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.mvv-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #26d367, #1fa855);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(38, 211, 103, 0.25);
}

.mvv-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
    margin: 0;
}

.mvv-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Stats Section */
.about-stats-section {
    padding: 30px 0;
    background: linear-gradient(135deg, #0a1f13 0%, #0c2e1a 50%, #143d24 100%);
    position: relative;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.about-stat-item {
    padding: 15px 20px;
    position: relative;
}

.about-stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

.about-stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: inline;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-plus {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: var(--accent-color);
    display: inline;
    vertical-align: top;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 12px;
    font-weight: 500;
}

/* Journey Timeline */
.journey-section {
    padding: 50px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.journey-section .container {
    position: relative;
    z-index: 2;
}

.journey-header {
    margin-bottom: 60px;
}

.journey-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline-line {
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(38, 211, 103, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    padding-left: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -41px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(38, 211, 103, 0.15);
    z-index: 2;
}

/* Timeline Image */
.timeline-img {
    flex-shrink: 0;
    width: 160px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(38, 211, 103, 0.2);
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.timeline-year {
    display: inline-block;
    background: rgba(38, 211, 103, 0.1);
    color: var(--accent-color);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* Team Slider Wrapper — neutral on desktop */
.team-slider-wrapper {
    position: relative;
}

/* Nav buttons — hidden by default (desktop uses grid) */
.team-nav {
    display: none;
}

/* Team Section */
.team-section {
    padding: 50px 0;
    background: #f9fafb;
}

.team-header {
    margin-bottom: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.team-img {
    height: 300px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-img img {
    transform: scale(1.08);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h4 {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.team-info span {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.about-cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #0a1f13 0%, #0c2e1a 50%, #143d24 100%);
    position: relative;
    overflow: hidden;
}

/* Decorative glow orbs */
.cta-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    opacity: 0.3;
}

.cta-glow-1 {
    width: 400px;
    height: 400px;
    background: #26d367;
    top: -150px;
    right: -100px;
}

.cta-glow-2 {
    width: 300px;
    height: 300px;
    background: #1fa855;
    bottom: -100px;
    left: -80px;
}

/* Badge */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(38, 211, 103, 0.15);
    color: #26d367;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(38, 211, 103, 0.2);
}

.cta-badge i {
    font-size: 12px;
}

.about-cta-section .section-heading {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 20px;
    color: #fff;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Button group */
.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.about-cta-section .btn-primary {
    padding: 18px 40px;
    font-size: 16px;
}

.about-cta-section .btn-primary i {
    margin-left: 10px;
    transition: 0.3s;
}

.about-cta-section .btn-primary:hover i {
    transform: translateX(5px);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    border-color: #26d367;
    color: #26d367;
    background: rgba(38, 211, 103, 0.08);
}

/* ========== GALLERY / PORTFOLIO ========== */
.about-gallery-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.about-gallery-header {
    margin-bottom: 40px;
}

.about-gallery-slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-gallery-slider {
    overflow: hidden;
    border-radius: 0;
}

.about-gallery-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item {
    flex: 0 0 calc(33.333% - 14px);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Gallery Nav Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    color: #000;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.gallery-nav.gallery-prev {
    left: 5px;
}

.gallery-nav.gallery-next {
    right: 5px;
}

.gallery-nav:hover {
    background: #000;
    color: #fff;
}

/* ========== ABOUT SERVICES ========== */
.about-services-section {
    padding: 80px 0 60px;
    background: #0c2e1a;
    position: relative;
    overflow: hidden;
}

.about-services-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(38, 211, 103, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.about-services-header {
    margin-bottom: 50px;
}

.about-services-header .section-heading {
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: -2px;
    line-height: 1.1;
}

.about-services-header .sub-title {
    color: rgba(255, 255, 255, 0.6);
}

/* Grid Layout */
.about-svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card */
.about-svc-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 420px;
    cursor: pointer;
    border: 1px solid rgba(38, 211, 103, 0.15);
    border-top: 3px solid #26d367;
}

/* Background Image */
.about-svc-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.about-svc-card:hover .about-svc-bg {
    transform: scale(1.08);
    filter: brightness(0.5);
}

/* Overlay — slides in from the right */
.about-svc-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(10, 31, 19, 0.6) 20%, rgba(10, 31, 19, 0.92) 50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px 32px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-svc-card:hover .about-svc-overlay {
    opacity: 1;
    transform: translateX(0);
}

/* Overlay Content */
.about-svc-overlay-content {
    max-width: 100%;
    text-align: left;
}

.about-svc-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #26d367;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.4s ease 0.1s;
}

.about-svc-card:hover .about-svc-num {
    opacity: 1;
    transform: translateY(0);
}

.about-svc-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: #2adb73;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease 0.15s;
}

.about-svc-card:hover .about-svc-title {
    opacity: 1;
    transform: translateY(0);
}

.about-svc-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #26d367, transparent);
    margin-bottom: 16px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.4s ease 0.2s;
}

.about-svc-card:hover .about-svc-divider {
    opacity: 1;
    transform: scaleX(1);
}

.about-svc-desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease 0.25s;
}

.about-svc-card:hover .about-svc-desc {
    opacity: 1;
    transform: translateY(0);
}

.about-svc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #26d367;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.3s;
}

.about-svc-card:hover .about-svc-link {
    opacity: 1;
    transform: translateY(0);
}

.about-svc-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.about-svc-link:hover i {
    transform: translateX(5px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .story-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mvv-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mvv-left {
        position: static;
    }

    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .about-stat-item:nth-child(2)::after {
        display: none;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-svc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-svc-card {
        height: 350px;
    }

    .about-services-section {
        padding: 60px 0 40px;
    }

    /* Show overlay permanently on touch devices */
    .about-svc-overlay {
        opacity: 1;
        transform: translateX(0);
        background: linear-gradient(105deg, transparent 0%, rgba(10, 31, 19, 0.5) 10%, rgba(10, 31, 19, 0.88) 45%);
    }

    .about-svc-num,
    .about-svc-title,
    .about-svc-divider,
    .about-svc-desc,
    .about-svc-link {
        opacity: 1;
        transform: none;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 10px);
    }

    .gallery-item img {
        height: 260px;
    }
}

@media (max-width: 768px) {

    /* ── Hero ── */
    .about-hero {
        min-height: auto;
        padding-top: 110px;
        padding-bottom: 50px;
    }

    .about-hero h1 {
        font-size: clamp(32px, 10vw, 48px);
        letter-spacing: -1px;
        line-height: 1.1;
    }

    .about-hero-desc {
        font-size: 15px;
    }

    /* Hide floating icons on mobile — they overflow */
    .hero-floats {
        display: none;
    }

    /* ── Section headings ── */
    .section-heading {
        font-size: clamp(26px, 8vw, 36px);
        letter-spacing: -1px;
    }

    /* ── Video section ── */
    .about-video-container {
        transform: none;
        /* remove the desktop scale(0.85) zoom */
        border-radius: 12px;
    }

    .about-video-container video {
        min-height: 220px;
    }

    /* ── Mission / Vision / Values ── */
    .mvv-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mvv-left {
        position: static;
    }

    .mvv-left-desc {
        max-width: 100%;
    }

    .mvv-card {
        padding: 28px 22px;
    }

    /* ── Stats ── */
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .about-svc-grid {
        grid-template-columns: 1fr;
    }

    .about-stat-item::after {
        display: none;
    }

    /* ── Journey Timeline ── */
    .journey-timeline {
        padding-left: 36px;
    }

    .timeline-line {
        left: 10px;
    }

    .timeline-dot {
        left: -28px;
        width: 12px;
        height: 12px;
    }

    /* Stack image above text vertically */
    .timeline-item {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 40px;
    }

    /* Hide thumbnail on very small screens to save space */
    .timeline-img {
        display: none;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    /* ── Team — horizontal scroll-snap slider on mobile ── */
    .team-section {
        overflow: hidden;
    }

    .team-slider-wrapper {
        position: relative;
        padding: 0 10px;
    }

    /* Show nav buttons on mobile */
    .team-nav {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid #e0e0e0;
        background: #fff;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        color: #000;
        font-size: 13px;
        transition: background 0.2s, color 0.2s;
    }

    .team-nav:hover {
        background: #26d367;
        color: #fff;
        border-color: #26d367;
    }

    .team-prev {
        left: 2px;
    }

    .team-next {
        right: 2px;
    }

    .team-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 8px 20px 20px;
        /* hide scrollbar but keep scrollability */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .team-grid::-webkit-scrollbar {
        display: none;
    }

    .team-card {
        flex: 0 0 75vw;
        max-width: 300px;
        scroll-snap-align: center;
    }

    .team-header {
        margin-bottom: 30px;
    }

    .team-img {
        height: 260px;
    }

    /* ── About Services Cards ── */
    .about-svc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-svc-card {
        height: 300px;
    }

    .about-svc-title {
        font-size: 22px;
    }

    .about-svc-overlay {
        padding: 24px 20px;
    }

    .about-services-section {
        padding: 50px 0 30px;
    }

    /* ── Gallery ── */
    .gallery-item {
        flex: 0 0 100%;
    }

    .gallery-item img {
        height: 220px;
    }

    .about-gallery-slider-wrapper {
        padding: 0 44px;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    /* ── CTA ── */
    .about-cta-section {
        padding: 50px 0;
    }

    .about-cta-section .section-heading {
        font-size: clamp(28px, 8vw, 40px);
    }

    .cta-desc {
        font-size: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .about-cta-section .btn-primary,
    .btn-outline-light {
        padding: 14px 30px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ============================================
   ABOUT PAGE PERFORMANCE OPTIMISATIONS
   ============================================ */
.about-video-container,
.about-gallery-track,
.team-card,
.mvv-card,
.about-svc-card {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .about-video-container,
    .about-gallery-track,
    .team-card:hover .team-img img,
    .mvv-card:hover,
    .team-card:hover {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}