@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap");

:root {
  --primary: #5b7fd4;
  --primary-dark: #3d5fa0;
  --secondary: #1a2f4d;
  --accent: #00d4ff;
  --white: #fff;
  --light-gray: #f0f4ff;
  --text-dark: #2c3e50;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ✅ الخلفية مع صورة متحركة من الإنترنت */
body {
  background-image: url("https://images.unsplash.com/photo-1625314868143-20e93ce3ff33?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MjB8fGFpfGVufDB8fDB8fHww&auto=format&fit=crop&q=60&w=500");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  font-family: "Almarai", sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;
  position: relative;
  animation: zoomBackground 20s ease-in-out infinite;
}

@keyframes zoomBackground {
  0%,
  100% {
    background-size: cover;
  }
  50% {
    background-size: 110% 110%;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(91, 127, 212, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(118, 75, 162, 0.2) 0%,
      transparent 50%
    ),
    rgba(26, 47, 77, 0.5);
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

/* ✅ Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 47, 77, 0.95);
  border-bottom: 2px solid rgba(91, 127, 212, 0.4);
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  box-shadow: var(--shadow-sm);
}

.logo {
  color: #fff;
  font-weight: 800;
  font-size: clamp(18px, 5vw, 24px);
  white-space: nowrap;
  background: linear-gradient(135deg, #00d4ff, #5b7fd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

/* ✅ روابط القائمة */
.navbar nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-size: 15px;
  position: relative;
}

.navbar a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar a:hover::before {
  opacity: 1;
}

.navbar a:hover {
  transform: translateY(-2px);
  color: #00d4ff;
}

/* ✅ زر القائمة ☰ */
.menu-toggle {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.menu-toggle:active {
  background: rgba(91, 127, 212, 0.3);
  transform: scale(0.95);
}

/* ✅ الصفحة الرئيسية */
.hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 5%;
  margin-top: 60px;
}

.hero-content {
  max-width: 750px;
  animation: slideInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(28px, 7vw, 48px);
  margin-bottom: 25px;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: clamp(15px, 4vw, 18px);
  margin-bottom: 40px;
  color: #f0f4ff;
  font-weight: 300;
  line-height: 1.8;
}

/* ✅ الأزرار */
.btn {
  display: inline-block;
  margin: 12px 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.primary-btn {
  background: linear-gradient(135deg, #00d4ff, #5b7fd4);
  color: var(--secondary);
}

.primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 212, 255, 0.3);
}

.secondary-btn {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* ✅ الأقسام */
.section {
  padding: 80px 5%;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin: 50px auto;
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  max-width: 1200px;
}

.section h2 {
  font-size: clamp(24px, 6vw, 42px);
  margin-bottom: 15px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.section p {
  color: #e8eef9;
  max-width: 650px;
  margin: 0 auto 50px;
  font-size: clamp(15px, 3vw, 17px);
  font-weight: 300;
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 0 auto;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 35px 25px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.15),
    rgba(91, 127, 212, 0.15)
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.card p {
  color: #e8eef9;
  font-size: 15px;
  position: relative;
  z-index: 1;
  line-height: 1.7;
  font-weight: 300;
}

/* ✅ تواصل معنا */
.contact-box {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 50px 30px;
  max-width: 650px;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.contact-box h2 {
  font-size: clamp(24px, 6vw, 36px);
  margin-bottom: 35px;
  font-weight: 800;
}

.contact-box form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  font-family: "Almarai", sans-serif;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.contact-box input::placeholder,
.contact-box textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-box input:focus,
.contact-box textarea:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.contact-box textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-box .info {
  color: #e8eef9;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 300;
}

/* ✅ الفوتر */
footer {
  background: rgba(26, 47, 77, 0.9);
  color: #fff;
  text-align: center;
  padding: 30px 5%;
  border-top: 1px solid rgba(91, 127, 212, 0.3);
  font-size: 14px;
  font-weight: 300;
  margin-top: 60px;
}

/* ✅ تأثير الظهور */
.fade-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ التحريكات */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ موبايل */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 4%;
    flex-wrap: wrap;
  }

  .logo {
    width: 100%;
    text-align: right;
    font-size: 20px;
    margin-bottom: 10px;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    top: 50%;
    left: 4%;
    transform: translateY(-50%);
  }

  .navbar nav {
    width: 100%;
    background: rgba(26, 47, 77, 0.98);
    border-radius: 12px;
    flex-direction: column;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    display: none;
    margin-top: 10px;
    animation: fadeInMenu 0.3s ease;
    gap: 0;
  }

  .navbar nav.show {
    display: flex;
  }

  .navbar a {
    padding: 14px 16px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    border-radius: 0;
  }

  .navbar a:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 100px 4% 60px;
    margin-top: 120px;
  }

  .hero h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .btn {
    margin: 10px 6px;
    padding: 12px 28px;
    font-size: 14px;
    display: block;
    width: 90%;
    max-width: 100%;
  }

  .section {
    padding: 60px 4%;
    margin: 30px auto;
    border-radius: 16px;
  }

  .section h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .section p {
    font-size: 14px;
    margin-bottom: 35px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .card h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .card p {
    font-size: 14px;
  }

  .contact-box {
    padding: 35px 20px;
    border-radius: 14px;
  }

  .contact-box h2 {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .contact-box input,
  .contact-box textarea {
    padding: 14px 16px;
    font-size: 14px;
  }

  .contact-box textarea {
    min-height: 110px;
  }

  footer {
    padding: 25px 4%;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .navbar {
    padding: 12px 3%;
  }

  .logo {
    font-size: 18px;
  }

  .menu-toggle {
    font-size: 26px;
  }

  .hero {
    padding: 80px 3% 40px;
    margin-top: 110px;
  }

  .hero h1 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .btn {
    margin: 8px 0;
    padding: 11px 24px;
    font-size: 13px;
    width: 100%;
  }

  .section {
    padding: 50px 3%;
    margin: 20px auto;
  }

  .section h2 {
    font-size: 20px;
  }

  .section p {
    font-size: 13px;
    margin-bottom: 28px;
  }

  .grid {
    gap: 16px;
  }

  .card {
    padding: 24px 16px;
  }

  .card h3 {
    font-size: 17px;
  }

  .card p {
    font-size: 13px;
  }

  .contact-box {
    padding: 28px 16px;
  }

  .contact-box input,
  .contact-box textarea {
    padding: 12px 14px;
  }

  .contact-box .info {
    font-size: 12px;
  }
}
