:root {
  --primary-color: #1a5276;
  --secondary-color: #e74c3c;
  --accent-color: #f39c12;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  line-height: 1.8;
  color: #333;
}

.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}

.hero-section {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="600" viewBox="0 0 1200 600"><rect width="1200" height="600" fill="%231a5276"/><circle cx="300" cy="300" r="150" fill="%23e74c3c" opacity="0.1"/><circle cx="900" cy="200" r="100" fill="%23f39c12" opacity="0.1"/><circle cx="700" cy="400" r="120" fill="%231a5276" opacity="0.1"/></svg>');
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* شبکه نورانی متحرک */
.grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background-image: 
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridFlow 40s linear infinite;
  transform-origin: center;
}

/* ذرات نورانی */
.floating-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  filter: blur(1px);
  animation: particleFloat 8s ease-in-out infinite;
}

.particle-1 {
  width: 4px;
  height: 4px;
  top: 20%;
  left: 15%;
  animation-delay: 0s;
  background: radial-gradient(circle, #3498db 0%, transparent 70%);
}

.particle-2 {
  width: 6px;
  height: 6px;
  top: 60%;
  right: 20%;
  animation-delay: 2s;
  background: radial-gradient(circle, #e74c3c 0%, transparent 70%);
}

.particle-3 {
  width: 3px;
  height: 3px;
  bottom: 30%;
  left: 25%;
  animation-delay: 4s;
  background: radial-gradient(circle, #f39c12 0%, transparent 70%);
}

.particle-4 {
  width: 5px;
  height: 5px;
  bottom: 15%;
  right: 30%;
  animation-delay: 1s;
  background: radial-gradient(circle, #2ecc71 0%, transparent 70%);
}

.particle-5 {
  width: 4px;
  height: 4px;
  top: 40%;
  right: 10%;
  animation-delay: 3s;
  background: radial-gradient(circle, #9b59b6 0%, transparent 70%);
}

/* امواج انرژی */
.energy-wave {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(52, 152, 219, 0.3);
  animation: waveExpand 6s linear infinite;
}

.wave-1 {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 20%;
  animation-delay: 0s;
}

.wave-2 {
  width: 150px;
  height: 150px;
  bottom: 25%;
  right: 15%;
  animation-delay: 2s;
  border-color: rgba(231, 76, 60, 0.3);
}

.wave-3 {
  width: 200px;
  height: 200px;
  top: 15%;
  right: 25%;
  animation-delay: 4s;
  border-color: rgba(243, 156, 18, 0.3);
}

/* نورهای محیطی */
.ambient-light {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 82, 118, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  animation: ambientMove 20s ease-in-out infinite;
}

.light-1 {
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.light-2 {
  bottom: -200px;
  left: -100px;
  animation-delay: 10s;
  background: radial-gradient(circle, rgba(231, 76, 60, 0.1) 0%, transparent 70%);
}

/* خطوط اسکنر */
.scanner-line {
  position: absolute;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, 
      transparent 0%, 
      rgba(52, 152, 219, 0.6) 20%, 
      rgba(52, 219, 197, 0.8) 50%, 
      rgba(52, 152, 219, 0.6) 80%, 
      transparent 100%);
  box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
  animation: scannerMove 4s linear infinite;
}

.scanner-1 {
  top: 25%;
  animation-delay: 0s;
}

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

/* انیمیشن‌ها */
@keyframes gridFlow {
  0% {
      transform: translate(-50px, -50px) rotate(0deg);
  }
  100% {
      transform: translate(0, 0) rotate(0.5deg);
  }
}

@keyframes particleFloat {
  0%, 100% {
      transform: translateY(0) translateX(0);
      opacity: 0.3;
  }
  25% {
      transform: translateY(-20px) translateX(10px);
      opacity: 0.8;
  }
  50% {
      transform: translateY(-10px) translateX(-5px);
      opacity: 1;
  }
  75% {
      transform: translateY(10px) translateX(5px);
      opacity: 0.6;
  }
}

@keyframes waveExpand {
  0% {
      transform: scale(0.5);
      opacity: 1;
  }
  100% {
      transform: scale(3);
      opacity: 0;
  }
}

@keyframes ambientMove {
  0%, 100% {
      transform: translate(0, 0) scale(1);
      opacity: 0.3;
  }
  50% {
      transform: translate(50px, -30px) scale(1.2);
      opacity: 0.6;
  }
}

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

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 30px rgba(52, 152, 219, 0.7);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
      text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
  }
  to {
      text-shadow: 0 0 30px rgba(52, 152, 219, 0.8), 0 0 40px rgba(52, 152, 219, 0.4);
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.btn-custom {
  background: linear-gradient(45deg, #FF6600, #FF6600);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.btn-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-custom:hover::before {
  left: 100%;
}

@media (max-width: 768px) {
  .hero-title {
      font-size: 2rem;
  }
  
  .grid-lines {
      background-size: 40px 40px;
  }
  
  .ambient-light {
      width: 300px;
      height: 300px;
  }
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
}

.service-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-img {
  aspect-ratio: 3/2;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-color);
  overflow: hidden;
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary-color);
  transform: translateX(50%);
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-content {
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  position: relative;
  width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  left: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: -10px;
}

footer {
  background-color: var(--dark-color);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 1.5rem;
}

.footer-title {
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.social-icons a {
  color: #ffffff;
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: #1a5276;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-left: 0.5rem;
  transition: all 0.3s;
  padding-top: 3px;
  font-size: 1.4rem;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero-title {
      font-size: 2rem;
  }
  
  .timeline::before {
      right: 30px;
  }
  
  .timeline-content {
      width: calc(100% - 60px);
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
      margin-right: 0;
      margin-left: auto;
  }
  
  .timeline-content::before {
      right: -10px;
      left: auto;
  }
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.company-logo {
  width: 300px;
  height: 300px;
  background-color: transparent;
}