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

:root {
  --gold: #B8953A;
  --gold-light: #D4AF60;
  --gold-pale: #F5EDD6;
  --navy: #0D1B2A;
  --navy-mid: #1A2F47;
  --navy-soft: #2C4A6E;
  --cream: #FAF7F0;
  --cream-dark: #F0EBE0;
  --text-dark: #0D1B2A;
  --text-mid: #3A4F66;
  --text-muted: #7A8FA6;
  --accent-teal: #1E6B6B;
  --white: #FFFFFF;
  --glass-light: rgba(250,247,240,0.78);
  --glass-light-strong: rgba(255,255,255,0.84);
  --glass-dark: rgba(13,27,42,0.72);
}

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", sans-serif;
  background: transparent;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("../assets/images/background.png") center center / cover no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,27,42,0.62), rgba(13,27,42,0.52));
  z-index: -1;
  pointer-events: none;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,149,58,0.25);
}

.nav-branding {
  display: flex; align-items: center; gap: 1rem;
}

.nav-icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-width: 40px;
  border-radius: 50%;
  background: rgba(184,149,58,0.15);
  border: 1px solid rgba(184,149,58,0.3);
  transition: all 0.3s ease;
  animation: navIconGlowPulse 5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(184,149,58,0.3), inset 0 0 8px rgba(184,149,58,0.1);
  text-decoration: none;
}

.nav-icon-link:hover {
  background: rgba(184,149,58,0.25);
  border-color: rgba(184,149,58,0.7);
  box-shadow: 0 0 24px rgba(184,149,58,0.5), inset 0 0 12px rgba(184,149,58,0.2);
  transform: scale(1.05);
}

@keyframes navIconGlowPulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(184,149,58,0.2), inset 0 0 6px rgba(184,149,58,0.06);
    border-color: rgba(184,149,58,0.28);
    background: rgba(184,149,58,0.11);
  }
  50% {
    box-shadow: 0 0 15px rgba(184,149,58,0.3), inset 0 0 8px rgba(184,149,58,0.1);
    border-color: rgba(184,149,58,0.4);
    background: rgba(184,149,58,0.15);
  }
}

.nav-icon {
  width: 26px; height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(184,149,58,0.4));
  transition: filter 0.3s ease;
}

.nav-icon-link:hover .nav-icon {
  filter: drop-shadow(0 0 8px rgba(184,149,58,0.8));
}

.nav-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem; font-weight: 300; color: var(--gold-light);
  letter-spacing: 0.08em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(184,149,58,0.45);
  background: rgba(255,255,255,0.02);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none; font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--gold-light); }

.hero {
  min-height: 100vh;
  background: rgba(13,27,42,0.58);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  position: relative; overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(184,149,58,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(30,107,107,0.1) 0%, transparent 60%);
}

.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1.5rem;
  position: relative;
  display: flex; align-items: center; gap: 1rem;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: "";
  width: 40px; height: 1px; background: var(--gold); opacity: 0.5;
}

.hero-portrait-wrap {
  width: clamp(150px, 22vw, 220px);
  aspect-ratio: 1;
  margin: 0.25rem 0 1.25rem;
  border-radius: 50%;
  padding: 7px;
  background: linear-gradient(145deg, rgba(184,149,58,0.95), rgba(30,107,107,0.6));
  box-shadow: 0 20px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.18);
  position: relative;
}

.hero-portrait-wrap::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(184,149,58,0.28);
  pointer-events: none;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(250,247,240,0.8);
}

.hero-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300; color: var(--white);
  line-height: 1.05; letter-spacing: -0.01em;
  position: relative;
}

.hero-name em {
  font-style: italic; color: var(--gold-light);
}

.hero-mba {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem; color: var(--gold);
  letter-spacing: 0.12em; font-weight: 400;
  margin-top: 0.75rem; position: relative;
}

.hero-title {
  margin-top: 2rem;
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,0.76);
  letter-spacing: 0.05em;
  position: relative;
}

.hero-title strong { color: rgba(255,255,255,0.98); font-weight: 500; }

.hero-tagline {
  max-width: 680px; margin: 2rem auto 0;
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,0.68);
  font-weight: 300; position: relative;
}

.hero-stats {
  display: flex; gap: 3rem; justify-content: center;
  margin-top: 3.5rem; position: relative;
  flex-wrap: wrap;
}

.hero-stat {
  min-width: 120px;
}

.hero-stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.8rem; font-weight: 300; color: var(--gold-light);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.62); margin-top: 0.35rem;
}

.hero-cta {
  display: flex; gap: 1rem; margin-top: 3rem; position: relative;
  flex-wrap: wrap; justify-content: center;
}

.btn-primary {
  padding: 0.85rem 2rem; background: var(--gold);
  color: var(--navy); font-weight: 500; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: none; cursor: pointer; text-decoration: none;
  transition: background 0.25s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  padding: 0.85rem 2rem; background: transparent;
  color: rgba(255,255,255,0.9); font-weight: 400; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.45); cursor: pointer; text-decoration: none;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
  display: inline-block;
}

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

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.5); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
}

.scroll-line {
  width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(184,149,58,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

section {
  padding: 6rem 2rem;
  position: relative;
}

section .container {
  background: var(--glass-light);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(8,16,27,0.18), inset 0 1px 0 rgba(255,255,255,0.32);
}
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}

.section-label::after {
  content: "";
  flex: 1; max-width: 60px; height: 1px;
  background: var(--gold); opacity: 0.4;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: var(--navy); line-height: 1.15;
}

.section-title em { font-style: italic; color: var(--gold); }

#about { background: transparent; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 5rem; align-items: start; margin-top: 3.5rem;
}

.about-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem; font-weight: 300; font-style: italic;
  color: var(--navy-mid); line-height: 1.6;
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem; margin-bottom: 2rem;
}

.cred-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--cream-dark);
}

.cred-icon {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--gold-pale); display: flex;
  align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--gold); font-weight: 500;
}

.cred-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }
.cred-text strong { color: var(--text-dark); font-weight: 500; display: block; margin-bottom: 0.1rem; }

.about-right p {
  font-size: 1rem; line-height: 1.85; color: var(--text-mid);
  margin-bottom: 1.25rem;
}

.about-right p strong { color: var(--navy); font-weight: 500; }

.value-pills {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem;
}

.pill {
  padding: 0.4rem 1rem;
  background: var(--cream); border: 1px solid var(--cream-dark);
  font-size: 0.78rem; color: var(--text-mid);
  letter-spacing: 0.04em; font-weight: 400;
}

#experience { background: transparent; }

.exp-timeline { margin-top: 3.5rem; position: relative; }

.exp-timeline::before {
  content: "";
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--gold), transparent);
}

.exp-item {
  display: grid; grid-template-columns: 24px 1fr;
  gap: 2rem; margin-bottom: 3rem; position: relative;
}

.exp-dot {
  width: 20px; height: 20px; min-width: 20px;
  border: 2px solid var(--gold); background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.25rem; position: relative; z-index: 1;
}

.exp-dot-inner { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

.exp-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.25rem; }

.exp-role {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem; font-weight: 400; color: var(--navy);
}

.exp-period {
  font-size: 0.75rem; color: var(--gold); font-weight: 500;
  letter-spacing: 0.08em; white-space: nowrap;
  background: var(--gold-pale); padding: 0.25rem 0.75rem;
}

.exp-company {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem;
  font-weight: 400;
}

.exp-company strong { color: var(--accent-teal); font-weight: 500; }

.exp-bullets { list-style: none; }

.exp-bullets li {
  font-size: 0.9rem; color: var(--text-mid); line-height: 1.7;
  padding: 0.35rem 0; display: flex; align-items: flex-start; gap: 0.75rem;
}

.exp-bullets li::before {
  content: "";
  width: 5px; height: 5px; min-width: 5px;
  background: var(--gold); border-radius: 50%; margin-top: 0.6rem;
}

.exp-highlight {
  margin-top: 0.75rem;
  background: var(--navy);
  padding: 0.75rem 1rem;
  display: inline-flex; align-items: center; gap: 0.75rem;
}

.exp-highlight-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem; font-weight: 300; color: var(--gold);
}

.exp-highlight-text { font-size: 0.78rem; color: rgba(255,255,255,0.8); line-height: 1.4; }

#projects { background: transparent; }
#projects .section-title { color: var(--white); }

#projects .container {
  background: var(--glass-dark);
  border-color: rgba(184,149,58,0.3);
}

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}

.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,149,58,0.2);
  padding: 2rem;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s ease;
}

.project-card:hover { border-color: rgba(184,149,58,0.5); background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.project-card:hover::before { transform: scaleX(1); }

.project-tag {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 1rem;
}

.project-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem; font-weight: 300; color: var(--white);
  line-height: 1.2; margin-bottom: 1rem;
}

.project-desc {
  font-size: 0.88rem; color: rgba(255,255,255,0.7);
  line-height: 1.75; margin-bottom: 1.5rem;
}

.project-impact {
  border-top: 1px solid rgba(184,149,58,0.2);
  padding-top: 1rem; display: flex; gap: 1.5rem; flex-wrap: wrap;
}

.impact-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem; font-weight: 300; color: var(--gold);
}

.impact-label { font-size: 0.7rem; color: rgba(255,255,255,0.58); letter-spacing: 0.08em; }

#skills { background: transparent; }

.skills-intro {
  margin-top: 1rem;
  max-width: 760px;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.skills-filters {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skills-filter-btn {
  border: 1px solid var(--cream-dark);
  background: var(--white);
  color: var(--text-mid);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.skills-filter-btn:hover,
.skills-filter-btn:focus-visible {
  border-color: var(--gold);
  color: var(--navy);
  outline: none;
}

.skills-filter-btn.is-active {
  background: var(--gold-pale);
  border-color: var(--gold);
  color: var(--navy);
}

.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2rem; margin-top: 3.5rem;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.25s, transform 0.25s;
}

.skill-card:hover {
  border-color: rgba(184,149,58,0.5);
  transform: translateY(-3px);
}


.skill-card-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.skill-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--navy);
}

.skill-card-copy {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-chip {
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-mid);
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  padding: 0.3rem 0.55rem;
}

.skill-proof-list {
  margin-top: 0.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--cream-dark);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.skill-proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.proof-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.proof-value {
  font-size: 0.81rem;
  color: var(--navy-soft);
  line-height: 1.55;
}

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

.tools-section { margin-top: 4rem; }

.tools-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500; margin-bottom: 1.5rem;
}

.tools-grid {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
}

.tool-chip {
  padding: 0.5rem 1.1rem;
  background: var(--cream); border: 1px solid var(--cream-dark);
  font-family: "DM Mono", monospace;
  font-size: 0.78rem; color: var(--text-mid);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tool-chip:hover { border-color: var(--gold); color: var(--navy); background: var(--gold-pale); }

#certifications { background: transparent; }

.certs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}

.cert-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}

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

.cert-badge {
  width: 40px; height: 40px;
  background: var(--gold-pale); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem; font-weight: 600; color: var(--gold);
  margin-bottom: 1.25rem;
}

.cert-name {
  font-size: 0.95rem; font-weight: 500; color: var(--navy);
  line-height: 1.45; margin-bottom: 0.4rem;
}

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

#education { background: transparent; padding: 5rem 2rem; }
#education .section-title { color: var(--white); }

#education .container {
  background: var(--glass-dark);
  border-color: rgba(184,149,58,0.3);
}

.edu-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-top: 3.5rem;
}

.edu-card {
  border: 1px solid rgba(184,149,58,0.25);
  padding: 2rem;
  position: relative;
}

.edu-degree {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem; font-weight: 300; color: var(--white);
  line-height: 1.3; margin-bottom: 0.5rem;
}

.edu-field { font-size: 0.85rem; color: var(--gold); margin-bottom: 0.5rem; font-weight: 500; }
.edu-school { font-size: 0.8rem; color: rgba(255,255,255,0.66); }

#contact { background: transparent; }

#about .container,
#skills .container,
#contact .container {
  background: var(--glass-light-strong);
}

.contact-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; margin-top: 3.5rem;
}

.contact-intro {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem; font-weight: 300; color: var(--navy);
  line-height: 1.35;
}

.contact-intro em { font-style: italic; color: var(--gold); }

.contact-sub {
  font-size: 0.92rem; color: var(--text-mid); line-height: 1.75;
  margin-top: 1.25rem;
}

.contact-links { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-link-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white); border: 1px solid var(--cream-dark);
  text-decoration: none; color: var(--text-dark);
  transition: border-color 0.25s, transform 0.25s;
}

.contact-link-item:hover { border-color: var(--gold); transform: translateX(6px); }

.contact-link-icon {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--gold-pale); display: flex;
  align-items: center; justify-content: center;
  color: var(--gold);
}

.contact-link-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-link-val { font-size: 0.9rem; font-weight: 500; color: var(--navy); }

footer {
  background: rgba(13,27,42,0.86);
  padding: 2rem; text-align: center;
  border-top: 1px solid rgba(184,149,58,0.2);
}

footer p {
  font-size: 0.75rem; color: rgba(255,255,255,0.56);
  letter-spacing: 0.08em;
}

.creator-credit {
  margin-top: 0.45rem;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.back-to-top {
  position: fixed;
  right: 1.35rem;
  bottom: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(184,149,58,0.65);
  background: rgba(13,27,42,0.9);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 130;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 0 0 1px rgba(184,149,58,0.12), 0 0 24px rgba(212,175,96,0.26);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: rgba(212,175,96,0.95);
  box-shadow: 0 0 0 1px rgba(184,149,58,0.2), 0 0 34px rgba(212,175,96,0.4);
}

.back-to-top:focus-visible {
  outline: none;
  border-color: rgba(212,175,96,0.95);
  box-shadow: 0 0 0 2px rgba(13,27,42,0.95), 0 0 0 4px rgba(212,175,96,0.55), 0 0 30px rgba(212,175,96,0.4);
}

.back-to-top-icon {
  width: 18px;
  height: 18px;
}

footer span { color: var(--gold); }

.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

.btn-resume-wrap {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
}

.btn-resume {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--gold-light); font-weight: 400; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid rgba(184,149,58,0.5); cursor: pointer; text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.2s;
}

.btn-resume:hover { border-color: var(--gold); color: var(--gold); background: rgba(184,149,58,0.08); transform: translateY(-2px); }

.btn-resume-tooltip {
  position: absolute; bottom: calc(100% + 10px); left: 50%;
  background: rgba(13,27,42,0.95); border: 1px solid rgba(184,149,58,0.35);
  color: var(--gold-light); font-size: 0.72rem; white-space: nowrap;
  padding: 0.45rem 0.9rem; letter-spacing: 0.06em;
  pointer-events: none; opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(4px);
}

.btn-resume-tooltip::after {
  content: "";
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgba(184,149,58,0.35);
}

.btn-resume-wrap:hover .btn-resume-tooltip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

.contact-resume-wrap { width: 100%; }

.contact-resume-btn {
  width: 100%; text-decoration: none;
  border-color: var(--gold) !important;
}

.contact-resume-icon {
  background: var(--gold-pale);
  color: var(--gold);
}

.contact-tooltip {
  bottom: auto; top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
}

.contact-tooltip::after {
  top: auto; bottom: 100%;
  border-top-color: transparent; border-bottom-color: rgba(184,149,58,0.35);
}

.contact-resume-wrap:hover .contact-tooltip {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

.section-label-projects {
  color: rgba(184,149,58,0.8);
}

@media (max-width: 1024px) {
  nav { padding: 0.95rem 2rem; }
  .nav-links { gap: 1.2rem; }
  .hero { padding-top: 7rem; }
  .hero-stats { gap: 1.75rem; }
  .about-grid, .contact-wrap { gap: 3rem; }
  .projects-grid, .skills-grid, .certs-grid { gap: 1.2rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  nav { align-items: flex-start; }
  .nav-links {
    max-width: 68%;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }
  .nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.09em;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .nav-branding { gap: 0.75rem; }
  .nav-icon-link { width: 36px; height: 36px; }
  .nav-icon { width: 22px; height: 22px; }
  .nav-logo { font-size: 1.05rem; letter-spacing: 0.06em; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.55rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(184,149,58,0.25);
  }
  nav.is-open .nav-links { display: flex; }
  .nav-links a {
    display: block;
    font-size: 0.78rem;
    padding: 0.45rem 0;
  }
  section { padding: 4rem 1.25rem; }
  section .container {
    border-radius: 14px;
    padding: 1.1rem;
    backdrop-filter: blur(5px);
  }
  .about-grid, .contact-wrap, .edu-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-portrait-wrap { width: clamp(130px, 35vw, 170px); margin-bottom: 1rem; }
  .hero-stats { gap: 2rem; }
  .hero-stat { min-width: 44%; }
  .hero-stat-num { font-size: 2rem; }
  .skills-intro { font-size: 0.9rem; }
  .skills-grid { margin-top: 2rem; gap: 1.2rem; }
  .skills-filter-btn { font-size: 0.68rem; }
  .skill-card { padding: 1.1rem; }
  .skill-card-title { font-size: 1.2rem; }
  .project-card, .cert-card, .edu-card { padding: 1.35rem; }
  .back-to-top { right: 0.9rem; bottom: 1rem; width: 42px; height: 42px; }
  .exp-timeline::before { display: none; }
}

@media (max-width: 480px) {
  nav { padding: 0.9rem 1rem; }
  .nav-logo { font-size: 0.9rem; }
  section { padding: 3.25rem 0.75rem; }
  section .container { padding: 0.95rem; }
  .hero { padding: 6.5rem 1rem 3rem; }
  .hero-title { font-size: 0.9rem; line-height: 1.5; }
  .hero-tagline { font-size: 0.92rem; line-height: 1.65; }
  .hero-stats { gap: 1rem; margin-top: 2.4rem; }
  .hero-stat { min-width: 47%; }
  .hero-stat-num { font-size: 1.65rem; }
  .hero-stat-label { font-size: 0.62rem; }
  .hero-cta { gap: 0.7rem; margin-top: 2.2rem; }
  .btn-primary, .btn-outline, .btn-resume { width: 100%; justify-content: center; }
  .project-card, .cert-card, .edu-card { padding: 1.1rem; }
  .exp-item { gap: 1.2rem; }
  .contact-link-item { padding: 1rem; }
  .contact-link-val { font-size: 0.82rem; overflow-wrap: anywhere; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 5.8rem;
    padding-bottom: 2.5rem;
  }
  .hero-tagline { margin-top: 1.2rem; }
  .hero-stats { margin-top: 1.5rem; }
  .hero-scroll { display: none; }
}
