* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Poppins";
    
}

:root {
    --bg-color: #080808;
    --second-bg-color: #101010;
    --text-color: white;
    --main-color: #009b86;
}

html {
    font-size: 60%;
    overflow-x: hidden;

}

body {
    background: var(--bg-color);
    color: var(--text-color);
    
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 15%;
    background: rgb(0, 0, 0) rgb(0, 0, 0);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;

}

#menu-icon {
    font-size: 3.5rem;
    color: var(--main-color);
    display: none;
}

/*
------------------------------------------------------------------------------
The Logo Section
*/
.logo {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.dlogo {
     font-family: 'Pacifico', cursive;
}
/*
controls the efect when the mouse on the name logo 
*/
.logo:hover {
    transform: scale(1.1);
}

/*
the span bellow controls the colors gradient of the second name and style it  
*/
span {
    
    background: linear-gradient(270deg,
            #02e9f5 10%,
            #039b61 100%);
    background-clip: text;
    color: transparent;
}

/*
---------------------------------------------------------------------------------
*/
.navbar a {
    font-size: 2rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
    
    
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);

}



.gradient-btn {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg,
            #01e4e4 10%,
            #0b5f51 100%);
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;

}

.gradient-btn a {
    color: white;
}

.gradient-btn:hover {
    transform: scale(1.05);
}

section {
    min-height: 100vh;
    padding: 10rem 13%;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 40px;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-content h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3 {
    margin: 1rem 0;
    font-size: 4rem;
}

.home-content p {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.8;
}

#typing-text {

    border-right: 3px solid var(--bg-color);
    padding-right: 5px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--main-color);
    }
}
/*--------------------------------------------*/


.home-img img {
    /* width: 25vw; */
    width: 300px;
    height: 390px;
    object-fit: cover;
     border: 5px solid #0bdaad;
    border-radius: 20%;
    
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
   
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color),
        0 0 100px var(--main-color);
      transform: scale(1.05);   
}
@media (max-width: 768px) {
    .home-img img{
        width: 200px;
        height: 260px;
    }
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
        
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

/*
---------------------------------------------------------------------------------
Start of the About Me Section
*/
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}

.about-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color),
        0 0 100px var(--main-color);
}

.about-content h2 {
    font-size: 7rem;
    text-align: left;
}

.about-content p {
    font-size: 1.8rem;
}

.about-content .btn {
    margin: 3rem 0;
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

/*
---------------------------------------------------------------------------------
/* skills/* */


  .section-container h2 {
    text-align: center;
    font-size: 6rem;
    
  }

  .category-title {
    font-size: 3rem;
    font-weight: 600;
    color: #02b69e;
    margin: 2rem 0 1.5rem;
    text-align: center;
    padding: 30px;
  }

  .grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #202a2b;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px;
  }

  .circle::before {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #080f0e, #09ecc6);
    z-index: -1;
  }

  .circle img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .skill-card:hover .circle img {
    transform: scale(1.15);
  }

  .skill-card:hover .circle {
    box-shadow: 0 0 25px #56e6eb;
    transform: scale(1.05);
  }

  .title {
    font-size: 2rem;     
  font-weight: 600;       
  color: #ffffff;         
  margin-top: 0.4rem;

  
  }

  @media(max-width: 600px) {
    .circle {
      width: 70px;
      height: 70px;
    }
    .circle img {
      width: 34px;
      height: 34px;
    }
  }

---------------------------------------------------------------------------------
/* Start of the services section */

.heading {
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

.services {
    background-color: var(--bg-color);

    color: var(--main-color);
}

.services h2 {
    color: var(--main-color);
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2.5rem;
}


.service-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    height: 500px;
   
    border-radius: 3rem;
    cursor: pointer;
    border: 1px solid  var(--main-color) ;
    transition: 0.4s ease-in-out;
}

.service-box:hover {
    background-color: var(--main-color);
    color: var(--second-bg-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}

.service-info h4 {
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}

.service-info p {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.7;
}

.service-info i {
    font-size: 8rem;

}



.projects {
  background-color: var(--second-bg-color);
  padding: 8rem 5rem; /* زيّدت padding باش يبعد على الجوانب */
  position: relative;
  overflow: hidden;
}

.heading {
  text-align: center;
  font-size: 6rem;
  margin-bottom: 3.5rem;
  color: var(--text-color);
  letter-spacing: 1px;
}

/* === SLIDER CONTAINER === */
.slider-container {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 1.5rem; /* يبعد الكروت على الجوانب */
}

/* === PROJECTS BOX === */
.projects-box {
  display: flex;
  transition: transform 0.6s ease;
  gap: 2.5rem;

}

/* === PROJECT CARD === */
.project-card {
  flex: 0 0 calc(33.333% - 2rem);
  background-color:  #202a2b;
  border: 2px solid rgb(32, 73, 71);
  border-radius: 4rem;
  text-align: center;
  padding: 2rem 1.6rem; /* زدت الطول هنا */
 
  transition: 0.3s ease;
  min-height: 420px; /* باش تكون الكروت طوال شوية */
}

.project-card:hover {
  transform: scale(1.03);
      box-shadow: 0 0 5px var(--main-color);
}

.project-card img {
  width: 100%;
  height: 180px;
  border:2px solid #263233;
  border-radius: 1.2rem;
  object-fit: cover;
  
}

.project-card h3 {
  font-size: 2rem;
  color: rgb(21, 239, 255);
  margin-top: 1rem;
}

.project-card p {
  font-size: 1.9rem;
  color: var(--text-color);
  margin: 2rem 0 3rem;
  line-height: 1.6;
}

.project-card .btnd a {
  display: inline-block;
  background-color:  #202a2b;
  font-size: 1.7rem;
  

  color: rgb(4, 205, 219);
  padding: 0.8rem 1.6rem;
  border: 1px solid rgb(4, 205, 219);
  border-radius: 3rem;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
 
}

.project-card .btnd a:hover {
  background-color:rgb(20, 193, 206);
  color: rgb(0, 0, 0);
}

/* === SLIDER BUTTONS === */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--main-color);
  border: none;
  color: var(--bg-color);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: 0.3s;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--text-color);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

/* === 🔹 VIEW MORE BUTTON === */
.view-more-container {
 
    display: none;
}

.view-more {
  display: none;
}
/* === 📱 MOBILE VIEW === */
@media (max-width: 768px) {
  .projects {
    padding: 4rem 1.5rem;
  }

  .slider-container {
    padding: 0 1rem;
  }

  .project-card {
    flex: 0 0 100%;
    min-height: 400px;
    padding: 2rem;
    margin: 0 auto;
  }

  .project-card img {
    height: 200px;
  }

  .project-card h3 {
    font-size: 2rem;
  }

  .project-card p {
    font-size: 1.8rem;
  }

  .slider-btn {
    display: none;
  }
  .view-more-container {
      display: block;
  text-align: center;
  margin-top: 3rem;}
}

/* ===== CONTACT SECTION ===== */
 .contact {
  background: #121212; 
  color: #eaeaea;
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
} 


.contact-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem; /* تقليل المسافة بين الصناديق */
  width: 100%;
  max-width: 1100px;
  
}

/* ===== FORM & INFO SECTIONS ===== */
.form-section,
.info-section {
  background: #181818;
  border-radius: 1rem;
  padding: 2rem; /* تقليل البادينغ */
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  
}

.form-section h2 {
  margin-bottom: 2.5rem;
  font-size: 3rem;
  color: #00d1c0;
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.input-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.input-box label {
  font-size: 2rem; 
  color: #aaaaaa;
  margin-bottom: 1.3rem;
}

.input-box input,
.input-box textarea {
  background: #222;
  border: 1px solid #333;
  border-radius: 0.7rem;
  padding: 0.8rem;
  color: #eaeaea;
  font-size: 2rem;
}

.input-box input:focus,
.input-box textarea:focus {
  outline: none;
  border-color: #00d1c0; /* أقل سطوع */
}



/* ===== BOXES ===== */
.info-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-box,
.availability-box {
  background: #222;
  border: 1px solid #333;
  border-radius: 1rem;
  padding: 1.8rem;
  transition: 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 209, 192, 0.05);
}

.info-box:hover,
.availability-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 10px rgba(0, 209, 192, 0.2);
}

/* ===== TITLES ===== */
.info-box h3,
.availability-box h3 {
  margin-bottom: 1.5rem;
  color: #00d1c0;
  font-size: 2rem;
}

/* ===== CONTENT ===== */
.info-box p,
.availability-box p {
  margin: 1rem 0;
  color: #ccc;
  font-size: 1.6rem;
  line-height: 1.5;
}

.info-details i {
  color: #00d1c0;
  margin-right: 0.6rem;
  font-size: 1.6rem; 
}

/* ===== STATUS ===== */
.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00d1c0;
  font-size: 1.6rem;
  margin-top: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  background: #00d1c0;
  border-radius: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 850px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .info-section {
    padding: 2rem;
  }

  .info-box,
  .availability-box {
    padding: 1.2rem;
  }

  .info-box h3,
  .availability-box h3 {
    font-size: 1.8rem;
  }

  .info-box p,
  .availability-box p,
  .status {
    font-size: 1.4rem;
  }
}



/* ===== BOXES ===== */
.info-section {
  background: #181818;
  border-radius: 1rem;
  padding: 4rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
}

.info-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-box,
.availability-box {
  background: #222;
  border: 1px solid #333;
  border-radius: 1rem;
  padding: 2rem;
  transition: 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 242, 0.05);
}

.info-box:hover,
.availability-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 255, 242, 0.2);
}

/* ===== TITLES ===== */
.info-box h3,
.availability-box h3 {
  margin-bottom: 2rem;
  color: #00fff2f3;
  font-size: 2.2rem;
}

/* ===== CONTENT ===== */
.info-box p,
.availability-box p {
  margin: 1.2rem 0;
  color: #ccc;
  font-size: 2rem;
  line-height: 1.6;
}

.info-details i {
  color: #00fff2f3;
  margin-right: 0.8rem;
}

/* ===== STATUS ===== */
.status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00fff2f3;
  font-size: 2rem;
  margin-top: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  background: #00fff2f3;
  border-radius: 50%;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 850px) {
  .contact-container {
    grid-template-columns: 1fr;
  }

  .info-section {
    padding: 2rem;
  }

  .info-box,
  .availability-box {
    padding: 1.5rem;
  }

  .info-box h3,
  .availability-box h3 {
    font-size: 1.8rem;
  }

  .info-box p,
  .availability-box p,
  .status {
    font-size: 1.6rem;
  }
} */
/* Feedback message */



/* 
Start of footer section
*/
.footer {
    background-color: var(--second-bg-color);
    padding: 50px 0;
}

.footer .social-icons {
    text-align: center;
}

.footer ul {
    text-align: center;
    font-size: 1.8rem;
}

.footer ul li {
    display: inline-block;
    margin-left: 20px;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: epx solid var(--main-color);
}

.footer .copyright {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    font-size: 16px;
}

@media(max-width:1285px) {
    #menu-icon {
        display: block;
    }

.navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 0 0 1.5rem 1.5rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    backdrop-filter: blur(9px);
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.3s ease;
}


.navbar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto; 
    display: block;
}


.navbar a {
    display: block;
    padding: 1.5rem 0;
    font-size: 2rem;
    opacity: 0;
    transform: translateX(10px);
    transition: 0.3s ease;
}


.navbar.active a {
    opacity: 1;
    transform: translateX(0);
}

.navbar a:hover {
    color: var(--main-color);
    transform: translateX(10px);
}

   .navbar.active {
        display: block;
    } 


    .gradient-btn {
        display: none;
    }

    .home {
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
    }

    .home-content {
        align-items: center;
        text-align: center;
    }

    .home-img {
        width: auto;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about h2 {
        text-align: center;
        margin: 2rem 0;
    }

    .about img {
        width: 52vw;
    }

    .contact form {
        flex-direction: column;
    }
}