/* =============================================
   Aditya Hegde — Portfolio
   Design System & Styles
   ============================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Colors */
  --bg-primary: #07070d;
  --bg-secondary: #0c0c15;
  --bg-card: #101018;
  --bg-card-hover: #15151f;
  --bg-nav: rgba(7, 7, 13, 0.82);

  --text-primary: #e2e2ed;
  --text-secondary: #8282a0;
  --text-muted: #505068;

  --accent: #00d4aa;
  --accent-hover: #00eabc;
  --accent-dim: rgba(0, 212, 170, 0.08);
  --accent-glow: rgba(0, 212, 170, 0.18);
  --accent-secondary: #6366f1;
  --accent-secondary-dim: rgba(99, 102, 241, 0.08);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --gradient-text: linear-gradient(
    135deg,
    var(--accent),
    var(--accent-secondary)
  );
  --gradient-card-border: linear-gradient(
    135deg,
    rgba(0, 212, 170, 0.2),
    rgba(99, 102, 241, 0.2)
  );

  /* Typography */
  --font-primary:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;

  --fs-xs: 0.75rem; /* 12px */
  --fs-sm: 0.875rem; /* 14px */
  --fs-base: 1rem; /* 16px */
  --fs-md: 1.125rem; /* 18px */
  --fs-lg: 1.25rem; /* 20px */
  --fs-xl: 1.5rem; /* 24px */
  --fs-2xl: 2rem; /* 32px */
  --fs-3xl: 2.5rem; /* 40px */
  --fs-4xl: 3.25rem; /* 52px */

  /* Spacing */
  --section-py: 100px;
  --container-max: 1120px;
  --card-padding: 32px;
  --gap: 24px;
  --gap-sm: 16px;
  --gap-xs: 8px;

  /* Effects */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.15s ease;
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.08);

  /* Navigation */
  --nav-height: 72px;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-4xl);
  font-weight: 700;
}
h2 {
  font-size: var(--fs-3xl);
}
h3 {
  font-size: var(--fs-xl);
}
h4 {
  font-size: var(--fs-lg);
}

p {
  color: var(--text-secondary);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-secondary);
}

/* ---------- Section Header ---------- */
.section__header {
  margin-bottom: 56px;
}

.section__label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section__label::before {
  content: ">";
  opacity: 0.5;
}

.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: 12px;
}

.section__description {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 600px;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: color var(--transition);
}

.nav__logo:hover {
  color: var(--accent);
}

.nav__logo span {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
  border-radius: 1px;
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: var(--transition);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 50% 0%,
      rgba(0, 212, 170, 0.04) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 20%,
      rgba(99, 102, 241, 0.03) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    black 20%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    black 20%,
    transparent 70%
  );
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 650px;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: var(--radius-sm);
}

.hero__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero__name {
  font-size: var(--fs-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.1;
}

.hero__title {
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.hero__summary {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--gap);
  margin-bottom: 32px;
}

.hero__photo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__photo {
  width: 260px;
  height: 260px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.hero__photo:hover {
  border-color: var(--accent);
  box-shadow: 0 0 50px rgba(0, 212, 170, 0.15);
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: var(--gap);
}

.hero__social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition);
}

.hero__social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: fill var(--transition);
}

.hero__social-link:hover {
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 212, 170, 0.25);
}

.btn--outline {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  background: transparent;
}

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

.btn--sm {
  padding: 8px 18px;
  font-size: var(--fs-xs);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============ RESUME MODAL ============ */
.resume-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.resume-modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

.resume-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition);
}

.resume-modal-overlay--open .resume-modal {
  transform: translateY(0) scale(1);
}

.resume-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.resume-modal__title {
  font-size: var(--fs-xl);
  font-weight: 700;
}

.resume-modal__close {
  color: var(--text-muted);
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.resume-modal__close:hover {
  color: var(--text-primary);
}

.resume-modal__close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.resume-modal__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 24px;
}

.resume-modal__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resume-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
}

.resume-option:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateX(4px);
}

.resume-option__icon {
  font-size: var(--fs-xl);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.resume-option__info {
  flex: 1;
}

.resume-option__title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: 2px;
}

.resume-option__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.resume-option__arrow {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
}

.resume-option:hover .resume-option__arrow {
  fill: var(--accent);
  transform: translateX(4px);
}

/* ============ EDUCATION ============ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  transition: all var(--transition);
}

.education-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.education-card__degree {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 4px;
}

.education-card__school {
  font-size: var(--fs-sm);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.education-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.education-card__badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.education-card__badge--highlight {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(0, 212, 170, 0.15);
}

.education-card__courses {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.education-card__courses-title {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.education-card__courses-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-tag {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ============ EXPERIENCE ============ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  position: relative;
  transition: all var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-text);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity var(--transition);
}

.timeline-card:hover::before {
  opacity: 1;
}

.timeline-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.timeline-card__role {
  font-size: var(--fs-xl);
  font-weight: 600;
}

.timeline-card__period {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.timeline-card__company {
  font-size: var(--fs-md);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}

.timeline-card__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.timeline-card__achievements {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-card__achievements li {
  position: relative;
  padding-left: 20px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline-card__achievements li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.timeline-card__achievements li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.timeline-card__impact {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap-sm);
}

.impact-stat {
  text-align: center;
  padding: 16px;
  background: var(--accent-dim);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 170, 0.1);
}

.impact-stat__value {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.impact-stat__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ PROJECTS ============ */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-bottom: 24px;
}

.project-card__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

.project-card__overview {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.8;
  max-width: 800px;
}

.project-card__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap-sm);
  margin-bottom: 28px;
}

.metric-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}

.metric-box:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.metric-box__value {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.metric-box__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: 28px;
}

.project-detail {
  padding: 20px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.project-detail__title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.project-detail__text {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-detail__list li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.6;
}

.project-detail__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.project-card__footer {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============ SKILLS ============ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  transition: all var(--transition);
}

.skill-category:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.skill-category__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  margin-bottom: 16px;
  font-size: var(--fs-lg);
}

.skill-category__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 16px;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.skill-badge:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ============ PUBLICATIONS ============ */
.publications-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.publication-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  transition: all var(--transition);
  display: flex;
  gap: var(--gap);
  align-items: flex-start;
}

.publication-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.publication-card__number {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 4px;
}

.publication-card__content {
  flex: 1;
}

.publication-card__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.publication-card__venue {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  margin-bottom: 10px;
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
}

.publication-card__summary {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============ LEADERSHIP ============ */
.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  transition: all var(--transition);
}

.leadership-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.leadership-card__role {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: 4px;
}

.leadership-card__org {
  font-size: var(--fs-md);
  color: var(--accent);
  margin-bottom: 16px;
}

.leadership-card__description {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.leadership-card__description li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.leadership-card__description li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.leadership-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-sm);
}

.leadership-stat {
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.leadership-stat__value {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--accent);
  display: block;
}

.leadership-stat__label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============ ADVANCED / DEEP DIVES ============ */
.deep-dives-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.deep-dive {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--card-padding);
  transition: all var(--transition);
}

.deep-dive:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.deep-dive__icon {
  font-size: var(--fs-2xl);
  margin-bottom: 16px;
}

.deep-dive__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: 16px;
}

.deep-dive__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deep-dive__item {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.deep-dive__item::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.4;
}

.deep-dive__item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ============ CONTACT ============ */
.contact-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-inner .section__label {
  justify-content: center;
}

.contact-inner .section__title {
  margin-bottom: 16px;
}

.contact-inner .section__description {
  margin: 0 auto 40px;
  text-align: center;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--gap);
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.contact-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ============ FOOTER ============ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.footer__text a {
  color: var(--accent);
  transition: opacity var(--transition);
}

.footer__text a:hover {
  opacity: 0.8;
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 {
  transition-delay: 0.1s;
}
.reveal--delay-2 {
  transition-delay: 0.2s;
}
.reveal--delay-3 {
  transition-delay: 0.3s;
}
.reveal--delay-4 {
  transition-delay: 0.4s;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  :root {
    --fs-4xl: 2.5rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.5rem;
    --section-py: 72px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    max-width: 100%;
    order: 2;
  }

  .hero__photo-wrapper {
    order: 1;
  }

  .hero__photo {
    width: 180px;
    height: 180px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__socials {
    justify-content: center;
  }

  .hero__label {
    align-self: center;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    padding: var(--card-padding);
  }

  .project-card__details {
    grid-template-columns: 1fr;
  }

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

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .leadership-card {
    grid-template-columns: 1fr;
    padding: var(--card-padding);
  }

  .deep-dives-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Nav */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid var(--border);
    z-index: 1000;
  }

  .nav__links--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--fs-md);
  }

  .nav__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  .nav__overlay--visible {
    display: block;
  }
}

@media (max-width: 600px) {
  :root {
    --fs-4xl: 2rem;
    --fs-3xl: 1.625rem;
    --section-py: 56px;
    --card-padding: 24px;
  }

  .container {
    padding: 0 16px;
  }

  .hero__actions {
    flex-direction: column;
    gap: var(--gap-sm);
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .project-card__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    width: 100%;
    justify-content: center;
  }

  .publication-card {
    flex-direction: column;
    gap: var(--gap-sm);
  }

  .leadership-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============ CHAT WIDGET ============ */
.chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
  transition: all var(--transition);
  border: none;
}

.chat-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 212, 170, 0.4);
}

.chat-fab svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform var(--transition);
}

.chat-fab--open svg {
  transform: rotate(90deg);
}

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 380px;
  height: 520px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  z-index: 1100;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition);
  overflow: hidden;
}

.chat-window--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-header__info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
}

.chat-header__title {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.chat-header__status {
  font-size: var(--fs-xs);
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-header__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.chat-header__close {
  color: var(--text-muted);
  padding: 4px;
  transition: color var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.chat-header__close:hover {
  color: var(--text-primary);
}

.chat-header__close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.6;
  animation: message-in 0.3s ease;
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-message--ai {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.chat-message--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: var(--radius-md) var(--radius-md) 2px var(--radius-md);
}

.chat-message--user::selection,
.chat-message--user *::selection {
  background: rgba(0, 0, 0, 0.35) !important;
  color: #ffffff !important;
}

.chat-message--ai::selection,
.chat-message--ai *::selection {
  background: var(--accent) !important;
  color: #07070d !important;
}

.chat-message--ai .chat-message__sender {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--text-muted);
  animation: typing-bounce 1.4s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition);
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.chat-send:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-send svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.chat-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-header__expand {
  color: var(--text-muted);
  padding: 4px;
  transition: all var(--transition);
  background: none;
  border: none;
  cursor: pointer;
}

.chat-header__expand:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.chat-header__expand svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.chat-window--expanded {
  width: 40vw;
  min-width: 500px;
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  .chat-window {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .chat-fab {
    bottom: 20px;
    right: 20px;
  }
}
