* {
  box-sizing: border-box;
}

:root {
  --bg: #0b1220;
  --bg-2: #09101d;
  --panel: #131d32;
  --panel-2: #1a2744;
  --text: #f4f7fb;
  --muted: #c4d0e3;
  --accent: #5aa7ff;
  --accent-2: #91c4ff;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(90, 167, 255, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-2), #0d1730 42%, var(--bg));
}

a {
  color: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  border-bottom: 1px solid var(--border);
  padding-bottom: 3rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.hero-content {
  padding: 4.5rem 0 2rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 420px);
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo-card {
  width: 100%;
  max-width: 390px;
  background: linear-gradient(180deg, rgba(19, 29, 50, 0.92), rgba(26, 39, 68, 0.92));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  font-size: 0.82rem;
  margin: 0 0 0.85rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 900px;
}

.subtext {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.highlight-card {
  background: linear-gradient(180deg, rgba(19, 29, 50, 0.92), rgba(26, 39, 68, 0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.highlight-label {
  display: block;
  color: var(--accent-2);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 4.5rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
  max-width: 760px;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

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

.about-grid {
  align-items: start;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  padding-left: 1.1rem;
  margin-top: 0.75rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.cert-badge-wrap {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 1.1rem;
}

.cert-badge {
  width: 140px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.cert-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.cert-link:hover {
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.15rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #09101d;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

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

.card-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pill-earned {
  background: rgba(90, 167, 255, 0.14);
  color: var(--accent-2);
  border: 1px solid rgba(90, 167, 255, 0.25);
}

.pill-progress {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.muted-line {
  color: var(--muted);
}

.project-list li {
  margin-bottom: 0.45rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tech-stack span {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.resume-card {
  max-width: 760px;
}

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

.contact-card {
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 167, 255, 0.35);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.contact-label {
  display: block;
  color: var(--accent-2);
  font-size: 0.82rem;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-photo-wrap {
    justify-content: flex-start;
  }

  .hero-photo-card {
    max-width: 340px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 3.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-photo-card {
    max-width: 100%;
  }

  .hero-photo {
    aspect-ratio: 4 / 4.6;
  }

  .subtext {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .cta-row {
    flex-direction: column;
  }
}