:root {
  --bg: #06080f;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #eef3ff;
  --muted: #9fb0c7;
  --primary: #5ea0ff;
  --primary-strong: #80b7ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  --radius-lg: 28px;
  --font: "Manrope", "SF Pro Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

body {
  font-family: var(--font);
  background: radial-gradient(120% 120% at 20% 20%, #0f1a2e, #06080f);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
  position: relative;
}

.container { width: min(1180px, 92vw); margin: 0 auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.bg-orb { position: fixed; width: 520px; height: 520px; filter: blur(140px); z-index: 0; opacity: 0.35; }
.orb-1 { top: -120px; left: -120px; background: #3266ff; }
.orb-2 { bottom: 60px; right: -160px; background: #16c6ff; }
.orb-3 { top: 220px; right: 20%; background: #8b5cf6; opacity: 0.25; }

.glass-panel {
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 8, 15, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--stroke);
}

header .container { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; letter-spacing: 0.5px; color: var(--primary-strong); }
.logo img { height: 34px; width: auto; filter: drop-shadow(0 6px 14px rgba(94, 160, 255, 0.35)); }
nav { position: relative; }
nav ul { display: flex; gap: 26px; align-items: center; }
nav a { font-size: 0.98rem; color: var(--muted); transition: color 0.25s ease, opacity 0.25s ease; }
nav a:hover { color: var(--text); opacity: 0.95; }

.nav-toggle {
  display: none;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero { padding: 120px 0 80px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px; padding: 32px; }
.hero-text h1 { font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 14px; }
.hero-text .lead { color: var(--muted); max-width: 600px; margin-bottom: 18px; }
.eyebrow { letter-spacing: 0.15em; text-transform: uppercase; color: #9ac5ff; font-size: 0.78rem; margin-bottom: 12px; }

.tech-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.tech-badges span { padding: 8px 12px; border-radius: 999px; background: var(--card-strong); border: 1px solid var(--stroke); font-size: 0.9rem; color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 14px; font-weight: 600; border: 1px solid var(--stroke); transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; cursor: pointer; }
.btn.primary { background: linear-gradient(120deg, #5ea0ff, #5af1ff); color: #041021; box-shadow: 0 14px 30px rgba(94, 160, 255, 0.35); }
.btn.ghost { background: transparent; color: var(--text); }
.btn:hover { transform: translateY(-2px) scale(1.01); }
.cta { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.meta { color: var(--muted); font-size: 0.95rem; }

.hero-card { padding: 18px; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(255, 255, 255, 0.04); border-radius: 14px; border: 1px solid var(--stroke); margin-bottom: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.card-head p { color: var(--muted); font-size: 0.9rem; }
.card-body { position: relative; padding: 18px; display: grid; gap: 12px; }
.stat { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--stroke); }
.stat .label { color: var(--muted); font-size: 0.9rem; }
.stat .value { font-size: 1.1rem; font-weight: 700; }
.stat .success { color: #5af1ff; }
.card-body .glow { position: absolute; inset: 10% 20%; background: radial-gradient(circle at 30% 30%, rgba(94, 160, 255, 0.28), transparent 60%); filter: blur(24px); z-index: -1; }

section { padding: 80px 0; position: relative; z-index: 1; }
.section-title { text-align: center; font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 36px; }

.services-grid,
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.service-card,
.portfolio-item { padding: 22px; transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.service-card:hover,
.portfolio-item:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.24); background: var(--card-strong); }
.service-card .icon { font-size: 1.4rem; margin-bottom: 12px; }
.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.service-card p,
.portfolio-item h4,
.about p,
.contact-note p,
.contact-meta span { color: var(--muted); }

.portfolio-item img { width: 100%; border-radius: 14px; border: 1px solid var(--stroke); margin-bottom: 12px; display: block; }

.about p { text-align: center; max-width: 680px; margin: 0 auto 22px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.about-card { padding: 18px; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; padding: 22px; }
.contact-form { display: grid; gap: 12px; }
.contact-form input,
.contact-form textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 1rem; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-note { display: flex; flex-direction: column; gap: 14px; }
.contact-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.form-status { font-size: 0.95rem; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.04); }
.form-status.success { color: #3de1a3; }
.form-status.error { color: #ff8f8f; }

.site-footer { padding: 30px 0 40px; text-align: center; color: var(--muted); font-size: 0.95rem; border-top: 1px solid var(--stroke); background: rgba(6, 8, 15, 0.65); backdrop-filter: blur(10px); }

section[data-animate] { opacity: 0; transform: translateY(32px) scale(0.98); transition: opacity 0.8s ease, transform 0.8s ease; }
section.visible { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 900px) {
  header .container { height: 66px; }
  nav ul { position: absolute; top: 70px; right: 0; background: rgba(6, 8, 15, 0.9); border: 1px solid var(--stroke); border-radius: 18px; padding: 14px 16px; gap: 12px; flex-direction: column; min-width: 200px; display: none; }
  nav ul.active { display: flex; }
  .nav-toggle { display: inline-flex; }
  .hero-grid { padding: 26px; }
  .cta { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  body { background: radial-gradient(120% 120% at 30% 20%, #0f1a2e, #06080f); }
  .hero { padding: 100px 0 60px; }
  .hero-grid { padding: 20px; }
  .glass-panel { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
