/* css/bio-dive.css - Styles for the Bio ocean-dive timeline experience */

/* ===== Bio Quote ===== */
.bio-quote {
    margin-top: 1.5rem;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.bio-quote p {
    font-style: italic;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.bio-quote cite {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: normal;
}

/* ===== Bio Event Sections ===== */
.bio-event-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== Bio Event Card ===== */
.bio-event-card {
    max-width: 650px;
    width: 100%;
    position: relative;
    padding: 2.5rem;

    /* Start hidden for reveal animation */
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Alternating horizontal offset for visual flow */
.bio-event-card[data-direction="left"] {
    transform: translateX(-80px) translateY(60px);
    margin-right: auto;
    margin-left: 5%;
}

.bio-event-card[data-direction="right"] {
    transform: translateX(80px) translateY(60px);
    margin-left: auto;
    margin-right: 5%;
}

/* Revealed state */
.bio-event-card.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ===== Event Icon ===== */
.event-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(0, 119, 182, 0.4));
    border: 2px solid rgba(0, 212, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.2);
}

.event-icon i {
    font-size: 1.4rem;
    color: var(--shallow-water, #00d4ff);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

/* ===== Event Date ===== */
.event-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--shallow-water, #00d4ff);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 2rem;
}

/* ===== Event Heading ===== */
.bio-event-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: left;
}

/* ===== Event Text ===== */
.bio-event-card p {
    color: #c5d5e5;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ===== Connecting Thread ===== */
/* A subtle vertical line connecting event sections */
.bio-event-section::after {
    content: '';
    position: absolute;
    bottom: -4rem;
    left: 50%;
    width: 2px;
    height: 4rem;
    background: linear-gradient(to bottom,
            rgba(0, 212, 255, 0.3),
            rgba(0, 212, 255, 0.05));
    transform: translateX(-50%);
    pointer-events: none;
}

/* No connector after the last event */
.bio-event-section:last-of-type::after {
    display: none;
}

/* ===== Era Marker (on depth indicator) ===== */
.era-marker {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    white-space: nowrap;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
    transition: opacity 0.4s ease;
    min-height: 3rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .bio-event-section {
        min-height: 60vh;
        padding: 2rem 1rem;
    }

    .bio-event-card {
        padding: 1.5rem;
        max-width: 100%;
    }

    /* On mobile, all cards come from the bottom, no lateral offset */
    .bio-event-card[data-direction="left"],
    .bio-event-card[data-direction="right"] {
        transform: translateX(0) translateY(40px);
        margin-left: auto;
        margin-right: auto;
    }

    .bio-event-card.revealed {
        transform: translateX(0) translateY(0);
    }

    .bio-event-card h2 {
        font-size: 1.4rem;
    }

    .bio-event-card p {
        font-size: 0.95rem;
    }

    .event-icon {
        width: 44px;
        height: 44px;
    }

    .event-icon i {
        font-size: 1.1rem;
    }

    .bio-event-section::after {
        height: 2rem;
        bottom: -2rem;
    }
}

@media (max-width: 480px) {
    .bio-event-card {
        padding: 1.25rem;
    }

    .bio-event-card h2 {
        font-size: 1.2rem;
    }

    .bio-quote p {
        font-size: 1rem;
    }
}

/* ===== Bottom Navigation Bubbles ===== */
/* Reusable horizontal bubble nav for the bottom of any page */
.bottom-nav-bubbles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
}

.bottom-nav-bubbles .dive-bubble {
    width: 120px;
    height: 120px;
    margin-left: 0;
    animation-duration: 4s;
}

.bottom-nav-bubbles .dive-bubble .bubble-icon {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.bottom-nav-bubbles .dive-bubble .bubble-label {
    font-size: 0.85rem;
}

/* Stagger the float animation for each bubble */
.bottom-nav-bubbles .dive-bubble:nth-child(1) {
    animation-delay: 0s;
}
.bottom-nav-bubbles .dive-bubble:nth-child(2) {
    animation-delay: 0.7s;
}
.bottom-nav-bubbles .dive-bubble:nth-child(3) {
    animation-delay: 1.4s;
}

/* A label above the bubbles */
.bottom-nav-title {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .bottom-nav-bubbles {
        gap: 1.25rem;
        padding: 2rem 0.5rem;
    }

    .bottom-nav-bubbles .dive-bubble {
        width: 90px;
        height: 90px;
    }

    .bottom-nav-bubbles .dive-bubble .bubble-icon {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .bottom-nav-bubbles .dive-bubble .bubble-label {
        font-size: 0.7rem;
    }
}
