*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins";
}
body{
    background-color: white;
    color: black;
    overflow-x:hidden ;
}
header{
    width: 100vw;
    height: 10vh;
    
   
    position: fixed;
    display: flex;
    justify-content: space-between;
}
.topLeft h2{
    position: fixed;
    margin-top: 10px;
    font-size: 32px;
    color: #fccc78;
    margin-left: 40px;
}
.navbar-left , .navbar-right{
    margin-top: 20px;
}
.navbar-left ul {
    display: flex;
    justify-content: space-around;

}
.navbar-left ul li {
    list-style: none;
    margin-left: 50px;
}

.navbar-left ul li a{
    text-decoration: none;
    color: black;
    font-size: 11px;
    
}



.navbar-right button {
    padding: 4px;
    font-size: 10px;
    font-weight: bold;
    width: 74px;
    border-radius: 50px;
    cursor: pointer;
    margin-right: 30px;
    border: none;
    position: absolute;
    top: 23px;
    right: -1px;
  
}

.navbar-right button:hover{
     background-color: #ffcc73;
     
}
/* main section */
main{
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.leftMain{
    margin-left: 150px;

    text-overflow: ellipsis;
}
.leftMain .p1{ 
    margin-bottom: 20px;
    color: #dec36d;
}

.leftMain h1 span{
    
    color: #fbc870;
}
.leftMain .p2{
    font-size: 12px;
    margin-top: 10px;
}
.leftMain .p2 span{
    color: #dec36d;
}
.rightMain img{
    height: 350px;

    border-radius: 20px;
    margin-right: 50px;
}

.rightMain img:hover{
    opacity: 0.7;
}


 
footer{
    width: 100vw;
    height: 100vh;
}
 #about{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
   
 }
 .topSection{
    display: flex;
 }
 

 .topAboutLeft img{
    height: 400px;
    
    margin-left: 100px;
    border-radius: 20px;
 }

 .topAboutLeft img:hover{
    opacity: 0.7;
 }

 .topRight{

    margin-left: 60px;
    text-overflow: ellipsis;
    margin-right: 30px;

 }

 .topRight h1{
    color:#fbc870 ;
    
 }

 .topRight .pOne{
    margin-top: 30px;
    font-size: 12px;
 }
 .topRight .pTwo{
    margin-top: 20px;
    font-size: 12px;
 }

 .yellow{
    color: #fbc870;
    font-size: 14px;
 }

 .topRight .signature{
    font-family: "Caveat";
    margin-top: 20px;
    font-size: 50px;
 }
 .topRight .hireBtn{
    margin-top: 15px;
    padding: 5px 20px;
    margin-left: 15px;
    font-size: 12px;
    cursor: pointer;
    background-color:#fbc870 ;
    border-radius: 2px;
    border: none;
 }
 .bottomSection{
    height: 30vh;
 }


#skills{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* margin-top: 50px; */
    align-items: center;
    
}

#skills h1{
    color: #fbc870;
}

.first{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}
.first p {
    width: 50%;
    font-size: 12px;
    text-align: center;
}

.second{
   display: flex;
   justify-content: center;
   margin-top: 30px;
   gap: 18px;
}
.card{
    width: 240px;
    height: 160px;
    border: 1px solid black;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 2s ease-in-out 0.3s;
}
.card:hover{

    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}
.card img{
    width: 40px;
    
}
.card .skillsPara{
    font-size: 15px;
    font-weight: bold;
    color: #fbc870;
    margin-top: 4px;
}
.card .skillsPara2{
    font-size: 10px;
    text-align: center;
    margin: 5px 10px 0px; 


}


  
/* hire button */
/* Modal background */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); /* semi-transparent black */
  }
  
  /* Modal box */
  .modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s;
  }
  
  /* Close button */
  .close-btn {
    color: black;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
  }
  
  /* Input and Button styles */
  #contact-form input, 
  #contact-form textarea, 
  #contact-form button {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  #contact-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  #contact-form button:hover {
    background-color: #45a049;
  }
  
  /* Smooth Animation */
  @keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
  }

  







.btn button{
    margin-top: 30px;
    border: 2px solid black;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    gap: 4px;
   
}

.btn button:active{

    border-color: #fbc870;
    background-color: #fbc870
    /* come again */
}

#projects{
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
/* justify-content: center; */
margin-top: 50px;
align-items: center;
text-align: center;
}
.topDiv h1{
    color: #fbc870;
    font-size: 30px;
}
.topDiv p{
    font-size: 13px;
    margin-top: 5px;
}

.bottomDiv{
    margin-top: 20px;
}
.bottomDiv ul{
    display: flex;
    gap: 30px;
}
.bottomDiv ul li{
    list-style: none;
    
}

.bottomDiv ul li a{
    text-decoration: none;
    color: black;
    font-size: 12px;
   
}

.bottomLast{
    margin-top: 20px;
    width: 75%;
    height: 80vh;
    
    display: flex;
    /* flex-direction: column; */
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
}

.imgCard{
    width: 310px;
    height: 200px;
    border: 1px solid black;
    border-radius: 10px;
    text-align: center;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center; 
    cursor: pointer;
    transition: all 2s ease-in-out 0.3s;
   
}
.imgCard:hover{
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.imgCard h1{
    font-size: 18px;
    color: #fbc870 ;
    margin-top: 4px;
    
}

.imgCard video{
    width: 280px;
    border-radius: 7px;
    margin-top: 4px 0px;
}



.tikUrl{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.tikUrl img{
    width: 20px;
    /* margin-top: 10px; */

    
}

.tikUrl p{   
font-size: 12px;
margin-bottom: 7px;

}

#contactUs{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* margin-top: 50px; */
    align-items: center;
    text-align: center;
}

#contactUs h1{
    font-size: 35px;
    text-transform: capitalize;
    color: #ddab54;
}
#contactUs p  span{
    font-family: "Caveat";
    font-size: 25px;
}

#contactUs .mid{
    margin-top: 60px;
}



.last{
    font-family: "Caveat";
    margin-top: 120px;
}



.darkMode{
    background-color: black;
    color: white ;
    
 }
.darkMode ul li a {
    color: white;
 } 
 .darkMode .card{
    border-color:  white;
 }

 .darkMode .imgCard{
    border-color: white;
 }



  

  @media screen and (max-width: 768px) {
    .sidebar-icon {
      display: block;
    }
  
    .navbar-left {
      display: none; /* hide normal nav on small screens */
    }
   main{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
   }

   .leftMain{
    margin-left: 60px;
   }
   .leftMain .p1{
    display: none;
   }

   .leftMain h1{
    font-size: 20px;
   }
   .leftMain .p2{
    font-size: 10px;
   }

   .rightMain{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

   }
    .rightMain img{
        height: 300px;
        margin-top: 10px;
        border-radius: 20px;
        margin-right: -6px;
    }
    
       main { 
        border-bottom: 2px solid white;
        gap: 10px;
       }
       hr{
        display: none;
       }
      
       
       /* second image part */
       .topAboutLeft img{
        display: none;
       }
      
       .topRight{
        display: flex;
        flex-direction: column;
        justify-content: center;
       }
    
       .pTwo{
        font-size: 10px;
       }
     

       #about{
        border-bottom: 2px solid white;
    
       }

      

       .imgCard{
        width: 234px;
        height: 150px;
       }
       .imgCard video {
        width: 200px;
       }

       #projects{
        margin-top: 10px;
       }
       .calcuLator{
        display: none;
       }

   .bottomDiv{
    display: none;
   }


   .tikUrl p {
    font-size: 10px;
    text-align: center;
   }

   .tikUrl img{
    position: relative;
    width: 15px;
    margin-top: 14px;
    margin-right: 1px;
    right: 50px;
   }



   #contactUs{
    position: relative;
    top: -50px;
   }
   #contactUs h1{
    font-size: 30px;
   }
   #contactUs p{
    font-size: 12px;
   }

/*  cs for the form on smaller screens */
/* Prevent background scroll when modal is open */
body.modal-open {
    overflow: hidden;
  }
  
  /* Mobile responsiveness */
  @media screen and (max-width: 768px) {
    .modal-content {
      width: 90%;
      margin-top: 20%; /* Lower it a little */
      padding: 20px;
      font-size: 16px; /* Slightly bigger for mobile */
    }
  
    #contact-form input,
    #contact-form textarea,
    #contact-form button {
      font-size: 16px;
    }
  

  #skills{
    position: relative;
    top: 10px;
  }
.first{
    position: relative;
    top: 20px;
}

.first p{
    font-size: 12px;
    width: 90%;
}
.card{
    width: 220px;
    height: 140px;
}
.card img{
    width: 25px;
    margin-top: 10px;
}


  .second{
    flex-direction: column;
  }
     
  }

  
    hr {
      border-color: black; /* Black line in light mode */
      display: block;
    }
  
    .darkMode hr {
      border-color: white; /* White line in dark mode */
      display: block;
    }

   
  }