:root {
  --primary: #0A2463;
  --secondary: #3E92CC;
  --accent: #FB8500;
  --dark: #0F1419;
  --light: #F8F9FA;
  --gradient-1: linear-gradient(135deg, #0A2463 0%, #1E3A8A 50%, #3E92CC 100%);
  --gradient-2: linear-gradient(45deg, #FB8500 0%, #FFB703 100%);
  --text-primary: #1A1A1A;
  --text-secondary: #4A5568;
  --border: rgba(10, 36, 99, 0.1);
}

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

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

/* نوار بالایی */
.top-bar {
  background: var(--gradient-1);
  color: white;
  padding: 12px 20px;
  font-size: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  100% {
    left: 100%;
  }
}

/* هدر */
header {
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* لوگو با تصویر واقعی */
.logo-image-wrapper {
  width: 130px;
  height: 130px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0px;
  < !-- border: 1px solid rgba(10, 36, 99, 0.1);
  -->position: relative;
  overflow: visible;
}



.logo-image-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(10, 36, 99, 0.25);
  border-color: var(--secondary);
}

.logo-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(62, 146, 204, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
  border-radius: 12px;
}

.logo-image-wrapper:hover::before {
  transform: translateX(100%);
}

.logo-text h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-text p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* منوی همبرگری */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 20px;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--secondary);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* اسلایدر - بهینه‌سازی کامل */
.slider-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: var(--dark);
}

.slider {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 36, 99, 0.92) 0%, rgba(30, 58, 138, 0.85) 50%, rgba(62, 146, 204, 0.78) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  padding: 0 40px;
  color: white;
  text-align: center;
  animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.slide h2 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide p {
  font-size: 22px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
}

.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
  width: 40px;
  border-radius: 6px;
  background: white;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
  font-size: 30px;
  font-weight: bold;
  user-select: none;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
  right: 30px;
}

.slider-arrow.next {
  left: 30px;
}

/* بخش خدمات */
.services {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h3 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-2);
  border-radius: 2px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 20px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: white;
  padding: 45px 35px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
}

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

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(10, 36, 99, 0.15);
  border-color: var(--secondary);
}

.service-card:hover::before {
  opacity: 0.03;
}

.service-card>* {
  position: relative;
  z-index: 1;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(10, 36, 99, 0.2);
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* بخش درباره ما */
.about {
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  padding: 100px 40px;
}

.about-content {
  max-width: 1400px;
  margin: 0 auto;
}

.about-intro {
  text-align: center;
  margin-bottom: 60px;
}

.about-intro h3 {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-intro p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto;
  line-height: 2;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}

.about-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-box h4 {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-box p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: 15px;
}

.about-box ul {
  list-style: none;
  padding: 0;
}

.about-box ul li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-box ul li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--gradient-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
  font-size: 14px;
}

/* بخش تماس */
.contact {
  padding: 100px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-info {
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-item-content h5 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-item-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-item-content a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item-content a:hover {
  color: var(--accent);
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* فوتر */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 40px 30px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-about h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.8;
}

.footer-section h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer-section ul li a:hover {
  opacity: 1;
  padding-right: 5px;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.7;
}

/* ========================================
    RESPONSIVE STYLES - موبایل فرست
======================================== */

@media (max-width: 968px) {

  /* اسلایدر در موبایل نمایش داده نمی‌شه */
  .slider-container {
    display: none;
  }

  /* هدر */
  .header-content {
    padding: 15px 20px;
    flex-wrap: wrap;
  }

  .logo {
    gap: 10px;
  }

  .logo-image-wrapper {
    width: 60px;
    height: 60px;
  }

  .logo-text h1 {
    font-size: 18px;
  }

  .logo-text p {
    font-size: 10px;
  }

  /* منوی همبرگری */
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    padding-top: 80px;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  nav a {
    display: block;
    padding: 18px 15px;
    font-size: 16px;
  }

  nav a::after {
    display: none;
  }

  /* اسلایدر - بهینه‌سازی کامل موبایل */
  .slider-container {
    height: 450px;
  }

  .slide-content {
    padding: 0 20px;
  }

  .slide-icon {
    width: 80px;
    height: 80px;
    font-size: 40px;
    margin-bottom: 20px;
  }

  .slide h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .slide p {
    font-size: 15px;
    line-height: 1.6;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  .slider-arrow.prev {
    right: 15px;
  }

  .slider-arrow.next {
    left: 15px;
  }

  .slider-nav {
    bottom: 20px;
    gap: 8px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .slider-dot.active {
    width: 24px;
  }

  /* خدمات */
  .services {
    padding: 60px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h3 {
    font-size: 28px;
  }

  .section-header p {
    font-size: 15px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 30px 25px;
  }

  /* درباره ما */
  .about {
    padding: 60px 20px;
  }

  .about-intro h3 {
    font-size: 28px;
  }

  .about-intro p {
    font-size: 15px;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-box {
    padding: 30px 25px;
  }

  .about-box h4 {
    font-size: 22px;
  }

  /* تماس */
  .contact {
    padding: 60px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-info {
    padding: 30px 25px;
  }

  .map-container {
    min-height: 300px;
  }

  /* فوتر */
  footer {
    padding: 40px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* تبلت (768px - 968px) */
@media (min-width: 769px) and (max-width: 968px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-details {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* موبایل کوچک (تا 480px) */
@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 16px;
  }

  .logo-text p {
    font-size: 9px;
  }

  .slider-container {
    height: 400px;
  }

  .slide h2 {
    font-size: 24px;
  }

  .slide p {
    font-size: 14px;
  }

  .section-header h3 {
    font-size: 24px;
  }
}