/* About Page - Modern Layout */

body {
    background-color: #1a1a1a !important;
}

/* Remove padding from page container so sections can go full-width */
.about-page {
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ============================================================
   HERO — Full bleed umbrella illustration
   ============================================================ */
.about-header {
    position: relative;
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
    background-image: url('https://pocket-watch-asset-library.s3.us-east-1.amazonaws.com/shared/images/illustrations/umbrella-leadership-landscape/umbrella-leadership-landscape_web4k.webp');
    background-size: cover;
    background-position: center 30%;
    border-radius: 0;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin-bottom: 0;
}

.about-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.5) 0%,
        rgba(26, 26, 26, 0.3) 40%,
        rgba(26, 26, 26, 0.75) 100%
    );
}

.about-header h1,
.about-header h3,
.about-header .hero-ctas {
    position: relative;
    z-index: 1;
}

.about-header h1 {
    color: #ffffff;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 14px rgba(0, 0, 0, 0.85);
}

.about-header h3 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.2rem;
    max-width: 680px;
    line-height: 1.75;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: normal;
    margin-bottom: 0;
}

/* ============================================================
   SECTIONS — Open, breathing, no glass boxes
   ============================================================ */
.why, .who, .when, .where {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 0;
    padding: 4.5rem 2rem;
    color: #EBEBEB;
}

.why {
    background: linear-gradient(
        135deg,
        rgba(30, 60, 140, 0.35) 0%,
        rgba(123, 68, 193, 0.25) 50%,
        rgba(15, 30, 90, 0.4) 100%
    );
    border-top: 1px solid rgba(100, 150, 255, 0.2);
}

.when {
    background: rgba(0, 0, 0, 0.2);
}

.who {
    background: linear-gradient(
        135deg,
        rgba(154, 213, 202, 0.12) 0%,
        rgba(30, 150, 252, 0.1) 50%,
        rgba(154, 213, 202, 0.08) 100%
    );
    border-top: 1px solid rgba(154, 213, 202, 0.15);
}

.where {
    background: rgba(30, 150, 252, 0.04);
}

.why h2, .who h2, .when h2, .where h2 {
    color: #EBEBEB;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6);
}

.why h4 {
    color: rgba(235, 235, 235, 0.8);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    text-shadow: none;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    font-weight: normal;
}

/* Constrain team grid within full-width section */
.why .hero-illustration,
.who {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   GLASS UMBRELLA PHILOSOPHY SECTION
   ============================================================ */
.glass-umbrella-philosophy {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-intro {
    font-size: 1.2rem;
    color: rgba(235, 235, 235, 0.85);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.philosophy-lead {
    font-size: 0.85rem;
    color: rgba(235, 235, 235, 0.6);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.philosophy-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.philosophy-pillar {
    border-radius: 1rem;
    padding: 1.75rem;
}

/* Rain card — cool, stormy deep-blue */
.philosophy-pillar:first-child {
    background: linear-gradient(145deg,
        rgba(20, 50, 120, 0.55) 0%,
        rgba(10, 25, 80, 0.65) 100%
    );
    border: 1px solid rgba(100, 150, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(100, 150, 255, 0.1),
                0 4px 20px rgba(10, 30, 100, 0.35);
}

.philosophy-pillar:first-child h3 {
    color: #90c8ff;
    text-shadow: 0 0 12px rgba(100, 160, 255, 0.4);
}

/* Sunshine card — warm amber/gold */
.philosophy-pillar:last-child {
    background: linear-gradient(145deg,
        rgba(160, 100, 15, 0.45) 0%,
        rgba(200, 140, 20, 0.35) 100%
    );
    border: 1px solid rgba(220, 170, 60, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 200, 80, 0.12),
                0 4px 20px rgba(160, 100, 0, 0.25);
}

.philosophy-pillar:last-child h3 {
    color: #f5c842;
    text-shadow: 0 0 12px rgba(240, 180, 40, 0.4);
}

.philosophy-pillar h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    text-shadow: none;
}

.philosophy-pillar p {
    color: rgba(235, 235, 235, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-shadow: none;
}

.philosophy-closer {
    font-size: 1.15rem;
    color: #EBEBEB;
    font-style: italic;
    margin: 0;
}

@media (max-width: 640px) {
    .philosophy-pillars {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   HERO FLIP CARD — Fix perspective, right-sized
   ============================================================ */
.hero-card {
    perspective: 1000px;
    background: transparent;
    box-shadow:
        0 8px 32px rgba(123, 68, 193, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.25);
    border-radius: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    overflow: visible;
    transition: box-shadow 0.3s ease;
}

.hero-card:hover {
    box-shadow:
        0 12px 40px rgba(123, 68, 193, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-card .card-front {
    background: linear-gradient(135deg,
        rgba(30, 150, 252, 0.88) 0%,
        rgba(123, 68, 193, 0.82) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    backdrop-filter: none;
}

.hero-card .card-back {
    background: linear-gradient(160deg,
        rgba(22, 22, 28, 0.98) 0%,
        rgba(38, 36, 48, 0.98) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    color: #EBEBEB;
    text-shadow: none;
}

.hero-card .card-back::before {
    display: none;
}

.hero-card .card-back strong,
.hero-card .card-back em {
    color: #9AD5CA;
    text-shadow: none;
}

.hero-card .card-back h2,
.hero-card .card-back h3 {
    border-bottom: 1px solid rgba(154, 213, 202, 0.35);
    border-top: none;
    color: #EBEBEB;
}

.hero-card .card-back h3 {
    border-top: 1px solid rgba(154, 213, 202, 0.35);
    border-bottom: none;
}

/* Text-only card front */
.hero-card .card-front-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    min-height: 220px;
    text-align: center;
    gap: 0.75rem;
}

.hero-card .card-front-text h2 {
    color: #ffffff;
    font-size: 2rem;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.hero-card .card-front-text p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    max-width: 520px;
}

.hero-card .flip-chevron {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    user-select: none;
}

.hero-card:hover .flip-chevron {
    background: rgba(154, 213, 202, 0.18);
    border-color: rgba(154, 213, 202, 0.4);
    color: #9AD5CA;
}

/* ============================================================
   PEOPLE CARDS
   ============================================================ */
.people-card {
    perspective: 1000px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    box-shadow:
        0 4px 24px rgba(30, 150, 252, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.people-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 36px rgba(123, 68, 193, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.25);
    border-color: rgba(123, 68, 193, 0.25);
}

.people-card .card-inner .card-front {
    background: transparent;
}

.people-card .card-inner .card-back {
    background: linear-gradient(160deg,
        rgba(22, 22, 28, 0.97) 0%,
        rgba(38, 36, 48, 0.97) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.people-card .card-inner .card-back::before {
    display: none;
}

.people-card .card-inner h2,
.people-card .card-inner h3 {
    color: #EBEBEB;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.people-card .card-inner .card-back p {
    color: rgba(235, 235, 235, 0.9);
    text-shadow: none;
}

.maintainer-description {
    background: rgba(123, 68, 193, 0.08);
    border-top: 1px solid rgba(123, 68, 193, 0.22);
    padding: 1rem;
    margin: -1rem -1rem -1rem -1rem;
    border-radius: 0 0 1.25rem 1.25rem;
}

.maintainer-description h3 {
    color: #9AD5CA;
    text-shadow: none;
    margin-bottom: 0.5rem;
}

/* ============================================================
   TIMELINE & MAP
   ============================================================ */
.timeline, .community-map {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 1rem;
    padding: 1.5rem;
    overflow: hidden;
}

.timeline iframe,
.community-map iframe {
    border-radius: 0.75rem;
}

/* ============================================================
   IMAGE ENHANCEMENTS
   ============================================================ */
.people-card img,
.hero-card img {
    border-color: rgba(154, 213, 202, 0.35) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
    .about-header {
        min-height: 50vh;
        padding: 3rem 1.5rem;
        background-position: center center;
    }

    .about-header h1 {
        font-size: 2.2rem;
    }

    .about-header h3 {
        font-size: 1.05rem;
    }

    .why, .who, .when, .where {
        padding: 3rem 1.25rem;
    }

    .hero-card {
        width: 100%;
        max-width: 100%;
    }

    .people-card {
        margin-bottom: 1.25rem;
    }
}

/* ============================================================
   ACCESSIBILITY & SMOOTHING
   ============================================================ */
.hero-card:focus,
.people-card:focus {
    outline: 2px solid #9AD5CA;
    outline-offset: 3px;
}

html {
    scroll-behavior: smooth;
}

/* Pending-content sections/cards hidden until ready */
.hidden-pending {
    display: none;
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .people-card .card-inner .card-back,
    .hero-card .card-back {
        background: rgba(22, 22, 28, 0.98);
    }
}
