:root {
    --primary-blue: #0B5FD7;
    --primary-green: #8FD61A;
    --dark-blue: #0A4FB5;
    --light-gray: #F5F7FA;
    --medium-gray: #E1E8ED;
    --dark-gray: #2C3E50;
    --white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --shadow-light: rgba(11, 95, 215, 0.08);
    --shadow-medium: rgba(11, 95, 215, 0.15);
}

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

a {
    color: inherit;
    text-decoration: none;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(30, 114, 186, 0.1), rgba(117, 187, 11, 0.08));
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======= ROOT VARIABLES ======= */
:root {

  /* رنگ‌های اصلی */
  --primary-blue: #1e72ba; /* می‌تونه همون بمونه چون با لایت هم خوبه */
  --primary-green: #75bb0b;

  --glass-bg: rgba(255, 255, 255, 0.5); /* روشن‌تر و شفاف‌تر */

  /* رنگ‌های هدر */
  --header-bg-start: rgba(245, 248, 255, 0.1); /* روشن و لایت */
  --header-bg-end: rgba(230, 240, 255, 0.95);
  --header-scrolled-bg: rgba(255, 255, 255, 0.98);
  --header-border: rgba(30, 114, 186, 0.25); /* سبز/آبی برای تم لایت */
  --header-shadow: rgba(0, 0, 0, 0.05); /* ملایم */
  --header-scrolled-shadow: rgba(30, 114, 186, 0.1);

  /* رنگ‌های متن */
  --text-light: #333; /* متن اصلی */
  --text-secondary: #555; /* متن فرعی */
  --text-dark: #000; /* اگر لازم باشه */

  /* رنگ‌های بخش‌ها */
  --section-bg-start: rgba(255, 255, 255, 0.95); /* روشن و سفید */
  --section-bg-end: rgba(245, 248, 255, 0.95);
  --section-shadow: rgba(0, 0, 0, 0.05);
  --section-hover-shadow: rgba(30, 114, 186, 0.1);

  /* رنگ‌های کارت */
  --card-border: rgba(30, 114, 186, 0.15);
  --card-shadow: rgba(0, 0, 0, 0.05);
  --card-hover-shadow: rgba(30, 114, 186, 0.15);

  /* رنگ‌های دکمه */
  --btn-shadow: rgba(30, 114, 186, 0.2);
  --btn-hover-shadow: rgba(30, 114, 186, 0.35);

  /* ابعاد و اندازه‌ها */
  --header-height: 80px;
  --border-radius-small: 12px;
  --border-radius-medium: 20px;
  --border-radius-large: 28px;
  --border-radius-xl: 40px;

  /* سایه‌ها */
  --shadow-light: 0 8px 20px rgba(0,0,0,0.05);
  --shadow-medium: 0 10px 25px rgba(0,0,0,0.03);
  --shadow-strong: 0 10px 40px rgba(0,0,0,0.08);

  /* انیمیشن‌ها */
  --transition-fast: 0.3s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.5s ease;

}
/* ======= HEADER ULTRA STYLE ======= */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--header-bg-start), var(--header-bg-end));
  backdrop-filter: blur(5px) saturate(180%);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 0 25px var(--header-shadow);
  border-radius: 0 0 var(--border-radius-medium) var(--border-radius-medium);
  transition: all var(--transition-normal);
  animation: fadeInDown 0.8s ease forwards;
}

/* Scroll animation */
.main-header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(117, 187, 11, 0.5);
  box-shadow: 0 6px 40px var(--header-scrolled-shadow);
  transform: translateY(-3px);
}

/* Container */
.main-header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  transition: all var(--transition-fast);
}

/* Navbar Layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== Logo + Brand ===== */
.logo-pafen {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition-fast);
}

.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(30, 114, 186, 0.4));
  transition: all var(--transition-normal);
}

.logo:hover {
  transform: rotate(-8deg) scale(1.08);
  filter: drop-shadow(0 0 14px rgba(117, 187, 11, 0.6));
}

.brand-text h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 12px rgba(117, 187, 11, 0.3);
}

.brand-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  letter-spacing: 0.5px;
}

/* ===== Nav Menu ===== */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  position: relative;
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-fast);
  padding: 0.5rem 0;
}

.nav-menu li a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  border-radius: 3px;
  transition: width var(--transition-fast);
}

.nav-menu li a:hover::before,
.nav-menu li a.active::before {
  width: 100%;
}

.nav-menu li a:hover {
  color: var(--primary-green);
  text-shadow: 0 0 8px rgba(117, 187, 11, 0.7);
  transform: translateY(-1px);
}

/* ===== Mobile Menu Button ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  border-radius: 5px;
  transition: all var(--transition-normal);
}

/* ===== Glow underline (decoration) ===== */
.main-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 30%;
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, rgba(30, 114, 186, 0.7), rgba(117, 187, 11, 0.7));
  box-shadow: 0 0 18px rgba(117, 187, 11, 0.4);
  border-radius: 50%;
  opacity: 0.9;
  transition: all var(--transition-fast);
}

/* ===== Animations ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 250px;
    height: calc(100vh - var(--header-height));
    background: rgba(10, 20, 40, 0.95);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    border-left: 2px solid rgba(117, 187, 11, 0.4);
    transition: right var(--transition-normal);
    border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium);
    box-shadow: -8px 0 25px rgba(30, 114, 186, 0.3);
  }

  .nav-menu.open {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}

/* ===== Scroll Smooth Effect ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Hero Section (Slider) ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
  box-shadow: var(--shadow-medium);
  background: #f5f7fb;
  margin-top: 100px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease, transform 1.5s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  transform: scale(1.02);
}

.slide-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  padding: 24px 36px;
  border-radius: var(--border-radius-medium);
  max-width: 700px;
  box-shadow: var(--shadow-light);
  animation: fadeUp 1.2s ease forwards;
  margin-top: 150px;
}

.slide-content h2 {
  font-size: 1.8rem;
  color: #0b5fd7;
  margin-bottom: 0.6rem;
  letter-spacing: -0.3px;
  font-weight: 700;
}

.slide-content p {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.9;
}

/* ====== SLIDER CONTROLS ====== */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(11,95,215,0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.control-btn.active {
  background: linear-gradient(135deg, #0b5fd7, #8fd61a);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(11,95,215,0.4);
}

.control-btn:hover {
  background: rgba(11,95,215,0.6);
}

/* ====== FADE-IN ANIMATION ====== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Sections General ===== */
.section {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--section-bg-start), var(--section-bg-end));
  border-radius: var(--border-radius-xl);
  margin: 3rem auto;
  width: 92%;
  box-shadow: 0 0 35px var(--section-shadow);
  transition: all var(--transition-slow);
}

/* Subtle glow on scroll */
.section:hover {
  box-shadow: 0 0 45px var(--section-hover-shadow);
}

.section-title {
  font-size: 2rem;
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(117, 187, 11, 0.3);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

/* ===== Product Cards (Light Theme Optimized) ===== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-large);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px var(--card-shadow);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 40px var(--card-hover-shadow);
  border-color: rgba(30, 114, 186, 0.25);
}

/* === Product Image === */
.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 2px solid rgba(30, 114, 186, 0.2);
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

/* === Content === */
.product-content {
  padding: 1.8rem;
  text-align: right;
  color: var(--text-light);
}

.product-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-blue);
  font-weight: 600;
}

.product-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Tables inside cards === */
.product-content table {
  width: 100%;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-collapse: collapse;
}

.product-content td {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-content h4 {
  color: var(--primary-blue);
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.product-content ul {
  margin-right: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Button === */
.btn-primary {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.6rem 1.6rem;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: var(--border-radius-small);
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  color: white;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px var(--btn-shadow);
}

.btn-primary:hover {
  box-shadow: 0 0 25px var(--btn-hover-shadow);
  transform: translateY(-2px);
}

/* ===== Consultation Section ===== */
.consultation-section {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(30, 114, 186, 0.5), rgba(117, 187, 11, 0.6));
  border-top: 2px solid rgba(30, 114, 186, 0.3);
  border-bottom: 2px solid rgba(117, 187, 11, 0.3);
  border-radius: var(--border-radius-medium);
  margin: 4rem auto;
  width: 90%;
  box-shadow: 0 0 40px rgba(30, 114, 186, 0.25);
}

.consultation-section h2 {
  font-size: 2rem;
  /* color: var(--primary-green); */

}

.consultation-section p {
  font-size: 1.1rem;
  margin: 1rem 0 2rem;
}

.btn-outline {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  font-weight: 600;
  border-radius: var(--border-radius-small);
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: white;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
  box-shadow: 0 0 25px var(--btn-hover-shadow);
}

/* ===== Partners & Certifications ===== */
.partners-grid, .cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.partner-logo, .cert-badge {
  background: var(--glass-bg);
  border: 1px solid rgba(30, 114, 186, 0.3);
  border-radius: var(--border-radius-medium);
  padding: 1.5rem 2.5rem;
  box-shadow: 0 0 20px rgba(30, 114, 186, 0.2);
  transition: all var(--transition-normal);
}

.partner-logo:hover, .cert-badge:hover {
  transform: translateY(-5px);
  border-color: rgba(117, 187, 11, 0.5);
  box-shadow: 0 0 35px rgba(117, 187, 11, 0.35);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .slide-content {
    right: 5%;
    bottom: 15%;
    padding: 1.2rem 1.5rem;
  }

  .slide-content h2 {
    font-size: 1.6rem;
  }

  .section {
    width: 96%;
    border-radius: var(--border-radius-medium);
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ====== FOOTER ====== */
.main-footer {
  background: linear-gradient(145deg, #1e72ba , #103f8f, #0e2f5b);
  color: #fff;
  padding: 70px 0 20px;
  position: relative;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
}

/* افکت نور پس‌زمینه */
.main-footer::before {
  content: '';
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at center, rgba(117,187,11,0.2), transparent 70%);
  z-index: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.footer-section {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 20px 25px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.footer-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 20px rgba(117,187,11,0.2);
}

.footer-section h3 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(117,187,11,0.4);
  display: inline-block;
  padding-bottom: 4px;
  font-weight: 600;
}

.footer-section p, 
.footer-section li, 
.footer-section a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  text-decoration: none;
}

.footer-section a:hover {
  color: #75bb0b;
  text-shadow: 0 0 6px rgba(117,187,11,0.6);
}

.footer-links, .contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 6px 0;
}

.footer-logo img {
  width: 120px;
  margin-top: 10px;
  filter: brightness(0) invert(1);
}

/* ====== SOCIAL LINKS ====== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.social-icon {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-align: center;
}

.social-icon:hover {
  background: linear-gradient(135deg, #75bb0b, #1e72ba);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(117,187,11,0.3);
}

/* ====== CERTIFICATIONS ====== */
.certifications {
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.9;
  color: #d5eaff;
}

/* ====== FOOTER BOTTOM ====== */
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding-top: 15px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

.footer-bottom p {
  margin: 0;
  letter-spacing: 0.5px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .main-footer {
    padding: 50px 20px 20px;
  }
  .footer-section {
    padding: 18px;
  }
  .footer-section h3 {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        box-shadow: 0 4px 20px var(--shadow-light);
        padding: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* خطوط پس زمینه */
.background-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.blue-line {
    position: absolute;
    top: 0;
    left: 5%;
    width: 60px;
    height: 100%;
    background: #1e72ba;
    transform: translateX(-50%);
}


.green-line {
    position: absolute;
    top: 0;
    left: calc(5% + 45px);
    width: 30px;
    height: 100%;
    background: #75bb0b;
    transform: translateX(-50%);
}

/* Preloader Styles */
/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B5FD7, #8FD61A);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Logo Container with Advanced Effects */
.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatLogo 3s ease-in-out infinite;
}

/* Main Logo Styling */
.loading-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
        drop-shadow(0 0 40px rgba(255, 255, 255, 0.6))
        drop-shadow(0 0 60px rgba(255, 255, 255, 0.4))
        brightness(1.1)
        contrast(1.2);
    position: relative;
    z-index: 2;
    animation: pulseLogo 2s ease-in-out infinite alternate;
}

/* Advanced Glow Effect */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 30%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 70%
    );
    border-radius: 50%;
    animation: glowPulse 2s ease-in-out infinite alternate;
    z-index: 1;
}

/* Additional Ring Effects */
.logo-container::before,
.logo-container::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotateRings 4s linear infinite;
}

.logo-container::before {
    width: 150px;
    height: 150px;
    border-top-color: rgba(255, 255, 255, 0.8);
    animation-delay: 0.2s;
}

.logo-container::after {
    width: 170px;
    height: 170px;
    border-bottom-color: rgba(255, 255, 255, 0.6);
    animation-delay: 0.4s;
}

/* Loading Text Styling */
.loading-text {
    color: white;
    text-align: center;
}

.loading-text p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Loading Dots Animation */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: bounceDots 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

/* Animations */
@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

@keyframes pulseLogo {
    0% {
        filter: 
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 60px rgba(255, 255, 255, 0.4))
            brightness(1.1)
            contrast(1.2);
    }
    100% {
        filter: 
            drop-shadow(0 0 25px rgba(255, 255, 255, 1))
            drop-shadow(0 0 50px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 75px rgba(255, 255, 255, 0.6))
            brightness(1.2)
            contrast(1.3);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes rotateRings {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes bounceDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        width: 140px;
        height: 140px;
    }
    
    .loading-logo {
        width: 100px;
        height: 100px;
    }
    
    .logo-glow {
        width: 130px;
        height: 130px;
    }
    
    .logo-container::before {
        width: 120px;
        height: 120px;
    }
    
    .logo-container::after {
        width: 140px;
        height: 140px;
    }
    
    .loading-text p {
        font-size: 1rem;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .logo-container,
    .loading-logo,
    .logo-glow,
    .logo-container::before,
    .logo-container::after,
    .loading-dots span {
        animation: none;
    }
    
    .loading-logo {
        filter: 
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.8))
            brightness(1.1);
    }
}

.molecule {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.atom {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    animation: orbit 3s linear infinite;
}

.atom:nth-child(1) { top: 0; left: 30px; animation-delay: 0s; }
.atom:nth-child(2) { top: 30px; right: 0; animation-delay: -1s; }
.atom:nth-child(3) { bottom: 30px; left: 0; animation-delay: -2s; }

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(30px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fab {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(11, 95, 215, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(11, 95, 215, 0.5);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    left: 30px;
    bottom: 120px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chat-widget.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-particles {
    position: relative;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(11, 95, 215, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 80%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Enhanced Hero Stats */
.hero-stats {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin-top: -50px;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    margin: -50px 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, rgba(11, 95, 215, 0.1), rgba(143, 214, 26, 0.1));
    padding: 60px 0;
    border-radius: 30px;
    margin: 40px auto;
    width: 90%;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 20px rgba(143, 214, 26, 0.3);
}

.newsletter-form button {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 95, 215, 0.4);
}

/* Enhanced Product Cards with 3D Effect */
.product-card {
    perspective: 1000px;
}

.product-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.product-card:hover .product-card-inner {
    transform: rotateY(10deg) rotateX(5deg);
}

/* Glass Morphism Enhancement */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 95, 215, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
}

/* Text Selection Color */
::selection {
    background: rgba(143, 214, 26, 0.3);
    color: var(--text-primary);
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
  justify-items: center;
}

.partner-logo {
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.partner-photo {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin: 0 auto 0.8rem;
  border: 3px solid var(--primary-blue);
  box-shadow: 0 6px 12px rgba(30, 114, 186, 0.15);
  transition: all 0.4s ease;
}

/* افکت hover */
.partner-logo:hover .partner-photo {
  transform: scale(1.07) rotate(3deg);
  border-color: var(--primary-green);
  box-shadow: 0 10px 20px rgba(117, 187, 11, 0.25);
}

/* افکت چرخان با ترکیب آبی و سبز */
.partner-photo::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    from 0deg,
    var(--primary-blue),
    transparent,
    var(--primary-green),
    transparent,
    var(--primary-blue)
  );
  animation: rotateGlow 6s linear infinite;
  z-index: 0;
  opacity: 0.15;
}

.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.partner-logo strong {
  color: var(--primary-blue);
  font-size: 1rem;
  font-weight: 600;
  display: block;
  transition: color 0.3s ease;
}

.partner-logo:hover strong {
  color: var(--primary-green);
}

/* چرخش نرم هاله رنگی */
@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* === صفحه محصولات هلسا بهبود === */

.hero-section {
  background: linear-gradient(135deg, var(--section-bg-start), var(--section-bg-end));
  text-align: center;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-light);
  transition: var(--transition-slow);
  backdrop-filter: blur(8px);
  animation: fadeInUp 1s ease;
}

.hero-section h1 {
  color: var(--primary-blue);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-section p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

#searchInput, #categoryFilter {
  background: var(--glass-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--border-radius-small);
  box-shadow: var(--shadow-light);
  transition: var(--transition-fast);
}

#searchInput:focus, #categoryFilter:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 10px rgba(30, 114, 186, 0.15);
  outline: none;
}

/* === کارت محصولات === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--section-bg-start);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-medium);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: fadeIn 0.8s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(30, 114, 186, 0.25);
}

.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--card-border);
  transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-content {
  padding: 1.5rem;
  text-align: right;
}

.product-content h3 {
  color: var(--primary-blue);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.product-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

/* === جدول مشخصات === */
.product-content table {
  border-collapse: collapse;
}

.product-content td {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* === دکمه‌ها === */
.btn-outline {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  background: transparent;
  border-radius: var(--border-radius-small);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: var(--transition-normal);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: white;
  box-shadow: var(--btn-hover-shadow);
}

/* === بخش مشاوره === */
.consultation-section {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  margin-top: 4rem;
}

.consultation-section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.consultation-section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* === افکت‌ها === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


