:root {
  --bg: #0f172a;
  --bg-alt: #111827;
  --card: #020617;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --radius-xl: 18px;
  --radius-2xl: 22px;
  --transition-fast: 180ms ease-out;
  --max-width: 1040px;
}

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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.brand-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: radial-gradient(circle at 30% 0, #22d3ee, #0f172a);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.nav-links {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
}

.nav-link {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-1px);
}

.nav-link.primary {
  background: var(--accent-soft);
  border-color: rgba(56, 189, 248, 0.7);
  color: var(--accent);
}

.nav-link.primary:hover {
  background: rgba(8, 47, 73, 0.9);
}

main {
  flex: 1;
}

/* HERO */

.hero {
  max-width: var(--max-width);
  /* increased top margin so text doesn't hide behind sticky nav */
  margin: 80px auto 24px;
  padding: 0 20px;
  display: grid;
  gap: 26px;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
    align-items: center;
  }
}

.hero-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), #020617);
  border-radius: 26px;
  border: 1px solid var(--border-subtle);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0.23;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-name {
  font-size: clamp(1.7rem, 3.1vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-role {
  font-size: 0.95rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-tag {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.hero-pill {
  font-size: 0.75rem;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.8); /* brighter border */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;                 /* bold text */
  color: var(--accent);             /* brighter text color */
  /* center & "justify" the text inside the pill */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35),
              0 0 18px rgba(56, 189, 248, 0.45); /* glow/highlight */
}


.hero-summary {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.meta-item {
  font-size: 0.8rem;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.85);
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.9);
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition: background var(--transition-fast), transform var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  color: #020617;
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 15px 35px rgba(8, 47, 73, 0.9);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(8, 47, 73, 1);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-soft);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.05rem;
  line-height: 0;
}

/* CONTACT CARD */

.hero-contact-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-2xl);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 6px;
  font-size: 0.82rem;
}

.contact-label {
  color: var(--text-soft);
  min-width: 70px;
}

.contact-value a {
  color: var(--accent);
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.78rem;
  color: var(--text-soft);
  transition: border-color var(--transition-fast), color var(--transition-fast),
    background var(--transition-fast), transform var(--transition-fast);
}

.pill-link:hover {
  border-color: rgba(56, 189, 248, 0.9);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

/* HERO RIGHT COLUMN */

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

.stat-card,
.skills-mini-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 16px 15px 14px;
}

.stat-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 0.17em;
  margin-bottom: 8px;
}

.stat-main {
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.skills-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.skills-tag {
  font-size: 0.76rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: var(--text-soft);
  white-space: nowrap;
}

/* MAIN SECTIONS */

.sections {
  max-width: var(--max-width);
  margin: 10px auto 60px;
  padding: 0 20px 30px;
  display: grid;
  gap: 26px;
}

.section {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(31, 41, 55, 0.85);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.7);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e5e7eb;
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.section-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .section-grid.two-cols {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  }
}

/* SKILLS */

.skills-columns {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .skills-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.skills-group-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.skills-list {
  list-style: none;
  font-size: 0.83rem;
  color: var(--text-main);
  display: grid;
  gap: 4px;
}

/* EXPERIENCE */

.experience-item {
  padding: 12px 12px 10px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.06), #020617);
  position: relative;
  overflow: hidden;
}

.experience-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 4px;
}

.role {
  font-size: 0.98rem;
  font-weight: 600;
}

.company {
  font-size: 0.83rem;
  color: var(--accent);
}

.exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.exp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-badge {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.9);
}

.exp-list {
  margin-left: 14px;
  padding-left: 4px;
  display: grid;
  gap: 4px;
  font-size: 0.83rem;
  color: var(--text-soft);
}

.exp-list li {
  line-height: 1.45;
}

/* EDUCATION & PUBLICATIONS */

.edu-item,
.pub-item {
  padding: 10px 10px 8px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 41, 55, 0.9);
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.85rem;
}

.edu-degree {
  font-weight: 600;
  margin-bottom: 2px;
}

.edu-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.pub-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.pub-link {
  font-size: 0.8rem;
  color: var(--accent);
  word-break: break-all;
}

.pub-detail {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 3px;
}

[id] {
  scroll-margin-top: 120px;
}


/* FOOTER */

footer {
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  padding: 14px 20px 18px;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
