* {
    margin : 0;
    padding: 0;
    box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #050510;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; 
}


.nav {
    position: sticky;
    top:0;
    background-color: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(96, 28, 252,0.2);
    z-index: 9999;
    padding: 1rem 0;
    height: 70px;
    
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    height: 100%;
}




.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #601cfc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: logoSlide 4s ease forwards, logoPulse 5s infinite ease-in-out;
}

@keyframes logoSlide {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}


.nav-links {
    display:flex;
    gap: 2rem;
    flex-wrap: wrap;
    list-style: none;
    height: 100%;
}

.nav-links a {
    display: inline-block;
    padding: 5px;
    color:#e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #601cfc;
    border-bottom: 2px solid #ec6414;

}
.menu{
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    display: none;
    color: #fff;
}
/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
    animation: animate 20s infinite ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}



.hero-background-image {
    position: absolute;
    top:0;
    left:0;
    width:100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5) contrast(1.2);
}

.hero::before {
    content: "";
    z-index: 1;
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 11, 22, 0.7) 0%, rgba(26, 10, 46, 0.7) 50%, rgba(11, 11, 22, 0.7) 100%);

}

/* .hero_bg_vd{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    filter: brightness(0.9) contrast(.8);
    
} */

@keyframes animate {
  0% {
    background-image: url("imges/img1.jpg");
  }
  25% {
    background-image: url("imges/img2.jpg");
  }
  50% {
    background-image: url("imges/img3.jpg");
  }
  75% {
    background-image: url("imges/img4.jpg");
  }
  100% {
    background-image: url("imges/img5.jpg");
  }
}
.hero-content {
    z-index: 2;
    text-align: center;
    max-width: 900px;
    
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
      background: url('https://media.giphy.com/media/v1.Y2lkPWVjZjA1ZTQ3ODUwY3hiN2J5ZzN5aW85YnN5dGtkam5iZHRvZ2ExdDc3MnRza2l2MCZlcD12MV9naWZzX3JlbGF0ZWQmY3Q9Zw/phmojyyfS3GbZ1juxd/giphy.gif');
      background-size: cover;
      background-position: center;
      -webkit-background-clip: text; 
      background-clip: text;
      
      color:transparent;
      
      filter: drop-shadow(0 10px 10px rgba(174, 189, 189,0.5));
  }



.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #b0b0b0;
    font-weight: 500;
    margin-bottom: 3rem;
}



.hero-icons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 2rem;
    color: #601cfc;
    opacity: 0.6;
}

.hero-icons a{
  text-decoration: none;
  color:#601cfc; 
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.4s ease;
}
.youtube:hover{
  background-color: #ff0000;
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
  transform: translateY(-5px);
}
.fb:hover{
  background-color: #1877f2;
  color: #fff;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.5);
  transform: translateY(-5px);
}
.insta:hover{
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
  box-shadow: 0 0 20px rgba(214, 36, 159, 0.5);
  transform: translateY(-5px);
}
/* General Section styles */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}


/* Reel Section */
.reel-section {
    background-color: #0b0b16;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(96, 28, 252, 0.3);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Projects Section */
.projects-section {
  background-color: #050510;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: #0f0f1e;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(96, 28, 252, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(96, 28, 252, 0.4);
  border-color: rgba(96, 28, 252, 0.5);
}

.project-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #1a1a2e;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.project-description {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #601cfc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;  

}

.project-link:hover {
    gap:0.75rem;
}


/* About Section */
.about-section {
  background-color: #0b0b16;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: stretch; /* Changed from center to stretch */
  max-width: 1100px;
  margin: 0 auto;
}


.about-image-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(96, 28, 252, 0.3);
  height: 100%; /* Ensure wrapper takes full height of grid cell */
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center the content within this column */
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d0d0d0;
  margin-bottom: 2rem;
}

.skills-section {
  background-color: #0f0f1e;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(96, 28, 252, 0.2);
}

.skills-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.skills-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #d0d0d0;
}

.skills-list i {
  color: #601cfc;
  font-size: 1.2rem;
  min-width: 20px;
}


/* Process Section */
.process-section {
  background-color: #050510;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background-color: #0f0f1e;
  border-radius: 12px;
  border: 1px solid rgba(96, 28, 252, 0.2);
  transition: border-color 0.3s ease;
}

.process-step:hover {
  border-color: rgba(96, 28, 252, 0.5);
}

.process-number {
  font-size: 3rem;
  font-weight: 800;
  color: #601cfc;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.process-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.process-step-description {
  font-size: 0.95rem;
  color: #b0b0b0;
}


/* Testimonials Section */
.testimonials-section {
  background-color: #0b0b16;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: #0f0f1e;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(96, 28, 252, 0.2);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(96, 28, 252, 0.5);
  transform: translateY(-8px);
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #d0d0d0;
  margin-bottom: 1.5rem;
  font-style: italic;

}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial-author strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.testimonial-author span {
  color: #b0b0b0;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  background-color: #0b0b16;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  background-color: #0f0f1e;
  padding: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(96, 28, 252, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  background-color: #1a1a2e;
  border: 1px solid rgba(96, 28, 252, 0.3);
  border-radius: 6px;
  color: #e0e0e0;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #601cfc;
  box-shadow: 0 0 0 3px rgba(96, 28, 252, 0.2);
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #d0d0d0;
  font-size: 0.95rem;
}

.checkbox-label input,
.radio-label input {
  width: auto;
  cursor: pointer;
  accent-color: #601cfc;
}

.checkbox-label:hover,
.radio-label:hover {
  color: #ffffff;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  font-size: 1.1rem;
  padding: 1.125rem;
}

.contact-direct {
  text-align: center;
  font-size: 1.05rem;
  color: #b0b0b0;
}

.contact-direct a {
  color: #601cfc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-direct a:hover {
  color: #7a3dff;
  text-decoration: underline;
}


/* Footer */
.footer {
  background-color: #050510;
  padding: 3rem 0;
  border-top: 1px solid rgba(96, 28, 252, 0.2);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer p {
  color: #b0b0b0;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: #601cfc;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: #7a3dff;
  transform: translateY(-3px);
}


/* Responsive Design */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-text {
    text-align: center;
  }
  .skills-title {
    text-align: center;
  }
}

@media (max-width: 768px) {
    /* إظهار الزر */
    .menu {
        display: block;
        z-index: 1002;
    }

    /* Mobile dropdown menu styles */
/* Mobile dropdown menu styles */
    .nav-links {
        position: absolute;
        top: calc(100% + 5px); 
        right: 2rem; 
        width: 240px; 
        background-color: #0f0f1e;
        border-radius: 12px;
        border: 1px solid rgba(96, 28, 252, 0.2);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        padding: 1rem;
        
        /* التعديل الجذري هنا */
        display: flex;            /* تفعيل الفليكس */
        flex-direction: column;   /* جعل العناصر تحت بعضها */
        flex-wrap: nowrap;        /* منع العناصر من الالتفاف بجانب بعضها */
        align-items: flex-start;  /* محاذاة العناصر لليسار (أو اليمين حسب رغبتك) */
        height: auto;             /* إلغاء الـ height: 100% الموروث من الديسكتوب */
        gap: 0.5rem;

        /* الحالات الخاصة بالإظهار والإخفاء */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.98);
        transform-origin: top right;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    /* تأكد من أن الـ li يأخذ كامل العرض */
    .nav-links li {
        width: 100%;
        display: block;
    }

    .nav-links a {
        display: block; 
        width: 100%;    /* لجعل الرابط قابل للضغط في كامل السطر */
        padding: 0.75rem 1rem;
        border-radius: 6px;
        border-bottom: none !important; /* إلغاء الخط السفلي البرتقالي في الموبايل */
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links a:hover {
        background-color: rgba(96, 28, 252, 0.2);
    }
    
  .hero {
    min-height: 80vh;
    padding: 3rem 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }


  .projects-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .checkbox-group,
  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }
}