:root {
  --bg: #0b1220;
  --bg-soft: #121b2d;
  --panel: rgba(15, 23, 42, 0.88);
  --panel-strong: #0f172a;
  --panel-border: rgba(148, 163, 184, 0.14);
  --text: #e5eefc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --highlight: #f59e0b;
  --container: 1160px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.2), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.14), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #0b1220 45%, #0f172a 100%);
}

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

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

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

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.4;
}

.orb-one {
  top: 8rem;
  left: -3rem;
  width: 14rem;
  height: 14rem;
  background: rgba(56, 189, 248, 0.25);
}

.orb-two {
  right: -2rem;
  top: 32rem;
  width: 12rem;
  height: 12rem;
  background: rgba(245, 158, 11, 0.14);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 16, 29, 0.55);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.nav-shell {
  min-height: 5rem;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  transition: color 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 300ms ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(0.3rem, -0.35rem);
}

.section {
  padding: 4rem 0;
}

.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
}

.hero.section {
  padding: 6rem 0;
}

.hero-grid,
.about-grid,
.resume-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.hero-card-copy h2,
.contact-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 8vw, 6rem);
  line-height: 0.9;
}

.hero-role {
  margin: 0.8rem 0 0;
  font-size: 1.4rem;
  color: #d5e8ff;
  font-weight: 700;
}

.hero-summary,
.section-heading p,
.card p,
.resume-item li,
.contact-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-summary {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #03111d;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

.button-secondary {
  border: 1px solid var(--panel-border);
  background: rgba(148, 163, 184, 0.08);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-strip article,
.card,
.hero-card,
.contact-card {
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.74));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.stat-strip article {
  padding: 1rem;
  border-radius: var(--radius-md);
}

.stat-strip strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
}

.stat-strip span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  padding: 1.1rem;
  border-radius: var(--radius-xl);
}

.hero-photo-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  aspect-ratio: 0.82;
  background: #08101e;
}

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

.hero-card-copy {
  padding: 1.15rem 0.35rem 0.25rem;
}

.hero-card-copy span {
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-card-copy h2 {
  margin: 0.4rem 0;
  font-size: 2rem;
}

.hero-card-copy p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
}

.about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.7rem;
}

.card h3 {
  margin: 0 0 1.2rem;
  font-size: 1.35rem;
}

.info-list,
.simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  text-align: right;
}

.about-points {
  display: grid;
  gap: 1.15rem;
}

.about-points h4,
.resume-item h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.about-points p,
.resume-item p {
  margin: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  min-height: 100%;
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-header {
  margin-bottom: 1rem;
}

.project-header h3 {
  margin: 0 0 0.8rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-tags span {
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-card ul {
  margin-top: auto;
}

.resume-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: start;
}

.resume-column {
  display: grid;
  gap: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 100%;
}

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.cert-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.cert-date {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.cert-card p {
  margin: 0;
  flex-grow: 1;
}

.resume-item + .resume-item {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.resume-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.resume-item-head span {
  color: var(--accent);
  white-space: nowrap;
  font-size: 0.92rem;
}

.resume-item ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.resume-item li + li,
.simple-list li + li {
  margin-top: 0.65rem;
}

.skill-bars {
  display: grid;
  gap: 1rem;
}

.skill-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.skill-bar-head span {
  font-weight: 500;
}

.skill-bar-head strong {
  color: var(--accent);
}

.bar {
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--highlight));
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tag-cloud span,
.contact-links a {
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(148, 163, 184, 0.08);
  padding: 0.75rem 1rem;
}

.simple-list li {
  color: var(--muted);
}

.contact-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.site-footer {
  padding: 1.5rem 0 2rem;
}

.footer-shell {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1.2rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .resume-layout,
  .service-grid,
  .projects-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .skills-grid,
  .certifications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card h3 {
    font-size: 1.15rem;
  }

  .tag-cloud span {
    padding: 0.65rem 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 2.5rem 0;
  }

  .hero.section {
    padding: 3.5rem 0;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 3.6rem);
  }

  .hero-role {
    font-size: clamp(1rem, 3vw, 1.4rem);
  }

  .nav-shell {
    position: relative;
  }

  .hamburger {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 300ms ease, opacity 300ms ease;
    background: rgba(7, 16, 29, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    z-index: 19;
  }

  .site-nav.is-open {
    max-height: 480px;
    opacity: 1;
  }

  .site-nav a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .footer-shell,
  .contact-links,
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-links,
  .hero-actions {
    width: 100%;
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .stat-strip,
  .resume-item-head,
  .certifications-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .resume-item-head {
    gap: 0.5rem;
  }

  .resume-item-head span,
  .info-list strong {
    white-space: normal;
    text-align: left;
  }

  .info-list li {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .skills-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }

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

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

  .card h3 {
    font-size: 1.1rem;
  }

  .tag-cloud span {
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}