:root {
  --bg: #071122;
  --bg-soft: #0d1c36;
  --panel: rgba(15, 29, 54, 0.72);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f6f8fc;
  --muted: #b8c2d8;
  --brand: #4b5cff;
  --brand-strong: #3848eb;
  --brand-soft: rgba(75, 92, 255, 0.15);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(75, 92, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #06101f 0%, #0a1730 45%, #0c1d3b 100%);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: Poppins, Inter, sans-serif;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 13, 27, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar {
  padding: 0.95rem 0;
}

.nav-shell {
  align-items: center;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
}

.brand-mark__main {
  font-size: 0.85rem;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  color: #8fa0ff;
  font-weight: 700;
}

.brand-mark__sub {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.nav-link {
  color: rgba(255, 255, 255, 0.76) !important;
  font-weight: 500;
  margin-left: 1rem;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff !important;
}

.nav-cta-wrap {
  margin-left: 1rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
}

.section-shell {
  padding: 5.5rem 0;
}

.hero {
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #9cabff;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 5.6vw, 5rem);
  line-height: 1.02;
  max-width: 10ch;
  margin-bottom: 1.4rem;
}

.hero-copy h1 span {
  color: #90a0ff;
}

.hero-lead {
  max-width: 60ch;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.hero-pills span {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d9dff2;
  font-size: 0.95rem;
}

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

.btn {
  border: 0;
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary-custom {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  box-shadow: 0 12px 30px rgba(75, 92, 255, 0.28);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #5d6cff, #4151f0);
  color: #fff;
}

.btn-secondary-custom {
  background: transparent;
  color: #e8ebfb;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

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

.portrait-card {
  width: min(100%, 410px);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
}

.portrait-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0.4rem 0.2rem;
  color: var(--muted);
}

.portrait-meta strong {
  color: #fff;
}

.brand-strip {
  padding-top: 0;
}

.brand-strip__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
}

.brand-strip__inner p {
  max-width: 58ch;
  color: var(--muted);
}

.brand-strip__stats {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.brand-strip__stats span {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #dce2ff;
  font-size: 0.92rem;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
}

.section-heading p,
.about-copy p,
.feature-card p,
.service-card p,
.skill-panel li,
.cta-panel p {
  color: var(--muted);
}

.section-heading--light h2,
.section-heading--light p {
  color: #fff;
}

.feature-card,
.service-card,
.skill-panel,
.cta-panel,
.about-grid,
.contact-form fieldset {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  height: 100%;
  padding: 1.6rem;
  border-radius: 22px;
}

.card-tall {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card--highlight {
  background: linear-gradient(180deg, rgba(75, 92, 255, 0.18), rgba(16, 29, 55, 0.9));
}

.card-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #bfc8ef;
}

.feature-card h3,
.service-card h3,
.skill-panel h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.text-link {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #d7deff;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  color: #fff;
}

.section-dark {
  background: rgba(4, 11, 24, 0.42);
}

.service-card {
  height: 100%;
  padding: 1.6rem;
  border-radius: 22px;
}

.service-card i {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #9eb0ff;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: 24px;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

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

.skill-panel {
  border-radius: 22px;
  padding: 1.5rem;
}

.skill-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.skill-panel li + li {
  margin-top: 0.45rem;
}

.section-cta {
  padding-top: 4.5rem;
  padding-bottom: 5.8rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  border-radius: 28px;
  padding: 2rem;
}

.contact-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.contact-list i {
  width: 1.25rem;
  color: #9eb0ff;
}

.contact-list a {
  text-decoration: none;
  color: #eef2ff;
}

.contact-list a:hover {
  color: #fff;
}

.contact-form fieldset {
  margin: 0;
  padding: 1.7rem;
  border-radius: 22px;
}

.contact-form legend {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  margin-top: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(103, 120, 255, 0.5);
  border-color: rgba(103, 120, 255, 0.5);
}

.success-text {
  color: #98f3b5;
}

.error-text {
  color: #ffb0b0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 11, 21, 0.82);
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 0;
  color: var(--muted);
}

.back-to-top {
  text-decoration: none;
  color: #dbe2ff;
}

.back-to-top:hover {
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .hero-grid,
  .about-grid,
  .cta-panel,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }

  .brand-strip__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-cta-wrap {
    margin-left: 0;
    margin-top: 0.8rem;
  }

  .nav-link {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .section-shell {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 5.2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }

  .cta-row,
  .hero-pills,
  .brand-strip__stats {
    gap: 0.65rem;
  }

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