:root {
  --bg-900: #0b0f16;
  --bg-850: #111624;
  --bg-800: #151c2d;
  --bg-750: #1c2538;
  --bg-card: rgba(21, 28, 44, 0.82);
  --bg-card-light: rgba(29, 37, 56, 0.88);
  --accent: #ffd369;
  --accent-soft: rgba(255, 211, 105, 0.18);
  --accent-alt: #62d5ff;
  --text-primary: #f5f7ff;
  --text-secondary: #c7d2f8;
  --text-muted: #9aa7c7;
  --shadow-lg: 0 25px 60px rgba(5, 9, 15, 0.55);
  --shadow-md: 0 18px 40px rgba(8, 12, 20, 0.4);
  --shadow-sm: 0 10px 25px rgba(10, 16, 27, 0.35);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container-max: 1180px;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at 10% 10%, rgba(98, 213, 255, 0.12), transparent 50%),
              radial-gradient(circle at 80% 0%, rgba(255, 211, 105, 0.12), transparent 45%),
              linear-gradient(160deg, var(--bg-900) 0%, #101524 45%, #0c111c 100%);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

a:hover,
a:focus {
  color: var(--accent);
}

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

.hero {
  position: relative;
  padding: 48px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(33, 43, 68, 0.92), rgba(13, 21, 36, 0.85));
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  inset: -40% 10% auto;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 211, 105, 0.35) 0%, transparent 60%);
  filter: blur(70px);
  z-index: -1;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  background: rgba(255, 211, 105, 0.15);
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #1a1e2a;
  box-shadow: 0 12px 25px rgba(255, 211, 105, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(255, 211, 105, 0.28);
}

.btn-outline {
  background: rgba(255, 211, 105, 0.08);
  color: var(--accent);
  border: 1px solid rgba(255, 211, 105, 0.35);
}

.btn-outline:hover,
.btn-outline:focus {
  background: rgba(255, 211, 105, 0.16);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(231, 237, 255, 0.18);
  color: var(--text-secondary);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: rgba(231, 237, 255, 0.08);
  color: var(--accent);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  margin: 0;
  line-height: 1.15;
}

.hero-lede {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 0;
  margin: 12px 0 0;
  color: var(--text-secondary);
}

.hero-metrics li {
  background: rgba(10, 15, 25, 0.45);
  border: 1px solid rgba(255, 211, 105, 0.16);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  min-width: 180px;
  box-shadow: var(--shadow-sm);
}

.metric {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.portrait-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(29, 39, 59, 0.85), rgba(23, 28, 44, 0.85));
  box-shadow: var(--shadow-lg);
  width: min(100%, 360px);
}

.portrait-card img {
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 211, 105, 0.35);
  box-shadow: var(--shadow-md);
}

.badge-list {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(98, 213, 255, 0.12);
  border: 1px solid rgba(98, 213, 255, 0.4);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: #d5efff;
}

.hero-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-secondary);
}

.hero-tags span {
  background: rgba(16, 21, 33, 0.75);
  border-radius: 999px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 211, 105, 0.15);
}

.section {
  padding: clamp(64px, 8vw, 96px) 0;
  position: relative;
}

.section-light {
  background: rgba(15, 21, 33, 0.65);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 2.4vw, 2.5rem);
  margin: 0 0 12px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.4fr 1fr;
}

.about-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 211, 105, 0.12);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(98, 213, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  border: 1px solid rgba(98, 213, 255, 0.26);
}

.highlight-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-alt);
}

.focus-areas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-secondary);
}

.focus-areas i {
  color: var(--accent);
  margin-right: 10px;
}

.quote {
  font-style: italic;
  color: var(--text-secondary);
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}

.skills-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.3fr 1fr;
}

.skills-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.skill-panel {
  background: var(--bg-card);
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 211, 105, 0.12);
  box-shadow: var(--shadow-sm);
}

.skill-panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: var(--accent);
}

.skill-panel ul {
  padding-left: 18px;
  margin: 0;
  color: var(--text-secondary);
}

.skills-chart-card {
  background: var(--bg-card-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(98, 213, 255, 0.18);
  text-align: center;
}

.skills-chart-card h3 {
  margin-top: 0;
  color: #d5efff;
}

.chart-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 32px;
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 211, 105, 0.65), rgba(255, 211, 105, 0));
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  background: var(--bg-card);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 211, 105, 0.1);
  box-shadow: var(--shadow-sm);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -27px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 211, 105, 0.18);
}

.timeline-date {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-org {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.experience-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-card {
  background: rgba(98, 213, 255, 0.08);
  border: 1px solid rgba(98, 213, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  color: #d5efff;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}

.projects-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  background: var(--bg-card-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255, 211, 105, 0.12);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(10, 16, 27, 0.45);
}

.project-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-alt);
  margin-bottom: 12px;
}

.project-card h3 {
  margin-top: 0;
  color: var(--accent);
}

.project-card ul {
  padding-left: 18px;
  color: var(--text-secondary);
}

.links-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.link-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 211, 105, 0.1);
  transition: transform 0.2s ease, border 0.2s ease;
}

.link-card i {
  font-size: 1.8rem;
  color: var(--accent);
}

.link-card:hover,
.link-card:focus {
  transform: translateY(-3px);
  border-color: rgba(255, 211, 105, 0.3);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 211, 105, 0.12);
  box-shadow: var(--shadow-sm);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 211, 105, 0.2);
  background: rgba(11, 15, 22, 0.75);
  color: var(--text-primary);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(255, 211, 105, 0.45);
}

.contact-info {
  background: rgba(98, 213, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid rgba(98, 213, 255, 0.28);
  box-shadow: var(--shadow-sm);
}

.contact-info h3 {
  margin-top: 0;
  color: #d5efff;
}

.contact-info p {
  margin: 12px 0;
  color: var(--text-secondary);
}

.contact-info i {
  color: var(--accent);
  margin-right: 10px;
}

.social-links {
  margin-top: 16px;
  display: flex;
  gap: 14px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 211, 105, 0.1);
  border: 1px solid rgba(255, 211, 105, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover,
.social-links a:focus {
  background: rgba(255, 211, 105, 0.22);
  transform: translateY(-2px);
}

footer {
  padding: 32px 0 42px;
  background: rgba(11, 15, 22, 0.85);
  border-top: 1px solid rgba(255, 211, 105, 0.15);
  margin-top: 60px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 211, 105, 0.1);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 105, 0.25);
}

.back-to-top:hover {
  background: rgba(255, 211, 105, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1024px) {
  .hero-content,
  .skills-layout,
  .experience-layout,
  .contact-layout,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions,
  .hero-metrics {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .nav-bar {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .nav-actions {
    order: 3;
  }
}

@media (max-width: 680px) {
  .nav-links {
    justify-content: center;
  }

  .hero {
    padding-bottom: 64px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-metrics li {
    min-width: 150px;
  }

  .projects-grid,
  .links-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
