:root {
  --primary: #00264d;
  --secondary: #0066cc;
  --dark: #1a1a1a;
  --light: #ffffff;
  --accent: #ffd700;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cairo", sans-serif;
}

body {
  direction: rtl;
  background: #f5f5f5;
}

.navbar {
  background: var(--gradient);
  backdrop-filter: blur(10px);
  padding: 1rem 4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar .logo-img {
  height: 60px;
  width: auto;
  margin-left: 1rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.navbar .logo-img:hover {
  transform: scale(1.05);
}

.company-name {
  color: var(--light);
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  background: linear-gradient(rgba(0, 38, 77, 0.75), rgba(0, 38, 77, 0.85)),
    url("../images/landing.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  color: var(--light);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.hero .cta-button {
  position: relative;
  z-index: 2;
  background: var(--accent);
  color: var(--primary);
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero .cta-button:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.about-section {
  padding: 4rem 2rem;
  background: var(--light);
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card,
.partner-card,
.news-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2.5rem;
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover,
.partner-card:hover,
.news-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.cta-button {
  background: var(--secondary);
  color: var(--light);
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
}

.cta-button:hover {
  background: #0082b3;
  transform: scale(1.05);
}

.partners {
  background: #f8f9fa;
  padding: 4rem 2rem;
  text-align: center;
}

.partners h2 {
  color: var(--primary);
  margin-bottom: 3rem;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.partner-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.partner-logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 100px;
  transition: filter 0.3s ease;
}

.partner-card:hover .partner-logo {
  filter: brightness(1.1);
}

.features {
  background: var(--light);
  padding: 4rem 2rem;
}

.features h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  background: var(--light);
  border-radius: 20px;
  border: 1px solid rgba(0, 102, 204, 0.1);
  transition: all 0.4s ease;
  padding: 20px;
}

.feature:hover {
  background: var(--gradient);
  color: var(--light);
}

.feature:hover h3,
.feature:hover li::before {
  color: var(--light);
}

.feature h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature ul {
  list-style: none;
  padding: 0;
}

.feature ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-right: 1.5rem;
}

.feature ul li::before {
  content: "✓";
  color: var(--secondary);
  position: absolute;
  right: 0;
  font-weight: bold;
}

.statistics {
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.statistics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpattern id='dots' width='20' height='20' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(255,255,255,0.1)'/%3E%3C/pattern%3E%3Crect width='100' height='100' fill='url(%23dots)'/%3E%3C/svg%3E");
  opacity: 0.3;
}
section h2 {
  text-align: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
}
.stats-grid {
  color: white;
}
.stat-item {
  padding: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 1rem;
}

.timeline {
  padding: 4rem 2rem;
  background: var(--light);
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  padding: 2rem;
  margin: 2rem 0;
  border-right: 3px solid var(--secondary);
  position: relative;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--secondary);
  border-radius: 50%;
}

.news-section {
  padding: 4rem 2rem;
  background: #f8f9fa;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 30px auto;
}

.news-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-content {
  padding: 1.5rem;
}

.news-date {
  color: var(--secondary);
  font-size: 0.9rem;
}

footer {
  background: var(--primary);
  color: var(--light);
  padding: 3rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  text-align: right;
}

.footer-section {
  padding: 1rem;
}

.footer-section h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer-section p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.footer-section a {
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-section a:hover {
  color: var(--accent) !important;
  transform: translateX(-5px);
}

.footer-section p:hover {
  transform: translateX(-5px);
}

.location-icon::before {
  content: "📍";
}

.phone-icon::before {
  content: "📞";
}

.email-icon::before {
  content: "📧";
}

.web-icon::before {
  content: "🌐";
}

.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128c7e;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

  .hero {
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.5rem;
    padding: 0 1rem;
  }

  .hero p {
    font-size: 1.2rem;
    padding: 0 1rem;
  }

  .products {
    padding: 2rem 1rem;
  }

  .product-card,
  .partner-card,
  .news-card {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .feature-grid {
    padding: 1rem;
  }

  .timeline-container {
    padding: 0 1rem;
  }

  .timeline-item {
    margin: 1rem 0;
    padding: 1.5rem;
  }

  .news-grid {
    padding: 1rem;
  }

  .about-section {
    padding: 2rem 1rem;
  }

  .about-content p {
    text-align: right;
    padding: 0 1rem;
  }

  .partners {
    padding: 2rem 1rem;
  }

  .partner-grid {
    gap: 1rem;
  }

  .statistics {
    padding: 2rem 1rem;
  }

  .features {
    padding: 2rem 1rem;
  }

  .whatsapp-float {
    bottom: 1rem;
    left: 1rem;
  }
}

@media (max-width: 480px) {
  .logo-container {
    flex-direction: column;
    text-align: center;
  }

  .company-name {
    font-size: 1.2rem;
    text-align: center;
  }

  .navbar .logo-img {
    height: 50px;
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    padding: 1rem;
  }
}

/* Add this to ensure proper viewport scaling */
@viewport {
  width: device-width;
  initial-scale: 1;
}
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
