html, body{
  overflow-x:hidden;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: cursive;
}

body{
  line-height:1.6;
  color:#222;
}



.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* ================= BUTTONS ================= */
.btn{
  display:inline-block;
  padding:12px 26px;
  border-radius:30px;
  text-decoration:none;
  font-weight:500;
  transition:.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ss{
    border: solid 2px  !important;
    border-color: #8932b8;
    background-color: white;
    color: #842fb2 !important;
}

.btn.primary{
  background:#6a35ff;
  color:black;
}

.btn.light{
  background:#fff;
  color:#6a35ff;
}

.btn.outline{
  border:2px solid #fff;
  color:#fff;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ================= HEADER ================= */
:root {
  --dark: #362061;
  --purple: #6C2791;
}



body {
  background: #f6f5fb;
  color: #333;
}

  .container {
    width: 1200px;
    max-width: 95%;
    margin: auto;
  }

  /* ================= NAVBAR ================= */
  .navbar {
    background: transparent;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
  }

  .nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* ===== LOGO ===== */
  .logo{
    
    width: 100px;
    margin-left: 0px;
    color:#fff;
  }

  /* ===== NAV LINKS ===== */
  nav {
    display: flex;
    align-items: center;
  }

  .logo span{
    color:#ffd84d;
  }


  nav a {
    margin-left: 35px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
  }

  nav a:hover {
    color: var(--purple);
  }

  nav .active {
    color: var(--purple);
  }

  /* underline active */
 nav .active::after {
  content: "";
  position: absolute;
  bottom: -15px;          /* المسافة بين الكلمة والشكل */
  left: 50%;              /* عشان نوسطنه */
  transform: translateX(-50%); 
  width: 130%;            /* خليه أعرض من الكلمة عشان يدي شكل البيضة */
  height: 14px;           /* سمك الشكل */
  background: #FFD84D;    /* اللون الأصفر */
  
  /* السر في السطرين دول عشان الشكل البيضاوي والظل */
  border-radius: 100% / 100%; 
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  
  z-index: -1;            /* عشان لو لمس الكلمة يفضل وراها */
}


  /* ===== CONTACT BUTTON ===== */
  .contact-btn {
    background: var(--purple);
    color: #fff;
    padding: 10px 22px;
    border-radius: 25px;
    font-weight: 500;
    transition: 0.3s;
  }

  .contact-btn:hover {
    background: #5428cc;
  }




/* ================= HERO ================= */
.hero {
  padding: 80px 0;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
}

.hero-text span {
  color: #7b3fe4;
}

.hero-text p {
  margin-top: 20px;
  max-width: 500px;
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 20px;
}

.card {
  height: 120px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
}

.purple { background: #7b3fe4; }
.green  { background: #4caf50; }
.orange { background: #ff9800; }
.yellow { background: #f4c430; }

/* ================= SECTIONS ================= */
.section {
  padding: 80px 0;
}

.section.light {
  background: #faf8ff;
}

.section-title {
  font-size: 32px;
  margin-bottom: 20px;
  color: #7b3fe4;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.list {
  margin-top: 20px;
}

.list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #7b3fe4;
}

.tags span {
  display: inline-block;
  background: #7b3fe4;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  margin: 10px 10px 0 0;
  font-size: 14px;
}

blockquote {
  margin-top: 30px;
  padding: 20px;
  background: #7b3fe4;
  color: #fff;
  border-radius: 12px;
}

/* ================= PROCESS ================= */
.center {
  text-align: center;
}

.subtitle {
  max-width: 600px;
  margin: 10px auto 50px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.step span {
  font-size: 32px;
  font-weight: 700;
  color: #7b3fe4;
}

.step h4 {
  margin: 10px 0;
}


img{
    width: 100%;
}

nav .active {
    color: var(--purple);
  }
  

/* ================= CTA ================= */
.cta {
  background: #4b217d;
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  border-radius: 40px 40px 0 0;
}

.cta h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.cta-buttons{
  margin-top:30px;
  display:flex;
  justify-content:center;
  gap:15px; /* بدل margin-right */
  flex-wrap:wrap; /* مهم */
}

.btn-primary {
  background: #9b5cff;
  border: none;
  color: #fff;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.footer {
  background: #f6f6ff;
  color: black;
  padding: 70px 0 0;
  position: relative; 
  box-shadow: 0 -15px 30px rgba(108, 39, 145, 0.4);
  border-radius: 40px;
}

.footer-container{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:40px;
}

.footer-links a{
  display:block;
  color:black;
  margin:8px 0;
  text-decoration:none;
}
.footer-brand .mail {
color : black;
}
.footer-brand p {
  color :#94A3B8;
}

.footer-links h4{
  color: #94A3B8;

}

.footer-bottom{
  text-align:center;
  padding:20px 0;
  margin-top:40px;
  border-top:1px solid #333;
  color:#aaa;
}
.footer-head{
  color: #6C2791;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #7b3fe4; /* نفس لون الـ purple */
  border-radius: 3px;
  transition: 0.3s;
}

/* عند الضغط على الهامبرجر */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* Responsive */
@media screen and (max-width: 768px){
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 5%;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
  }

  nav.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .navbar .btn {
    display: none;
  }
}


/* ================= MOBILE FIX ================= */
@media screen and (max-width: 768px){

  .container{
    width: 95%;
    max-width: 100%;
  }

  .hero-content{
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-text h1{
    font-size: 30px;
  }

  .process{
    grid-template-columns: 1fr 1fr;
  }

  .grid-2{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-container{
    grid-template-columns: 1fr;
    text-align: center;
  }

}



.hero-main-img {
    width: 250%;
    margin-left: -190px; 
    display: block;
    max-width: 250%; 
}

/* ================= MOBILE FIX ================= */
@media screen and (max-width: 768px){
    .cta-buttons{
    flex-direction:column;
    align-items:center;
  }

  .cta-buttons .btn-primary{
    width:100%;
    max-width:300px;
  }


    .hero-content {
        flex-direction: column;
        text-align: center;
        align-items: center; 
    }

    .hero-cards {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 30px;
    }

    .hero-main-img {
        width: 100%;      
        max-width: 300px; 
        margin-left: 0;   
    }

    .grid-2 {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .grid-2 img {
        order: 2; 
        max-width: 80%;
        margin: auto;
    }
}

@media screen and (max-width: 768px) {
    /* 1. المنيو والهامبرجر */
    .hamburger { display: flex; }
    .navbar .btn { display: none; }
    
    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 70px;
        right: 5%;
        width: 190px;
        background: white;
        padding: 20px 0;
        border-radius: 15px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        z-index: 999;
    }

    nav.show { display: flex; }

    nav a {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0 !important;
        padding: 12px 0;
        color: #000 !important;
        font-weight: 600;
        font-size: 16px;
    }

    /* إلغاء الشكل الأصفر تماماً في الموبايل */
    nav a.active::after {
        display: none !important;
    }

    /* 2. إصلاحات الـ Hero والعناصر */
    .container { width: 95%; }
    .hero-content { flex-direction: column; text-align: center; gap: 40px; }
    .hero-text h1 { font-size: 30px; }
    .hero-cards { justify-content: center; margin-top: 30px; }
    .hero-main-img { width: 100%; max-width: 300px; margin-left: 0; }
    .process { grid-template-columns: 1fr 1fr; }
    .grid-2 { grid-template-columns: 1fr; text-align: center; }
    .grid-2 img { order: 2; max-width: 80%; margin: auto; }
    
    /* 3. Footer والـ CTA */
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn-primary { width: 100%; max-width: 300px; }
}



