@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-1: #020617;
  --bg-2: #07111f;
  --bg-3: #0a1020;
  --text: #f8fbff;
  --muted: #b7c4d9;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --line: rgba(255, 255, 255, 0.08);
  --glass-dark: rgba(13, 22, 38, 0.82);
  --glass-mid: rgba(27, 38, 59, 0.52);
  --border-glow: rgba(80, 180, 255, 0.16);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-strong: 0 20px 45px rgba(0, 0, 0, 0.35);
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.10), transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.12), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.08), transparent 30%),
    linear-gradient(180deg, #030816 0%, #050b18 30%, #040915 60%, #020611 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(110px);
  z-index: -6;
  opacity: 0.65;
  pointer-events: none;
}

body::before {
  top: -240px;
  left: -180px;
  background: rgba(34, 211, 238, 0.16);
  animation: nebulaMove 18s ease-in-out infinite;
}

body::after {
  bottom: -260px;
  right: -180px;
  background: rgba(139, 92, 246, 0.16);
  animation: nebulaMove 22s ease-in-out infinite reverse;
}

/* =========================
   BACKGROUND SCENE
========================= */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}

.stars,
.stars2,
.stars3 {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  animation: starDrift linear infinite;
}

.stars {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(56,189,248,0.6) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1.5px);
  background-size: 220px 220px, 300px 300px, 170px 170px;
  background-position: 0 0, 40px 80px, 100px 30px;
  opacity: 0.35;
  animation-duration: 120s;
}

.stars2 {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.7) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(139,92,246,0.6) 1px, transparent 1.5px);
  background-size: 380px 380px, 280px 280px;
  background-position: 30px 100px, 150px 50px;
  opacity: 0.22;
  animation-duration: 180s;
}

.stars3 {
  background-image:
    radial-gradient(circle, rgba(34,211,238,0.7) 1px, transparent 1.5px);
  background-size: 420px 420px;
  background-position: 60px 120px;
  opacity: 0.14;
  animation-duration: 240s;
}

.space-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(56,189,248,0.10), transparent 22%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.10), transparent 24%),
    radial-gradient(circle at 60% 60%, rgba(255,255,255,0.04), transparent 16%);
  filter: blur(10px);
  animation: fogShift 18s ease-in-out infinite alternate;
  opacity: 0.9;
}

.grid-horizon {
  position: absolute;
  left: -10%;
  bottom: -10%;
  width: 120%;
  height: 45vh;
  background-image:
    linear-gradient(rgba(56,189,248,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.18) 1px, transparent 1px);
  background-size: 70px 70px;
  transform: perspective(900px) rotateX(78deg);
  transform-origin: bottom;
  opacity: 0.22;
  box-shadow: 0 0 40px rgba(56,189,248,0.08);
}

.tech-ring {
  position: absolute;
  border: 1px solid rgba(56,189,248,0.16);
  border-radius: 50%;
  box-shadow:
    inset 0 0 20px rgba(56,189,248,0.05),
    0 0 20px rgba(56,189,248,0.05);
}

.tech-ring::before,
.tech-ring::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.08);
}

.tech-ring::after {
  inset: 34px;
  border-style: solid;
  border-color: rgba(139,92,246,0.12);
}

.ring-a {
  width: 320px;
  height: 320px;
  top: 16%;
  right: 6%;
  animation: spinSlow 26s linear infinite;
}

.ring-b {
  width: 220px;
  height: 220px;
  top: 8%;
  left: 4%;
  animation: spinSlowReverse 18s linear infinite;
}

.planet {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.45), rgba(56,189,248,0.16), rgba(56,189,248,0.05) 55%, transparent 75%);
  box-shadow:
    inset -25px -25px 40px rgba(255,255,255,0.03),
    0 0 40px rgba(56,189,248,0.12);
  animation: floatPlanet 14s ease-in-out infinite;
}

.planet-a {
  width: 220px;
  height: 220px;
  top: 18%;
  right: 14%;
}

.planet-b {
  width: 110px;
  height: 110px;
  bottom: 16%;
  left: 8%;
  animation-delay: 5s;
}

.cube {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  transform-style: preserve-3d;
  box-shadow: 0 0 30px rgba(56,189,248,0.08);
  animation: floatCube 20s linear infinite;
}

.cube::before,
.cube::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56,189,248,0.12);
}

.cube::before {
  transform: translateZ(28px);
}

.cube::after {
  transform: rotateY(90deg) translateZ(28px);
}

.c1 {
  top: 18%;
  left: 14%;
}

.c2 {
  bottom: 18%;
  right: 12%;
  width: 120px;
  height: 120px;
  animation-delay: 4s;
}

.parallax {
  transition: transform 0.15s linear;
  will-change: transform;
}

/* =========================
   HEADER / NAV
========================= */
header {
  width: 100%;
  padding: 18px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 10, 22, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: white;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo span {
  color: var(--blue);
  text-shadow:
    0 0 12px rgba(56,189,248,0.42),
    0 0 24px rgba(56,189,248,0.20);
}

nav {
  margin-left: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: #e7edf7;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: 0.28s ease;
  display: inline-block;
  font-weight: 600;
}

nav ul li a:hover,
nav ul li a.active {
  color: white;
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(56,189,248,0.35);
  background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(139,92,246,0.10));
  box-shadow:
    0 10px 24px rgba(56,189,248,0.16),
    0 0 20px rgba(56,189,248,0.12);
}

/* =========================
   HAMBURGER
========================= */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(56,189,248,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: 0.3s ease;
}

.menu-toggle:hover {
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 0 18px rgba(56,189,248,0.12);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 10px;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   LAYOUT
========================= */
.container {
  width: min(1220px, 92%);
  margin: auto;
  padding: 64px 0;
}

.center-section,
.services-section,
.developers-hero {
  text-align: center;
  padding-top: 34px;
  padding-bottom: 80px;
}

/* =========================
   HEADINGS
========================= */
.hero-badge,
.section-badge,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(56,189,248,0.16);
  background: rgba(255,255,255,0.04);
  color: #d8eaff;
  font-size: 0.95rem;
  box-shadow: 0 0 20px rgba(56,189,248,0.08);
}

.hero-text h1,
.page-title,
.services-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: 1.02;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hero-text h1 span {
  color: var(--blue);
  text-shadow:
    0 0 16px rgba(56,189,248,0.36),
    0 0 40px rgba(56,189,248,0.18);
}

.hero-text p,
.page-subtitle,
.services-subtitle {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 760px;
}

.hero-text p {
  margin-bottom: 32px;
}

.page-subtitle,
.services-subtitle {
  margin: 0 auto 36px;
}

.center-section .page-title,
.center-section .page-subtitle,
.developers-hero .page-title {
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: calc(100vh - 95px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.hero-text,
.hero-panel {
  position: relative;
  z-index: 2;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */
.btn {
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  transition: 0.28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow:
    0 14px 28px rgba(56,189,248,0.20),
    0 0 22px rgba(139,92,246,0.16);
}

.btn-secondary {
  color: white;
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.btn:hover {
  transform: translateY(-5px) scale(1.04);
}

/* =========================
   UNIVERSAL FUTURISTIC BOXES
========================= */
.card,
.rate-card,
.dev-card,
.faq-item,
.contact-box,
.service-card-modern,
.hero-panel,
.service-item {
  position: relative;
  background: linear-gradient(135deg, var(--glass-dark), var(--glass-mid));
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  transition: all 0.35s ease;
}

.card::before,
.rate-card::before,
.dev-card::before,
.faq-item::before,
.contact-box::before,
.service-card-modern::before,
.hero-panel::before,
.service-item::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(120, 180, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.card::after,
.rate-card::after,
.dev-card::after,
.faq-item::after,
.contact-box::after,
.service-card-modern::after,
.hero-panel::after,
.service-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #8b5cf6, transparent);
  opacity: 0.9;
}

.card:hover,
.rate-card:hover,
.dev-card:hover,
.faq-item:hover,
.contact-box:hover,
.service-card-modern:hover,
.hero-panel:hover,
.service-item:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(56, 189, 248, 0.10);
}

.card,
.rate-card,
.dev-card,
.faq-item,
.service-card-modern {
  padding: 28px;
}

.contact-box,
.hero-panel {
  padding: 34px;
}

.service-item {
  padding: 20px;
  border-radius: 20px;
}

/* =========================
   GRIDS
========================= */
.grid,
.services-grid {
  display: grid;
  gap: 28px;
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.services-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

.center-section .grid {
  margin-top: 10px;
}

/* =========================
   HOME PANEL
========================= */
.panel-top,
.service-stack {
  position: relative;
  z-index: 2;
}

.panel-top h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.9rem;
  color: var(--blue);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.panel-top p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

.service-stack {
  display: grid;
  gap: 16px;
}

.service-item h4 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.service-item p {
  color: var(--muted);
  line-height: 1.6;
}

.service-item:hover {
  transform: translateX(10px) scale(1.02);
  box-shadow: 0 16px 30px rgba(0,0,0,0.22);
}

/* =========================
   SERVICES
========================= */
.service-card-modern {
  text-align: left;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(18, 26, 45, 0.92), rgba(35, 36, 78, 0.55));
}

.service-card-modern::before {
  width: 140px;
  height: 140px;
  top: -25px;
  right: -25px;
  background: radial-gradient(circle, rgba(120, 180, 255, 0.20), transparent 70%);
}

.service-card-modern:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.36),
    0 0 26px rgba(56, 189, 248, 0.10);
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.service-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: #38bdf8;
  letter-spacing: 2px;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, rgba(72, 159, 255, 0.35), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 18px rgba(56,189,248,0.08);
  font-size: 1rem;
}

.service-card-modern h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #f8fbff;
}

.service-card-modern p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* =========================
   GENERAL CARDS
========================= */
.card,
.rate-card {
  text-align: left;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.rate-card h3,
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p,
.rate-card p,
.dev-card p,
.contact-box p,
.faq-item p {
  color: var(--muted);
  line-height: 1.7;
}

.price {
  margin: 14px 0;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--blue);
  text-shadow: 0 0 14px rgba(56,189,248,0.18);
}

/* =========================
   FAQ
========================= */
.faq-item {
  text-align: left;
  padding: 24px 26px;
  margin-bottom: 18px;
}

.faq-item h4 {
  color: var(--blue);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* =========================
   CONTACT
========================= */
.contact-box {
  max-width: 930px;
  margin: 0 auto;
  text-align: left;
  border-radius: 30px;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: white;
  outline: none;
  font: inherit;
  transition: 0.25s ease;
}

input:focus,
textarea:focus,
select:focus {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.42);
  box-shadow: 0 0 0 4px rgba(56,189,248,0.08);
}

textarea {
  min-height: 170px;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: #95a5c3;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, white 50%),
    linear-gradient(135deg, white 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1.15em + 2px),
    calc(100% - 14px) calc(1.15em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

select option {
  background: #081120;
  color: white;
}

.form-status {
  margin-top: 14px;
  color: #b7c4d9;
}

/* =========================
   DEVELOPERS
========================= */
.dev-card {
  text-align: left;
  min-height: 320px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.dev-img {
  width: 124px;
  height: 124px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 22px;
  margin-bottom: 20px;
  display: block;
  border: 2px solid rgba(56,189,248,0.35);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.35),
    0 0 25px rgba(56,189,248,0.20);
  transition: 0.3s ease;
}

.dev-img:hover {
  transform: scale(1.05);
}

.dev-card h3 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.dev-card p {
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 4px;
}

.contact {
  color: #38bdf8 !important;
  font-size: 0.95rem;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 24px;
  color: #96a6c4;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 40px;
  background: rgba(255,255,255,0.02);
}

/* =========================
   POPUP
========================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 5000;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 34px 28px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(13, 22, 38, 0.96), rgba(27, 38, 59, 0.78));
  border: 1px solid rgba(80, 180, 255, 0.20);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(56, 189, 248, 0.10);
  text-align: center;
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: 0.3s ease;
}

.popup-overlay.show .popup-box {
  transform: translateY(0) scale(1);
}

.popup-box::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(120, 180, 255, 0.24), transparent 70%);
  pointer-events: none;
}

.popup-box::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #8b5cf6, transparent);
  opacity: 0.95;
}

.popup-glow {
  position: absolute;
  inset: auto auto -80px -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
  pointer-events: none;
}

.popup-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, rgba(56,189,248,0.9), rgba(139,92,246,0.85));
  box-shadow:
    0 12px 30px rgba(56, 189, 248, 0.22),
    0 0 25px rgba(139, 92, 246, 0.18);
  position: relative;
  z-index: 1;
}

.popup-box h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #f8fbff;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.popup-box p {
  color: #b7c4d9;
  line-height: 1.75;
  font-size: 1rem;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.popup-btn {
  border: none;
  outline: none;
  padding: 13px 30px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #38bdf8, #8b5cf6);
  box-shadow:
    0 12px 28px rgba(56, 189, 248, 0.18),
    0 0 18px rgba(139, 92, 246, 0.16);
  transition: 0.28s ease;
  position: relative;
  z-index: 1;
}

.popup-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes nebulaMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.08); }
}

@keyframes starDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-120px); }
}

@keyframes fogShift {
  0% { transform: translateX(0) translateY(0) scale(1); }
  100% { transform: translateX(20px) translateY(-12px) scale(1.04); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinSlowReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatPlanet {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(16px); }
}

@keyframes floatCube {
  0% { transform: translateY(0) rotateX(0) rotateY(0) rotate(0); }
  50% { transform: translateY(-28px) rotateX(180deg) rotateY(180deg) rotate(180deg); }
  100% { transform: translateY(0) rotateX(360deg) rotateY(360deg) rotate(360deg); }
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
  header {
    padding: 18px 24px;
  }

  .container {
    width: 92%;
    padding: 42px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 10px;
  }

  .hero-text,
  .hero-panel {
    width: 100%;
  }

  .hero-text h1,
  .page-title,
  .services-title {
    font-size: clamp(2.3rem, 7vw, 4rem);
    line-height: 1.03;
    text-align: center;
    letter-spacing: 1px;
  }

  .hero-text p,
  .page-subtitle,
  .services-subtitle {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge,
  .section-badge,
  .section-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-modern,
  .card,
  .rate-card,
  .dev-card {
    text-align: center;
  }

  .service-top {
    justify-content: center;
    gap: 12px;
  }

  .dev-img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   MOBILE NAV + PHONE
========================= */
@media (max-width: 900px) {
  header {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 0;
    white-space: normal;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    margin-left: 0;
    transition: max-height 0.35s ease;
  }

  nav.active {
    max-height: 520px;
  }

  nav ul {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    width: 100%;
    display: block;
    text-align: center;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
  }

  .hero-text h1,
  .page-title,
  .services-title {
    text-align: center;
  }

  .hero-text p,
  .page-subtitle,
  .services-subtitle {
    text-align: center;
  }

  .hero-badge,
  .section-badge,
  .section-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card,
  .rate-card,
  .dev-card,
  .faq-item,
  .contact-box,
  .service-card-modern,
  .hero-panel {
    padding: 24px;
  }

  .service-card-modern,
  .dev-card,
  .card,
  .rate-card {
    text-align: center;
    min-height: auto;
  }

  .service-top {
    justify-content: center;
    gap: 10px;
  }

  .dev-img {
    margin-left: auto;
    margin-right: auto;
  }

  .faq-item {
    text-align: left;
  }

  footer {
    padding: 18px;
    font-size: 0.95rem;
  }
}

/* =========================
   PHONE
========================= */
@media (max-width: 640px) {
  .container {
    width: 92%;
    padding: 30px 0 38px;
  }

  .center-section,
  .services-section,
  .developers-hero {
    padding-top: 24px;
    padding-bottom: 60px;
  }

  .hero-badge,
  .section-badge,
  .section-tag {
    font-size: 0.82rem;
    padding: 8px 14px;
    margin-bottom: 14px;
  }

  .hero-text h1 {
    font-size: clamp(1.95rem, 10vw, 3rem);
    line-height: 1.06;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
  }

  .page-title,
  .services-title {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
    line-height: 1.08;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }

  .hero-text p,
  .page-subtitle,
  .services-subtitle {
    font-size: 0.97rem;
    line-height: 1.7;
    max-width: 100%;
    margin-bottom: 22px;
  }

  .btn {
    padding: 15px 18px;
    font-size: 1rem;
    border-radius: 16px;
  }

  .hero-panel,
  .contact-box,
  .card,
  .rate-card,
  .dev-card,
  .faq-item,
  .service-card-modern {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .panel-top h3 {
    font-size: 1.35rem;
    text-align: center;
  }

  .panel-top p {
    text-align: center;
    margin-bottom: 18px;
  }

  .service-stack {
    gap: 12px;
  }

  .service-item {
    padding: 16px;
    border-radius: 16px;
    text-align: center;
  }

  .service-item h4 {
    font-size: 1.05rem;
  }

  .service-item p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .service-card-modern h3,
  .card h3,
  .rate-card h3,
  .dev-card h3 {
    font-size: 1.15rem;
  }

  .price {
    font-size: 1.7rem;
  }

  .dev-img {
    width: 105px;
    height: 105px;
    margin-bottom: 16px;
  }

  .contact-box {
    padding: 20px 16px;
  }

  input,
  textarea,
  select {
    padding: 14px 14px;
    font-size: 0.96rem;
    border-radius: 14px;
  }

  textarea {
    min-height: 140px;
  }

  .planet-a,
  .ring-a {
    opacity: 0.35;
  }

  .planet-b,
  .ring-b,
  .c1,
  .c2 {
    opacity: 0.18;
  }

  .grid-horizon {
    height: 24vh;
    opacity: 0.16;
  }

  .popup-box {
    padding: 28px 20px 22px;
    border-radius: 24px;
  }

  .popup-icon {
    width: 64px;
    height: 64px;
    font-size: 1.7rem;
  }

  .popup-box h3 {
    font-size: 1.2rem;
  }

  .popup-box p {
    font-size: 0.95rem;
  }

  .popup-btn {
    width: 100%;
  }
}

/* =========================
   SMALL PHONE
========================= */
@media (max-width: 420px) {
  .logo {
    font-size: 0.95rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .page-title,
  .services-title {
    font-size: 2rem;
  }

  .hero-text p,
  .page-subtitle,
  .services-subtitle {
    font-size: 0.92rem;
  }

  .btn {
    font-size: 0.95rem;
  }
}
