/**
 * About Page - Bold Cinematic Design
 * Dramatic visuals with animations
 */

/* ========== CINEMATIC HERO ========== */
.about-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.4) 0%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.8) 100%
    );
}

.about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.about-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

.about-hero h1 span {
    display: block;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-hero p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.6s;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    animation: fadeUp 1s ease forwards, bounce 2s ease-in-out infinite;
    animation-delay: 1.2s, 1.5s;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #10b981, transparent);
    margin: 0 auto;
}

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

/* ========== SPLIT SECTIONS ========== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    overflow: hidden;
}

.split-section.reverse {
    direction: rtl;
}

.split-section.reverse > * {
    direction: ltr;
}

.split-image {
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.split-section:hover .split-image img {
    transform: scale(1.05);
}

.split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,185,129,0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.split-section:hover .split-image::after {
    opacity: 1;
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5rem;
    background: var(--bg-primary);
}

.split-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.split-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: none;
}

.split-content ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.split-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.split-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
}

/* ========== BIG QUOTE SECTION ========== */
.quote-section {
    position: relative;
    padding: 8rem 2rem;
    background: #000;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.25;
}

.quote-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.quote-content blockquote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.quote-content blockquote span {
    color: #10b981;
    font-weight: 600;
}

.quote-attribution {
    margin-top: 2rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ========== STATS BAR ========== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 0;
}

.stat-item {
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: rgba(255,255,255,0.1);
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== VALUES GRID ========== */
.values-section {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1200px;
    margin: 3rem auto 0;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    overflow: hidden;
}

.value-item {
    padding: 3rem;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-item:nth-child(3n) {
    border-right: none;
}

.value-item:nth-child(n+4) {
    border-bottom: none;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #10b981;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.value-item:hover::before {
    transform: scaleX(1);
}

.value-item:hover {
    background: var(--bg-secondary);
}

.value-item i {
    font-size: 2rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    display: block;
}

.value-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.value-item p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========== CTA SECTION ========== */
.about-cta {
    position: relative;
    padding: 6rem 2rem;
    background: #000;
    text-align: center;
    overflow: hidden;
}

.about-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.about-cta-content {
    position: relative;
    z-index: 1;
}

.about-cta h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ========== ANIMATIONS ON SCROLL ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .split-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .split-section.reverse {
        direction: ltr;
    }

    .split-image {
        height: 400px;
    }

    .split-content {
        padding: 3rem 2rem;
    }

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

    .value-item:nth-child(3n) {
        border-right: 1px solid var(--border-light);
    }

    .value-item:nth-child(2n) {
        border-right: none;
    }

    .value-item:nth-child(n+5) {
        border-bottom: none;
    }

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

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
}

@media (max-width: 640px) {
    .about-hero {
        min-height: 70vh;
    }

    .about-hero p {
        font-size: 1.125rem;
    }

    .split-content {
        padding: 2.5rem 1.5rem;
    }

    .split-content h2 {
        font-size: 2rem;
    }

    .quote-section {
        padding: 5rem 1.5rem;
    }

    .quote-section::before {
        background-attachment: scroll;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        border-right: none !important;
    }

    .value-item:last-child {
        border-bottom: none;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .about-cta h2 {
        font-size: 2rem;
    }
}

/* ========== DARK MODE ========== */
[data-theme="dark"] .split-content {
    background: var(--bg-primary);
}

[data-theme="dark"] .values-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .value-item {
    background: var(--bg-primary);
}

[data-theme="dark"] .value-item:hover {
    background: var(--bg-tertiary);
}
