@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&display=swap');

:root {
  /* Colors */
  --color-white: #ffffff;
  --color-blue: #0F52BA; /* Sapphire Blue for elegance */
  --color-red: #D32F2F;  /* Deep Red for accents/CTAs */
  --color-yellow: #FFC107; /* Gold/Yellow for stars and highlights */
  --color-dark: #121212;
  --color-light-gray: #f5f5f5;
  --color-text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  direction: rtl;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  color: var(--color-blue);
  margin-bottom: 1rem;
}

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

/* Navbar */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-red);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--color-red);
}

.btn-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  border: 2px solid var(--color-red);
  transition: all 0.3s ease;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-red);
}

/* Sections General */
section {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-yellow);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80vh;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(15, 82, 186, 0.2);
  border: 4px solid var(--color-yellow);
}

/* About Section */
.about {
  background-color: var(--color-light-gray);
  max-width: 100%;
  padding: 5rem 5%;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  border-right: 8px solid var(--color-blue);
  border-bottom: 8px solid var(--color-blue);
}

/* Products Slider */
.products-slider {
  padding: 20px 10px 50px 10px;
  width: 100%;
  overflow: hidden;
}

.swiper-slide {
  height: auto; /* Makes cards stretch to same height */
}

.product-card {
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border: 1px solid #eee;
  text-align: center;
  cursor: pointer;
  height: auto;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(211, 47, 47, 0.15); /* Red shadow glow */
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-yellow);
}

.product-info {
  padding: 1.5rem;
}

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

.product-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-red);
  margin-bottom: 1rem;
}

.btn-buy {
  display: block;
  width: 100%;
  background-color: var(--color-blue);
  color: var(--color-white);
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-buy:hover {
  background-color: var(--color-red);
}

/* Swiper custom colors */
.swiper-button-next, .swiper-button-prev {
  color: var(--color-red) !important;
}
.swiper-pagination-bullet-active {
  background: var(--color-red) !important;
}

/* Modal Styles */
.modal {
  display: none; 
  position: fixed; 
  z-index: 2000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto; 
  background-color: rgba(0,0,0,0.7); 
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto; 
  padding: 2rem;
  border: 1px solid #888;
  width: 90%;
  max-width: 900px;
  border-radius: 15px;
  position: relative;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  color: #aaa;
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
  color: var(--color-red);
  text-decoration: none;
}

.modal-body {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.modal-gallery {
  flex: 1;
}

.main-image-container {
  width: 100%;
  height: 350px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid #eee;
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnails-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
}

.thumb-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumb-img:hover, .thumb-img.active {
  border-color: var(--color-yellow);
}

.modal-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-details h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-desc {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.modal-price {
  font-size: 2rem;
  color: var(--color-red);
}

@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }
  .main-image-container {
    height: 250px;
  }
}

/* Features Section */
.features {
  background-color: var(--color-blue);
  color: var(--color-white);
  max-width: 100%;
  text-align: center;
}

.features .section-title {
  color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-yellow);
  margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-white);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  position: relative;
  border-top: 5px solid var(--color-red);
}

.stars {
  color: var(--color-yellow);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 3rem 5%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  color: var(--color-yellow);
  font-size: 2rem;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }
  .about-container {
    flex-direction: column;
  }
  .nav-links {
    display: none;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}
