/* 1. الإعدادات العامة والمتغيرات */
:root {
  --bg-dark: #343a40;
  --bg-darker: #212529;
  --accent-blue: #00d4ff;
  --text-gray: #adb5bd;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Almarai", sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2. شريط التنقل (Navbar) */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(43, 48, 53, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-btn {
  background: #495057;
  padding: 8px 20px;
  border-radius: 6px;
  color: white !important;
  font-weight: bold;
}

/* 3. قسم الترحيب (Hero Section) */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.hero-circle-bg {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: 10%;
  left: -100px;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.hero-desc {
  color: var(--text-gray);
  max-width: 500px;
  font-size: 1rem;
  opacity: 0.9;
}

.hero-visual svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.2));
}

/* 4. الخدمات (Services) */
.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.img-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.img-card img:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

/* 5. شريط التواصل الجانبي (Contact Sidebar) */
.contact-hub-sidebar {
  position: fixed;
  right: 25px;
  bottom: 30px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}

.hub-item {
  background: #495057;
  padding: 10px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: 0.3s ease;
}

.hub-item:hover {
  transform: translateX(-10px);
  background: #5a6268;
}

.hub-text {
  font-size: 0.85rem;
  text-align: right;
  line-height: 1.4;
  flex-grow: 1;
}

.hub-icon {
  display: flex;
  align-items: center;
  color: var(--accent-blue);
}

.main-plus-btn {
  width: 55px;
  height: 55px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: 0.3s;
}

.main-plus-btn:hover {
  transform: rotate(90deg) scale(1.1);
}

/* 6. التذييل (Footer) */
.footer {
  background: var(--bg-darker);
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-info h4 {
  margin-bottom: 15px;
  color: var(--accent-blue);
}

.footer-info p {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 8px;
}

/* 7. استجابة التصميم (Responsive Design) */

/* الشاشات المتوسطة (Tablets) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }
  .hero-desc {
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* الشاشات الصغيرة (Mobile) */
@media (max-width: 600px) {
  .navbar {
    height: 70px;
  }

  .nav-links {
    display: none;
  } /* إخفاء الروابط في الهاتف لتقليل الفوضى */

  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-text p {
    font-size: 1.4rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .services-grid {
    grid-template-columns: 1fr; /* صورة واحدة في الصف */
  }

  .img-card img {
    height: 200px;
  }

  .contact-hub-sidebar {
    right: 15px;
    bottom: 20px;
  }

  .hub-item {
    min-width: 170px;
    padding: 8px 12px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo-section {
    margin: 0 auto;
  }
}
:root {
  --bg-dark: #343a40;
  --bg-card: #3d444b;
  --accent-blue: #00d4ff;
  --text-gray: #adb5bd;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Almarai", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}
.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
}
.nav-btn {
  background: var(--accent-blue);
  color: var(--bg-dark) !important;
  padding: 8px 18px;
  border-radius: 5px;
  font-weight: bold;
}

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 60px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text h1 {
  font-size: 3.2rem;
  margin-bottom: 10px;
  color: var(--white);
}
.hero-text p {
  font-size: 1.8rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}
.hero-desc {
  color: var(--text-gray);
  max-width: 500px;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-top: 30px;
}
.about-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 15px;
  border-bottom: 3px solid var(--accent-blue);
}
.about-card h3 {
  margin: 15px 0;
  color: var(--white);
}
.about-card p {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* Services */
.section {
  padding: 80px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
  margin-bottom: 40px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.img-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
}
.img-card img:hover {
  transform: scale(1.03);
}

/* Form */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
}
.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-blue);
  font-size: 0.9rem;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  outline: none;
}
.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--accent-blue);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.submit-btn:hover {
  background: #00b8e6;
}

/* Contact Sidebar */
.contact-hub-sidebar {
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
}
.hub-item {
  background: #495057;
  padding: 10px 15px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.hub-text {
  font-size: 0.8rem;
  text-align: right;
  flex-grow: 1;
}
.main-plus-btn {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
  background: #212529;
  padding: 60px 0;
  margin-top: 40px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

/* === الهاتف (Responsive) === */
@media (max-width: 992px) {
  .hero-grid,
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-desc {
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .contact-hub-sidebar {
    right: 10px;
    bottom: 20px;
  }
  .hub-item {
    min-width: 160px;
    padding: 8px;
  }
  .form-container {
    padding: 20px;
  }
}
/* --- 1. تعريف الحركات الأساسية --- */

/* حركة الظهور من الأسفل */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* حركة التوسع للشعار */
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* --- 2. تطبيق الحركات على العناصر --- */

/* حركة واجهة الموقع عند الفتح */
.hero-text h1,
.hero-text p,
.hero-desc {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0; /* يبدأ مخفي ثم يظهر بالأنيميشن */
}

.hero-text p {
  animation-delay: 0.2s;
}
.hero-desc {
  animation-delay: 0.4s;
}

.hero-visual svg {
  animation: logoFloat 4s ease-in-out infinite;
}

/* حركة تفاعلية لبطاقات "من نحن" والخدمات */
.about-card,
.img-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-card:hover,
.img-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

/* تأثير التوهج للزر */
.submit-btn {
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.submit-btn:hover {
  letter-spacing: 1px;
  box-shadow: 0 0 20px var(--accent-blue);
}

/* حركة مركز التواصل الجانبي */
.hub-item {
  transition: transform 0.3s ease;
}

.hub-item:hover {
  transform: translateX(-10px);
  background: #5a6268;
}

.main-plus-btn:hover {
  transform: rotate(90deg) scale(1.1);
}
