/* Modern Space Theme - طراحی سایت، برنامه نویسی و سئو */

/* پایه متغیرها و رنگ‌ها */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --muted: #64748b;
  --bg: #0a0e27;
  --bg-light: #0f1629;
  --bg-card: rgba(255, 255, 255, 0.05);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-space: linear-gradient(180deg, #0a0e27 0%, #1e293b 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

main {
  /* فاصله زیر منوی ثابت در بالای سایت */
  padding-top: 90px;
}

@media (max-width: 768px) {
  main {
    padding-top: 72px;
  }
}

/* Text Colors - Fix for dark theme readability */
.text-muted,
.text-muted.small,
small.text-muted,
p.text-muted,
p.text-muted.small,
.small.text-muted {
  color: var(--text-muted) !important;
}

p.small,
.small,
p.lead {
  color: var(--text-muted) !important;
}

ul.text-muted li,
.list-unstyled.text-muted li,
.list-unstyled li {
  color: var(--text-muted) !important;
}

/* Text Colors - Fix for dark theme */
.text-muted,
.text-muted p,
.text-muted small,
small.text-muted,
p.text-muted,
.lead.text-muted,
.text-muted.lead {
  color: var(--text-muted) !important;
}

p,
p.lead,
.small,
small {
  color: var(--text-muted);
}

.list-unstyled li,
ul.text-muted li {
  color: var(--text-muted);
}

/* Space Background Animation */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
  animation: spaceMove 20s ease-in-out infinite;
}

@keyframes spaceMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-20px, -20px) scale(1.1); }
}

/* Floating Stars */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Navbar */
.navbar {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  padding: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-toggler {
  border-color: rgba(148, 163, 184, 0.6);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(248,250,252,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-light) !important;
}

/* Buttons */
.btn-primary,
.btn-outline-primary,
.btn-sm,
a.btn {
  position: relative;
  z-index: 100;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-1);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
  z-index: 2;
}

.hero * {
  position: relative;
  z-index: 3;
}

.hero a {
  position: relative;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero .badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 50px;
  color: var(--primary-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cards */
.card-feature {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-feature:hover::before {
  opacity: 0.1;
}

.card-feature:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.card-feature .icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 15px;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  position: relative;
  z-index: 2;
}

.card-feature h6 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  color: var(--text);
}

.card-feature p {
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* Services Section */
.services-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.services-card * {
  position: relative;
  z-index: 11;
}

.services-card a {
  position: relative;
  z-index: 12;
  pointer-events: auto;
  cursor: pointer;
}

.services-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.services-card:hover::after {
  opacity: 1;
}

.services-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

/* Steps */
.steps {
  position: relative;
}

.step {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  transition: all 0.4s ease;
  height: 100%;
}

.step:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Footer */
footer {
  background: var(--dark-light);
  border-top: 1px solid rgba(99, 102, 241, 0.2);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  z-index: 2;
}

footer h6 {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-light);
  padding-right: 5px;
}

/* Utilities */
.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rounded-custom {
  border-radius: 20px;
}

.shadow-glow {
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

/* Floating Action Button */
.quick-call-btn {
  background: var(--gradient-1) !important;
  color: white !important;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 50px 50px 0 0;
  box-shadow: 0 -5px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  text-decoration: none;
}

.quick-call-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 -10px 30px rgba(99, 102, 241, 0.5);
}

/* موقعیت دکمه تماس فوری در موبایل (چسبیده به پایین صفحه) */
@media (max-width: 992px) {
  .quick-call-btn {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 1100;
  }

  main {
    padding-bottom: 80px; /* جا برای دکمه در پایین صفحه */
  }
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Animation Container */
#animation-container {
  width: 100%;
  max-width: 800px;
  height: 550px;
  position: relative;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.svg-box {
  width: 800px;
  height: 600px;
  position: absolute;
  z-index: 1;
  transform: scale(0.75);
  transform-origin: center;
  background: transparent;
  pointer-events: none;
}

.svg-box #robot {
  cursor: pointer;
  pointer-events: auto;
}

.svg-box svg {
  pointer-events: none;
}

@media (max-width: 768px) {
  #animation-container {
    max-width: 100%;
    height: 400px;
  }
  
  .svg-box {
    transform: scale(0.55);
  }
}

/* Particles Background */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(99, 102, 241, 0.5);
  border-radius: 50%;
  animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Pricing Cards */
.pricing-card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.4);
  border-color: var(--primary);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.price .currency {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price .amount {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Service Detail Cards */
.service-detail-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  height: 100%;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.service-detail-card .icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 15px;
  font-size: 2rem;
  color: white;
}

.service-detail-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.service-detail-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Responsive اصلاحات کلی ریسپانسیو */
@media (max-width: 992px) {
  .navbar-nav .nav-link {
    margin: 0.35rem 0;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 5.5rem 0 3rem;
    text-align: center;
  }

  .hero .row {
    flex-direction: column-reverse;
  }

  .hero .badge {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero::before,
  .hero::after {
    width: 300px;
    height: 300px;
  }

  .pricing-card,
  .card-feature,
  .service-detail-card {
    padding: 1.75rem;
  }

  section.py-5 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .price .amount {
    font-size: 1.9rem;
  }

  .pricing-card {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 992px) {
  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .price .amount {
    font-size: 2rem;
  }
  
  .pricing-card .col-lg-3,
  .pricing-card .col-lg-4 {
    margin-bottom: 1rem;
  }
}