/* ==========================================================================
   Nimra Abdul-Raouf — Editorial Portfolio Stylesheet
   Palette: Midnight Navy, Warm Alabaster, & Champagne Gold
   ========================================================================== */

:root {
  --bg: #faf9f6;
  --bg-tinted: #f2efe9;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --ink: #111827;
  --ink-muted: #4b5563;
  --ink-subtle: #6b7280;
  --navy: #0f172a;
  --accent: #a67c37;
  --accent-soft: rgba(166, 124, 55, 0.12);
  --accent-strong: #8c6423;
  --border: rgba(17, 24, 39, 0.1);
  --border-strong: rgba(17, 24, 39, 0.18);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container-max: 1120px;
  --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0b111e;
  --bg-tinted: #101829;
  --surface: #141e33;
  --surface-elevated: #19253d;
  --ink: #f3f4f6;
  --ink-muted: #cbd5e1;
  --ink-subtle: #94a3b8;
  --navy: #f8fafc;
  --accent: #d4af63;
  --accent-soft: rgba(212, 175, 99, 0.14);
  --accent-strong: #e4c47d;
  --border: rgba(248, 250, 252, 0.1);
  --border-strong: rgba(248, 250, 252, 0.2);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}

.ambient-glow--top {
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}

.ambient-glow--bottom {
  bottom: -200px;
  left: -160px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.08), transparent 70%);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-role {
  font-size: 0.72rem;
  color: var(--ink-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after,
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: border-color var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--transition);
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 24px 24px;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all var(--transition);
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 0.84rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--navy);
  color: #ffffff;
}

[data-theme="dark"] .btn--primary {
  background: var(--accent);
  color: #0b111e;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Sections & Typography
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section--tinted {
  background: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 40px;
}

.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.text-accent {
  color: var(--accent);
  font-style: italic;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.06rem;
  color: var(--ink-muted);
  max-width: 58ch;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
}

.meta-value {
  font-size: 0.88rem;
  font-weight: 600;
}

.meta-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

/* Profile Card */
.profile-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 99, 0.25);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 175, 99, 0.16), transparent 55%);
  pointer-events: none;
}

.profile-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.monogram-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid #d4af63;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: #d4af63;
  flex-shrink: 0;
}

.profile-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #d4af63;
}

.profile-card__name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #d4af63;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  color: #cbd5e1;
}

.profile-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.stack-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.copy-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 99, 0.12);
  border: 1px solid rgba(212, 175, 99, 0.35);
  color: #f8fafc;
  font-size: 0.84rem;
  transition: background var(--transition);
}

.copy-pill:hover {
  background: rgba(212, 175, 99, 0.22);
}

.copy-pill svg {
  width: 16px;
  height: 16px;
  color: #d4af63;
  flex-shrink: 0;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.about-prose {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--ink-muted);
}

.lead-text {
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 500;
}

.strengths-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.panel-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.strengths-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.strengths-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.strength-icon {
  color: var(--accent);
  font-size: 0.8rem;
  margin-top: 4px;
}

.strengths-list strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.strengths-list span {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Experience
   ========================================================================== */
.experience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.experience-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.experience-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 10px;
}

[data-theme="dark"] .experience-badge {
  color: var(--accent);
}

.experience-role {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
}

.experience-company {
  font-size: 1.02rem;
  color: var(--accent);
  font-weight: 600;
}

.experience-highlight {
  text-align: right;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-tinted);
  border: 1px solid var(--border);
}

.highlight-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.highlight-text {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

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

.experience-bullets li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.experience-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Projects
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

[data-theme="dark"] .filter-btn.is-active {
  background: var(--accent);
  color: #0b111e;
  border-color: var(--accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.project-card.is-hidden {
  display: none;
}

.project-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-subtle);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

[data-theme="dark"] .project-tag {
  color: var(--accent);
}

.project-title {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.project-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
}

.project-link svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition);
}

.project-link:hover svg {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Skills & Certificates
   ========================================================================== */
.skills-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.group-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.group-title--spaced {
  margin-top: 30px;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-pill {
  padding: 9px 15px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
}

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

.skill-pill--subtle {
  background: var(--bg-tinted);
  color: var(--ink-muted);
  box-shadow: none;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.cert-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.cert-item h4 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.cert-item p {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Education & Awards
   ========================================================================== */
.edu-awards-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 28px;
  border-left: 1.5px solid var(--border-strong);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-tinted);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.timeline-item h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.timeline-place {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.timeline-note {
  font-size: 0.85rem;
  color: var(--ink-subtle);
  margin-top: 4px;
}

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

.award-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.award-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.award-card h4 {
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.award-card p {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.contact-lead {
  color: var(--ink-muted);
  margin: 14px 0 26px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-card {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: border-color var(--transition), transform var(--transition);
}

button.contact-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contact-card__label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-subtle);
}

.contact-card__value {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-status {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--accent);
  min-height: 20px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  font-size: 0.86rem;
  color: var(--ink-subtle);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.back-to-top:hover {
  color: var(--accent);
}

/* ==========================================================================
   Modal & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11, 17, 30, 0.65);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 540px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin: 6px 0 12px;
}

.modal-desc {
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.modal-section h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
  margin-bottom: 10px;
}

.modal-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-section li {
  position: relative;
  padding-left: 16px;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.modal-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tech span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

[data-theme="dark"] .modal-tech span {
  color: var(--accent);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .toast {
  background: var(--accent);
  color: #0b111e;
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .skills-layout,
  .edu-awards-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-desktop,
  .hide-mobile {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .experience-bullets,
  .projects-grid,
  .awards-list {
    grid-template-columns: 1fr;
  }

  .experience-highlight {
    text-align: left;
  }
}
