/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0d1117;
    --card-bg: #161b22;
    --accent-green: #3fb950;
    --accent-blue: #58a6ff;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --border: #30363d;
}

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

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* ===== Nav ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
    opacity: 1;
}

/* ===== Hero ===== */
.hero {
    padding: 10rem 2rem 5rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Timeline Section ===== */
.timeline-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: var(--border);
}

/* Entry */
.timeline-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    width: 100%;
}

/* Alternating layout */
.timeline-entry:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 2rem);
}

.timeline-entry:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 2rem);
}

/* Dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 1.2rem;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 2px var(--accent-green);
    z-index: 2;
}

/* Card */
.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-green);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    display: inline-block;
    background: rgba(63, 185, 80, 0.1);
    color: var(--accent-green);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.timeline-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* ===== CTA Section ===== */
.cta-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.cta-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: var(--bg);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(63, 185, 80, 0.3);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 8rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .timeline-section {
        padding: 1rem 1.5rem 4rem;
    }

    .timeline::before {
        left: 24px;
        transform: none;
    }

    .timeline-entry:nth-child(odd),
    .timeline-entry:nth-child(even) {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 3.5rem;
    }

    .timeline-dot {
        left: 24px;
    }

    .timeline-card {
        width: 100%;
    }

    .cta-section {
        padding: 0 1.5rem 4rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
    }
}
