/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(to bottom, #141414, #1c1c1c);
  color: #fff;
  overflow-x: hidden;
}

/* Header */
.header {
  width: 100%;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8em;
  color: #4973ff;
  font-weight: 700;
}
/* Menu Button */
/* Menu Button */
.menu-btn {
    display: none;
    font-size: 1.8em;
    color: #4973ff;
    cursor: pointer;
  }
  
  .menu-btn i {
    pointer-events: none;
  }
  
  /* Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* مخفية */
    width: 300px;
    height: 100%;
    background: #111;
    color: #fff;
    transition: right 0.4s ease;
    z-index: 2001;
    padding: 2rem;
  }
  
  .sidebar.active {
    right: 0; /* تظهر */
  }
  
  .close-btn {
    text-align: right;
    font-size: 1.5em;
    cursor: pointer;
    color: #4973ff;
    margin-bottom: 2rem;
  }
  
  .sidebar-list {
    list-style: none;
    padding: 0;
  }
  
  .sidebar-list li {
    margin: 1rem 0;
  }
  
  .sidebar-list li a {
    text-decoration: none;
    color: #ddd;
    font-size: 1.2em;
    transition: color 0.3s ease;
  }
  
  .sidebar-list li a:hover {
    color: #4973ff;
  }
  
  /* Overlay خلفية */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20,20,20,0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    z-index: 2000;
  }
  /* Loading Screen */
#loading {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000; /* خلفية سوداء */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* فوق كل العناصر */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Spinner */
.spinner {
  width: 60px; height: 60px;
  border: 6px solid #6a89ff;
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

#loading h2 {
  color: #fff;
  font-size: 1.5em;
  font-weight: 600;
}

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
  /* تعديل حركة الـ Offcanvas */
.offcanvas {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
  }
  
  .offcanvas.show {
    transform: translateX(0);
    opacity: 1;
  }
  
  /* Responsive */
  @media (max-width: 768px) {
    .nav-list {
      display: none; /* نخفي القائمة العادية */
    }
    .menu-btn {
      display: block; /* نظهر زر المينو */
    }
  }
  
.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-list li a {
  text-decoration: none;
  color: #4973ff;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: #fff;
}

.btn {
  background: linear-gradient(135deg, #4973ff, #6a89ff);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(73, 115, 255, 0.5);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 80px;
  flex-direction: column;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 20;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 1rem;
  color: #4973ff;
  text-shadow: 0 0 20px rgba(73, 115, 255, 0.4);
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 2rem;
  color: #ddd;
}

/* Wave Divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 200px;
}

/* About Section */
.about {
  padding: 5rem 2rem;
  background: #1c1c1c;
  text-align: center;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about p {
  font-size: 1.1em;
  color: #ddd;
  line-height: 1.6;
}

/* Services Section */
.services {
  padding: 5rem 2rem;
  background: #111;
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: 2.5em;
  color: #4973ff;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgb(20, 20, 20);
  padding: 2rem;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card i {
  font-size: 2.5em;
  color: #4973ff;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5em;
  margin-bottom: 1rem;
}

.service-card p {
  color: #ddd;
  font-size: 1em;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(73, 115, 255, 0.4);
}

/* Contact Section */
.contact {
  padding: 5rem 2rem;
  background: #1c1c1c;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: none;
  border-radius: 10px;
  outline: none;
  font-size: 1em;
}

.contact-form button {
  align-self: center;
}
/* Portfolio Section */
.portfolio {
  padding: 5rem 2rem;
  background: #1c1c1c;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: #222;
  padding: 2rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(73, 115, 255, 0.4);
}

/* Team Section */
/* Team Section */
.team {
  padding: 5rem 2rem;
  background: #111;
  text-align: center;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.team-member {
  background: #222;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-icon {
  font-size: 4rem;
  color: #0ef;
  margin-bottom: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.team-member h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.team-member p {
  color: #ccc;
  font-size: 14px;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(73, 115, 255, 0.4);
}

.team-member:hover .team-icon {
  color: #b400ff;
  transform: scale(1.2);
}


/* Testimonials Section */
/* Testimonials Section */
.testimonials {
  padding: 5rem 2rem;
  background: #1c1c1c;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: #222;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(73, 115, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(73, 115, 255, 0.4);
}

.testimonial-card p {
  font-size: 1.1em;
  color: #ddd;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.quote-icon {
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 1.5rem;
  color: #4973ff;
  opacity: 0.6;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-icon {
  background: #4973ff;
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

.client-info h3 {
  margin: 0;
  font-size: 1.2em;
  color: #4973ff;
}

.client-info span {
  font-size: 0.9em;
  color: #aaa;
}

/* FAQ Section */
.faq {
  padding: 5rem 2rem;
  background: #1c1c1c;
  text-align: center;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 0 10px rgba(73, 115, 255, 0.2);
}

.faq-question {
  width: 100%;
  padding: 1rem;
  background: none;
  border: none;
  outline: none;
  color: #4973ff;
  font-size: 1.2em;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question span {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #333;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  padding: 0 1rem;
  color: #ddd;
  font-size: 1em;
  line-height: 1.6;
}
.faq-item.active .faq-answer {
  max-height: 200px; /* ارتفاع كافي للنص */
  padding: 1rem;
}
.faq-item.active .faq-question span {
  transform: rotate(45deg); /* يتحول + إلى × */
}

/* Pricing Section */
.pricing {
  padding: 5rem 2rem;
  background: #111;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: #222;
  padding: 2rem;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card h3 {
  font-size: 1.5em;
  margin-bottom: 1rem;
  color: #4973ff;
}

.price {
  font-size: 2.5em;
  margin-bottom: 1rem;
  color: #fff;
}

.price span {
  font-size: 0.6em;
  color: #aaa;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pricing-card ul li {
  margin-bottom: 0.8rem;
  color: #ddd;
  font-size: 1em;
}

.pricing-card .btn {
  display: inline-block;
  margin-top: 1rem;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(73, 115, 255, 0.4);
}

/* Featured Plan */
.pricing-card.featured {
  background: linear-gradient(135deg, #4973ff, #6a89ff);
  color: #fff;
  transform: scale(1.05);
}

.pricing-card.featured h3 {
  color: #fff;
}

.pricing-card.featured ul li {
  color: #eee;
}
/* CTA Section */
.cta {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #4973ff, #6a89ff);
  text-align: center;
  color: #fff;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5em;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2em;
  margin-bottom: 2rem;
}

.cta .btn {
  background: #fff;
  color: #4973ff !important;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.5);
}

/* Footer */
/* Footer */
.footer {
  background: #000;
  padding: 3rem 2rem;
  color: #fff;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: #4973ff;
  font-size: 1.3em;
}

.footer-col p,
.footer-col ul li {
  color: #aaa;
  font-size: 0.95em;
  margin-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li a {
  text-decoration: none;
  color: #aaa;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #4973ff;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  color: #4973ff;
  font-size: 1.5em;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #6a89ff;
  transform: scale(1.2);
}

.footer hr {
  border: none;
  border-top: 1px solid #333;
  margin: 2rem 0 1rem;
}

.footer-bottom {
  text-align: center;
  color: #aaa;
  font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-list {
    gap: 1rem;
  }
  .hero-content h1 {
    font-size: 2.2em;
  }
  .hero-content p {
    font-size: 1em;
  }
  .section-title {
    font-size: 2em;
  }
  .service-card h3 {
    font-size: 1.3em;
  }
}
