:root {
    --bg: #fafafa;
    --text-main: #000;
    --text-muted: #444;
    --border: #e0e0e0;
    --max-width: 900px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* NAVIGATION BAR */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-icon {
    color: var(--text-main);
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.nav-icon:hover {
    opacity: 0.6;
}

/* HERO SECTION */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 40px 80px;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.hero-title {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 30px 0;
    font-weight: 700;
}

.hero-summary {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-button {
    background: var(--text-main);
    color: var(--bg);
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.hero-button:hover {
    opacity: 0.85;
}

.hero-button-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.hero-button-secondary:hover {
    background: var(--text-main);
    color: var(--bg);
    opacity: 1;
}

/* SECTIONS */
.page {
    background: var(--bg);
}

.section {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 40px;
}

.section-header {
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

/* SNAPSHOT */
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.snapshot-card {
    padding: 0;
}

.snapshot-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.snapshot-value {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-main);
}

/* PROJECTS */
.card-grid {
    display: grid;
    gap: 50px;
}

.card {
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.card:last-child {
    border-bottom: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 12px;
}

.card-title {
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    margin: 0;
}

.card-chip {
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: var(--text-muted);
    white-space: nowrap;
}

.card-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: var(--text-muted);
}

.card-bullets {
    padding-left: 20px;
    margin: 15px 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.card-bullets li {
    margin-bottom: 8px;
}

.card-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.card-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
}

.card-link.external::after {
    content: " ↗";
}

/* TIMELINE / EXPERIENCE */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 10px;
}

.timeline-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-column-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 10px 0;
    color: var(--text-main);
}

.timeline-item-compact {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.timeline-item-compact:last-child {
    border-bottom: none;
}

.timeline-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 40px 0 25px 0;
    color: var(--text-main);
}

.timeline-section-title:first-of-type {
    margin-top: 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-item {
    display: flex;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
    margin-bottom: 6px;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    line-height: 1.3;
}

.timeline-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.timeline-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.timeline-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-top: 10px;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.skills-group {
    padding: 0;
}

.skills-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.skills-items {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* EDUCATION & CERTIFICATIONS */
.list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.list-item {
    padding: 0;
    line-height: 1.6;
}

.list-item strong {
    font-weight: 600;
    font-size: 1.05rem;
}

.cert-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cert-link:hover {
    opacity: 0.6;
}

/* CONTACT */
.contact-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.contact-row {
    display: flex;
    gap: 25px;
    margin-top: 25px;
}

.contact-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-button {
    background: var(--text-main);
    color: var(--bg);
    padding: 14px 32px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.contact-button:hover {
    opacity: 0.85;
}

/* FOOTER */
.footer {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav {
        padding: 0 20px;
        height: 70px;
    }

    .nav-logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-icon {
        padding: 6px;
    }

    .nav-icon svg {
        width: 18px;
        height: 18px;
    }

    #hero {
        padding: 100px 20px 60px;
    }

    .hero-buttons {
        margin-bottom: 40px;
    }

    .section {
        padding: 40px 20px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .snapshot-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-row {
        flex-direction: column;
        gap: 15px;
    }
}