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

:root {
    --bg:         #0f0f1a;
    --bg-dark:    #1a1a2e;
    --bg-mid:     #16213e;
    --primary:    #7c6ff7;
    --secondary:  #4f8ef7;
    --accent:     #a78bfa;
    --text:       #e2e8f0;
    --text-muted: rgba(226,232,240,0.6);
    --border:     rgba(124,111,247,0.25);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
    min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 50;
    background: rgba(15,15,26,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}
.nav-logo { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
    color: rgba(226,232,240,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

/* ── Layout ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.page-content { padding-top: 7rem; padding-bottom: 4rem; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 2rem;
}
.hero-tag {
    color: var(--secondary);
    font-size: 0.8rem;
    font-family: monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; margin-bottom: 1.25rem; }
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub { color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; max-width: 600px; margin: 0 auto 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; border: none; }
.btn-primary:hover { background: rgba(124,111,247,0.8); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: rgba(167,139,250,0.1); }

/* ── Skills ── */
.skills-section { background: var(--bg-dark); padding: 5rem 1.5rem; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; }
.title-bar {
    width: 4rem; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin-bottom: 2.5rem;
}
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--bg-mid);
    border: 1px solid var(--border);
    color: rgba(226,232,240,0.8);
    font-size: 0.875rem;
    transition: all 0.2s;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── Cards ── */
.card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.2s;
    margin-bottom: 1.25rem;
}
.card:hover { border-color: rgba(167,139,250,0.4); }
.card-list { display: flex; flex-direction: column; gap: 1rem; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.exp-role { font-size: 1.1rem; font-weight: 600; }
.exp-company { color: var(--secondary); font-size: 0.875rem; }
.exp-period { color: var(--text-muted); font-size: 0.8rem; font-family: monospace; }
.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.exp-bullets li { color: var(--text-muted); font-size: 0.9rem; display: flex; gap: 0.5rem; }
.exp-bullets li::before { content: "▸"; color: var(--accent); flex-shrink: 0; }

/* ── Projects ── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.proj-name { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.proj-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.proj-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(124,111,247,0.15);
    color: var(--accent);
    border: 1px solid rgba(124,111,247,0.3);
}
.proj-link { color: var(--secondary); font-size: 0.875rem; text-decoration: none; }
.proj-link:hover { color: var(--accent); }

/* ── About / Contact ── */
.avatar {
    width: 5rem; height: 5rem;
    border-radius: 50%;
    background: rgba(124,111,247,0.2);
    border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.25rem;
}
.about-text { color: var(--text-muted); line-height: 1.75; }
.contact-card { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 0.75rem; transition: color 0.2s; }
.contact-link:hover { color: var(--accent); }
.contact-icon { color: var(--secondary); }

/* ── Utilities ── */
.mt-lg { margin-top: 4rem; }
.mt-sm { margin-top: 0.5rem; }