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

:root {
    --clr-bg: #0f1117;
    --clr-surface: #1a1d27;
    --clr-text: #e2e4eb;
    --clr-text-muted: #9a9eb3;
    --clr-accent: #4f8cff;
    --clr-accent-hover: #3a6fd8;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 960px;
    --radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.7;
}

a {
    color: var(--clr-accent);
    text-decoration: none;
}

a:hover {
    color: var(--clr-accent-hover);
}

/* ===== Navigation ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 17, 23, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__brand {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: var(--clr-accent);
}

.nav__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav__links a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav__links a:hover {
    color: var(--clr-text);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--clr-text);
    border-radius: 2px;
    transition: transform 0.3s;
}

/* ===== Hero ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 4rem 2rem;
    text-align: center;
}

.hero__greeting {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.5rem;
}

.hero__name {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero__title {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 400;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}

.hero__tagline {
    font-size: 1rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
    background: var(--clr-accent);
    color: #fff;
    border: 2px solid var(--clr-accent);
}

.btn--primary:hover {
    background: var(--clr-accent-hover);
    border-color: var(--clr-accent-hover);
    color: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--clr-accent);
    border: 2px solid var(--clr-accent);
}

.btn--outline:hover {
    background: var(--clr-accent);
    color: #fff;
}

/* ===== Sections ===== */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section--alt {
    background: var(--clr-surface);
    max-width: 100%;
    border-radius: 0;
}

.section--alt > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 3px;
    background: var(--clr-accent);
    border-radius: 2px;
}

.section__content p {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
    max-width: 720px;
}

/* ===== Skills Grid ===== */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-card {
    background: var(--clr-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.skill-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--clr-accent);
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    padding: 0.25rem 0;
}

/* ===== Timeline ===== */
.timeline {
    border-left: 2px solid var(--clr-accent);
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.timeline__item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline__item::before {
    content: '';
    position: absolute;
    left: -1.85rem;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--clr-accent);
    border-radius: 50%;
}

.timeline__role {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
}

.timeline__company {
    display: block;
    color: var(--clr-accent);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.timeline__item p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .nav__toggle {
        display: flex;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--clr-surface);
        padding: 1rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav__links.is-open {
        display: flex;
    }

    .hero {
        min-height: 60vh;
        padding: 3rem 1.5rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }
}
