:root {
  --bg: #050c1a;
  --bg-soft: #0b1630;
  --card: rgba(11, 22, 48, 0.75);
  --text: #f8f8f7;
  --muted: #b9c5df;
  --brand-blue: #0a3762;
  --brand-gold: #d4a13f;
  --brand-gold-2: #bb7f1d;
  --border: rgba(212, 161, 63, 0.25);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(212, 161, 63, 0.18), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(10, 55, 98, 0.34), transparent 45%),
    linear-gradient(160deg, var(--bg) 0%, #081127 60%, #040914 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

.bg-glow {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -2;
  opacity: 0.33;
}

.bg-glow-1 {
  background: var(--brand-gold);
  top: -9rem;
  right: -12rem;
  animation: drift 12s ease-in-out infinite;
}

.bg-glow-2 {
  background: #1a5ea1;
  bottom: -12rem;
  left: -14rem;
  animation: drift 15s ease-in-out infinite reverse;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(4, 9, 20, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.brand-name {
  display: inline-flex;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

.brand-craft {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-code {
  color: #8eb5de;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.24rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  min-width: 44px;
  height: 32px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  color: #1d1200;
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

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

.hero {
  padding: 7rem 0 3rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border-radius: 99px;
  background: rgba(212, 161, 63, 0.12);
  border: 1px solid var(--border);
  color: #ffe2a7;
  margin-bottom: 1.2rem;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-text {
  max-width: 66ch;
  color: var(--muted);
  margin: 1.2rem 0 2rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.82rem 1.15rem;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-2));
  color: #1d1200;
  box-shadow: 0 12px 32px rgba(212, 161, 63, 0.28);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost:hover {
  border-color: var(--brand-gold);
}

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

.stats article {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stats h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.stats p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.section {
  padding: 4.2rem 0 1rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  margin: 0;
}

.service-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.service-card,
.project-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.service-card h3,
.project-card h3 {
  margin: 0 0 0.6rem;
}

.service-card p,
.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.project-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(140deg, rgba(212, 161, 63, 0.2), rgba(10, 55, 98, 0.32));
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd48f;
}

.project-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.project-link:hover {
  color: #ffe2a7;
}

.contact-box {
  border-radius: 22px;
  padding: clamp(1.3rem, 4vw, 2.2rem);
  background:
    linear-gradient(130deg, rgba(11, 22, 48, 0.92), rgba(8, 17, 39, 0.96)),
    radial-gradient(circle at top right, rgba(212, 161, 63, 0.2), transparent 45%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.contact-box h2 {
  margin: 0 0 0.8rem;
}

.contact-box p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.contact-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.contact-actions .btn {
  min-height: 48px;
}

.footer {
  padding: 3rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 24px, 0) scale(1.06);
  }
}

@media (max-width: 960px) {
  .stats,
  .service-grid,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    min-height: 72px;
    gap: 0.6rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .lang-btn {
    min-width: 40px;
    height: 30px;
  }

  .stats,
  .service-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5rem;
  }

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