* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #10B981, #F97316);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #F97316, #10B981);
}

@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 8px;
  }
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #000000;
  color: #FFFFFF;
  overflow-x: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2D3748;
  padding: 15px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navlogo {
  color: #10B981;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  padding: 0.6rem;
  transition: all 0.3s ease;
  border: none;
  border-radius: 20px;
}

nav ul li a:hover {
  color: #F97316;
  background-color: #4B5563;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

.toggle-btn {
  display: none;
  font-size: 1.5rem;
  color: #FFFFFF;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 67.2px;
  right: -100%;
  width: 240px;
  height: 100%;
  background-color: #2D3748;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right 0.3s ease;
  z-index: 1001;
}

.sidebar.active {
  right: 0;
}

.sidebar a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #F97316;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1000;
}

.overlay.active {
  display: block;
}

@media (max-width: 800px) {
  nav ul {
    display: none;
  }

  .toggle-btn {
    display: block;
  }
}

.sub-navbar {
  position: fixed;
  top: 63px;
  width: 100%;
  background-color: #4B5563;
  padding: 6px 20px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  color: #FFFFFF;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.sub-navbar .sub-links {
  display: flex;
  flex-shrink: 0;
  list-style: none;
  gap: 20px;
  padding: 0;
  margin: 0;
  align-items: center;
}

.sub-navbar button {
  flex-shrink: 0;
}

.sub-navbar .sub-links li {
  padding: 4px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.sub-navbar .sub-links li:hover {
  background-color: #6B7280;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.sub-navbar .sub-links li a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.sub-navbar .sub-links li a:hover {
  color: #F97316;
}

.sub-navbar button {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.sub-navbar button:hover {
  color: #F97316;
}
 
    .whatsapp-icon {
      position: fixed;
      right: 20px;
      bottom: 200px;
      width: 60px;
      height: 60px;
      background-color: #25D366;
      color: #FFF;
      border-radius: 50%;
      text-align: center;
      font-size: 30px;
      box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
      z-index: 1000;
      cursor: move;
      touch-action: none;
      animation: pulse 2s infinite;
    }
    .whatsapp-icon i {
      line-height: 60px;
    }
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.1); }
      100% { transform: scale(1); }
    }

.hero {
  margin-top: 95px;
  padding: 40px 20px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 40%;
  bottom: 0;
  background: var(--hero-image, url('/raafae.jpg')) center center / cover no-repeat;
  z-index: -1;
  transform: translateY(100%);
  animation: slideUpImage 1.2s ease-out forwards;
}

@keyframes slideUpImage {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@media (max-width: 500px) {
  .hero::after {
    left: 2%;
  }
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 30px;
}

.typing-wrapper {
  min-height: 120px;
  margin-bottom: 30px;
}

.typing {
  font-size: 1.2rem;
  color: #D1D5DB;
  max-width: 600px;
  display: inline-block;
  white-space: pre-wrap;
}
@media (max-width: 405px) {
 .typing-wrapper {
  min-height: 160px;
  margin-bottom: 30px;
}

.typing {
  font-size: 1.2rem;
  color: #D1D5DB;
  max-width: 600px;
  display: inline-block;
  white-space: pre-wrap;
}
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.buttons button {
  background: #10B981;
  color: #000000;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buttons button:hover {
  background: #F97316;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.4);
}

.section-heading {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 1px;
}


.services-heading {
  text-align: center;
  font-size: 2.4rem;
  margin: 50px 0 30px;
  color: #10B981;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.service-card {
  background: linear-gradient(145deg, #1E293B, #2D3748);
  border-radius: 18px;
  padding: 30px 25px;
  width: 300px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.05);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.3);
  background: linear-gradient(145deg, #2D3748, #1E293B);
}

.service-card i,
.service-card img {
  font-size: 3rem;
  color: #10B981;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.service-card:hover i,
.service-card:hover img {
  transform: scale(1.2);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.service-card p {
  font-size: 1rem;
  color: #D1D5DB;
  line-height: 1.6;
}

.stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
  margin: 90px auto;
  max-width: 1200px;
  text-align: center;
}
.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}

.stat-box {
  background: rgba(45, 55, 72, 0.8);
  padding: 40px 30px;
  border-radius: 18px;
  width: 260px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

.stat-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-box:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

.stat-box h2 {
  font-size: 3rem;
  margin: 18px 0 10px;
  color: #10B981;
}

.stat-box p {
  color: #D1D5DB;
  font-size: 1.05rem;
  line-height: 1.5;
}

.stat-box i {
  margin-right: 8px;
  color: #10B981;
  font-size: 1.2rem;
}

/* Testimonials Section */
#testimonials {
  margin-top: -5%;
  margin-bottom: 2%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.testimonial-heading {
  letter-spacing: 1px;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.testimonial-heading span {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.testimonial-box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.testimonial-box {
  width: 500px;
  color: #FFFFFF;
  background: #2D3748;
  padding: 20px;
  margin: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.testimonial-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-box:hover {
  transform: translateY(-10px);
  background-color: #4B5563;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

.profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile {
  display: flex;
  align-items: center;
}

.name-user {
  display: flex;
  flex-direction: column;
}

.name-user strong {
  color: #FFFFFF;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.name-user span {
  color: #D1D5DB;
  font-size: 0.8rem;
}

.reviews {
  color: #F97316;
}

.box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.client-comment p {
  font-size: 0.9rem;
  color: #D1D5DB;
}

.form-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(6px);
}

.form-modal.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.form-box {
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  color: white;
  position: relative;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.form-box h2 {
  margin-bottom: 15px;
  text-align: center;
  color: #10B981;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

input, textarea {
  width: 100%;
  padding: 10px;
  background: #334155;
  border: none;
  color: white;
  border-radius: 6px;
}

textarea {
  resize: none;
}

.form-box button[type="submit"] {
  margin-top: 10px;
  background: #10B981;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}




footer {
  text-align: center;
  background: #2D3748;
  padding: 20px;
  color: #D1D5DB;
}
.social-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: white;
  transition: transform 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

/* Hover animation */
.social-icons a:hover {
  transform: scale(1.1);
}

/* Platform Specific Background Colors */
.social-icons a:nth-child(1) { background-color: #3b5998; }  /* Facebook */
.social-icons a:nth-child(2) { background-color: #E1306C; }  /* Instagram */
.social-icons a:nth-child(3) { background-color: #0077B5; }  /* LinkedIn */
.social-icons a:nth-child(4) { background-color: #171515; }  /* GitHub */
.social-icons a:nth-child(5) { background-color: #1DA1F2; }  /* Twitter */

/* Optional: icon color white for clarity */
.social-icons a i {
  color: white;
}
