/* ===== Colors — change these to restyle the whole site ===== */
:root {
  --bg: #0b1020;
  --panel: #131a2e;
  --line: #24304f;
  --text: #e7ebf5;
  --muted: #9aa6c2;
  --accent: #7c8cff;
  --accent-2: #b06cff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.links { display: flex; gap: 22px; }
.links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero { display: flex; align-items: center; gap: 40px; padding-top: 80px; padding-bottom: 40px; }
.photo {
  width: 190px; height: 190px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(124, 140, 255, 0.12);
}
.eyebrow { color: var(--muted); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; font-weight: 800; margin: 6px 0 10px; }
.title {
  font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle { color: var(--muted); margin-top: 4px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff; text-decoration: none; font-weight: 700; font-size: 0.95rem;
  white-space: nowrap;
}
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn:hover { opacity: 0.9; }

/* ===== Sections ===== */
.section { padding-top: 56px; padding-bottom: 8px; scroll-margin-top: 60px; }
h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 20px; }
h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
h3 { font-size: 1.05rem; font-weight: 700; }
.about p { color: var(--muted); margin-bottom: 12px; max-width: 760px; }

/* ===== Experience ===== */
.timeline { border-left: 2px solid var(--line); padding-left: 24px; display: grid; gap: 26px; }
.job { position: relative; }
.job::before {
  content: ""; position: absolute; left: -31px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}
.job-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dates { color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.company { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin: 2px 0 8px; }
.job ul { padding-left: 18px; color: var(--muted); }
.job li { margin-bottom: 4px; }

/* ===== Cards (projects + skills) ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 0.94rem; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(124, 140, 255, 0.12); color: #c5cbff;
}
.card-links { display: flex; gap: 16px; }
.card-links a { color: var(--accent); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }
.skills .card p { display: none; }

/* ===== Education ===== */
.edu { display: grid; gap: 12px; }
.edu-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
}
.edu-item p { color: var(--muted); font-size: 0.94rem; }

/* ===== Pujiverse banner ===== */
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px; border-radius: 16px;
  background: linear-gradient(120deg, rgba(124,140,255,0.18), rgba(176,108,255,0.18));
  border: 1px solid var(--line);
}
.banner h2 { margin-bottom: 8px; }
.banner h2::after { display: none; }
.banner p { color: var(--muted); max-width: 640px; }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.contact-item {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  overflow-wrap: anywhere;
}
.contact-item:hover { border-color: var(--accent); }
.contact-item .label { color: var(--muted); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.footer { padding: 48px 20px 32px; color: var(--muted); font-size: 0.88rem; text-align: center; }

/* ===== Phones ===== */
@media (max-width: 720px) {
  .links { display: none; }
  .hero { flex-direction: column; text-align: center; padding-top: 48px; }
  .buttons { justify-content: center; }
  .photo { width: 150px; height: 150px; }
  .banner { flex-direction: column; align-items: flex-start; }
}
