/* about.css */

/* Header animations and styling - match home page */
header {
    animation: fadeInDown 0.8s ease;
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 0;
}

header h1 {
    font-size: 4rem;
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -1px;
    animation: fadeInDown 0.8s ease;
}

header p {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0;
    animation: fadeInDown 0.8s ease 0.2s backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro {
    max-width: 700px;
    margin: 1rem auto 2.5rem;
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-warm));
}

/* Timeline items */
.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1s ease, transform 1s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-primary);
    transition: all 0.3s ease;
    padding: 0;
}

.timeline-content h3 {
    font-size: 0.85rem;
    color: var(--accent-warm);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Timeline title button */
.timeline-title-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
    text-align: left;
    transition: color 0.3s ease;
    font-family: inherit;
}

.toggle-arrow {
    display: none;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

/* Only apply hover on devices that support it */
@media (hover: hover) and (pointer: fine) {
    .timeline-item:hover {
        transform: translateX(8px);
    }

    .timeline-item.visible:hover {
        transform: translateX(8px);
    }

    .timeline-title-btn:hover {
        color: var(--accent-primary);
    }
}

/* Show arrow only on touch devices */
@media (hover: none), (pointer: coarse) {
    .toggle-arrow {
        display: inline-block;
    }
}

/* Rotate arrow when expanded */
.timeline-title-btn[aria-expanded="true"] .toggle-arrow {
    transform: rotate(180deg);
}

/* Tech Tags */
.tech-tags {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin: 0 0 0.5rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.tech-tags.hidden {
    display: none;
}

.tech-sentence {
    min-height: 1.2em;
    margin-right: 2px;
}

.cursor {
    display: none;
    animation: blink 0.7s infinite;
}

.tech-icon {
    width: 2em;
    height: 2em;
    margin-top: -0.3rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    display: inline-block;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Large tablets / iPad landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    header h1 {
        font-size: 3.5rem;
    }

    .intro {
        font-size: 1.1rem;
        max-width: 650px;
    }

    .timeline-content h4 {
        font-size: 1.4rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }
}

/* Tablets / iPad portrait */
@media (max-width: 768px) {
    header h1 {
        font-size: 3rem;
    }

    .intro {
        font-size: 1.05rem;
        max-width: 90%;
        margin: 1rem auto 2rem;
    }

    .timeline {
        padding: 1.5rem 0;
    }

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

    .timeline-item {
        padding-left: 65px;
        margin-bottom: 2.5rem;
    }

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

    .timeline-content h3 {
        font-size: 0.8rem;
    }

    .timeline-content h4 {
        font-size: 1.3rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }

    .tech-tags {
        font-size: 0.9rem;
    }
}

/* Phones */
@media (max-width: 576px) {
    header {
        margin-bottom: 0.75rem;
    }

    header h1 {
        font-size: 2.25rem;
        margin-bottom: 0.25rem;
    }

    header p {
        font-size: 1rem;
    }

    .intro {
        font-size: 0.95rem;
        max-width: 95%;
        margin: 0.75rem auto 1.5rem;
        line-height: 1.6;
    }

    .timeline {
        padding: 1rem 0;
    }

    .timeline::before {
        left: 18px;
        width: 2px;
    }

    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        left: 10px;
        width: 18px;
        height: 18px;
        border: 3px solid var(--bg-primary);
        box-shadow: 0 0 0 2px var(--accent-primary);
    }

    .timeline-content h3 {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }

    .timeline-content h4 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .tech-tags {
        font-size: 0.85rem;
    }
}

/* Very small phones */
@media (max-width: 400px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .intro {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .timeline-item {
        padding-left: 45px;
        margin-bottom: 1.75rem;
    }

    .timeline-marker {
        left: 8px;
        width: 16px;
        height: 16px;
    }

    .timeline {
        padding: 1rem 0;
    }

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

    .timeline-content h3 {
        font-size: 0.7rem;
    }

    .timeline-content h4 {
        font-size: 1.05rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    .tech-tags {
        font-size: 0.8rem;
    }
}