/* =========================
   Base / Reset
   ========================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: #0b1220;
  color: #e5e7eb;
}

a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================
   Layout
   ========================= */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 20px 90px;
}

.section { margin-top: 64px; padding-top: 16px; }
section { scroll-margin-top: 96px; }

/* =========================
   Typography
   ========================= */
h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.65rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 12px; }

.subtitle {
  margin-top: 8px;
  color: #cbd5e1;
  font-weight: 650;
}

.label {
  margin: 0 0 6px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 800;
}

.meta {
  margin: 4px 0 12px;
  color: #94a3b8;
  font-size: 0.95rem;
}

/* =========================
   Header / Nav
   ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo {
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-weight: 900;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #cbd5e1;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 12px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #ffffff;
}

/* =========================
   Buttons
   ========================= */
.cta {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cta:hover {
  background: rgba(96, 165, 250, 0.22);
  text-decoration: none;
  color: #ffffff;
}

.pill {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #cbd5e1;
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  text-decoration: none;
}

/* =========================
   Cards
   ========================= */
.card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.30);
}

.card.mini { padding: 14px; }

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #86efac;
  font-weight: 900;
  font-size: 0.85rem;
  height: fit-content;
}

/* =========================
   Hero / About
   ========================= */
.hero {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 16px;
  align-items: start;
}

.hero-left { display: grid; gap: 14px; }
.hero-right { display: grid; gap: 14px; }

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  justify-self: end;
}

/* =========================
   Lists / Tags
   ========================= */
ul { margin: 10px 0 0 18px; padding: 0; }
li { margin: 7px 0; }

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
}

.tags li {
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: #bfdbfe;
  font-size: 0.85rem;
  font-weight: 800;
}

/* =========================
   Tech bullets
   ========================= */
.tech-bullets {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 8px;
}

.tech-bullets li {
  margin: 0;
  padding-left: 14px;
  position: relative;
  font-size: 0.92rem;
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tech-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(191, 219, 254, 0.95);
}

/* =========================
   Experience Tabs
   ========================= */
.exp-tabs {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exp-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.exp-tab:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

.exp-tab.active {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

.exp-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

/* =========================
   Grids
   ========================= */
.grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-2 {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* =========================
   Contact
   ========================= */
.contact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

/* =========================
   Footer
   ========================= */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  text-align: center;
  color: #94a3b8;
  background: rgba(11, 18, 32, 0.65);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .about-photo { justify-self: start; max-width: 260px; }

  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);

    flex-direction: column;
    align-items: stretch;
    gap: 10px;

    padding: 12px;
    background: rgba(11, 18, 32, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
  }

  .nav-menu.open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-links a {
    display: block;
    width: 100%;
  }

  .cta {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .grid { grid-template-columns: 1fr; }
  .tech-bullets { grid-template-columns: 1fr; }
  .tech-bullets li { white-space: normal; }
}

