/* ─── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:        #0a0f1e;
    --bg-alt:    #0f1630;
    --surface:   #151c35;
    --accent:    #6c63ff;
    --accent2:   #a78bfa;
    --text:      #e2e8f0;
    --muted:     #8892a4;
    --border:    #1e2a45;
    --radius:    12px;
    --font:      'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── NAVBAR ───────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 6%;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 1.25rem; font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent2); }

/* ─── HERO ─────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 6rem 6% 4rem;
}

.hero-content {
    display: flex; align-items: center; gap: 4rem;
    max-width: 1100px; margin: 0 auto;
}

.hero-image-wrapper {
    flex-shrink: 0;
    width: 260px; height: 260px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    box-shadow: 0 0 40px rgba(108, 99, 255, 0.35);
}

.hero-image {
    width: 100%; height: 100%;
    border-radius: 50%; object-fit: cover;
    border: 4px solid var(--bg);
    /* Placeholder colour shown when no image is set */
    background: var(--surface);
}

.hero-greeting { color: var(--accent2); font-size: 1rem; font-weight: 500; }

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; line-height: 1.1;
    margin: .25rem 0;
}

.hero-title {
    font-size: 1.3rem; font-weight: 400;
    color: var(--muted); margin-bottom: 1rem;
}

.hero-bio { color: var(--muted); max-width: 480px; margin-bottom: 1.75rem; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.5rem; border-radius: 8px;
    font-weight: 600; font-size: .9rem; transition: all .25s;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent); color: #fff;
}
.btn-primary:hover { background: #554dcc; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(108,99,255,.4); }

.btn-outline {
    border: 2px solid var(--accent); color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.btn-large { padding: .85rem 2.5rem; font-size: 1rem; }

/* ─── SOCIAL ICONS ───────────────────────────────── */
.hero-socials { display: flex; gap: 1.25rem; }
.hero-socials a {
    color: var(--muted); font-size: 1.4rem;
    transition: color .2s, transform .2s;
}
.hero-socials a:hover { color: var(--accent2); transform: translateY(-3px); }

/* ─── SECTIONS ───────────────────────────────────── */
.section        { padding: 6rem 6%; }
.section-alt    { background: var(--bg-alt); padding: 6rem 6%; }

.section-title {
    font-size: 2rem; font-weight: 700; text-align: center;
    margin-bottom: 3.5rem; position: relative;
}
.section-title::after {
    content: ''; display: block;
    width: 50px; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    margin: .6rem auto 0;
}

/* ─── TIMELINE (EXPERIENCE) ─────────────────────── */
.timeline { max-width: 750px; margin: 0 auto; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
    width: 2px; background: var(--border);
}

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

.timeline-dot {
    flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); border: 3px solid var(--bg);
    box-shadow: 0 0 12px rgba(108,99,255,.5);
    z-index: 1;
}

.timeline-content {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
    flex: 1;
}

.timeline-content h3 { font-size: 1.1rem; margin-bottom: .2rem; }

.timeline-company { color: var(--accent2); font-size: .9rem; font-weight: 500; }
.timeline-date    { display: block; color: var(--muted); font-size: .82rem; margin: .25rem 0 .75rem; }

.timeline-content ul { padding-left: 1.1rem; list-style: disc; }
.timeline-content li { color: var(--muted); font-size: .9rem; margin-bottom: .3rem; }

/* ─── SKILLS ─────────────────────────────────────── */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; max-width: 900px; margin: 0 auto;
}

.skill-category {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem;
}

.skill-category h3 {
    font-size: .95rem; font-weight: 600; margin-bottom: 1rem;
    color: var(--accent2);
    display: flex; align-items: center; gap: .5rem;
}

.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tags span {
    background: rgba(108,99,255,.15); color: var(--accent2);
    border: 1px solid rgba(108,99,255,.3);
    padding: .25rem .75rem; border-radius: 20px; font-size: .82rem;
}

/* ─── PROJECTS ───────────────────────────────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1000px; margin: 0 auto;
}

.project-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.75rem;
    transition: transform .25s, box-shadow .25s;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }

.project-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem;
}
.project-header > i { font-size: 1.8rem; color: var(--accent); }

.project-links { display: flex; gap: .75rem; }
.project-links a { color: var(--muted); font-size: 1.1rem; transition: color .2s; }
.project-links a:hover { color: var(--accent2); }

.project-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.project-card p  { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }

.project-techs { display: flex; flex-wrap: wrap; gap: .45rem; }
.project-techs span {
    color: var(--accent); font-size: .78rem; font-family: monospace;
}
.project-techs span:not(:last-child)::after { content: ' ·'; margin-left: .45rem; }

/* ─── CONTACT ────────────────────────────────────── */
.contact-wrapper { text-align: center; }
.contact-sub { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }
.contact-links { display: flex; justify-content: center; gap: 2rem; margin-top: 1.5rem; }
.contact-links a {
    color: var(--muted); font-size: .95rem;
    display: flex; align-items: center; gap: .4rem;
    transition: color .2s;
}
.contact-links a:hover { color: var(--accent2); }

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
    background: var(--bg); text-align: center;
    padding: 1.5rem; color: var(--muted); font-size: .85rem;
    border-top: 1px solid var(--border);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
    .hero-content   { flex-direction: column; text-align: center; gap: 2rem; }
    .hero-buttons   { justify-content: center; }
    .hero-socials   { justify-content: center; }
    .hero-bio       { margin: 0 auto 1.75rem; }
    .nav-links      { gap: 1rem; font-size: .8rem; }
    .timeline::before { left: 12px; }
}