:root {
  --primary-color: #4ade80; /* أخضر فاتح حديث */
  --primary-dark: #22c55e;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-white: #ffffff;
  --bg-soft: #f0fdf4; /* خلفية خضراء باهتة جداً */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Almarai", sans-serif;
  background-color: var(--bg-white);
  color: var(--text-dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* --- Header & Nav --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary-color);
}

/* --- Hero Section (الرئيسية) --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 80px;
  overflow: hidden;
}

/* الشكل البيضاوي الخلفي */
.oval-bg {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #dcfce7 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: -1;
  animation: morph 8s ease-in-out infinite alternate;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.hero-text {
  flex: 1;
  padding-left: 50px;
}

/* أنيميشن الحروف */
.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: letterFadeUp 0.5s forwards;
}

@keyframes letterFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 500px;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(74, 222, 128, 0.4);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(74, 222, 128, 0.6);
  background: var(--primary-dark);
}

.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-img svg {
  width: 100%;
  max-width: 600px;
  height: auto;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* --- Sections General --- */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* --- About Us --- */
#about {
  background-color: var(--bg-soft);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image svg {
  width: 300px;
  fill: var(--primary-color);
  opacity: 0.8;
}

/* --- Services (Moving Boxes) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* الحركة المطلوبة للمربعات */
.service-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(74, 222, 128, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
}

.service-card:hover .service-icon svg {
  fill: white;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--primary-color);
  transition: var(--transition);
}

/* --- Request Form --- */
#order {
  background-color: var(--bg-soft);
}

.form-box {
  background: white;
  padding: 50px;
  border-radius: 30px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: "Almarai", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: #fafafa;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.contact-item {
  padding: 30px;
  background: var(--bg-soft);
  border-radius: 20px;
  transition: var(--transition);
}

.contact-item:hover {
  transform: scale(1.05);
}

.contact-item svg {
  width: 50px;
  fill: var(--primary-color);
  margin-bottom: 15px;
}

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 40px 0;
  font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
  }
  .hero-text {
    padding: 0;
    margin-top: 30px;
  }
  .nav-container {
    flex-direction: column;
    gap: 20px;
  }
  nav ul {
    gap: 15px;
    font-size: 0.9rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .about-content {
    flex-direction: column;
  }
  .oval-bg {
    width: 100%;
    left: 0;
  }
}
