
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: rgb(255, 255, 255);
  color: #000;
}
/*=============predefined elements================*/
html body a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/*=====================================================*/
/* ========================= nav bar======================*/

div.navbar  {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Courier New', Courier, monospace;
  height: 70px;
  border: 1px solid rgba(39, 27, 45, 0.2);
  border-radius: 10px;
  background-color: rgba(39, 27, 45, 0.1);
  margin-bottom: 5px;
}

/*=========logo=========*/
#logo {
  font-size: xx-large;
  font-weight: 700;
  font-family: monospace;
  position: absolute;
  top: 1%;
  border-radius: 10px;
  padding: 0;
}
.logo-wrap a .icon {
  display: none;
}
.logo-wrap h3 {
  margin: 10px 5px;
}
.logo-wrap h3 span {
  color: #f50909;
}
.logo-wrap i img {
  width: 30px;
}

.navigation {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.navigation div.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  padding: 14px 5px;
  font-size: 18px;   
  font-weight: 550;   
  gap: 25px;
  margin:0 50px;
  border-radius: 10px;
}
.navigation .nav-link a:hover {
  border-bottom: 2px solid rgb(246, 6, 6 );
}
.mode {
  border-radius: 50%;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: absolute;
  left: 35%;
}
.mode img {
  width: 30px;
}
.dark {
  display: none;
}
 .dark-mode  {  /* Hide light icon in dark mode */
  background-color: #000;
  color: #fff;
}
.dark-mode .light {
  display: none;
}
.dark-mode .dark {
  display: block;
}

.dark-mode .navbar .icon {
  color: white;
}
.dark-mode .navbar .icon i img {
      background-color: #fff;
      border-radius: 10px;
}
/*====================================================================================*/

/*========================================== main ==========================================================================*/
/*========================================== hero ==========================================================================*/
main {
  padding: 10px;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  margin: 0;
}
.hero-content {
  align-items: center;
  padding: 30px 0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 20px;
}
.hero-content h1 {
  font-family: monospace;
  font-size: 2.1em;
  text-shadow: 0 5px 15px rgba(0,0,0,0.5);
  margin: 5px 20px;
  padding: 0;
  text-align: center;
}
.hero-content p {
  font-family: monospace;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 0 35px;
  line-height: 33px;
}
.hero-img {
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img img {
  left: 50%;
  width: 250px;
  height: 250px;
  border-radius: 5%;
}
div.hero-img img:hover {
  filter: brightness(100%);
}
.contact_socials {
  display: block;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 18%;

}
.contact_socials a {
  display: flex;
  padding: 5px 0;
  margin: 5px;
}
.contact_socials a:hover {
  background-color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
}
.contact_socials  a span {
  visibility: hidden;
}
.contact_socials a span:hover {
  visibility: visible;
}
.contact_socials img {
  position: relative;
  top: -5%;
  left: 6%;
  width: 36px;
  height: 36px;
  margin: 2px;
  border-radius: 50%;
  background-color: #fff;
  padding: 1px;
}
.hero .hero-img button{
  margin: 10px;
  border-radius: 10px;
  padding: 5px;
  color:rgba(0, 0, 0, 0.868);
  font-weight: 600;
  text-transform: uppercase;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 12px;
  cursor: pointer;
  width: 80px;
  height: 50px;
  width: 80px;
  position: absolute;
  top: 10%;
  right: 20%;
}
.hero .hero-img button a{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.hero .hero-img button:hover {
  color: black;
}
.hero-img button img {
  height: 36px;
  width: 36px;
}

/*==========================================================================*/

/*========================================technologies===========================================================================*/
.tech-title {
  margin: 500px 0 0 0;
}
.tech-container {
  background-color: rgba(255, 234, 3, 0.2);
  margin: 20px 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: space-around;
}
 .tech-title {
  font-size: 30px;
  text-align: center; 
  margin: 50px;
  box-shadow: 1px 1px #f9f8fa;
}
.tech-container .tech {
  padding-top: 25px;
  padding-bottom: 10px;
  border-radius: 50%;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 10px;
  
}

.tech-container .tech:nth-child(n+4) {
  display: flex;
}

.tech-container .tech .tech-name{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 30px 0 0;
}

.tech-container .tech .progress {
  border-radius: 50%;
  background-color: rgba(109, 36, 145, 0.9);
  color: rgba(39, 27, 45, 0.2);
  width: 60px;
  height: 60px;
  border: 5px solid #fff;
  box-shadow: 1px 1px #b58dc1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech .progress span {
  color: #fff;
}


/*======================================================================= ========================*/
section.about-container {
  display: flex;
  margin: 5px;
  border: 1px solid rgba(145, 180, 18, 0.3);
  height: 570px;
}

.about-container .left-content {
  margin: 0 5px;
  border-right: 1px solid rgba(0,0,0,0.3);
  width: 30%;
}
#myProgress {
  width: 100%;
  background-color: #ddd;
  border-radius: 50%;
}

#myBar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #04AA6D;
  text-align: center;
  line-height: 30px;
  color: white;
  position: absolute;
}
.about-container .center-content {
  border-right: 1px solid rgba(0,0,0,0.4);
  height: 100%;
  width: 40%;
}
.about-container .right-content {
  margin: 0 5px;
  width: 30%;
}

/*========================================== projects ==========================================================================*/
.projects-container {
  padding: 5px;
  margin: 0;
}
.projects-container .discription{
  margin: 3px;
  text-align: center;
}
.projects-container .discription span {
  font-family: monospace;
  text-transform: uppercase; 
  margin: 0 auto;
  font-size: 25px;
  font-weight: 600;
}
 .project-wrap {
  display: flex;
  margin: 0 auto;
  max-width: 1000px;
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 1.5rem;
  height: 470px;
}
.projects-container .project-wrap .project {
  display: none;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: 0.6s ease;
}
.active, .dot:hover {
  background-color: #717171;
}
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
} 
.project-wrap div.project {
  width: 40rem;
  height: auto; 
  border-radius: 1.5rem  ;
  padding: 1.1rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.project .img-holder {
  width: 100%;  
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}
.project img {
  border-radius: 1.5rem;
  height: 15rem;
  width: 100%;
  max-width: 15rem;
  object-fit: cover;
}
.project img::after {
  content: '';
  width: 350px;
}
.project-wrap div.project div.project-details {
  height: auto;
  font-family: 'Courier New', Courier, monospace;
}
 div.project-details h3 {
  padding: 1rem 0;
  font-size: 1.5rem;
  text-align: center;
}
.project span {
  font-size: .8rem;
}
.project-details p {
  padding: 1rem 0;
  font-size: .9rem;
}
.project-wrap .project .project-details .project-buttons {
  display: flex;
  justify-content: space-evenly;
}
.project-wrap .project .project-details button {
  border: none;
  padding: 10px;
  border-radius: 5px;
  font-size: 15px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 550;
  margin: 0 auto;
  background-color: #fff;
  color: #2e1742;
  text-align: center;
  cursor: pointer;
}
/*===================================================================================================================*/


/*====================================form ========================*/

.container {
  border-radius: 5px;
  padding: 0px;
  margin: 100px;
}
.contact {
  text-align: center;
  padding: 5px 0;
}

.contact_content {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 10px;
}

.section_title {
  margin-bottom: 40px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
}

.contact_container {
  display: flex;  /* Display contact info and form in a row */
  flex-wrap: nowrap;  /* Allow wrapping on smaller screens */
  justify-content: space-between;  /* Spread elements evenly */
  margin-top: 20px;
}

.contact_info, .form_container {
    margin-bottom: 40px;
}

.contact_info {
  flex-basis: 40%;  /* Take 40% of the available width */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact_info dl {
  margin-bottom: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 550;
}

.contact_list dt {
  float: left;
  text-transform: uppercase;
}
.contact_list dt img {
  width: 48px;
  height: 48px;
  margin-bottom: 6rem;
  margin: 5px 10px;
}

.contact_list dd {
  display: flex;
  padding-left:2em;
  margin-bottom: 2em;
  padding: 20px;
}


.form_container {
  border-radius: 10px;
  padding: 35px;
  background-color: rgba(255, 230 ,0 , 0.2);
}

.form_container {
  flex-basis: 50%;
}

 /* Style inputs with type="text", select elements and textareas */
 input[type=text], input[type=email], select, textarea {
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */ 
    border: 1px solid #ccc; /* Gray border */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
  }
  
  /* Style the submit button with a specific background color etc */
  input[type=submit] {
    background-color: #04AA6D;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 80%;
  }
  
  /* When moving the mouse over the submit button, add a darker green color */
  input[type=submit]:hover {
    background-color: #45a049;
  }
  
  /* Add a background color and some padding around the form */

  .button_container {
    display: flex;
    justify-content: center;
  }
/*=========================================================================*/
/*==================== footer ==========*/
footer p {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    margin-top: 50px;
    text-align: center;
    padding: 10px;
}
/*========================================================================================*/
/*{% comment %}.center {
   position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  z-index: 9999;
}
.wave {
  width: 5px;
  height: 100px;
  background: linear-gradient(45deg, cyan, #fff);
  margin: 10px;
  animation: wave 1s linear infinite;
  border-radius: 20px;
}
.wave:nth-child(2) {
  animation-delay: 0.1s;
}
.wave:nth-child(3) {
  animation-delay: 0.2s;
}
.wave:nth-child(4) {
  animation-delay: 0.3s;
}
.wave:nth-child(5) {
  animation-delay: 0.4s;
}
.wave:nth-child(6) {
  animation-delay: 0.5s;
}
.wave:nth-child(7) {
  animation-delay: 0.6s;
}
.wave:nth-child(8) {
  animation-delay: 0.7s;
}
.wave:nth-child(9) {
  animation-delay: 0.8s;
}
.wave:nth-child(10) {
  animation-delay: 0.9s;
}
@keyframes wave {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
} {% endcomment %}
*/

/*===========q========================= responsive for mobile ===========  ==================*/
@media screen and (max-width: 485px) {
  .contact_socials {
  display: flex;
  justify-content: center;
  position: fixed;
  top: 138%;
  margin: 1px;
  }
  .hero-img button {
    position: absolute;
    top: 10%;
    left: 10%;
  }

}
@media screen and (max-width: 668px) {
  div.navbar {
    display: block;
    border: none;
  }
  .navigation a:not(:first-child) {
      display: none;}
    .logo-wrap {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 0 10px;
    }
    .logo-wrap a.icon {
    border-radius: 5px;
    color: #000;
    padding: 13px;  
    z-index: 100;  
  }
  .logo-wrap a.icon  i img {
    width: 36px;
    color: #fff;
  }
    div.navbar div.logo-wrap h3 {
    margin: 2px 5px;
    padding: 2px 5px;
  }
    
  .logo-wrap a {  
  }
  .logo-wrap .mode {
    position: relative;
    left: 65%;
  }
  .responsive {
    display: block;
    background-color: rgba(0, 0, 0, 0.588);
    border-radius: 5px;
    position: fixed;
    width: 180px;
    right: 0;
    z-index: 100;
  }
  .nav-link {
    box-shadow: none;
    height: 100%;
  }

  .responsive .nav-link a{
    display: flex;
    flex-direction: column;
    text-align: center;
    color: white;
    width: 100%;
    margin: 20px 0;
    border: none;
  }

  .navigation.responsive .nav-link a:hover {
    color: tomato;
    border-bottom: 2px solid rgba(115, 41, 152, 0.1)

  }

  .navigation button{
    border: none;
    border-radius: 7px;
    padding: 10px;
    margin: 0 50px; 
    color: hsl(12,98%, 52%);
    font-weight: 600;
    text-transform: uppercase;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 10px;
    background-color: white;
    position: absolute;
    top :1%;
    right: 14%;
  }

  .responsive button {
    position: fixed;
    top :64%;
    right: 27%;
  }

  
  #ham-menu {
    font-size: 30px;
  }

  .hero {
      display: block;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin: 0;
  }
   .contact_socials {

  }
}

@media screen and (max-width: 768px) {


}

@media screen and (max-width: 840px) {

}

@media screen and (max-width: 580px){
 
  .tech-container .tech progress {

  }
}

@media screen and (max-width: 440px){
 
  .tech-container .tech progress {
    width: 80px;
  }
}




/*==================== responsive for mobile ==========*/
@media screen and (min-width: 660px) {
  .logo-wrap a.icon {
    visibility: hidden;
  }
}

@media screen and (max-width: 760px) {




  .contact_container {
    display: block;
  }

  .form_container input, textarea {
    width: 70%;
  }

  .contact_info,
  .form_container {
    flex-basis: 100%;  /* Take full width on smaller screens */
  }
}

@media screen and (max-width: 760px) and (min-width: 525px) {

    .contact_socials a {
      padding: 0 5px;
    }
}