:root {
  --bg: #0b1220;
  --bg-soft: #111a2f;
  --panel: rgba(17, 26, 47, 0.78);
  --panel-strong: rgba(10, 15, 28, 0.92);
  --text: #f4f7fb;
  --muted: #b8c2d6;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d4a45d;
  --gold-soft: rgba(212, 164, 93, 0.18);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 164, 93, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(73, 110, 214, 0.18), transparent 28%),
    linear-gradient(135deg, #08111f 0%, #0b1220 45%, #101a2f 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.letter-spacing {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.glass-nav {
  background: rgba(7, 12, 22, 0.68);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff !important;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.85;
  animation: drift 12s ease-in-out infinite;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(212, 164, 93, 0.2);
  top: 10%;
  left: -60px;
}

.orb-2 {
  width: 220px;
  height: 220px;
  background: rgba(83, 120, 230, 0.18);
  right: -40px;
  bottom: 10%;
  animation-delay: -4s;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--muted);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 164, 93, 0.75);
  animation: pulse 1.8s infinite;
}

.display-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.97;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.navbar-brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-copy {
  max-width: 58rem;
  color: #d1d8e7 !important;
  font-size: 1.05rem;
}

.btn-primary {
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-color: #10131a;
  --bs-btn-hover-bg: #f0bf71;
  --bs-btn-hover-border-color: #f0bf71;
  --bs-btn-hover-color: #0d1118;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-glow {
  box-shadow: 0 18px 45px rgba(212, 164, 93, 0.2);
}

.contact-strip {
  color: #dbe2f0;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.portrait-card {
  position: relative;
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.portrait-frame {
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(212, 164, 93, 0.18), rgba(255, 255, 255, 0.04));
  min-height: 460px;
  position: relative;
}

.portrait-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 460px;
}

.portrait-fallback {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at top, rgba(212, 164, 93, 0.22), transparent 45%), linear-gradient(180deg, rgba(15, 21, 38, 0.9), rgba(8, 13, 24, 0.95));
}

.fallback-badge {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.portrait-meta {
  text-align: center;
}

.section-pad {
  padding: 96px 0;
  position: relative;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2,
.content-card h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.accent-card {
  background: linear-gradient(180deg, rgba(212, 164, 93, 0.18), rgba(17, 26, 47, 0.86));
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mini-stat {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
}

.mini-stat-label {
  color: var(--muted);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #eef2f9;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.85rem;
  color: #d5dceb;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 0.4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(212, 164, 93, 0.9), rgba(255, 255, 255, 0.08));
}

.timeline-item {
  position: relative;
  padding-left: 52px;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 28px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(212, 164, 93, 0.14);
}

.timeline-card {
  position: relative;
}

.timeline-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.project-card {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 164, 93, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(17, 26, 47, 0.92));
}

.project-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(212, 164, 93, 0.15);
  color: #f3d2a1;
  font-size: 1.4rem;
}

.contact-section {
  padding-bottom: 120px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8edf7;
}

.contact-detail:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 120ms;
}

.delay-2 {
  transition-delay: 240ms;
}

.floating-card {
  animation: floatUp 5s ease-in-out infinite;
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -18px, 0) scale(1.08);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 164, 93, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(212, 164, 93, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 164, 93, 0);
  }
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 991.98px) {
  .display-title {
    font-size: clamp(2.4rem, 10vw, 4.2rem);
  }

  .hero-section {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .portrait-frame,
  .portrait-img {
    min-height: 380px;
  }

  .section-pad {
    padding: 72px 0;
  }
}

@media (max-width: 575.98px) {
  .content-card,
  .portrait-card {
    padding: 20px;
  }

  .timeline-item {
    padding-left: 42px;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-dot {
    left: 6px;
  }

  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .contact-pill {
    width: 100%;
    justify-content: flex-start;
    border-radius: 18px;
  }
}
