:root {
  --bg: #050505;
  --bg-soft: #0d0d0f;
  --card: rgba(18, 18, 20, 0.76);
  --card-strong: rgba(27, 25, 20, 0.92);
  --gold: #f5c76b;
  --gold-2: #d79b32;
  --gold-3: #ffe4a0;
  --text: #f3f0e8;
  --muted: #a9a397;
  --line: rgba(245, 199, 107, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 12%, rgba(245, 199, 107, 0.13), transparent 32%),
    radial-gradient(circle at 85% 0%, rgba(215, 155, 50, 0.12), transparent 28%),
    linear-gradient(135deg, #020202 0%, #080808 48%, #11100d 100%);
  color: var(--text);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

ul {
  list-style: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.orb-one {
  width: 300px;
  height: 300px;
  top: 140px;
  left: -120px;
  background: rgba(245, 199, 107, 0.2);
}

.orb-two {
  width: 420px;
  height: 420px;
  right: -180px;
  top: 360px;
  background: rgba(180, 112, 26, 0.18);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(245, 199, 107, 0.12);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 199, 107, 0.45);
  border-radius: 14px;
  color: var(--gold-3);
  background: linear-gradient(145deg, rgba(245, 199, 107, 0.18), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 28px rgba(245, 199, 107, 0.12);
}

.logo-text {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 15px;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold-3);
  border-radius: 99px;
}

.section {
  padding: 96px 0;
}

.hero {
  padding-top: 88px;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(34px, 4.8vw, 56px);
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.hero-text,
.section-head p,
.split p,
.contact-card p,
.project-card p,
.service-card p,
.step p {
  color: var(--muted);
}

.hero-text {
  max-width: 680px;
  font-size: 18px;
  margin-bottom: 34px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 22px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

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

.btn-primary {
  color: #130e05;
  background: linear-gradient(135deg, var(--gold-3), var(--gold), var(--gold-2));
  box-shadow: 0 16px 46px rgba(245, 199, 107, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 22px 70px rgba(245, 199, 107, 0.34);
}

.btn-outline,
.btn-ghost {
  border-color: rgba(245, 199, 107, 0.28);
  background: rgba(255, 255, 255, 0.025);
}

.btn-outline:hover,
.btn-ghost:hover {
  border-color: rgba(245, 199, 107, 0.55);
  box-shadow: 0 0 40px rgba(245, 199, 107, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 40px;
}

.hero-stats div {
  border: 1px solid rgba(245, 199, 107, 0.13);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats strong {
  display: block;
  color: var(--gold-3);
  font-size: 26px;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  position: relative;
  min-height: 540px;
  border: 1px solid rgba(245, 199, 107, 0.16);
  border-radius: 34px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(245, 199, 107, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(10, 10, 10, 0.54);
  box-shadow: var(--shadow), inset 0 0 80px rgba(245, 199, 107, 0.035);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 32px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 20%, rgba(245, 199, 107, 0.2), transparent 42%);
}

.terminal {
  position: relative;
  z-index: 2;
  margin-top: 52px;
  border: 1px solid rgba(245, 199, 107, 0.2);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.terminal-top {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(245, 199, 107, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 199, 107, 0.65);
}

.terminal-body {
  padding: 24px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #d8d2c8;
  font-size: 15px;
}

.terminal-body p + p {
  margin-top: 12px;
}

.gold {
  color: var(--gold);
}

.success {
  color: #9dffbd;
}

.floating-card {
  position: absolute;
  z-index: 3;
  min-width: 142px;
  border: 1px solid rgba(245, 199, 107, 0.22);
  border-radius: 20px;
  padding: 16px;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36), 0 0 34px rgba(245, 199, 107, 0.08);
  animation: float 6s ease-in-out infinite;
}

.floating-card span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.floating-card b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.card-one {
  left: 22px;
  bottom: 56px;
}

.card-two {
  right: 28px;
  bottom: 128px;
  animation-delay: -1.4s;
}

.card-three {
  right: 72px;
  top: 32px;
  animation-delay: -2.8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  border: 1px solid rgba(245, 199, 107, 0.14);
  border-radius: var(--radius);
  padding: 44px;
  background: rgba(255, 255, 255, 0.026);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.cards,
.portfolio-grid,
.timeline {
  display: grid;
  gap: 18px;
}

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

.service-card,
.project-card,
.step {
  position: relative;
  border: 1px solid rgba(245, 199, 107, 0.13);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.service-card::before,
.project-card::before,
.step::before,
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.24s ease;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 0%), rgba(245, 199, 107, 0.14), transparent 42%);
}

.service-card:hover,
.project-card:hover,
.step:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 199, 107, 0.32);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35), 0 0 34px rgba(245, 199, 107, 0.05);
}

.service-card:hover::before,
.project-card:hover::before,
.step:hover::before,
.contact-card:hover::before {
  opacity: 1;
}

.service-card {
  min-height: 230px;
  padding: 26px;
}

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 199, 107, 0.22);
  border-radius: 16px;
  color: var(--gold-3);
  background: rgba(245, 199, 107, 0.07);
  margin-bottom: 24px;
  font-weight: 900;
}

.portfolio {
  background: linear-gradient(180deg, transparent, rgba(245, 199, 107, 0.025), transparent);
}

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

.project-card {
  padding: 26px;
  min-height: 276px;
}

.project-card.featured {
  min-height: 354px;
  background:
    linear-gradient(145deg, rgba(245, 199, 107, 0.13), rgba(255, 255, 255, 0.025)),
    var(--card-strong);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  color: #151005;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2));
}

.status {
  color: var(--gold-3);
  border: 1px solid rgba(245, 199, 107, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.project-card ul {
  margin-top: 18px;
  color: var(--text);
}

.project-card li {
  position: relative;
  padding-left: 18px;
  margin: 8px 0;
  color: #dcd4c8;
}

.project-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(245, 199, 107, 0.5);
}

.stack {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(245, 199, 107, 0.1);
  color: var(--gold-3);
  font-size: 13px;
  font-weight: 800;
}

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

.step {
  padding: 28px;
  min-height: 236px;
}

.step span {
  display: inline-flex;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 26px;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  border: 1px solid rgba(245, 199, 107, 0.2);
  border-radius: 34px;
  padding: 48px;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 199, 107, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.contact-actions {
  justify-content: flex-end;
}

.footer {
  border-top: 1px solid rgba(245, 199, 107, 0.12);
  padding: 28px 0;
  color: var(--muted);
}

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

.footer a {
  color: var(--gold-3);
}

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

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

.delay-1 {
  transition-delay: 0.12s;
}

@media (max-width: 1080px) {
  .hero-grid,
  .split,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

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

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav {
    height: 70px;
  }

  .burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid rgba(245, 199, 107, 0.16);
    border-radius: 22px;
    padding: 12px;
    background: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 14px 12px;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .hero-card {
    min-height: 440px;
    border-radius: 28px;
  }

  .terminal {
    margin-top: 34px;
  }

  .floating-card {
    min-width: 116px;
    padding: 14px;
  }

  .card-two {
    right: 18px;
  }

  .card-three {
    right: 26px;
    top: 18px;
  }

  .split,
  .contact-card {
    padding: 28px;
  }

  .services-grid,
  .timeline,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .noise,
  .orb {
    display: none;
  }

  .header,
  .nav-links,
  .floating-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .floating-card {
    animation: none;
  }

  .hero-card,
  .terminal,
  .service-card,
  .project-card,
  .step,
  .contact-card {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .btn-ghost:hover,
  .service-card:hover,
  .project-card:hover,
  .step:hover {
    transform: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  }

  body {
    background:
      linear-gradient(135deg, #020202 0%, #080808 55%, #11100d 100%);
  }
}

