
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Tajawal", sans-serif;
}

:root {
  --primary-color: #00551d;
  --accent-color: #47da73;
  --dark-color: #0f172a;
  --light-color: #f8fafc;
  --gradient: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
}

body {
  background-color: var(--light-color);
  overflow-x: hidden;
  color: var(--dark-color);
  font-weight: bold;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 10%;
  position: fixed;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  flex-direction: row-reverse;
}

.navbar.scrolled {
  padding: 1rem 7%;
  background: rgba(255, 255, 255, 0.95);
}

.logo {
  font-size: 2.2rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 10011;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
  margin: 5px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hero {
  width: clamp(100%, 50vw, 150%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 7%;
  background: radial-gradient(circle at top right,  #f0f9ff 0%,#ffffff  100%);
  position: relative;
  overflow: hidden;
}


@keyframes pulse {
  0% {
    transform: rotate(-45deg) scale(1);
  }
  50% {
    transform: rotate(-45deg) scale(1.1);
  }
  100% {
    transform: rotate(-45deg) scale(1);
  }
}

.hero .img-hero img {
  width: clamp(300px, 40vw, 500px);
  /* margin-right: 100px; */
}

.hero-content {
  width: 100%;
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: clamp(0.6rem, 6vw, 1.5rem);
  line-height: 1.8;
  color: var(--dark-color);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.2s backwards;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}


.primary-btn,
a .secondary-btn {
  padding: 0.9rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 220px;
}

.primary-btn {
  background: var(--gradient);
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.secondary-btn {
  background: transparent;
  color: var(--primary-color);
  border: 3px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.secondary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient);
  transition: width 0.3s ease;
  z-index: -1;
}

.secondary-btn:hover {
  color: white;
}

.secondary-btn:hover::before {
  width: 100%;
}
.services {
  padding: 8rem 0;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-subtitle {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-size: 3.5rem;
  color: var(--dark-color);
  margin-bottom: 2rem;
  font-weight: 900;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.service-card {
  padding: 3rem 2rem;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.service-card:hover::before {
  opacity: 0.05;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
}

.service-card p {
  color: #64748b;
  line-height: 1.6;
  position: relative;
}

.stats {
  padding: 6rem 0;
  background: var(--gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.1) 25%,
      transparent 25%
    ),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%);
  background-size: 60px 60px;
  animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 60px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.stat-item h4 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: 900;
}

.stat-item p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.projects {
  padding: 8rem 0;
  background-color: var(--light-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.project-description {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.testimonials {
  padding: 8rem 0;
  background: white;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-item {
  padding: 2rem;
}

.testimonial-content {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--primary-color);
}

.testimonial-role {
  font-size: 0.9rem;
  color: #64748b;
}

.contact {
  padding: 8rem 0;
  background: var(--light-color);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  /* background: white; */
  padding: 1rem;
  border-radius: 15px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-size: 1rem;
  resize: vertical;
}



.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}



/* ايقونات الوتساب */
.custom-floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(145deg, #2edc75, #25d366);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
      box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.custom-floating-btn i {
  color: white;
  font-size: 24px;
  transition: all 0.4s ease;
}

.custom-social-icons {
  position: fixed;
  bottom: 90px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-social-icons a {
  /* text-decoration: none; */
  color: transparent;
}

.custom-social-icons.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.custom-social-icon:hover {
  transform: scale(1.15) rotate(360deg);
}

/* .custom-social-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 60px;
  padding: 5px 12px;
  background: white;
  color: #333;
  border-radius: 5px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  white-space: nowrap;
} */

.custom-social-icon:hover::before {
  opacity: 1;
  transform: translateX(-10px);
}

.custom-whatsapp {
  background: linear-gradient(145deg, #2edc75, #25d366);
}

.custom-telegram {
  background: linear-gradient(145deg, #0099e6, #0088cc);
}

.custom-social-icon i {
  color: white;
  font-size: 24px;
  transition: all 0.3s ease;
}

.custom-floating-btn.active {
  transform: rotate(225deg);
  background: linear-gradient(145deg, #ff4141, #e63939);
}

.custom-floating-btn.active i {
  color: white;
}

@media (max-width: 768px) {
  .custom-floating-btn {
      width: 50px;
      height: 50px;
  }
  
  .custom-social-icon {
      width: 45px;
      height: 45px;
  }

  .custom-social-icon i {
      font-size: 20px;
  }
}



.footer {
  background: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  margin-bottom: 2rem;
  min-width: 200px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #2d3748;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* .hero-content {
      width: 100%;
     margin-bottom: 100px;
    } */
}
@media (max-width: 950px) {
  .hero {
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
  }

  .hero .img-hero img {
    margin-top: 15vh;
    width: 400px;
  }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-content {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
  }

  /* .hero h1 {
      font-size: 3rem;
    } */

  .hero p {
    font-size: 1.3rem;
  }

  .cta-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
  }

  /* Mobile Menu Styles */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    padding-top: 80px;
    transition: 0.3s;
    z-index: 1000;
    display: block; /* اجعل القائمة ظاهرة بشكل افتراضي */
  }

  .mobile-menu.active {
    top: 90px;
    /* width: 100%; */
    right: 0;
  }

  .mobile-menu a {
    display: block;
    padding: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
  }
}

.about-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.section-header {
  text-align: center;
  /* padding: 40px 0; */
  /* background: #f5f5f5; */
  width: 100%;
}

.section-title {
  font-size: 2.5em;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.title-line {
  width: 80px;
  height: 4px;
  background: var(--gradient);
  margin: 0 auto;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.about-content {
  background: white;
  padding: 50px;
  position: relative;
  z-index: 1;
}

.company-name {
  font-size: 2.5em;
  margin-bottom: 30px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}
/*   
  .company-name::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 60px;
      height: 4px;
      background: var(--gradient);
      border-radius: 2px;
  }
*/
.about-text {
  font-size: 1.1em;
  line-height: 2;
  color: var(--dark-color);
  text-align: justify;
  position: relative;
  padding: 20px;
  background: rgba(59, 130, 246, 0.03);
  border-right: 4px solid var(--primary-color);
}

.shape-1 {
  top: -100px;
  right: -100px;
}

.shape-2 {
  bottom: -100px;
  left: -100px;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2em;
  }

  .about-content {
    padding: 20px;
  }

  .company-name {
    font-size: 1.8em;
  }

  .about-text {
    font-size: 1em;
    padding: 15px;
  }
}

.card_content::before {
  content: "";
  position: absolute;
  top: -47px;
  right: -45px;
  width: 100px;
  height: 100px;
  transform: rotate(-175deg);
  border-radius: 50%;
  box-shadow: inset 48px 48px #dbeafe;
  /* background: radial-gradient(circle at top right, #dbeafe 0%, #f8fafc 100%); */
}
.des-card {
  width: 90%;
  /* max-width: 1200px; */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin: 0 auto;
  direction: rtl;
}

.card {
  position: relative;
  background: var(--light-color);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 400px;
}

.card:hover {
  transform: translateY(-5px);
}

.card_image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card_image img {
  transform: scale(1.1);
}

.card_content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--light-color);
  padding: 1.5rem;
  transform: translateY(60%);
  transition: transform 0.3s ease;
}

.card:hover .card_content {
  transform: translateY(0);
}

.card_title {
  z-index: 999;
  position: relative;
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card_subtitle {
  display: block;
  font-size: 0.875rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.card_description {
  font-size: 0.875rem;
  /* line-height: 1.5rem; */
  color: var(--dark-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover .card_description {
  opacity: 1;
}

@media (max-width: 768px) {
  .des-card {
    width: 95%;
    padding: 1rem;
  }

  .card {
    height: 350px;
  }

  .card_content {
    transform: translateY(65%);
  }
}


