/* ===========================================
   أنماط الصفحة الرئيسية
   Homepage Styles
   =========================================== */

/* ============ Hero Section - Modern ============ */
.hero {
  position: relative;
  min-height: 90vh;
  background: linear-gradient(135deg, #0A2463 0%, #122F73 40%, #1A3E8C 70%, #0D2B6B 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Ambient glow overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(30, 64, 175, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(37, 99, 235, 0.15) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Floating shapes */
.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: white;
}

.hero-shape.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
  animation: floatShape 15s ease-in-out infinite;
}

.hero-shape.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -80px;
  left: 10%;
  animation: floatShape 12s ease-in-out infinite reverse;
}

.hero-shape.shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  left: -50px;
  animation: floatShape 10s ease-in-out infinite 2s;
}

.hero-shape.shape-4 {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 30%;
  animation: floatShape 8s ease-in-out infinite 1s;
  border-radius: 30%;
  transform: rotate(45deg);
}

.hero-shape.shape-5 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  right: 15%;
  animation: floatShape 14s ease-in-out infinite 3s;
}

.hero-shape.shape-6 {
  width: 60px;
  height: 60px;
  top: 60%;
  left: 25%;
  animation: floatShape 9s ease-in-out infinite 4s;
  border-radius: 20%;
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-3deg); }
}

/* Hero Container */
.hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 0 20px;
}

/* Hero Content */
.hero-content {
  flex: 1;
  max-width: 620px;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.95);
  animation: heroFadeUp 0.8s ease-out both;
}

.hero-badge i {
  color: var(--red-accent, #EF4444);
  font-size: 0.9rem;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  animation: heroFadeUp 0.8s ease-out 0.15s both;
}

.hero-highlight {
  position: relative;
  color: var(--red-accent, #EF4444);
  display: inline-block;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 0;
  left: 0;
  height: 6px;
  background: var(--red-main, #DC2626);
  opacity: 0.4;
  border-radius: 3px;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.9;
  opacity: 0.9;
  margin-bottom: 32px;
  animation: heroFadeUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s ease-out 0.45s both;
}

.btn-hero-primary {
  background: white;
  color: #0A2463;
  border: none;
  padding: 16px 32px;
  font-weight: 700;
  border-radius: 12px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  -webkit-appearance: none;
  text-decoration: none;
}

.btn-hero-primary:hover {
  background: var(--red-main, #DC2626);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 16px 32px;
  font-weight: 700;
  border-radius: 12px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px);
}

/* Hero Visual - Orb + Floating Icons */
.hero-visual {
  flex: 1;
  max-width: 420px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  animation: heroFadeUp 1s ease-out 0.3s both;
}

.hero-orb {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(220, 38, 38, 0.25), rgba(10, 36, 99, 0.35));
  box-shadow:
    0 0 60px rgba(220, 38, 38, 0.15),
    0 0 120px rgba(10, 36, 99, 0.12),
    inset 0 0 60px rgba(255, 255, 255, 0.08);
  animation: orbPulse 4s ease-in-out infinite;
  position: relative;
}

.hero-orb-inner {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  animation: orbRotate 20s linear infinite;
}

.hero-orb-inner::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--red-main, #DC2626);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--red-main, #DC2626);
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes orbRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating medical icons around orb */
.hero-float-icon {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
}

.float-icon-1 { top: 8%; right: 12%; animation: floatIcon 6s ease-in-out infinite; }
.float-icon-2 { top: 18%; left: 8%; animation: floatIcon 6s ease-in-out infinite 1s; }
.float-icon-3 { bottom: 28%; right: 5%; animation: floatIcon 6s ease-in-out infinite 2s; }
.float-icon-4 { bottom: 12%; left: 12%; animation: floatIcon 6s ease-in-out infinite 0.5s; }
.float-icon-5 { top: 55%; right: -2%; animation: floatIcon 6s ease-in-out infinite 1.5s; }
.float-icon-6 { top: 42%; left: -5%; animation: floatIcon 6s ease-in-out infinite 3s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0 50px;
  color: white;
  animation: heroFadeUp 0.8s ease-out 0.6s both;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.65;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Wave Divider */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* Hero Animation */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Responsive */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 50px 0 10px;
    gap: 24px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: 240px;
    min-height: 240px;
  }

  .hero-orb {
    width: 180px;
    height: 180px;
  }

  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-visual {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Keep old button classes for other pages */
.hero-buttons .btn {
  padding: 16px 32px;
  font-weight: 700;
  border-radius: 12px;
}

/* ============ Features Section ============ */
.features-section {
  padding: 50px 0 30px;
  background: white;
  position: relative;
  z-index: 30;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px 16px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(10, 36, 99, 0.1);
  transform: translateY(-5px);
  border-color: var(--red-main, #DC2626);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-500);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-card:hover .feature-icon {
  background: var(--red-main);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0A2463;
  margin: 0;
}

.feature-card p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ============ Section Styles ============ */
.section {
  padding: 50px 0;
}

.products-section {
  padding: 50px 0;
  background: white;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0A2463;
  position: relative;
  padding-bottom: 12px;
  margin: 0;
  display: flex;
  align-items: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 4px;
  background: var(--red-main);
  border-radius: 10px;
}

body.ltr .section-title::after {
  right: auto;
  left: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: #0A2463;
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.view-all-link:hover {
  gap: var(--spacing-sm);
  color: var(--red-main, #DC2626);
}

/* ============ Categories Section ============ */
.categories-section {
  background: #f8f9fa;
  padding: 50px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

.category-card {
  background: white;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(10, 36, 99, 0.15);
  border-color: var(--red-main, #DC2626);
}

.category-icon {
  width: 70px;
  height: 70px;
  background: #E8EEF7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-icon i {
  font-size: 1.8rem;
  color: #0A2463;
}

.category-card:hover .category-icon {
  background: var(--primary-500);
}

.category-card:hover .category-icon i {
  color: white;
}

.category-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0A2463;
  margin: 0;
}

.category-count {
  font-size: 0.8rem;
  color: #6b7280;
}

.category-card:hover .category-name {
  color: var(--red-main, #DC2626);
}

body.ltr .category-count {
  left: auto;
  right: var(--spacing-sm);
}

/* ============ Products Section ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .products-grid {
    gap: var(--spacing-sm);
  }
}

/* ============ CTA Section ============ */
.cta-section {
  background: var(--primary-500);
  padding: var(--spacing-2xl) 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.cta-content p {
  opacity: 0.9;
  margin-bottom: var(--spacing-xl);
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: var(--spacing-md) var(--spacing-xl);
}

/* ============ Services Section ============ */
.services-section {
  background: #F9FAFB;
  padding: var(--spacing-2xl) 0;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1rem;
  margin-top: var(--spacing-sm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: var(--spacing-xl);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(10, 36, 99, 0.15);
  border-color: var(--red-main, #DC2626);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card:hover .service-icon {
  background: var(--red-main);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: #0A2463;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-lg);
  border: 2px solid #0A2463;
  color: #0A2463;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #0A2463;
  color: white;
}

/* ============ Newsletter Section ============ */
.newsletter-section {
  background: var(--gray-100);
  padding: var(--spacing-2xl) 0;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h3 {
  margin-bottom: var(--spacing-sm);
}

.newsletter-content p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
}

.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
}

.newsletter-form input {
  flex: 1;
  padding: var(--spacing-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #0A2463;
  box-shadow: 0 0 0 3px rgba(10, 36, 99, 0.1);
}

.newsletter-form button {
  padding: var(--spacing-md) var(--spacing-xl);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}