*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
  text-decoration: none;
  scroll-behavior: smooth;
  list-style: none;
  
}

/*

/* ...........لسة............. */





  .dark-mode-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 60px;
            height: 30px;
            background: #ddd;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }
        
        .dark-mode-toggle:before {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 24px;
            height: 24px;
            background: white;
            border-radius: 50%;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        
        body.dark-mode .dark-mode-toggle {
            background: #4a6cf7;
        }
        
        body.dark-mode .dark-mode-toggle:before {
            transform: translateX(30px);
            background: #121212;
        }
        
        /* تنسيقات أساسية للعرض */
        /* body {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
            transition: background-color 0.3s, color 0.3s;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #f5f5f5;
            color: #333;
        } */
        
        body.dark-mode {
            background: #121212;
            color: #f5f5f5;
        }

    header {
      position: fixed;
      top: 1rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 5rem;
      background-color: rgba(0,0,0, 0.8);
      backdrop-filter: blur(8px);
      color: white;
      padding: 0.5rem 1.5rem;
      border-radius: 3rem;
      z-index: 1000;
      transition: transform 0.3s ease-in-out;
      width: 95%;
      max-width: 1200px;
    }

    .logo {
      color: white;
      font-size: 1.5rem;
      font-weight: 600;
      white-space: nowrap;
      transition: 0.3s ease-in-out;
    }

    .logo:hover {
      transform: scale(1.05);
    }

    .nav-links {
      display: flex;
      gap: 1.5rem;
    }

    .nav-links li {
      position: relative;
    }

    .nav-links li a {
      color: white;
      font-weight: 400;
      transition: 0.3s ease-in-out;
      font-size: 0.9rem;
    }

    .nav-links li a::before {
      position: absolute;
      content: '';
      width: 0;
      left: 0;
      height: 3px;
      top: 25px;
      border-radius: 1rem;
      transition: 0.3s ease-in-out;
      background: linear-gradient(to right, #0000ff, #ff0080); 
    }

    .nav-links li a:hover::before {
      width: 100%;
      background: linear-gradient(to right, #ff0080, #0000ff);
    }

    .visit-btn {
      padding: 0.7rem 1.3rem;
      border-radius: 3rem;
      border: none;
      font-weight: 500;
      font-size: 0.9rem;
      color: white;
      cursor: pointer;
      white-space: nowrap;
      transition: 0.3s ease-in-out;
      background: linear-gradient(to right, #0000ff, #ff0080);
    }

    .visit-btn:hover {
      background: linear-gradient(to right, #ff0080, #0000ff);
      transform: scale(1.05);
    }

    #menu-icon {
      font-size: 1.5rem;
      display: none;
      cursor: pointer;
      transition: 0.5s ease-in-out;
      /* transform: translateY(-100%); */
        }
      /* .nav .open {
        transform: translateY(0);
      } */


section{
  min-height: 100vh;
  padding: 8rem 12%;
  width: 100%;
  position: relative;
}
.about{
  display: flex;
  align-items: center;
  justify-self: center;
}
.about .about-container{
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 5rem;

}
.about img{
  width:55vw;
  height:55vh;
  border-radius: 50%;
  transition: 0.3s ease-in-out;
}
.about img:hover{
  transform: scale(1.2);
}
.info-box{
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.info-box h3{
  font-size: 1.8rem;
  font-weight: 500;
  opacity: 0.8;
}
.info-box h1{
  font-size: 4rem;
  font-weight: 600;
}
.info-box span{
  background: linear-gradient(to right, #0000ff , #ff0080);
  background-clip: text;
  color: transparent;
  font-size: 2rem;
}
.btn-group{
  display: flex;
  gap: 1rem;
}
.btn {
  border-radius: 3rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid black;
  cursor: pointer;
  text-wrap: nowrap;
  transition: 0.2s ease-in-out;
}
.btn:hover{
  background: linear-gradient(to right, #0000ff ,#ff0080);
  color: white;
}
.btn a{
  color: black;
  font-weight: 500;
  font-size: 1.5rem;
}
.btn:hover a{
  color: white;
}
.socials{
  display: flex;
  gap: 2rem;
}
.socials i{
  font-size: 2rem;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  color: black;
}
.socials i:hover{
  transform: scale(1.2);
}
/*........... About-me...........*/
.about-me{   
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 10rem;

}
.about-me img{
  width:30vw;
  border-radius: 50%;
  transition: 0.3s ease-in-out;
}
.about-me img:hover{
  transform: scale(1.1);
} 
.about-me .about-text p{
  font-size: 1.3rem;
  line-height: 2rem;
  opacity: 0.8;
  text-align: justify;
}
.info-box{
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.info-box h3{
  font-size: 1.8rem;
  font-weight: 500;
  opacity: 0.8;
}
.info-box h1{
  font-size: 4rem;
  font-weight: 600;
}
.info-box span{
  background: linear-gradient(to right, #0000ff , #ff0080);
  background-clip: text;
  color: transparent;
  font-size: 2rem;
}
.info-box span::after{
  content: 'IT Specialist';
  animation: words 5s infinite; 
}
@keyframes words {
  0%, 24% { content: 'IT Help Desk Specialist'; }
  25%, 49% { content: 'IT Specialist'; }
  50%, 74% { content: 'Network Engineer'; }
  75%, 100% { content: 'Flutter developer'; }
}

/* .....Experience.... */
/* .section-title{
  text-align: center;
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: blue;
}
.experience-info{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.grid-card{
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

  border: 2px solid black;
  border-radius: 3rem;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: left;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.grid-card:hover{
  transform: scale(1.02);
  /* background-color: black; 
  background: linear-gradient(to top, #0000ff ,#ff0080);
  color: white;
}
.grid-card i{
  font-size: 1.5rem;
  margin-bottom: 1rem;

}
.grid-card span{
  font-size: 1.5rem;
  font-weight: 500;
  background: linear-gradient(to right, #0000ff ,#ff0080);
  background-clip: text;
  color: transparent;
}
::-webkit-scrollbar{
  width: 20px;
}
::-webkit-scrollbar-track{
  background: rgb(219, 219, 219);

}
::-webkit-scrollbar-thumb{
  background: linear-gradient(to bottom , #0000ff ,#ff0080);
} */


/* ........projects....... */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 6rem;
}
.projects-card{
  border: 2px solid black;
  border-radius: 3rem;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  border: 2px solid black; 
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
.projects-card:hover{
  background-color: black;
  color: white;
  transform: translateY(-10px) scale(1.02);
}
.projects-card img{
  width: 20vw;
  border-radius: 1rem;
}
.projects-card:hover .btn{
  border: 2px solid white;
  color: black;
}
.projects-card:hover .btn:hover{
  border: 2px solid black;
  background-color: white;
  color:white;
}
.projects-card h3{
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
}

/* ........skills...... */

:root {
  --primary-color: #1b0de4;
  --accent-color: #2b0be0;
  --networking-color: #e74c3c;
  --certificate-bg:white;
}

.skills-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.skill-category {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
}

.category-header i {
  font-size: 2em;
  margin-left: 15px;
  color: var(--accent-color);
}
.category-header h3 {
  font-size: 1.6em;
  font-weight: 600;
  padding-left: 1rem;
  color:black;
}

.networking .category-header i {
  color: var(--networking-color);
}

.networking .category-header {
  border-bottom-color: var(--networking-color);
}

.skill-list {
  list-style: none;
  padding: 0;
}

.skill-list li {
  padding: 15px;
  margin: 10px 0;
  background: var(--certificate-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
}

.skill-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom , #0000ff ,#ff0080);
  transition: width 0.3s ease;
}
.networking .skill-list li::before {
  background:linear-gradient(to bottom , #0000ff ,#ff0080);;
}

.skill-list li:hover {
  color: white;
  padding-right: 25px;
  background:linear-gradient(to bottom , #0000ff ,#ff0080);;
}
.skill-list a{
  color: black;
  font-size: 1.2rem;
  text-decoration: none;
  
  width: 100%;
  height: 100%;
  padding: 15px;
  transition: color 0.2s;
}
.skill-list a:hover{
  color: white;
}

.skill-list li:hover::before {
  width: 8px;
}

.certificate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  overflow: auto;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 90vh;
  margin: 5vh auto;
  background: white;
  border-radius: 15px;
  padding: 30px;
  animation: modalOpen 0.4s ease-out;
}

@keyframes modalOpen {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary-color);
  transition: transform 0.3s;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.pdf-viewer {
  width: 100%;
  height: 85vh;
  border: none;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* .......contact...... */
:root {
    --main-color: white;
    --secondary-color: #1b0de4;
    --accent-color: #2b0be0;
    --text-color: #2C3E50;
    --glass-bg: rgba(255, 255, 255, 0.95);
}



/* .decorative-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    opacity: 0.08;
    filter: blur(80px);
    border-radius: 50%;
    animation: blob-float 20s infinite linear;
} */

/* @keyframes blob-float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(100px, -50px); }
    50% { transform: translate(-50px, 100px); }
    75% { transform: translate(-100px, -80px); }
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.contact-header h1 {
    font-size: 3em;
    background: linear-gradient(to right, var(--main-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    animation: line-grow 1s ease-out;
}

@keyframes line-grow {
    from { width: 0; }
    to { width: 60px; }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    padding: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
     background: conic-gradient(
        var(--main-color),
        var(--secondary-color),
        var(--accent-color),
        var(--secondary-color),
        var(--main-color)
    ); 
    opacity: 0.05;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color:black;
    padding-right: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px rgba(56, 163, 165, 0.15);
    outline: none;
    background: white;
}

.form-group select {
    appearance: none;
    background-image: url("../imag/download.jpg");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 2.5em;
}

button {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--main-color) 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
 45deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: button-shine 3s infinite;
}

@keyframes button-shine {
    from { transform: translateX(-100%) rotate(45deg); }
    to { transform: translateX(100%) rotate(45deg); }
}

button:hover {
    box-shadow: 0 5px 20px rgba(56, 163, 165, 0.3);
    transform: translateY(-2px);
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--secondary-color) ,var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(56, 163, 165, 0.2);
}

.social-links {
    margin-top: 50px;
    text-align: center;
        transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.social-links::after{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
      background: linear-gradient(
 45deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: button-shine 3s infinite;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background:linear-gradient(to right , #0000ff ,#ff0080);
    border-radius: 50%;
    margin: 0 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right ,#ff0080 , #0000ff);
    opacity: 0;
    transition: 0.3s;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a i {
    color: var(--main-color);
    font-size: 24px;
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.social-links a:hover i {
    transform: rotate(360deg);
}

/* @media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 20px;
    }

    .contact-header h1 {
        font-size: 2em;
    }

    .social-links a {
        margin: 0 8px;
        width: 45px;
        height: 45px;
    }
} */

.footer{
  bottom: 0;
  left: 0;
  height: 10rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}
.footer ul{
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 3rem;
}
    li a {
      position: relative;
      color: white;
      font-weight: 300;
      text-decoration: none;
      font-size: 24px;
      transition: 0.3s ease-in-out;
      padding: 10px 20px;
      display: inline-block;
    }


    li a::before {
      position: absolute;
      content: '';
      width: 0;
      left: 0;
      height: 5px;
      top: 100%;
      border-radius: 1rem;
      transition: 0.3s ease-in-out;
      background: linear-gradient(to right, #0000ff ,#ff0080);
    }

    li a:hover::before {
      width: 100%;
      background: linear-gradient(to right, #ff0080 ,#0000ff);
      transform: scale(1.1);
    }
.footer ul li a{  
color: black;
font-weight: 600;
}
.dark-mode .footer ul li a{
  color: white;
}
.copyright{
  font-size: 300;
  margin-top: 2rem;
}
.footer .socials{
  display: flex;
  gap: 3rem;
  margin-top: 1rem;

}

/* .......@Media....... */

@media(max-width:1280px){

header{
  padding: 1rem 2rem;
  gap: 2rem;
}
.about .about-container{
  gap: 3rem;
}
.experience-info{
  flex-direction: column;
}
.info-box input{
  padding: 2rem 5rem;
  font-size: 2.5rem;
}
.input input::placeholder{
  font-size: 2.5rem;
}
.input-box i{
  font-size: 2.5rem;
}
}


@media(max-width:768px){
  header{
    padding: 1rem 1rem;
    gap: 1rem;
  }
  header .logo{
    font-size: 1rem;
  }
  header .visit-btn{
    display: none;
  }
  
  .about-container{
    flex-direction: column;
    
  }
  .input-box input{
    padding: 1rem 2rem;
    font-size: 1.8rem;
  }
  .input input::placeholder{
    font-size: 1.5rem;
  }
  .input-box i{
    display: none;
    /* font-size: 2rem; */
  }
  .grid{
    grid-template-columns: repeat(1, 1fr);
  }
  .experience-info{
    width: 70VW;
  }

  /* footer{
    position: relative;
    top: 100rem;
  } */


  
}



@media(max-width:600px){
  header #menu-icon{
    display: block;
  }
  .nav-links{
    position: absolute;
    top: 100%;
    margin-top: 1rem;
    width: 100%;
    padding:1rem;
    color: white;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    /* background: rgba(0, 0, 0, 0.9); */
    border-radius: 3rem;
    display: none;
  }
  .nav-links li{
    margin-top: 1rem;
    padding: 0.5rem;
  }

  .nav-links.active{
    display: block;
  }
  header{
    padding: 1rem 0.2rem;
    gap: 8rem;
  }
  header .logo{
    font-size: 1.5rem;
    padding: 0rem 1rem;
  }
  header i{
    position: relative;
    left: 6rem;
  }
  .about-container img{
    width: 60vw;
  }
  .input-box input{
    padding: 0.5rem 3rem;
    width: 80%;
    font-size: 1.5rem;
  }
  .input-box input::placeholder{
    font-size: 1.5rem;
  }
  .footer{
    position: relative;
    top: 100rem;
  }
  .footer ul{
    gap: 1rem;
  }

}

        @media (max-width: 768px) {
            .about-me {
                flex-direction: column;
                text-align: center;
                gap: var(--spacing-md);
            }

            .section-title::after {
                left: 50%;
                transform: translateX(-50%);
                width: 40%;
            }

            .about-text {
                padding: var(--spacing-sm);
            }

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

        @media (max-width: 480px) {
            .section-title {
                font-size: 1.8rem;
            }

            .about-text p {
                font-size: 1rem;
            }
        }