:root {
  --primary-color: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #38BDF8;
  --secondary-color: #EC4899;
  --secondary-dark: #DB2777;
  --accent-color: #10B981;
  --accent-dark: #059669;
  --background-color: #FFFFFF;
  --background-alt: #F8FAFC;
  --background-gradient: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 50%, #FFFFFF 100%);
  --text-color: #0F172A;
  --text-light: #64748B;
  --text-lighter: #94A3B8;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-radius: 16px;
  --border-radius-sm: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

header:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 75px;
  padding: 12px 0;
  position: relative;
}

.logo {
  flex-shrink: 0;
  z-index: 1001;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover img {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 4px 8px rgba(14, 165, 233, 0.3));
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-color);
  font-size: 15px;
  position: relative;
  padding: 10px 16px;
  transition: var(--transition);
  border-radius: 8px;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 16px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--primary-color);
  background: rgba(14, 165, 233, 0.05);
}

.nav-links a:hover::after {
  width: calc(100% - 32px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 10px;
  z-index: 1001;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: rgba(14, 165, 233, 0.1);
}

.menu-toggle .bar {
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle:hover .bar {
  background: var(--primary-dark);
  transform: scaleX(1.1);
}

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

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

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

/* Hero Section */
.hero {
  background: var(--background-gradient);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, -30px) rotate(5deg); }
}

.hero h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 850px;
  margin: 0 auto 48px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 60px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: 50%;
  transform: translateX(50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

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

.feature-card {
  text-align: center;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--white) 0%, var(--background-alt) 100%);
  transition: var(--transition);
  border: 1px solid rgba(14, 165, 233, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.feature-icon {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  display: inline-block;
  transition: var(--transition);
}

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

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text-color);
  font-weight: 700;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--background-alt) 0%, var(--white) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(14, 165, 233, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

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

.service-content {
  padding: 28px;
}

.service-content h3 {
  margin-bottom: 12px;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.service-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Products Section */
.products {
  padding: 100px 0;
  background-color: var(--white);
}

.product-card {
  background-color: var(--white);
  border: 1px solid rgba(14, 165, 233, 0.15);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.product-image {
  height: 280px;
  background: linear-gradient(135deg, var(--background-alt) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  transition: var(--transition);
}

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

.product-content {
  padding: 28px;
  text-align: center;
}

.product-content h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 700;
}

.product-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Regions Section */
.regions {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--background-alt) 0%, var(--white) 100%);
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.region-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--background-alt) 100%);
  padding: 28px 20px;
  border-radius: var(--border-radius-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14, 165, 233, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.region-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
  transition: var(--transition);
  opacity: 0;
}

.region-card:hover::before {
  opacity: 1;
}

.region-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.region-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 700;
}

.region-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.region-card a {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.region-card a:hover {
  color: var(--secondary-color);
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background-color: var(--white);
}

.faq-item {
  background: linear-gradient(135deg, var(--background-alt) 0%, var(--white) 100%);
  border-radius: var(--border-radius-sm);
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(14, 165, 233, 0.1);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-weight: 700;
  margin-bottom: 12px;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.1rem;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.8;
  padding-top: 12px;
  border-top: 1px solid rgba(14, 165, 233, 0.1);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: var(--white);
  padding: 70px 0 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 24px;
  font-size: 1.3rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-col ul li a {
  color: #CBD5E1;
  transition: var(--transition);
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  transform: translateX(-5px);
  padding-right: 5px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  position: relative;
  z-index: 1;
}

.copyright a {
  color: var(--primary-light);
  transition: var(--transition);
}

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

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25D366;
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  z-index: 2000;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  top: -50%;
  left: -50%;
  border-radius: 50px;
}

.whatsapp-float i {
  position: relative;
  z-index: 1;
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-float .whatsapp-text {
  position: relative;
  z-index: 1;
  font-family: 'Cairo', sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #20BA5A;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6), 0 0 0 15px rgba(37, 211, 102, 0.1);
  animation: none;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links {
    gap: 20px;
  }
  
  .nav-links a {
    font-size: 14px;
    padding: 8px 12px;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: nowrap;
    min-height: 65px;
    padding: 12px 0;
  }

  .logo {
    flex-grow: 1;
  }
  
  .logo img {
    height: 45px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    flex-direction: column;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    backdrop-filter: blur(15px);
    margin-top: 0;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    padding: 20px 0;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 0;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
  }
  
  .nav-links a::after {
    display: none;
  }
  
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .services-grid,
  .regions-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }

  .whatsapp-float {
    padding: 12px 20px;
    font-size: 16px;
    bottom: 20px;
    left: 20px;
  }
  
  .whatsapp-float i {
    font-size: 24px;
  }
  
  .whatsapp-float .whatsapp-text {
    font-size: 14px;
  }
}

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

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 16px;
  }
}
