/* About page: hero, timeline, stats and support. */
/* === ABOUT PAGE (MODERN INDUSTRIAL) === */
.about-page .hero {
    background: linear-gradient(oklch(0.208 0.04 265.755 / 0.78), oklch(0.208 0.04 265.755 / 0.78)), url('/assets/editorial/facade.jpg');
    background-size: cover;
    background-position: center center;
    position: relative;
    padding: 10rem 0;
    text-align: center;
}

/* Enhanced hero with parallax */
.about-page .hero.hero--parallax {
    background: var(--color-primary);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
}

.about-page .hero.hero--parallax .hero-bg {
    background-image: url('/assets/editorial/facade.jpg');
    opacity: 0.35;
    filter: saturate(0.8);
}

.about-page .hero.hero--parallax .hero-overlay {
    background: linear-gradient(to bottom, oklch(0.208 0.04 265.755 / 0.3) 0%, oklch(0.208 0.04 265.755 / 0.7) 100%);
}

.about-page .hero::before {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(oklch(1 0 0 / 0.05) 1px, transparent 1px),
        linear-gradient(90deg, oklch(1 0 0 / 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
}

.about-lead {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.8;
    color: oklch(1 0 0 / 0.9);
    text-shadow: 0 2px 10px oklch(0 0 0 / 0.3);
}

.about-page h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.about-page p {
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.7;
}

/* Premium Stats (Glassmorphism) */
.stats-container {
    padding: 6rem 0;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.stats-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--blueprint-grid);
    opacity: 0.05;
}

.bg-blueprint {
    position: relative;
    overflow: hidden;
}

.bg-blueprint::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(oklch(0.208 0.04 265.755 / 0.03) 1px, transparent 1px),
        linear-gradient(90deg, oklch(0.208 0.04 265.755 / 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    z-index: 0;
    pointer-events: none;
    animation: bg-float 20s ease-in-out infinite alternate;
}

@keyframes bg-float {
    from { transform: translate(0, 0); }
    to { transform: translate(-20px, -20px); }
}

.bg-blueprint > * {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.stat-item {
    background: oklch(0.279 0.037 260.031);
    border: 1px solid oklch(1 0 0 / 0.08);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.4s var(--ease-out-expo), background-color 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
    position: relative;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: oklch(1 0 0 / 0.05);
    border-color: var(--color-accent);
}

.stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(0.588 0.139 241.966 / 0.1);
    border-radius: 16px;
    color: var(--color-accent);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.stat-item:hover .stat-icon {
    background: var(--color-accent);
    color: white;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: oklch(1 0 0 / 0.5);
}

/* === HISTORY TIMELINE === */
.timeline-section {
    position: relative;
    padding: 5rem 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical spine */
.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-accent) 10%,
        var(--color-accent) 90%,
        transparent 100%
    );
}

@media (min-width: 769px) {
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    padding-bottom: 3rem;
}

@media (min-width: 769px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 50px;
    }

    .timeline-item:nth-child(even) {
        margin-left: 50%;
        padding-left: 50px;
        padding-right: 0;
    }
}

/* Timeline marker */
.timeline-marker {
    position: absolute;
    left: 12px;
    top: 0;
    width: 26px;
    height: 26px;
    background: var(--color-primary);
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.3s var(--ease-out-expo), background-color 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
}

.timeline-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s var(--ease-out-expo);
}

.timeline-item:hover .timeline-marker::after {
    transform: scale(1);
}

@media (min-width: 769px) {
    .timeline-marker {
        left: auto;
        right: -13px;
    }

    .timeline-item:nth-child(even) .timeline-marker {
        right: auto;
        left: -13px;
    }
}

/* Timeline content card */
.timeline-content {
    background: white;
    padding: 2rem 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: white;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform: rotate(45deg);
}

@media (min-width: 769px) {
    .timeline-content::before {
        left: auto;
        right: -10px;
        border-left: none;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        border-top: 1px solid var(--border-color);
    }

    .timeline-item:nth-child(even) .timeline-content::before {
        right: auto;
        left: -10px;
        border-right: none;
        border-top: none;
        border-left: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
}

.timeline-item:hover .timeline-content {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px -15px oklch(0.208 0.04 265.755 / 0.12);
}

.timeline-year {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    background: oklch(0.588 0.139 241.966 / 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.timeline-text {
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.7;
    margin: 0;
}

/* Timeline reveal animation */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.timeline-item.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for timeline items */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }

@media (min-width: 769px) {
    .timeline {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
        max-width: var(--container-width);
    }

    .timeline::before,
    .timeline-marker,
    .timeline-content::before {
        display: none;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: auto;
        margin-left: 0;
        padding: 0;
    }

    .timeline-content {
        height: 100%;
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .timeline-item:hover .timeline-content {
        transform: none;
        border-color: var(--border-color);
        box-shadow: none;
    }
}

/* === ABOUT PAGE ENHANCEMENTS: RESPONSIVE === */
@media (max-width: 768px) {
    /* Stats responsive */
    .stats-container {
        padding: 3rem 0;
    }

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

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-number .stat-suffix {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    /* Timeline responsive */
    .timeline-section {
        padding: 3rem 0;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.15rem;
    }

    .timeline-text {
        font-size: 0.95rem;
    }

    /* Hero parallax responsive */
    .about-page .hero.hero--parallax {
        min-height: 50vh;
        padding: 5rem 0;
    }

    .about-page .hero.hero--parallax .hero-bg {
        /* Disable parallax on mobile for performance */
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-item {
        padding: 1.25rem 0.75rem;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-number .stat-suffix {
        font-size: 1.25rem;
    }

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

    .timeline::before {
        left: 16px;
    }

    .timeline-marker {
        left: 4px;
        width: 22px;
        height: 22px;
    }
}

/* Moved from page-home.css */
/* === ENHANCED STATS WITH COUNTER ANIMATION === */
.stats-container {
    background: var(--color-primary);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: oklch(1 0 0);
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-number .stat-suffix {
    font-size: 2.5rem;
    font-weight: 700;
    opacity: 0.8;
    margin-left: 0.1em;
    color: oklch(1 0 0 / 0.7);
}

/* Stat icon enhancements */
.stat-icon {
    position: relative;
}

.stat-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: oklch(0.588 0.139 241.966 / 0.2);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.stat-item:hover .stat-icon::before {
    opacity: 1;
}

/* Counter Animation */
.js-reveal-enabled .stat-number[data-count] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.stat-number[data-count].is-counting {
    opacity: 1;
    transform: translateY(0);
    animation: stat-gradient-shift 2s ease-out forwards;
}

.stat-number[data-count].counted {
    opacity: 1;
    transform: translateY(0);
    background-position: 100% 100%;
}

@media (prefers-reduced-motion: reduce) {
    .js-reveal-enabled .stat-number[data-count] {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
    }

    .hero-scroll-indicator,
    .status-green .status-dot {
        animation: none;
    }
}

@keyframes stat-gradient-shift {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}
/* === HERO PARALLAX === */
.hero--parallax {
    overflow: hidden;
}

.hero--parallax .hero-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.1s linear;
}

.hero--parallax .hero-overlay {
    position: absolute;
    inset: 0;
    background: oklch(0.208 0.04 265.755 / 0.82);
    z-index: 1;
}

.hero--parallax > .container {
    position: relative;
    z-index: 2;
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: oklch(1 0 0 / 0.6);
    animation: hero-scroll-bounce 2s ease-in-out infinite;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 3;
}

.hero-scroll-indicator:hover {
    color: var(--color-accent);
}

@keyframes hero-scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 768px) {
    .hero-scroll-indicator {
        display: none;
    }
}

/* About page hero specifics with parallax */
.about-page .hero.hero--parallax {
    background: var(--color-primary);
}

.about-page .hero.hero--parallax .hero-bg {
    background-image: url('/assets/editorial/facade.jpg');
    opacity: 0.4;
}

.rounded-8 { border-radius: 12px; }

/* Support Section Polish */
.about-support {
    position: relative;
}

.about-support .support-content .lead {
    max-width: 800px;
    margin: 0 auto;
}

/* Support & Features */
.about-support .support-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.support-highlights .feature-box {
    position: relative;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo);
    text-align: center;
    overflow: hidden;
}

.support-highlights .feature-box:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.support-highlights .feature-box .icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: var(--color-bg-body);
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.support-highlights .feature-box:hover .icon-wrapper {
    background: var(--color-accent);
    color: white;
}

.support-highlights .feature-box-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Quality certification */
.quality-badge-wrapper {
    position: relative;
    padding: 3rem 2rem;
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quality-badge-img {
    max-width: 160px;
    filter: grayscale(0.3);
    opacity: 0.9;
    transition: filter 0.25s ease, opacity 0.25s ease;
    border-radius: var(--radius-sm);
    outline: 1px solid oklch(0 0 0 / 0.1);
    outline-offset: -1px;
}

.quality-badge-wrapper:hover .quality-badge-img {
    filter: grayscale(0);
    opacity: 1;
}

.quality-badge-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--color-primary);
    line-height: 1;
    position: relative;
    display: inline-block;
}

.quality-badge-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
    opacity: 0.5;
}

/* Certification status */
.quality-stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: oklch(0.696 0.149 162.48 / 0.1);
    border: 1px solid oklch(0.696 0.149 162.48 / 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-success);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.quality-stamp svg {
    width: 14px;
    height: 14px;
}

/* Contact Card Refinements */
.about-contact .contact-card {
    margin-top: -4rem;
    z-index: 10;
}

