/**
 * About Page Scroll Effects - Styles
 * Modern 2025-style animations and interactions
 */

/* ============================================
   HERO SECTION - PARALLAX
   ============================================ */

.about-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a2a2a 100%);
}

.about-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.about-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.75) 0%, rgba(42, 42, 42, 0.85) 100%);
    z-index: 1;
}

.about-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 200px 24px;
    max-width: 900px;
    will-change: transform, opacity;
}

.about-hero__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.about-hero__title {
    font-size: clamp(48px, 6vw, 84px);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-hero__subtitle {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 50px;
    opacity: 0.85;
}

.about-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

[data-animate] {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].is-animated {
    opacity: 1;
}

/* Fade Up */
[data-animate="fade-up"] {
    transform: translateY(60px);
}

[data-animate="fade-up"].is-animated {
    transform: translateY(0);
}

/* Fade Down */
[data-animate="fade-down"] {
    transform: translateY(-40px);
}

[data-animate="fade-down"].is-animated {
    transform: translateY(0);
}

/* Fade Left */
[data-animate="fade-left"] {
    transform: translateX(60px);
}

[data-animate="fade-left"].is-animated {
    transform: translateX(0);
}

/* Fade Right */
[data-animate="fade-right"] {
    transform: translateX(-60px);
}

[data-animate="fade-right"].is-animated {
    transform: translateX(0);
}

/* Scale */
[data-animate="scale"] {
    transform: scale(0.9);
}

[data-animate="scale"].is-animated {
    transform: scale(1);
}

/* Zoom In */
[data-animate="zoom"] {
    transform: scale(0.8);
}

[data-animate="zoom"].is-animated {
    transform: scale(1);
}

/* ============================================
   STATS SECTION - COUNTERS
   ============================================ */

.about-stats {
    padding: 120px 24px;
    background: var(--wp--preset--color--base-2, #f5f5f5);
}

.about-stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item__number {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.stat-item__label {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ============================================
   STORY SECTION - STICKY TITLE
   ============================================ */

.about-story {
    padding: 120px 24px;
    position: relative;
}

.about-story__header {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 70px;
}

.about-story__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.about-story__title {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.15;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.about-story__title.is-sticky {
    transform: scale(0.95);
    opacity: 0.9;
}

.about-story__content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 19px;
    line-height: 1.75;
}

.about-story__content p {
    margin-bottom: 28px;
}

/* Desktop: Two-column layout */
@media (min-width: 768px) {
    .about-story__content {
        columns: 2;
        column-gap: 80px;
    }
}

/* ============================================
   TOPIC CARDS - HORIZONTAL SCROLL ON MOBILE
   ============================================ */

.about-topics {
    padding: 120px 24px;
}

.about-topics__header {
    text-align: center;
    margin-bottom: 90px;
}

.about-topics__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.about-topics__title {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.15;
}

.topics-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.topics-grid {
    display: grid;
    gap: 40px;
    transition: all 0.3s ease;
}

/* Mobile: Horizontal scroll */
@media (max-width: 767px) {
    .topics-grid {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
        gap: 24px;
    }

    .topics-grid::-webkit-scrollbar {
        height: 8px;
    }

    .topics-grid::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .topics-grid::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }

    .topics-grid::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Desktop: Grid layout */
@media (min-width: 768px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.topic-card {
    min-width: 280px;
    padding: 50px 45px;
    border-radius: 16px;
    border-left: 3px solid var(--wp--preset--color--primary, #ff9800);
    background: var(--wp--preset--color--base, #fff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

@media (min-width: 768px) {
    .topic-card {
        min-width: auto;
    }
}

.topic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(255, 152, 0, 0.2);
}

.topic-card__title {
    font-size: 30px;
    font-weight: 600;
    margin-bottom: 20px;
}

.topic-card__description {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.85;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.scroll-indicator span {
    display: inline-block;
    animation: slideHint 2s infinite;
}

@keyframes slideHint {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

/* ============================================
   MISSION SECTION
   ============================================ */

.about-mission {
    padding: 120px 24px;
}

.about-mission__header {
    text-align: center;
    margin-bottom: 50px;
}

.about-mission__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.about-mission__title {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.15;
}

.about-mission__content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-mission__text {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.about-mission__cta {
    margin-top: 70px;
    padding: 60px;
    border-radius: 16px;
    border-left: 4px solid var(--wp--preset--color--primary, #ff9800);
    background: var(--wp--preset--color--base-2, #f5f5f5);
}

.about-mission__quote {
    font-size: 24px;
    font-style: italic;
    line-height: 1.65;
    margin-bottom: 30px;
}

/* ============================================
   TIMELINE - INTERACTIVE HIGHLIGHTS
   ============================================ */

.about-timeline {
    padding: 120px 24px;
}

.about-timeline__header {
    text-align: center;
    margin-bottom: 70px;
}

.about-timeline__label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.about-timeline__title {
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.15;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    border-left: 2px solid var(--wp--preset--color--primary, #ff9800);
    position: relative;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.is-active {
    opacity: 1;
    transform: translateX(10px);
}

.timeline-item__marker {
    position: absolute;
    left: -77px;
    top: 0;
    display: inline-block;
    padding: 12px 20px;
    background: var(--wp--preset--color--primary, #ff9800);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    transition: transform 0.3s ease;
}

.timeline-item.is-active .timeline-item__marker {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(255, 152, 0, 0.4);
}

.timeline-item__title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
}

.timeline-item__description {
    font-size: 18px;
    line-height: 1.75;
    margin-bottom: 50px;
}

/* Format cards within timeline */
.formats-grid {
    display: grid;
    gap: 40px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .formats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.format-card {
    padding: 45px 40px;
    border-radius: 12px;
    background: var(--wp--preset--color--base, #fff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.format-card__title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 14px;
}

.format-card__description {
    font-size: 16px;
    line-height: 1.7;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .timeline {
        padding-left: 40px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-item__marker {
        left: -60px;
        padding: 8px 14px;
        font-size: 14px;
    }
}

/* ============================================
   BUTTONS & MICRO-ANIMATIONS
   ============================================ */

.wp-block-button__link {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.button-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */

.about-cta {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
}

.about-cta__content {
    max-width: 1000px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-cta__title {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
}

.about-cta__text {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 50px;
    opacity: 0.85;
}

.about-cta__buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reduce-motion [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }

    .reduce-motion .about-hero__image {
        transform: none !important;
    }
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 767px) {
    .about-hero__content {
        padding: 150px 20px;
    }

    .about-stats {
        padding: 80px 20px;
    }

    .about-stats__grid {
        gap: 40px;
    }

    .about-story,
    .about-topics,
    .about-mission,
    .about-timeline {
        padding: 80px 20px;
    }

    .about-mission__cta {
        padding: 40px 30px;
    }

    .about-cta {
        padding: 80px 20px;
        min-height: 500px;
    }

    .about-cta__buttons {
        flex-direction: column;
        gap: 16px;
    }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

.about-hero__image,
.about-hero__content {
    will-change: transform;
}

/* Remove will-change after animation completes */
[data-animate].is-animated {
    will-change: auto;
}

/* GPU acceleration for smooth animations */
[data-animate],
.topic-card,
.format-card,
.timeline-item {
    transform: translateZ(0);
    backface-visibility: hidden;
}
