:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --surface-card: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: rgba(13, 148, 136, 0.10);
  --accent-glow: rgba(13, 148, 136, 0.25);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.08);
  --violet: #7c3aed;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --header-height: 72px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #0b1120;
  --surface: rgba(15, 23, 42, 0.82);
  --surface-strong: rgba(15, 23, 42, 0.96);
  --surface-card: #0f172a;
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(226, 232, 240, 0.10);
  --line-strong: rgba(226, 232, 240, 0.20);
  --accent: #14b8a6;
  --accent-strong: #2dd4bf;
  --accent-soft: rgba(20, 184, 166, 0.14);
  --accent-glow: rgba(20, 184, 166, 0.30);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.12);
  --violet: #a78bfa;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.35);
}

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

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, var(--blue-soft), transparent 26rem),
    radial-gradient(circle at 90% 12%, var(--accent-soft), transparent 24rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  transition: background-color 200ms ease, color 200ms ease;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  background-image:
    linear-gradient(var(--text) 1px, transparent 1px),
    linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

main {
  flex: 1;
}

.content-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-pad {
  padding: 80px 0;
  position: relative;
}

/* ==================== HEADER & NAVBAR ==================== */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.nav-bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 1;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px var(--accent-glow);
  flex-shrink: 0;
}

.brand__copy {
  display: grid;
  line-height: 1.15;
  overflow: hidden;
}

.brand__name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__role {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
}

.nav-link {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 650;
  transition: all 160ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--surface-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.theme-button,
.resume-button,
.download-button,
.primary-cta,
.secondary-cta,
.tertiary-cta,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.theme-button {
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid var(--line);
}

.resume-button {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  box-shadow: 0 6px 18px var(--accent-glow);
}

.download-button {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid var(--line);
}

.theme-button:hover,
.resume-button:hover,
.download-button:hover,
.primary-cta:hover,
.secondary-cta:hover,
.tertiary-cta:hover,
.submit-btn:hover {
  transform: translateY(-2px);
}

.mobile-toggle {
  width: 38px;
  height: 38px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(148, 163, 184, 0.10);
  cursor: pointer;
  padding: 0;
}

.mobile-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 180ms ease;
}

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  margin-top: 8px;
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-panel.is-open {
  display: flex;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--text);
  transition: background 140ms ease;
}

.mobile-link i {
  width: 18px;
  color: var(--accent);
  text-align: center;
}

.mobile-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.mobile-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mobile-resume,
.mobile-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.86rem;
}

.mobile-resume {
  background: linear-gradient(135deg, var(--accent), #0f766e);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.mobile-download {
  border: 1px solid var(--line-strong);
  background: rgba(148, 163, 184, 0.10);
  color: var(--text);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding-top: 40px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.40;
}

.hero-orb--one {
  top: 5%;
  left: -8%;
  width: 340px;
  height: 340px;
  background: var(--accent-soft);
}

.hero-orb--two {
  top: 25%;
  right: -8%;
  width: 380px;
  height: 380px;
  background: var(--blue-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  max-width: 100%;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 850;
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
  word-break: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #38bdf8, var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--text-soft);
  margin-bottom: 16px;
  max-width: 100%;
}

.hero-tagline-badge i {
  color: var(--accent);
}

.hero-lede {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 24px 0;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.primary-cta {
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  color: #ffffff;
  font-size: 0.92rem;
  box-shadow: 0 8px 22px var(--accent-glow);
}

.secondary-cta {
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--surface-card);
  color: var(--text);
  border: 1px solid var(--line-strong);
  font-size: 0.92rem;
}

.tertiary-cta {
  height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.10);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stat-box {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.05);
}

.stat-box strong {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text);
  line-height: 1.1;
}

.stat-box span {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

/* Hero Profile Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

.profile-image-container {
  position: relative;
  z-index: 1;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(37, 99, 235, 0.12));
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-card) 92%, transparent);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.profile-badge i {
  color: var(--accent);
}

.profile-badge--top {
  top: 4%;
  left: -2%;
}

.profile-badge--middle {
  right: -4%;
  top: 45%;
}

.profile-badge--bottom {
  bottom: 2%;
  left: 6%;
}

/* ==================== SECTION HEADINGS ==================== */
.section-heading {
  margin-bottom: 38px;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
  word-break: break-word;
}

.section-heading p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
}

/* ==================== ARCHITECTURE PILLARS ==================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, border-color 180ms ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pillar-step {
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--muted);
  opacity: 0.6;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 750;
  margin: 0 0 6px 0;
}

.pillar-card p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.48;
  margin: 0;
}

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

.timeline-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: border-color 180ms ease;
}

.timeline-card--current {
  border-left: 4px solid var(--accent);
}

.timeline-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-date-badge {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
}

.timeline-location {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.current-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #10b981;
  font-size: 0.7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: fit-content;
}

.current-role-pill i {
  font-size: 0.5rem;
  animation: pulse 1.8s infinite ease-in-out;
}

.timeline-role-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.timeline-role-header h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0;
}

.timeline-company {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0 0 10px 0;
}

.timeline-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0 0 14px 0;
}

.timeline-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.48;
  margin-bottom: 5px;
}

.timeline-bullets li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
}

.timeline-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--text-soft);
}

/* ==================== SKILLS SECTION ==================== */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-category-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.category-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.category-header h3 {
  font-size: 0.95rem;
  font-weight: 750;
  margin: 0;
}

.category-skills-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 650;
}

.skill-name {
  color: var(--text);
}

.skill-pct {
  color: var(--accent);
}

.skill-bar-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: var(--skill-level, 80%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #38bdf8);
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.chip {
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.portfolio-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #020617;
  overflow: hidden;
}

.portfolio-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.portfolio-slide.is-active {
  opacity: 1;
}

.portfolio-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.portfolio-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.portfolio-title-row h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0 0 6px 0;
}

.portfolio-desc {
  font-size: 0.86rem;
  color: var(--text-soft);
  line-height: 1.48;
  margin: 0 0 12px 0;
}

.portfolio-features {
  font-size: 0.8rem;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.06);
}

.portfolio-features strong {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.portfolio-features ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.portfolio-features li {
  color: var(--text-soft);
  line-height: 1.42;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.portfolio-features li i {
  color: var(--accent);
  font-size: 0.68rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-pill {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.10);
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text);
}

/* ==================== EDUCATION & CERTIFICATIONS ==================== */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.column-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

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

.edu-card,
.cert-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.edu-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.edu-card__header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.edu-period {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
}

.edu-card__school {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.edu-card__location {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.edu-card__desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.42;
  margin: 0;
}

.cert-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cert-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cert-card__body {
  flex: 1;
}

.cert-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cert-card__top h4 {
  font-size: 0.92rem;
  font-weight: 750;
  margin: 0;
}

.cert-year {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.cert-card__issuer {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin: 2px 0 4px 0;
}

.cert-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.cert-card--languages .lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.lang-pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.10);
  font-size: 0.76rem;
  color: var(--text-soft);
}

/* ==================== CONTACT SECTION ==================== */
.contact-interactive-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-channels,
.contact-form-container {
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.contact-channels h3,
.contact-form-container h3 {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 4px 0;
}

.contact-channels p,
.contact-form-container p {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin: 0 0 18px 0;
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--line);
  transition: all 160ms ease;
}

.channel-item:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateX(3px);
}

.channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-card);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.channel-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.channel-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.channel-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.form-group .req {
  color: #ef4444;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(148, 163, 184, 0.06);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS safari */
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.submit-btn {
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  color: #ffffff;
  font-size: 0.92rem;
  box-shadow: 0 6px 20px var(--accent-glow);
  align-self: flex-start;
  padding: 0 24px;
}

.contact-alert {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.contact-alert--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid #10b981;
  color: #10b981;
}

.contact-alert--error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* ==================== RESUME VIEW PAGE ==================== */
.resume-page-wrapper {
  padding: 30px 0 60px 0;
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.btn-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  background: var(--surface-card);
  color: var(--text);
  cursor: pointer;
  transition: all 160ms ease;
}

.btn-tool--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-tool:hover {
  transform: translateY(-2px);
}

.resume-canvas-sheet {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  color: #1e293b;
  padding: 38px 42px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

[data-theme="dark"] .resume-canvas-sheet {
  background: #0f172a;
  color: #f8fafc;
}

.res-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 10px;
}

.res-name {
  font-size: 1.75rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0 0 3px 0;
}

.res-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0d9488;
}

.res-header-right {
  text-align: right;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}

[data-theme="dark"] .res-header-right {
  color: #94a3b8;
}

.res-header-right a {
  color: #0d9488;
  font-weight: 600;
}

.res-divider {
  height: 2px;
  background: #0f172a;
  margin: 6px 0 14px 0;
}

[data-theme="dark"] .res-divider {
  background: #334155;
}

.res-section {
  margin-bottom: 16px;
}

.res-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 3px;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

[data-theme="dark"] .res-heading {
  border-color: #334155;
}

.res-bullet {
  color: #0d9488;
  font-size: 0.72rem;
}

.res-summary {
  font-size: 0.85rem;
  line-height: 1.48;
  color: #334155;
  text-align: justify;
  margin: 0;
}

[data-theme="dark"] .res-summary {
  color: #cbd5e1;
}

.res-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  background: rgba(148, 163, 184, 0.06);
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .res-skills-grid {
  border-color: #334155;
}

.res-skill-cell {
  font-size: 0.8rem;
  line-height: 1.38;
  color: #334155;
}

[data-theme="dark"] .res-skill-cell {
  color: #cbd5e1;
}

.res-job {
  margin-bottom: 12px;
}

.res-job-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  margin-bottom: 3px;
}

.res-job-title {
  font-weight: 800;
}

.res-job-company {
  font-weight: 700;
  color: #0d9488;
}

.res-job-date {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.res-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.res-bullets li {
  position: relative;
  padding-left: 14px;
  font-size: 0.82rem;
  line-height: 1.42;
  color: #334155;
  margin-bottom: 2px;
}

[data-theme="dark"] .res-bullets li {
  color: #cbd5e1;
}

.res-bullets li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #0d9488;
  font-size: 0.95rem;
}

.res-dual-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.res-edu-item {
  margin-bottom: 8px;
}

.res-edu-degree {
  font-size: 0.84rem;
  font-weight: 800;
}

.res-edu-school {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d9488;
}

.res-edu-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.res-cert-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.res-cert-list li {
  position: relative;
  padding-left: 12px;
  font-size: 0.8rem;
  line-height: 1.42;
  color: #334155;
  margin-bottom: 2px;
}

[data-theme="dark"] .res-cert-list li {
  color: #cbd5e1;
}

.res-cert-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: #0d9488;
  font-size: 0.72rem;
}

.res-canvas-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
}

[data-theme="dark"] .res-canvas-footer {
  border-color: #334155;
}

.res-canvas-footer a {
  color: #0d9488;
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--surface-card);
  border-top: 1px solid var(--line);
  padding: 50px 0 26px 0;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 34px;
}

.footer-brand-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.footer-brand h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 3px 0;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.42;
  margin: 0;
}

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

.footer-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 650;
}

.footer-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-val {
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--text);
  word-break: break-all;
}

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

.footer-subtext {
  font-size: 0.72rem;
  color: var(--muted);
}

.social-icons {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 160ms ease;
}

.social-icons a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--accent);
}

.footer-bottom-links {
  display: flex;
  gap: 14px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .site-header,
  .site-footer,
  .resume-toolbar,
  .hero-orb {
    display: none !important;
  }

  .section-pad,
  .resume-page-wrapper {
    padding: 0 !important;
  }

  .resume-canvas-sheet {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    background: transparent !important;
    color: #000000 !important;
  }
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

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

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

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

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

@media (max-width: 768px) {
  .content-wrap {
    width: calc(100% - 24px);
  }

  .section-pad {
    padding: 55px 0;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
  }

  .nav-bar {
    min-height: 56px;
    padding: 6px 10px;
  }

  .nav-links {
    display: none;
  }

  .theme-text {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .resume-button span {
    display: none;
  }

  .resume-button {
    width: 38px;
    padding: 0;
  }

  .hero-section {
    padding-top: 24px;
    padding-bottom: 45px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6.2vw, 2.5rem);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stat-box {
    padding: 8px 10px;
  }

  .stat-box strong {
    font-size: 1.15rem;
  }

  .timeline-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

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

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

  .edu-cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-interactive-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-channels,
  .contact-form-container {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .resume-canvas-sheet {
    padding: 22px 18px;
  }

  .res-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .res-header-right {
    text-align: left;
  }

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

@media (max-width: 640px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .primary-cta,
  .secondary-cta,
  .tertiary-cta {
    width: 100%;
    height: 48px;
  }

  .submit-btn {
    width: 100%;
  }

  /* Profile Card on Small Mobile: keep badges inline/contained */
  .profile-card {
    width: 240px;
    height: 240px;
  }

  .profile-badge {
    display: none;
  }
}

@media (max-width: 440px) {
  .brand__role {
    display: none;
  }

  .brand__name {
    font-size: 0.95rem;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .hero-status-pill {
    font-size: 0.72rem;
  }

  .hero-tagline-badge {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
}
