:root {
    --bg: #faf7f2;
    --text: #2c2420;
    --accent: #8b6f47;
    --card-bg: #ffffff;
    --muted: #8a7e74;
    --line: #d4c5b2;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

header p {
    color: var(--muted);
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

.timeline {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-dot {
    flex-shrink: 0;
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-dot::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent);
    margin-top: 0.75rem;
}

.timeline-content {
    flex: 1;
}

.timeline-month {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

.timeline-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.timeline-img-wrapper {
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(44, 36, 32, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 50%;
}

.timeline-img-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(44, 36, 32, 0.14);
}

.timeline-img-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(30, 24, 20, 0.8);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--card-bg);
    border-radius: 14px;
    max-width: 640px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(30, 24, 20, 0.3);
    animation: modalIn 0.25s ease;
    cursor: default;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal img {
    display: block;
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    background: #e8e0d8;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.modal img:hover {
    transform: scale(1.4);
}

.modal-body {
    padding: 1.75rem 2rem 2rem;
}

.modal-date {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-desc {
    color: var(--muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.modal-close:hover {
    background: #fff;
}

@media (max-width: 520px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        width: 40px;
    }

    .timeline-item {
        gap: 1rem;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .modal {
        margin: 1rem;
    }

    .modal-body {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

/* Future projects */
.future-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2rem;
}

.future-list {
    max-width: 480px;
    margin: 1.5rem auto 3rem;
    padding: 0 1.5rem;
}

.future-item {
    background: var(--card-bg);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
}
