*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: cursive;
}

body{
  line-height:1.6;
  color:#222;
  background: #f6f5fb;
}

img{
  max-width:100%;
  display:block;
}

.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;
}

.nav-content{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
  position:relative;
}

/* ===== LOGO ===== */
.logo img{
  width:100px;
}

/* ===== NAV ===== */
nav{
  display:flex;
  align-items:center;
  gap:35px;
}

nav a{
  text-decoration:none;
  color:#000;
  font-weight:500;
  position:relative;
  transition:0.3s;
}

nav a:hover{
  color: var(--purple);
}

nav .active{
  color: var(--purple);
}

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 ===== */
.nav-content .btn{
  padding:10px 22px;
  border-radius:25px;
  font-weight:500;
  transition:0.3s;
}

/* ================= HERO ================= */
.hero{
  padding:60px 0;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:40px;
  align-items:center;
}

.badge{
  color:#6C2791;
  font-size:13px;
  font-weight:600;
}

.hero h1{
  margin:15px 0;
  font-size:42px;
  font-weight: 900;
  color: #551976;
  line-height:2;
}

.lonn img{
  width: 487px;
  display: inline;
}

.hero p{
  color:#555;
}

/* ================= STORY ================= */
.story{
  padding:80px 0;
}

.story-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.story-text h3{
  color:#551976;
  margin-bottom:0px;
  font-size: 55px;
  line-height: 130%;
}

.stats{
  display:flex;
  gap:30px;
  margin-top:25px;
}

.stats h4{
  font-size:24px;
  color: #551976;
}

/* ================= VALUES ================= */
.values{
  padding:80px 0;
}

.values h2{
  text-align:center;
  margin-bottom:40px;
}

.values-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.value-card{
  background:#551976;
  color:white;
  padding:30px;
  border-radius:18px;
  text-align:center;
}

.value-card h4{
  margin-bottom:10px;
}

.value-card img{
  display: inline;
  width: 30%;
}

/* ================= FOOTER ================= */
.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;
  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){

  /* ================= NAVBAR ================= */
  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;
  }
  .nav-content .btn{
    display:none;
  }

  /* ================= HERO ================= */
  .hero-grid{
    grid-template-columns:1fr;
    text-align:center;
    gap:40px;
  }
  .hero h1{
    font-size:28px;
  }
  .lonn img{
    width:80%;
    margin:0 auto;
    display:block;
  }
  .hero-image img{
    width:60%;
    margin:0 auto;
    display:block;
  }

  /* ================= STORY ================= */
  .story-grid{
    grid-template-columns:1fr;
    text-align:center;
    gap:40px;
  }
  .story-image img{
    width:70%;
    margin:0 auto;
    display:block;
  }

  /* ================= VALUES ================= */
  .values-grid{
    grid-template-columns:1fr;
    text-align:center;
  }
  .value-card img{
    width:40%;
    margin:0 auto 15px auto;
    display:block;
  }

  /* ================= FOOTER ================= */
  .footer-container{
    grid-template-columns:1fr;
    text-align:center;
    gap:30px;
  }
}



/* ================= UPDATED RESPONSIVE (MOBILE MENU) ================= */
@media screen and (max-width:768px){

    /* --- Navbar Logic --- */
    .nav-content .btn {
        display: none; /* إخفاء زرار Contact Us في الموبايل */
    }

    .hamburger {
        display: flex;
        z-index: 1001; /* التأكد إنه فوق القائمة */
    }

    nav {
        display: block; 
        position: absolute;
        top: 75px; 
        right: 5%; /* تثبيت المنيو في اليمين */
        left: auto;
        
        width: 180px; /* العرض الصغير */
        background: white; 
        
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 15px; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        z-index: 1000;
        padding: 0;
    }

    /* لما الكلاس show يتضاف بالـ JS */
    nav.show {
        max-height: 450px;
        padding: 20px 0;
        border: 1px solid #eee;
    }

    /* تنسيق اللينكات داخلياً */
    nav a {
        display: block;
        width: 100%;
        text-align: center; /* الكلام في النص */
        padding: 10px 0;
        color: #362061;
        font-size: 17px;
        font-weight: 600;
    }

    /* إلغاء الـ yellow line في الموبايل عشان ميبوظش الشكل */
    nav .active::after {
        display: none;
    }

    /* --- باقي تنسيقات صفحة About للموبايل --- */
    .hero-grid, .story-grid, .values-grid, .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.4;
    }

    .lonn img {
        width: 70%;
        margin: 0 auto;
    }

    .hero-image img, .story-image img {
        width: 70%;
        margin: 0 auto;
    }

    .stats {
        justify-content: center;
    }

    .value-card img {
        width: 30%;
        margin: 0 auto 10px;
    }
}