*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: cursive;
}

body{
  line-height:1.6;
  color:#222;
}

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;
}



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);
  }

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: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-text h1 {
  color: var(--dark);
  letter-spacing: 4px;
  font-size: 90px;
  margin-bottom: 20px;
}

.hero-text p {
  color: #666;
  max-width: 500px;
  font-size: 24px;
}

.filters {
  margin-top: 30px;
}

.filters button {
  padding: 10px 22px;
  margin-right: 10px;
  border-radius: 25px;
  border: 1px solid var(--purple);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
}

.filters .active {
  background: var(--purple);
  color: #fff;
}

.hero-image img {
  width: 60%;
}

/* ================= PROJECTS ================= */
/* ===== PROJECT CARD (PIXEL STYLE) ===== */
/* ===== Project Card ===== */
.project-card {
  position: relative;
  background: #5b1f8f;
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: .35s ease;
  overflow: hidden;
}

/* الكيرف الناعم من فوق يمين */
.project-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: #f5f5f5; /* لون الخلفية */
  border-radius: 50%;
  z-index: 0;
}

/* ===== Card Header ===== */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

/* النص */
.card-text h3 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

.card-text span {
  color: #e0d6f5;
  font-size: 14px;
}

/* ===== Arrow Circle ===== */
.card-arrow {
  width: 46px;
  height: 46px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #5b1f8f;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: .3s ease;
}

/* ===== Card Image ===== */
.card-image {
  position: relative;
  z-index: 1;
}

.card-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

/* ===== Hover Effects ===== */
.project-card:hover {
  transform: translateY(-6px);
}

.project-card:hover .card-arrow {
  transform: scale(1.1) rotate(8deg);
}



.project-card:hover {
  transform: translateY(-10px);
}

/* ===== HEADER ===== */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-text h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 4px;
}

.card-text span {
  color: #e6d9ff;
  font-size: 14px;
}

/* ===== ARROW ===== */
.card-arrow {
  width: 44px;
  height: 44px;
  background: #f4c21a;
  color: #362061;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ===== IMAGE ===== */
.card-image {
  background: #fff;
  border-radius: 18px;
  padding: 14px;
}

.card-image img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}


/* ================= CTA ================= */
.cta {
  background: var(--dark);
  padding: 80px 20px;
  text-align: center;
  color: #fff;
  width: 85%;
  border-radius: 30px;
  margin: auto;
  font-family: Sofia Sans;
  
}

.cta h2{
    font-size: 64px;
}

.cta p{
    font-size: 24.85px;
}

.cta button {
  margin-top: 25px;
  padding: 12px 30px;
  cursor: pointer;
  background: var(--purple);
  border: none;
  color: #fff;
  border-radius: 10px 10px 0px 10px;
}

/* ================= FOOTER ================= */
/* ================= 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: #6C2791; /* نفس لون الفيربل */
  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;
  }
}



/* ==================== RESPONSIVE CSS ==================== */

/* ===== Projects Grid ===== */
@media screen and (max-width: 992px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ===== Hero Section ===== */
@media screen and (max-width: 768px){
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 50px;
    line-height: 1.1;
  }

  .hero-text p {
    font-size: 18px;
    max-width: 100%;
  }

  .hero-image img {
    max-width: 300px;
    margin: auto;
  }
}

/* ===== CTA Section ===== */
@media screen and (max-width: 768px){
  .cta {
    width: 95%;
    padding: 50px 20px;
    border-radius: 20px;
  }

  .cta h2 {
    font-size: 40px;
  }

  .cta p {
    font-size: 18px;
  }

  .cta button {
    padding: 10px 20px;
  }
}

/* ===== Footer ===== */
@media screen and (max-width: 768px){
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
}

/* ===== Navbar + Hamburger ===== */
@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;
  }
}



/* ================= UPDATED MOBILE MENU (COMPACT & CENTERED) ================= */
@media screen and (max-width: 768px) {
    
    /* 1. إظهار الهامبرجر */
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    /* 2. إخفاء زرار الـ Contact من الهيدر في الموبايل */
    .navbar .contact-btn {
        display: none;
    }

    /* 3. تنسيق الصندوق الأبيض */
    nav {
        display: none; /* مخفي افتراضياً */
        flex-direction: column;
        align-items: center;      /* توسيط العناصر بالعرض */
        justify-content: center;   /* توسيط العناصر بالطول */
        
        position: absolute;
        top: 75px; 
        right: 5%; /* تثبيت في اليمين */
        left: auto;
        
        width: 190px; /* العرض الصغير */
        background: white;
        padding: 20px 0;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 1000;
        
        /* إضافة تأثير انتقال ناعم */
        transition: all 0.4s ease;
    }

    /* كلاس التفعيل للـ JS */
    nav.show {
        display: flex;
    }

    /* 4. تنسيق الروابط داخل الصندوق */
    nav a {
        display: block;
        width: 100%;
        text-align: center; /* <<< النص في النص */
        margin: 0 !important; /* إلغاء المسافات الجانبية */
        padding: 12px 0;
        color: #362061 !important;
        font-weight: 600;
        font-size: 17px;
    }

    /* إلغاء الخط الأصفر في الموبايل عشان ميبوظش التنسيق */
    nav .active::after {
        display: none;
    }
}