:root {
  --bg: #1c2333;
  --surface: rgba(34, 42, 60, 0.92);
  --surface-strong: #262f44;
  --text: #f4f7fb;
  --muted: #b8c2d6;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #5f8bff;
  --accent-deep: #3d63d9;
  --accent-soft: rgba(95, 139, 255, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(95, 139, 255, 0.12), transparent 26%),
    radial-gradient(circle at 82% 16%, rgba(80, 100, 220, 0.12), transparent 24%),
    linear-gradient(180deg, #20283a 0%, #1c2233 52%, #171d2b 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  opacity: 0.25;
  pointer-events: none;
}

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

.page-shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 34, 48, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #a9c1ff, #5f8bff);
  color: #162033;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.96rem;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #eaf1ff;
}

.section {
  padding: 72px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 140px);
  padding-top: 56px;
}

.hero-copy,
.hero-panel,
.intro-strip article,
.about-copy,
.skills-grid article,
.project-card,
.showcase-card,
.timeline-item,
.cert-item,
.contact-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(95, 139, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(41, 45, 62, 0.98), rgba(34, 37, 52, 0.95));
}

.eyebrow,
.small-label,
.meta-label,
.panel-topline,
.strip-number {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
}

.hero-intro {
  margin: 0 0 6px;
  color: #dfe4f2;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.hero h1 {
  margin: 0;
  line-height: 0.98;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  font-weight: 700;
}

.hero-role {
  max-width: 680px;
  margin: 18px 0 0;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
  color: #edf1ff;
}

.hero-summary,
.about-copy p,
.section-aside,
.showcase-card p,
.timeline-meta,
.timeline-detail,
.contact-panel p,
.project-description,
.project-insight,
.project-process,
.project-links span {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.72;
  color: var(--muted);
}

.hero-summary {
  max-width: 650px;
  margin: 18px 0 0;
  font-size: 1.02rem;
}

.hero-actions,
.contact-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(180deg, #b3c8ff, #5f8bff);
  color: #152036;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
}

.button-muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.button-muted.disabled {
  pointer-events: none;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-meta div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-panel {
  display: grid;
  grid-template-rows: 1.2fr 0.8fr;
  gap: 18px;
  padding: 18px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(180deg, rgba(41, 45, 62, 0.98), rgba(34, 37, 52, 0.95));
}

.panel-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(49, 53, 73, 0.95), rgba(36, 39, 55, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-visual-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 10px 0 6px;
  overflow: visible;
  border-radius: 26px;
}

.hero-visual-card {
  position: relative;
  width: min(100%, 458px);
  min-height: 486px;
  padding: 18px 18px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 50%, rgba(95, 139, 255, 0.06), transparent 46%),
    linear-gradient(180deg, rgba(34, 37, 52, 0.92), rgba(28, 31, 44, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-shot {
  position: relative;
  z-index: 2;
  width: min(84%, 348px);
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.25);
}

.hero-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: center 18%;
  height: auto;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.orbit-one {
  inset: 30px;
}

.orbit-two {
  inset: 108px;
  opacity: 0.34;
}

.hero-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(22, 28, 42, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-badge span {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge strong {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.hero-badge-top {
  top: 12px;
  left: 12px;
}

.hero-badge-bottom {
  right: 12px;
  bottom: 14px;
}

.social-rail {
  position: absolute;
  right: 18px;
  top: 50%;
  z-index: 4;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}

.social-rail a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(43, 53, 78, 0.98), rgba(24, 30, 44, 0.98));
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #edf4ff;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
}

.social-rail svg {
  width: 22px;
  height: 22px;
}

.social-rail a:hover,
.social-rail a:focus-visible {
  transform: translateX(-3px);
  border-color: rgba(95, 139, 255, 0.58);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34);
}

.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;
}

.score-ring {
  display: grid;
  place-items: center;
  align-self: center;
  width: 190px;
  height: 190px;
  margin: 18px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #eef4ff 0 53%, transparent 54%),
    conic-gradient(from 210deg, var(--accent) 0 72%, rgba(255, 255, 255, 0.16) 72% 100%);
}

.score-ring-inner {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(27, 34, 50, 0.96);
  text-align: center;
}

.score-ring-inner strong {
  font-size: 2.2rem;
}

.score-ring-inner span {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.76rem;
  color: var(--muted);
}

.signal-list,
.keyword-bars {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.signal-list li,
.keyword-bars div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-grid span,
.skill-pill,
.cert-item {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.tag-grid span,
.skill-pill {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(95, 139, 255, 0.08);
  border: 1px solid rgba(95, 139, 255, 0.16);
  color: #c8d6ff;
}

.bar-chart span {
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #d0b07b 0%, #8f6e42 100%);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-strip article,
.about-copy,
.contact-panel {
  padding: 26px;
  border-radius: var(--radius-md);
}

.strip-number {
  color: var(--accent);
  font-size: 0.82rem;
}

.intro-strip h2,
.showcase-card h3,
.project-card h3,
.timeline-item h3,
.card-header h3 {
  margin: 12px 0 10px;
  font-size: 1.35rem;
}

.intro-strip p,
.card-header strong,
.project-label,
.project-links,
.timeline-range {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.about-grid,
.section-heading-wide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.section-heading h2,
.contact-panel h2 {
  max-width: 740px;
  line-height: 1.02;
  font-size: clamp(1.95rem, 4vw, 3.05rem);
}

.section-heading-wide > div:first-child {
  max-width: 760px;
}

.section-heading-wide h2 {
  max-width: 760px;
  line-height: 1;
  font-size: clamp(2rem, 3.7vw, 2.9rem);
}

.section-heading-wide .section-aside {
  max-width: 760px;
  padding-top: 0;
  line-height: 1.75;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.skills-grid article {
  padding: 20px;
  border-radius: var(--radius-md);
}

.skills-grid h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(95, 139, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(42, 47, 66, 0.95), rgba(32, 36, 52, 0.96));
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.project-label {
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-links span {
  color: var(--muted);
}

.project-links a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
}

.project-mockup {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(53, 58, 80, 0.9), rgba(39, 43, 61, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.mockup-badges {
  display: flex;
  gap: 8px;
}

.mockup-badges span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.bar-chart {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  min-height: 140px;
}

.project-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-stack span {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.project-block strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.showcase-board {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
  margin-top: 28px;
}

.showcase-card {
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(95, 139, 255, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(42, 47, 66, 0.95), rgba(32, 36, 52, 0.96));
}

.showcase-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-wide {
  grid-column: span 2;
}

.card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.card-header strong {
  color: var(--accent);
  font-size: 2rem;
}

.small-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.week-grid span {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.week-grid .active {
  background: linear-gradient(180deg, rgba(159, 183, 255, 0.92), rgba(95, 139, 255, 0.92));
}

blockquote {
  margin: 16px 0 0;
  padding-left: 18px;
  border-left: 3px solid rgba(95, 139, 255, 0.42);
  color: #f4efe7;
  font-size: 1.06rem;
  line-height: 1.7;
}

.timeline-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(95, 139, 255, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(42, 47, 66, 0.95), rgba(32, 36, 52, 0.96));
}

.timeline-range {
  color: var(--accent);
  font-size: 0.88rem;
}

.timeline-meta {
  margin-top: 10px;
  font-size: 0.96rem;
}

.timeline-detail {
  margin-top: 10px;
  font-size: 0.98rem;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.cert-item {
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(95, 139, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(42, 47, 66, 0.95), rgba(32, 36, 52, 0.96));
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 42px 0 12px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero,
  .about-grid,
  .section-heading-wide,
  .contact-panel,
  .showcase-board {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .social-rail {
    position: static;
    transform: none;
    grid-auto-flow: column;
    justify-content: start;
    margin-top: 18px;
  }

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

  .card-wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .site-header {
    top: 8px;
    padding: 14px;
    border-radius: 24px;
  }

  .site-nav {
    gap: 12px;
    font-size: 0.9rem;
  }

  .section {
    padding-top: 56px;
  }

  .hero-copy,
  .hero-panel,
  .project-card,
  .timeline-item,
  .showcase-card,
  .contact-panel {
    padding: 20px;
  }

  .hero-badge-top,
  .hero-badge-bottom {
    position: static;
    margin-top: 12px;
  }

  .hero-shot {
    width: min(92%, 360px);
  }

  .hero-meta,
  .skills-grid,
  .projects-grid,
  .intro-strip,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
