/* متغيرات الألوان */
:root {
  --primary-blue: #4a90e2;
  --light-blue: #87ceeb;
  --white: #ffffff;
  --dark-blue: #2c5aa0;
  --shadow: rgba(74, 144, 226, 0.2);
}

/* إعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Almarai", sans-serif;
}

body {
  background-color: var(--white);
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
}

/* التمرير السلس */
html {
  scroll-behavior: smooth;
}

/* الشريط العلوي */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px var(--shadow);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  max-width: 50px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  right: 0;
  background-color: var(--primary-blue);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* القسم الرئيسي */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--light-blue) 0%,
    var(--primary-blue) 100%
  );
  padding-top: 80px;
}

.hero-content {
  text-align: center;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.3s both;
  font-weight: 400;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--white);
  color: var(--primary-blue);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  animation: fadeInUp 1s ease-out 0.6s both;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* شعا القسم الرئيسي */
.hero-logo {
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.3s both;
  display: flex;
  justify-content: center;
  position: relative;
}

.logo-shine {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(135, 206, 235, 0.4) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(20px);
  animation: movingShine 3s ease-in-out infinite,
    pulsShine 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-logo img {
  max-width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: var(--white);
  padding: 15px;
  box-shadow: 0 0 0 4px var(--white), 0 0 30px rgba(255, 255, 255, 0.8),
    0 0 60px rgba(135, 206, 235, 0.5), 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.9);
  z-index: 1;
  animation: logoPulse 2s ease-in-out infinite;
}

.hero-logo img:hover {
  transform: scale(1.15) rotateZ(10deg);
  box-shadow: 0 0 0 4px var(--white), 0 0 40px rgba(255, 255, 255, 1),
    0 0 80px rgba(74, 144, 226, 0.8), 0 15px 50px rgba(0, 0, 0, 0.4);
  animation: none;
}

/* لأزرار الدائرية */
.circle-buttons {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 2;
}

.circle-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  animation: pulse 2s infinite;
}

.circle-btn:hover {
  transform: scale(1.1);
  background-color: var(--primary-blue);
  color: var(--white);
}

/* لأشكال المتحركة */
.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  top: 10%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: var(--white);
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  bottom: 20%;
  left: 5%;
  width: 100px;
  height: 100px;
  background: var(--white);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 2s;
}

.shape-3 {
  top: 40%;
  left: 15%;
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: 50%;
  animation-delay: 4s;
}

.shape-4 {
  bottom: 10%;
  right: 20%;
  width: 80px;
  height: 80px;
  background: var(--white);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation-delay: 1s;
}

/* Slideshow */
.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.slide.active {
  opacity: 1;
}

/* جوانب داخلية لصور */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.2) 25%,
    rgba(0, 0, 0, 0.2) 75%,
    rgba(0, 0, 0, 0.5) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.fade {
  animation: fade 2s;
}

/* الأقسا */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  color: var(--dark-blue);
  font-size: 2.5rem;
  position: relative;
  font-weight: 800;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 4px;
  background-color: var(--primary-blue);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* قسم من نحن */
.about {
  background-color: #f8fbff;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-blue);
  font-weight: 700;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
  font-weight: 400;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-svg {
  max-width: 100%;
  height: auto;
}

/* قسم الخدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-blue);
  font-weight: 700;
}

.service-card p {
  font-weight: 400;
}

/* قسم طلب الخدمة */
.request-service {
  background-color: #f8fbff;
}

.request-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--dark-blue);
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
  font-family: "Arial", "Helvetica", sans-serif;
}

.form-control:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.submit-btn {
  background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  margin: 0 auto;
  font-family: "Arial", "Helvetica", sans-serif;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow);
}

/* قسم الموقع */
.location {
  background-color: var(--white);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

.location-info {
  padding: 30px;
  background-color: #f8fbff;
  border-radius: 15px;
}

.location-info h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--dark-blue);
  font-weight: 700;
}

.branch {
  background-color: var(--white);
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px var(--shadow);
  transition: transform 0.3s;
}

.branch:hover {
  transform: translateY(-5px);
}

.branch h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-blue);
  font-weight: 700;
}

.branch h4 i {
  margin-left: 8px;
}

.branch p {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #555;
  font-weight: 400;
}

.map-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(90deg, var(--light-blue), var(--primary-blue));
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s;
  margin-top: 15px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}

.map-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow);
  background: linear-gradient(90deg, var(--primary-blue), var(--dark-blue));
}

/* قم التواصل */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.contact-item {
  text-align: center;
  padding: 30px;
  background-color: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px var(--shadow);
  transition: transform 0.3s;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.contact-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--dark-blue);
  font-weight: 700;
}

.contact-item p {
  font-weight: 400;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.contact-btn.whatsapp {
  background-color: #25d366;
  color: var(--white);
}

.contact-btn.whatsapp:hover {
  background-color: #1da852;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.contact-btn.call {
  background-color: var(--primary-blue);
  color: var(--white);
}

.contact-btn.call:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--shadow);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-5px);
  background-color: var(--dark-blue);
}

/* التييل */
footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  font-weight: 700;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--light-blue);
  bottom: -8px;
  right: 0;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
  font-weight: 400;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--light-blue);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #ddd;
  font-weight: 400;
}

/* لحركات */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.4;
  }
}

@keyframes shine {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
}

/* حركة البريق المتحرك */
@keyframes movingShine {
  0% {
    left: 30%;
    opacity: 0.4;
  }
  50% {
    left: 50%;
    opacity: 0.8;
  }
  100% {
    left: 70%;
    opacity: 0.4;
  }
}

/* نبض ابريق */
@keyframes pulsShine {
  0%,
  100% {
    filter: blur(20px);
    box-shadow: 0 0 20px rgba(135, 206, 235, 0.6);
  }
  50% {
    filter: blur(15px);
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.8);
  }
}

/* نبض الشعار */
@keyframes logoPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--white), 0 0 30px rgba(255, 255, 255, 0.8),
      0 0 60px rgba(135, 206, 235, 0.5), 0 10px 40px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 0 4px var(--white), 0 0 40px rgba(255, 255, 255, 1),
      0 0 80px rgba(74, 144, 226, 0.8), 0 15px 50px rgba(0, 0, 0, 0.4);
  }
}

/* التجاوب ع الهواتف */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .location-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--white);
    width: 100%;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .mobile-menu {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .circle-buttons {
    bottom: 30px;
  }

  .circle-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  section {
    padding: 70px 0;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .request-form {
    padding: 25px;
  }

  /* تحسن الصور على الهاتف */
  .slide::before {
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.3) 20%,
      rgba(0, 0, 0, 0.3) 80%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }

  .slide img {
    filter: brightness(0.6) contrast(1.3);
  }
}
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  line-height: 60px;
  z-index: 9999;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  animation: pulse 1.5s infinite;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.2) rotate(10deg);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
