/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Tahoma', sans-serif;
  direction: rtl;
  background: #fff;
}

/* 🔹 Hero Section */
/* Hero Slider */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center; /* ✅ مهم عشان الصور تبان مظبوطة */
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s ease-in-out, transform 6s ease;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 0 15px; /* ✅ padding بسيط عشان النص ما يلزقش */
}

.hero-content h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero-logo {
  font-size: 24px;
  font-weight: bold;
}

.hero-logo span {
  color: #f6c400;
  font-size: xx-large;

}

/* Floating button */
.floating-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #f6c400;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #4a0056;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 3;
  transition: transform 0.3s;
}

.floating-btn:hover {
  transform: rotate(90deg) scale(1.1);
}

/* ✅ Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 24px; /* أصغر شوي */
  }
  .hero-logo {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh; /* أصغر للهواتف */
  }
  .hero-content h1 {
    font-size: 20px;
    line-height: 1.5;
  }
  .hero-logo {
    font-size: 16px;
  }
  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}



/* 🔹 About Section */
.about {
  background: #4b0049;
  color: white;
  padding: 80px 10%;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.about-image {
  position: relative;
  flex: 1;
  min-width: 320px;
}

.about-image img {
  width: 100%;
  display: block;
  border: 10px solid #ffcc00;
}

.about-overlay {
  position: absolute;
  top: 20%;
  left: 20%;
  background: rgba(255, 204, 0, 0.8);
  padding: 40px 20px;
  text-align: center;
}

.about-overlay h2 {
  font-size: 28px;
  font-weight: bold;
  color: white;
}

.about-content {
  flex: 1;
  min-width: 320px;
}

.about-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #ffcc00;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-content .square {
  width: 15px;
  height: 15px;
  background: #ffcc00;
  display: inline-block;
}

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.btn-outline {
  border: 2px solid #ffcc00;
  color: #ffcc00;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #ffcc00;
  color: #4b0049;
}



/* 🔹 Services Explained */
.services-explained {
  background: #4b0049;
  color: white;
  padding: 80px 5%;
  text-align: center;
}

.services-explained .section-title {
  font-size: 28px;
  margin-bottom: 40px;
  color: #ffcc00;
}

.services-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-slider {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.service-card {
  background: #fff;
  color: #333;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  min-width: 250px;
  max-width: 250px;
  flex: 0 0 auto;
}

.service-card img {
  width: 100px;
  margin-bottom: 15px;
}

.service-card h3 {
  background: #ffcc00;
  color: #4b0049;
  font-size: 18px;
  margin-bottom: 15px;
  padding: 5px;
  border-radius: 5px;
}

.service-card p {
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.service-card a {
  color: #4b0049;
  font-weight: bold;
  text-decoration: none;
}

.service-card a:hover {
  text-decoration: underline;
}

/* Buttons */
.service-btn {
  background: #fff;
  color: #4b0049;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.service-btn:hover {
  background: #ffcc00;
  color: #4b0049;
}

.service-btn.prev {
  margin-right: 10px;
}

.service-btn.next {
  margin-left: 10px;
}


/* 🔹 Portfolio Section */
.portfolio {
  background: #fff;
  color: #4b0049;
  text-align: center;
  padding: 80px 5%;
}

.portfolio-title {
  font-size: 28px;
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 10px;
}

.portfolio-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  color: #4b0049;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.portfolio-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-item p {
  padding: 15px;
  font-size: 14px;
  font-weight: bold;
  color: #4b0049;
}

/* Button */
.portfolio-btn {
  display: inline-block;
  padding: 12px 30px;
  background: #4b0049;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.portfolio-btn:hover {
  background: #ffcc00;
  color: #4b0049;
}



/* Responsive */
@media (max-width: 992px) {
  .service-card {
    min-width: 45%;
  }
}

@media (max-width: 600px) {
  .service-card {
    min-width: 80%;
  }
}


/* 🔹 Responsive */
@media (max-width: 768px) {
  .slide-item {
    min-width: 50%; /* 2 items per row */
  }
}

@media (max-width: 480px) {
  .slide-item {
    min-width: 100%; /* 1 item per row */
  }
}
