﻿:root {
  --bg-deep: #04040f;
  --bg-space: #0a0a1f;
  --surface: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.09);
  --text-primary: #f2f2fa;
  --text-secondary: #a3a3c2;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --orange: #fb923c;
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.8;
}

::selection {
  background: var(--purple);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--purple), var(--cyan));
  border-radius: 8px;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.nebula {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: -3;
  pointer-events: none;
  animation: nebulaDrift 30s ease-in-out infinite alternate;
}
.nebula-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, var(--purple), transparent 70%);
}
.nebula-2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -150px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  animation-delay: -10s;
}
.nebula-3 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: 45%;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  opacity: 0.18;
  animation-delay: -20s;
}

@keyframes nebulaDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  z-index: 1;
}

.section {
  padding: 110px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple-light);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.gradient-text {
  background: linear-gradient(90deg, var(--purple-light), var(--cyan), var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s linear infinite;
}

@keyframes gradientShift {
  to { background-position: 200% center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-3px);
}
.btn-large {
  padding: 16px 48px;
  font-size: 1.05rem;
}

.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  transition: all 0.35s ease;
  padding: 18px 0;
}
.navbar.scrolled {
  background: rgba(6, 6, 20, 0.75);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
}
.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-primary);
  text-decoration: none;
}
.logo-icon {
  font-size: 1.5rem;
  display: inline-block;
  animation: logoSpin 14s linear infinite;
}
@keyframes logoSpin {
  to { transform: rotate(360deg); }
}
.logo-accent {
  color: var(--cyan);
  font-weight: 400;
  direction: ltr;
  unicode-bidi: embed;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
  margin-right: auto;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.btn-nav {
  padding: 10px 22px;
  font-size: 0.9rem;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 860px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.55;
  margin: 20px 0;
}
.hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-number {
  font-size: 2.1rem;
  font-weight: 900;
  background: linear-gradient(180deg, #fff, var(--purple-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-plus {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--border-glass), transparent);
}

.orbit {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: orbitSpin linear infinite;
  pointer-events: none;
}
.orbit-1 {
  width: 720px;
  height: 720px;
  top: -260px;
  left: -220px;
  animation-duration: 46s;
}
.orbit-2 {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -140px;
  animation-duration: 34s;
  animation-direction: reverse;
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
.planet {
  position: absolute;
  border-radius: 50%;
}
.planet-purple {
  width: 54px;
  height: 54px;
  top: 12%;
  right: 8%;
  background: radial-gradient(circle at 32% 30%, #c4b5fd, var(--purple) 55%, #4c1d95);
  box-shadow: 0 0 42px rgba(139, 92, 246, 0.55);
}
.planet-cyan {
  width: 34px;
  height: 34px;
  top: 16%;
  left: 10%;
  background: radial-gradient(circle at 32% 30%, #cffafe, var(--cyan) 55%, #155e75);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.55);
}
.astronaut {
  position: absolute;
  font-size: 3.2rem;
  top: 24%;
  left: 14%;
  animation: floatAstro 9s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.35));
  z-index: 1;
  pointer-events: none;
}
@keyframes floatAstro {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-38px) rotate(10deg); }
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.mouse {
  display: block;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
}
.wheel {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 4px;
  animation: wheelScroll 1.8s ease infinite;
}
@keyframes wheelScroll {
  0% { opacity: 1; top: 7px; }
  100% { opacity: 0; top: 22px; }
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-card-main {
  aspect-ratio: 1 / 1.02;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 70% 25%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(circle at 25% 80%, rgba(34, 211, 238, 0.16), transparent 55%),
    var(--surface);
}
.about-planet {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ddd6fe, var(--purple) 52%, #312e81);
  box-shadow: 0 0 70px rgba(139, 92, 246, 0.5), inset -18px -18px 44px rgba(0, 0, 0, 0.45);
  animation: floatPlanet 7s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.about-ring {
  position: absolute;
  width: 74%;
  aspect-ratio: 3 / 1;
  border: 2px solid rgba(167, 139, 250, 0.45);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: ringPulse 5s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: rotate(-18deg) scale(1); }
  50% { opacity: 0.9; transform: rotate(-18deg) scale(1.06); }
}
@keyframes floatPlanet {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.floating-chip {
  position: absolute;
  z-index: 2;
  padding: 10px 18px;
  background: rgba(10, 10, 31, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  animation: chipFloat 6s ease-in-out infinite;
}
.chip-1 { top: 12%; right: 8%; animation-delay: 0s; }
.chip-2 { top: 26%; left: 6%; animation-delay: -1.5s; }
.chip-3 { bottom: 24%; right: 12%; animation-delay: -3s; }
.chip-4 { bottom: 10%; left: 12%; animation-delay: -4.5s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.feature-list {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  font-size: 1.6rem;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: rgba(139, 92, 246, 0.13);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  flex-shrink: 0;
}
.feature-item strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.feature-item p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 0 !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card {
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, 0.45);
}
.service-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  top: -60px;
  left: -60px;
  transition: opacity 0.35s;
}
.service-card:hover .service-glow {
  opacity: 0.7;
}
.glow-purple { background: var(--purple); }
.glow-cyan { background: var(--cyan); }
.glow-pink { background: var(--pink); }
.glow-orange { background: var(--orange); }
.service-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: inline-block;
  transition: transform 0.35s;
}
.service-card:hover .service-icon {
  transform: scale(1.2) rotate(-8deg);
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.service-card > p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 18px;
}
.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.service-card li {
  color: var(--text-secondary);
  font-size: 0.87rem;
  padding-right: 20px;
  position: relative;
}
.service-card li::before {
  content: "âœ¦";
  position: absolute;
  right: 0;
  color: var(--cyan);
  font-size: 0.75rem;
  top: 3px;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--purple-light);
}
.filter-btn.active {
  background: linear-gradient(90deg, var(--purple), var(--pink));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-glass);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.15);
}
.work-card.hidden {
  display: none;
}
.work-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb-1 { background: linear-gradient(135deg, #1e1b4b, #4338ca, #7c3aed); }
.thumb-2 { background: linear-gradient(135deg, #083344, #0891b2, #67e8f9); }
.thumb-3 { background: linear-gradient(135deg, #500724, #db2777, #f472b6); }
.thumb-4 { background: linear-gradient(135deg, #431407, #ea580c, #fdba74); }
.thumb-5 { background: linear-gradient(135deg, #14532d, #16a34a, #86efac); }
.thumb-6 { background: linear-gradient(135deg, #111827, #374151, #9ca3af); }
.play-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  transition: all 0.3s;
  z-index: 2;
}
.work-card:hover .play-btn {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.28);
}
.work-duration {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.work-info {
  padding: 22px 24px 26px;
}
.work-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.work-info h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.work-info p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.work-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-glass);
  padding-top: 14px;
}
.thumb-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.art-title {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.5);
}
.art-orbit {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e5e7eb, #6b7280 60%, #111827);
  position: relative;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}
.art-orbit::before {
  content: "";
  position: absolute;
  inset: -26px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: rotateX(65deg);
}

.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding-right: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  right: 19px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
}
.timeline::after {
  content: "";
  position: absolute;
  right: 19px;
  top: 10px;
  width: 2px;
  height: calc(var(--tp, 0) * (100% - 20px));
  background: linear-gradient(180deg, var(--purple), var(--cyan), var(--pink));
  border-radius: 2px;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.6);
}
.timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.timeline-dot {
  position: absolute;
  right: -40px;
  top: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-space);
  border: 2px solid var(--purple);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--purple-light);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
  z-index: 2;
}
.timeline-dot span {
  font-size: 0.95rem;
}
.timeline-card {
  padding: 22px 26px;
  transition: transform 0.3s ease, border-color 0.55s ease;
}
.timeline-card:hover {
  transform: translateY(-5px);
}
.timeline-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.timeline-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: stretch;
}
.team-card {
  text-align: center;
  padding: 38px 24px 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-glass);
  transition: transform 0.35s, border-color 0.35s;
  height: 100%;
}
.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, 0.5);
}
.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  position: relative;
  transition: transform 0.35s;
}
.team-card:hover .avatar {
  transform: scale(1.08);
}
.avatar::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  animation: logoSpin 20s linear infinite;
}
.avatar-1 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.avatar-2 { background: linear-gradient(135deg, #0891b2, #6366f1); }
.avatar-3 { background: linear-gradient(135deg, #ea580c, #eab308); }
.avatar-4 { background: linear-gradient(135deg, #16a34a, #06b6d4); }
.team-card h3 {
  font-size: 1.12rem;
  font-weight: 800;
}
.role {
  display: block;
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 6px 0 12px;
}
.team-card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-bottom: 18px;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  transition: all 0.3s;
}
.socials a:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--purple-light);
  transform: translateY(-4px);
}

.cta-wrapper {
  position: relative;
  text-align: center;
  padding: 70px 32px 50px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(139, 92, 246, 0.2), transparent 50%),
    radial-gradient(circle at 12% 85%, rgba(34, 211, 238, 0.14), transparent 50%),
    var(--surface);
}
.rocket-launch {
  font-size: 3.4rem;
  margin-bottom: 14px;
  animation: rocketFly 4s ease-in-out infinite;
}
@keyframes rocketFly {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(8deg); }
}
.cta-wrapper h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 10px;
}
.cta-wrapper > p {
  color: var(--text-secondary);
  margin-bottom: 34px;
}
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  color: var(--text-primary);
  outline: none;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(163, 163, 194, 0.7);
}
.form-note {
  color: var(--text-secondary);
  font-size: 0.82rem;
  margin-top: 14px;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.contact-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  transition: all 0.3s;
}
.contact-links a:hover {
  color: var(--text-primary);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.footer {
  border-top: 1px solid var(--border-glass);
  padding: 44px 0;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}
.footer-tagline {
  color: var(--purple-light) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal[data-reveal="right"] {
  transform: translateX(70px);
}
.reveal[data-reveal="left"] {
  transform: translateX(-70px);
}
.reveal[data-reveal="zoom"] {
  transform: scale(0.86);
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  z-index: 300;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.8);
}
.scroll-progress::after {
  content: "ðŸš€";
  position: absolute;
  left: -14px;
  top: -10px;
  font-size: 20px;
  transform: rotate(-90deg);
}

.custom-cursor {
  display: none;
  opacity: 1;
  transition: opacity 0.3s;
}
.custom-cursor.is-hidden {
  opacity: 0;
}
html.has-custom-cursor .custom-cursor {
  display: block;
}
html.has-custom-cursor,
html.has-custom-cursor * {
  cursor: none !important;
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--cyan);
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 0 10px var(--cyan), 0 0 26px rgba(34, 211, 238, 0.5);
  transition: width 0.25s, height 0.25s, margin 0.25s, background 0.25s, box-shadow 0.25s, transform 0.15s, opacity 0.25s;
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  z-index: 99998;
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    margin 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s, backdrop-filter 0.3s;
}
.ring-border {
  position: absolute;
  inset: 0;
  border: 1.6px dashed rgba(167, 139, 250, 0.75);
  border-radius: 50%;
  animation: ringSpin 7s linear infinite;
  transition: border-color 0.3s, border-style 0.3s;
}
.cursor-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s;
  white-space: nowrap;
}
.custom-cursor.is-hover .cursor-dot {
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink), 0 0 30px rgba(236, 72, 153, 0.55);
}
.custom-cursor.is-hover .cursor-ring {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
}
.custom-cursor.is-hover .ring-border {
  border-style: solid;
  border-color: rgba(236, 72, 153, 0.85);
}
.custom-cursor.is-watch .cursor-ring {
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
  background: rgba(139, 92, 246, 0.26);
  backdrop-filter: blur(3px);
}
.custom-cursor.is-watch .ring-border {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.55);
  animation-duration: 3.2s;
}
.custom-cursor.is-watch .cursor-dot {
  opacity: 0;
}
.custom-cursor.is-watch .cursor-label {
  opacity: 1;
  transform: scale(1);
}
.custom-cursor.is-press .cursor-dot {
  transform: scale(0.65);
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.timeline-dot {
  transition: all 0.55s ease;
  opacity: 0.45;
}
.timeline-item.lit .timeline-dot {
  opacity: 1;
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.7);
}
.timeline-item.lit .timeline-card {
  border-color: rgba(34, 211, 238, 0.45);
}

@keyframes filterPop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.work-card.pop {
  animation: filterPop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  background: #000;
}
.work-thumb:hover .hover-video,
.work-card.touch-playing .hover-video {
  opacity: 1;
}
.work-thumb:hover .play-btn {
  opacity: 0;
}

.vmodal {
  position: fixed;
  inset: 0;
  z-index: 96000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.vmodal.open {
  opacity: 1;
  pointer-events: auto;
}
.vmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 10, 0.88);
  backdrop-filter: blur(14px);
}
.vmodal-box {
  position: relative;
  width: min(920px, 94vw);
  background: rgba(13, 13, 32, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.45);
  border-radius: 22px;
  padding: 20px 22px 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 60px rgba(139, 92, 246, 0.25);
  transform: translateY(26px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.vmodal.open .vmodal-box {
  transform: none;
}
.vmodal-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  padding-left: 44px;
}
.vmodal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
}
.vmodal-close:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: var(--pink);
  transform: rotate(90deg);
}
#vmPlayer {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  outline: none;
}

@media (max-width: 640px) {
  .vmodal {
    padding: 12px;
  }
  .vmodal-box {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }
}

.more-wrap {
  text-align: center;
  margin-top: 48px;
}
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 42px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 10px 34px rgba(139, 92, 246, 0.45);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.more-btn::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  top: 0;
  left: -80px;
  transform: rotate(20deg);
  animation: shine 3.2s ease infinite;
}
@keyframes shine {
  0%, 60% { left: -80px; }
  100% { left: 130%; }
}
.more-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(139, 92, 246, 0.65);
}

.page-hero {
  padding: 150px 24px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.5;
  margin: 14px 0 10px;
}
.page-hero p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  transition: all 0.3s;
}
.back-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateX(-4px);
}

.pf-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}
.pf-search {
  position: relative;
}
.pf-search input {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 12px 44px 12px 20px;
  width: min(320px, 80vw);
  background: var(--surface);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.pf-search input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.pf-search::before {
  content: "🔍";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}
.pf-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 8px 18px;
  border-radius: 999px;
}
.pf-section {
  padding: 20px 0 110px;
}
.pf-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}
.pf-empty .big {
  font-size: 3rem;
  display: block;
  margin-bottom: 14px;
}
.admin-link {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.3s;
}
.admin-link:hover {
  opacity: 1;
  color: var(--purple-light);
}

.pf-hero {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 150px 24px 60px;
  position: relative;
  overflow: hidden;
}
.pf-hero .container {
  position: relative;
  z-index: 2;
}
.pf-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.5;
  margin: 16px 0 12px;
}
.pf-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.pf-count {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
}
@media (max-width: 640px) {
  .pf-hero {
    min-height: 52vh;
    padding-top: 120px;
  }
}

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

@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .services-grid,
  .team-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -280px;
    width: 270px;
    height: 100vh;
    background: rgba(8, 8, 24, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 22px;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-left: 1px solid var(--border-glass);
    margin: 0;
  }
  .nav-links.open {
    right: 0;
  }
  .hamburger {
    display: flex;
    order: 3;
  }
  .btn-nav {
    margin-right: auto;
  }
  .astronaut {
    font-size: 2.2rem;
    left: 6%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 22px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 80px 0;
  }
  .services-grid,
  .team-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-right: 30px;
  }
  .timeline::before,
  .timeline::after {
    right: 14px;
  }
  .timeline-dot {
    right: -30px;
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }
  .stat-number {
    font-size: 1.7rem;
  }
  .cta-wrapper {
    padding: 50px 20px 40px;
  }
}
