/* 
    Advanced Premium Redesign for About Page (v3)
    Aesthetics: Minimalist, Line & Border Animations, Clean UX
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --ap-primary: #2FA084;
    --ap-secondary: #1F6F5F;
    --ap-accent: #6FCF97;
    --ap-dark: #0a0f1a;
    --ap-dark-lighter: #161f30;
    --ap-light: #f8fafc;
    --ap-text: #475569;
    --ap-text-light: #94a3b8;
    --ap-white: #ffffff;
    --font-outfit: 'Outfit', sans-serif;
    --border-radius-lg: 32px;
    --border-radius-md: 24px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Base & Reset ─────────────────────────────────────────────── */
.about-page-v2 {
    background-color: var(--ap-white);
    font-family: var(--font-outfit);
    overflow-x: hidden;
    color: var(--ap-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.ap-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}



/* ─── Entry Animations ──────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ─── Asymmetrical Ultra-Modern Hero ──────────────────────────────────────── */
.ap-hero-asym {
    position: relative;
    min-height: 100vh;
    background: var(--ap-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Abstract Smoke Blobs */
.smoke-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 1;
    animation: drift 15s infinite alternate ease-in-out;
}

.smoke-1 { width: 500px; height: 500px; background: rgba(47, 160, 132, 0.4); top: -10%; left: -5%; }
.smoke-2 { width: 600px; height: 600px; background: rgba(111, 207, 151, 0.3); bottom: -20%; right: -10%; animation-delay: -5s; }
.smoke-3 { width: 400px; height: 400px; background: rgba(255, 255, 255, 0.1); top: 30%; left: 40%; animation-delay: -10s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

.ap-hero-asym-inner {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-text-col {
    flex: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ap-white);
    margin-bottom: 30px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.asym-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--ap-white);
    letter-spacing: -2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.asym-title span {
    display: block;
}

.outline-bold {
    color: transparent;
    -webkit-text-stroke: 2px var(--ap-accent);
    background: linear-gradient(135deg, #fff 0%, var(--ap-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% auto;
    animation: textGradient 5s linear infinite;
}

@keyframes textGradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.asym-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--ap-text-light);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 550px;
}

.hero-pulse-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    border: none;
    color: var(--ap-white);
    font-size: 1.1rem;
    font-family: var(--font-outfit);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.hero-pulse-btn i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--ap-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.hero-pulse-btn i::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--ap-primary);
    z-index: -1;
    animation: pulseBorder 2s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

@keyframes pulseBorder {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.hero-pulse-btn:hover i {
    transform: translateY(5px);
}

.hero-visual-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

/* Rotating SVG Stamp */
.rotating-stamp {
    position: relative;
    width: 300px;
    height: 300px;
    animation: spin 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-stamp svg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.stamp-icon {
    font-size: 4rem;
    color: var(--ap-white);
    animation: spin 20s linear infinite reverse;
}

.anim-slide-up {
    transform: translateY(120%);
    opacity: 0;
    animation: slideUpTitle 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpTitle {
    to { transform: translateY(0); opacity: 1; }
}

.anim-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSoft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSoft {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Unique Story Section ──────────────────────────────── */
.ap-story-v2 {
    padding: 50px 0;
    background-color: var(--ap-white);
}

.ap-story-row {
    display: flex;
    align-items: center;
    gap: 8%;
    margin-bottom: 90px;
}

.ap-story-row:last-child {
    margin-bottom: 0;
}

.ap-story-row.reverse {
    flex-direction: row-reverse;
}

/* Animated Border Image Container */
.ap-story-img-wrap {
    flex: 1.2;
    position: relative;
    padding: 20px; /* Space for the animated border */
}

.line-border {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.line-border::before,
.line-border::after,
.line-border span::before,
.line-border span::after {
    content: '';
    position: absolute;
    background: var(--ap-primary);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Top border */
.line-border::before { top: 0; left: 0; width: 0; height: 2px; }
/* Right border */
.line-border::after { top: 0; right: 0; width: 2px; height: 0; }
/* Bottom border */
.line-border span::before { bottom: 0; right: 0; width: 0; height: 2px; }
/* Left border */
.line-border span::after { bottom: 0; left: 0; width: 2px; height: 0; }

.ap-story-img-wrap.active .line-border::before,
.ap-story-img-wrap.active .line-border span::before { width: 100%; }

.ap-story-img-wrap.active .line-border::after,
.ap-story-img-wrap.active .line-border span::after { height: 100%; }

.ap-story-img-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.image-reveal-mask {
    position: absolute;
    inset: 0;
    background: var(--ap-dark);
    z-index: 2;
    transform-origin: right;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}

.ap-story-img-wrap.active .image-reveal-mask {
    transform: scaleX(0);
}

.ap-story-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
    transition: transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.ap-story-img-wrap.active .ap-story-img-card img {
    transform: scale(1);
}

/* Enhancing Hover Effect */
.ap-story-img-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.ap-story-row:hover .ap-story-img-card::after {
    opacity: 1;
}

.ap-story-row:hover .ap-story-img-card img {
    transform: scale(1.08);
}

.ap-story-text {
    flex: 1;
    padding: 20px 0;
}

/* Animated Horizontal Divider */
.anim-divider {
    height: 3px;
    background: var(--ap-primary);
    width: 0;
    margin-bottom: 30px;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.ap-story-text.active .anim-divider {
    width: 80px;
}

.ap-story-text h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--ap-dark);
}

.ap-story-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ap-text);
    margin-bottom: 24px;
    font-weight: 300;
}

/* ─── Core Pillars ─────────────────────────────────────── */
.ap-flip-section {
    background: var(--ap-light);
    padding: 50px 0;
}

.ap-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 100px;
    position: relative;
}

.ap-section-header .anim-divider {
    margin: 0 auto 30px;
}

.ap-section-header.active .anim-divider {
    width: 100px;
}

.ap-section-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.ap-section-header p {
    font-size: 1.2rem;
    color: var(--ap-text);
    font-weight: 300;
}

.ap-flip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.flip-card {
    background-color: var(--ap-white);
    border-radius: 0; /* Square minimalist feel */
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Draw borders on hover */
.flip-card::before, .flip-card::after {
    content: '';
    position: absolute;
    background: var(--ap-primary);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.flip-card::before { bottom: 0; left: 0; width: 0; height: 2px; }
.flip-card::after { bottom: 0; left: 0; width: 2px; height: 0; }

.flip-card .card-border-top-right::before, .flip-card .card-border-top-right::after {
    content: '';
    position: absolute;
    background: var(--ap-primary);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.flip-card .card-border-top-right::before { top: 0; right: 0; width: 0; height: 2px; }
.flip-card .card-border-top-right::after { top: 0; right: 0; width: 2px; height: 0; }

.flip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.flip-card:hover::before { width: 100%; }
.flip-card:hover::after { height: 100%; }
.flip-card:hover .card-border-top-right::before { width: 100%; }
.flip-card:hover .card-border-top-right::after { height: 100%; }

.flip-card-icon {
    width: 80px;
    height: 80px;
    background: var(--ap-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
    color: var(--ap-primary);
    transition: var(--transition-smooth);
}

.flip-card:hover .flip-card-icon {
    background: var(--ap-primary);
    color: var(--ap-white);
    transform: scale(1.1) rotate(5deg);
}

.flip-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--ap-dark);
}

.flip-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ap-text);
    font-weight: 300;
}

/* ─── Stats Showcase ─────────────────────────────── */
.ap-stats-v2 {
    background: var(--ap-dark);
    padding: 140px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ap-stats-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--ap-dark-lighter) 0%, var(--ap-dark) 100%);
}

.ap-stats-v2 .ap-container {
    position: relative;
    z-index: 2;
}

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

.stat-item-v2 {
    padding: 30px 20px;
    position: relative;
}

/* Border lines between stats */
.stat-item-v2:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -20px;
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

.stat-val-wrap {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--ap-white);
}

.stat-val-wrap span {
    background: linear-gradient(135deg, #fff 0%, var(--ap-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item-v2 h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--ap-text-light);
    font-weight: 500;
}

/* ─── Unique Final CTA (Marquee & Magnetic Button) ──────────────── */
.ap-cta-unique {
    position: relative;
    padding: 150px 0;
    background: var(--ap-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* Scrolling Marquee Background */
.cta-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    width: max-content;
    pointer-events: none;
    z-index: 1;
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

.ap-cta-unique:hover .cta-marquee {
    opacity: 0.4;
}

.cta-marquee span {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px var(--ap-white);
    white-space: nowrap;
    padding: 0 2vw;
    animation: marqueeScroll 20s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Interactive Center Area */
.cta-center-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-sub {
    color: var(--ap-accent);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Massive Circular Button */
.cta-circle-btn {
    position: absolute;
    top: 0; left: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ap-white);
    font-size: 1.2rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s, border-color 0.4s ease;
    z-index: 10;
}

.cta-circle-btn.visible {
    opacity: 1;
    visibility: visible;
}

.cta-circle-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ap-primary);
    border-radius: 50%;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.cta-circle-btn:hover {
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(47, 160, 132, 0.4);
}

.cta-circle-btn:hover::before {
    top: 0;
    border-radius: 0;
}

.cta-circle-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-circle-text i {
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.cta-circle-btn:hover .cta-circle-text i {
    transform: translateY(-5px) rotate(-45deg);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ap-story-row { flex-direction: column; gap: 80px; text-align: left; margin-bottom: 120px; }
    .ap-story-row.reverse { flex-direction: column; }
    .ap-story-img-wrap { width: 100%; max-width: 600px; margin: 0 auto; }
    
    .ap-flip-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .ap-stats-v2-grid { grid-template-columns: repeat(2, 1fr); gap: 60px; }
    .stat-item-v2:not(:last-child)::after { display: none; }
    
    .ap-cta-unique { flex-direction: column; }
    .cta-circle-btn {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        margin-top: 40px;
        top: auto;
        left: auto;
    }
}

@media (max-width: 768px) {
    .ap-hero-asym { padding-top: 100px; }
    .ap-story-v2 { padding: 100px 0; }
    .ap-flip-section { padding: 100px 0; }
    .ap-stats-v2 { padding: 100px 0; }
    
    .ap-cta-unique { 
        padding: 100px 0; 
        min-height: 50vh; 
        flex-direction: column; 
    }
    
    .cta-circle-btn {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        margin-top: 40px;
        top: auto;
        left: auto;
    }
    
    .ap-stats-v2-grid { grid-template-columns: 1fr; gap: 40px; }
    .ap-section-header { margin-bottom: 60px; }
    .ap-story-text h2 { font-size: 2.5rem; }
}
