:root {
  --bg-deep: #0c0808;
  --bg-card: #151010;
  --bg-card-hover: #1f1614;
  --border: rgba(248, 180, 148, 0.1);
  --text: #f5ebe6;
  --text-muted: #a89288;
  --accent: #f97316;
  --accent-2: #ef4444;
  --accent-warm: #fbbf24;
  --accent-glow: rgba(249, 115, 22, 0.18);
  --accent-soft: rgba(249, 115, 22, 0.12);
  --accent-border: rgba(249, 115, 22, 0.28);
  --accent-ring: rgba(249, 115, 22, 0.45);
  --glow-fire: rgba(239, 68, 68, 0.1);
  --glow-ember: rgba(251, 191, 36, 0.08);
  --gradient: linear-gradient(135deg, #ef4444 0%, #f97316 55%, #fbbf24 100%);
  --radius: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  background: var(--glow-fire);
  top: -200px;
  right: -100px;
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  background: var(--glow-ember);
  bottom: 20%;
  left: -150px;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(12, 8, 8, 0.92);
  border-bottom: 1px solid var(--border);
  isolation: isolate;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gradient);
  color: var(--bg-deep);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--mono);
}

.logo__text {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.nav__link--active {
  color: var(--text);
}

.nav a.nav__link--active {
  position: relative;
}

.nav a.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__cta {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border: 1px solid var(--accent-border);
}

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

.hero__inner {
  max-width: 720px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn--primary {
  background: var(--gradient);
  color: var(--bg-deep);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(21, 16, 16, 0.75);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat__value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: rgba(17, 24, 39, 0.4);
  border-block: 1px solid var(--border);
}

.section__head {
  margin-bottom: 3rem;
}

.section__head h2,
.expertise__text h2,
.contact__card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.card h3,
.contact__block h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.section__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(249, 115, 22, 0.2);
  transform: translateY(-2px);
}

.card__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.expertise {
  display: grid;
  gap: 2.5rem;
}

.expertise__text p:last-child {
  color: var(--text-muted);
  max-width: 520px;
}

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

.tags span {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: default;
  user-select: none;
}

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

.portfolio__item {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio__sector {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.portfolio__item h3 {
  font-size: 1.05rem;
}

.portfolio__item > p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.portfolio__metrics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.portfolio__metrics li {
  font-size: 0.75rem;
  font-family: var(--mono);
  padding: 0.3rem 0.65rem;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 6px;
  color: var(--accent);
}

.portfolio__item h3 a {
  color: inherit;
  text-decoration: none;
}

.portfolio__item h3 a:hover {
  color: var(--accent-2);
}

.portfolio__link {
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

.portfolio__link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.portfolio__link a:hover {
  color: var(--accent-2);
}

.section--contact {
  padding-bottom: 4rem;
}

.section--contact .container {
  width: min(1060px, 94vw);
  margin-inline: auto;
}

.contact__card {
  max-width: none;
  width: 100%;
  margin-inline: auto;
  padding: 3.5rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.contact__head {
  margin-bottom: 2.25rem;
}

.contact__head h2 {
  margin-bottom: 0.75rem;
}

.contact__intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.contact__block {
  padding: 1.25rem 1.35rem;
  background: rgba(31, 18, 14, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact__block h3 {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.contact__block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact__block a {
  color: var(--accent);
  text-decoration: none;
}

.contact__block a:hover {
  text-decoration: underline;
}

.contact__certs {
  margin-bottom: 2rem;
}

.contact__certs-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.contact__cert-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.contact__cert-badges span {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--accent);
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: 999px;
}

.contact__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact__detail {
  text-align: center;
}

.contact__label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact__details a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact__details a:hover {
  text-decoration: underline;
}

.contact__detail > span:not(.contact__label) {
  font-size: 0.95rem;
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
}

.footer__brand {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.footer__tagline {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.footer__location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact__card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 4vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    min-width: 200px;
    padding: 0.75rem;
    background: rgba(21, 16, 16, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  }

  .nav.nav--open {
    display: flex;
  }

  .nav a {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
  }

  .nav a:hover {
    background: rgba(249, 115, 22, 0.08);
  }

  .header__inner {
    position: relative;
  }

  .hero {
    padding-top: 4rem;
  }
}
