:root {
  --bg: #0d0f14;
  --bg-soft: #151821;
  --card: #1b1f2a;
  --text: #e6e8ee;
  --muted: #8b91a3;
  --accent: #6c8cff;
  --accent-2: #4ad9c4;
  --border: #262b38;
  --radius: 14px;
  --max: 980px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  background: rgba(13, 15, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--accent);
}
.nav nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav nav a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* ---------- LAYOUT ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2rem);
}
.section__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 2rem;
  position: relative;
  padding-left: 1rem;
}
.section__title::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 70%;
  background: linear-gradient(var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) clamp(1rem, 5vw, 2rem) 2rem;
}
.hero__hi { color: var(--accent-2); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.5rem, 9vw, 5rem);
  line-height: 1.05;
  margin: .3rem 0;
  background: linear-gradient(120deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__role { font-size: clamp(1.2rem, 4vw, 2rem); color: var(--muted); font-weight: 600; }
.hero__role span { color: var(--accent); }
.hero__pitch { max-width: 600px; margin: 1.5rem 0 2rem; color: var(--muted); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0d0f14;
  box-shadow: 0 6px 20px rgba(108, 140, 255, .3);
}
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.about p { color: var(--muted); }
.about__facts { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.about__facts li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
  color: var(--muted);
}
.about__facts strong { display: block; color: var(--text); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- SKILLS ---------- */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.skills__group { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.skills__group h3 { margin-bottom: 1rem; color: var(--accent-2); font-size: 1rem; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  background: var(--card);
  border: 1px solid var(--border);
  padding: .35rem .75rem;
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text);
}
.tags--sm li { font-size: .75rem; padding: .25rem .6rem; }

/* ---------- TIMELINE ---------- */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; border-left: 2px solid var(--border); padding-left: 1.5rem; }
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.93rem; top: .4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline__date { font-size: .8rem; color: var(--accent-2); font-weight: 600; }
.timeline__item h3 { margin: .25rem 0 .5rem; }
.timeline__item h3 span { color: var(--muted); font-weight: 500; }
.timeline__item p { color: var(--muted); margin-bottom: .5rem; }
.timeline__item ul { color: var(--muted); padding-left: 1.2rem; font-size: .92rem; }

/* ---------- PROJECTS ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__desc { color: var(--muted); font-size: .9rem; flex: 1; }
.card__links { display: flex; gap: 1rem; margin-top: .5rem; }
.card__links a { color: var(--accent); font-size: .85rem; font-weight: 600; }
.card__links a:hover { text-decoration: underline; }

/* ---------- CONTACT ---------- */
.contact__intro { color: var(--muted); margin-bottom: 1.5rem; }
.contact { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; }
.contact input, .contact textarea {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
  color: var(--text);
  font: inherit;
}
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--accent); }
.contact button { align-self: flex-start; cursor: pointer; border: none; }
.contact__status { font-size: .9rem; min-height: 1.2em; }
.socials { display: flex; gap: 1.5rem; margin-top: 2rem; }
.socials a { color: var(--muted); font-weight: 600; transition: color .2s; }
.socials a:hover { color: var(--accent); }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; }
  .nav nav { gap: 1rem; }
}
