* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
/* light-mode */
:root{
  --first-color:#EB433F;;
  --second-color:#EBEFF2;
  --third-color:#545557;
  --text-color:black;
  --backgroundcolor:#f9f9f9;
  --forth-color:#666;
}
/* dark-mode */
.dark-theme {
  --second-color: #1c1c1e;
  --third-color:#b6b4b4;
  --text-color:white;
  --backgroundcolor:#757577;
  --forth-color:#d6d4d4;
}
.logo-img {
  content: url('../images/logo-light.png');
}
.dark-theme .logo-img {
  content: url('../images/logo-dark.png');
}
body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--second-color);
}
.container {
  width: 80%;
  margin: auto;
}

/* start header */
header {
  position: absolute;
  width: 100%;
  z-index: 2;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

header nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
header nav ul {
  list-style: none;
  display: flex; 
}
header nav ul li a {
  position: relative;
  padding: 30px 30px;
  display: block;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-color);
  transition: 0.3s;
  z-index: 2;
}
header nav ul li a:hover {
  color: var(--first-color);
}
header .mode {
  width: 40px;
  height: 30px;
  color: var(--text-color);
  position: relative;
  border-left: 1px solid var(--text-color);
}
header .mode i {
  position: absolute;
  margin: 6px 0 0 20px;
  font-size: 24px;
}
header nav .toggle-menu{
  color: var(--text-color);
  font-size: 28px;
  margin-right: 20px;
  cursor: pointer;
}
@media (min-width: 778px) {
  header nav .toggle-menu {
    display: none;
  }
}
@media (max-width: 777px) {
  header nav ul {
    display: none;
    flex-direction: column; 
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    background-color: #babdbd79;
    text-align: center;
  }
  header nav ul li a {
    padding: 15px !important;
  }
  header nav ul.show-menu {
    display: flex;
  }
  header nav .toggle-menu {
    display: block;
  }
}
/* end header */

/* start landing */
.landing{
  height: 90vh;
 background-color:var(--second-color);
}
.content{
  position: absolute;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.landing  .content .text{
  max-width: 550px;
  margin-top: 10%;
}
.img-landing img{
  width:650px;
  margin: 40px 0 0 70px;
}
.name{
      color: var(--first-color);
}
.text h1{
  font-size: 3rem;
  margin:0px;
  color: var(--text-color);
}
.text p{
  margin: 10px 0;
  color: var(--third-color);
  font-size: 1rem;
}
.btns .btn {
  display: inline-block;
  width: 110px;
  height: 30px;
  line-height: 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin-top: 5px;
  cursor: pointer;
  text-decoration: none;
}
.btn-hire {
  color: var(--first-color);
  border: 1px solid var(--first-color);
}
.btn-download {
  background-color: var(--third-color);
  color: white;
  margin-left: 10px;
}
.btn-hire:hover {
  background-color: var(--first-color);
  color: var(--text-color);
}
.btn-download:hover {
  color: var(--third-color);
  border: 1px solid var(--third-color);
  background-color: transparent;
}
.social-icons i{
  margin: 20px 15px 0 0;
color: var(--text-color);  }

@media (max-width:1074px) {
  .landing{
    height: 80vh;
  }
  .img-landing img{
    width:500px;
    margin: 0;
  }
  .content{
   margin-top: 70px;}
   .text h1{
    font-size: 2.7rem;
  }
  .text p{
    font-size: 0.9rem;
  }
}
@media (max-width:900px) {
  .img-landing img{
    width:530px;
  }
  .btns button{
    width: 105px;
    font-size: 15px;
}}
@media (max-width: 837px) {
  .container{
    width: 90%;
  }
  .logo img {
    height: 35px;
  }
  header{
    margin-top: 20px;
  }
  .content{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
   }
   .text h1{
    font-size: 2.5rem;
    margin-top: 10px;
  }
  .text p{
    font-size: 0.8rem;
  }
  .img-landing img {
      width: 100%;
      margin: 20px 0;
    }
  }
/* end landing */


/* start Resume */
.about-me{
margin: 30px auto;
display: flex;
justify-content: space-between;
gap: 30px; 
}
.section {
padding: 20px;
border-radius: 10px;
background-color: var(--backgroundcolor);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.section:hover{
box-shadow: 0 2px 4px 0 rgba(250,87,78), 0 1px 1px 0 rgba(250,87,78);
}
.section-title {
font-size: 1.1rem;
margin-bottom: 20px;
color: #333;
position: relative;
}
.section-title::after{
content: "";
position: absolute;
width: 20px;
height: 2px;
background-color: var(--first-color);
bottom: 0;
left: 0;
margin:-8px auto;
}
.education-item, .experience-item {
margin-bottom: 20px;
}
.education-item h4, .experience-item h4{
  color: var(--text-color);
}
.section-title{
color: var(--text-color);
}
.education-item p,.experience-item p {
margin-top: 5px;
font-size: 1.1rem;
color: var(--forth-color);
}
@media (max-width: 831px) {
    #about-me{
   position: relative;
   margin-top: 40%;
  }
    .about-me{
       flex-direction: column;
   }}
@media (max-width: 625px) {
    #about-me{
      margin-top: 33%;
      }}
/* end Resume */

/* start skills  */
.hed {
text-align: center;
margin-top: 40px ;
color: var(--text-color);
}
.skills-wrapper {
display: flex;
align-items: center; 
margin-top: 20px;
}
.skills-section {
width: 80%;
}
.skill {
margin-bottom: 20px;color: var(--text-color);
}
.skill span {
font-size: 1rem;
display: block;
margin-bottom: 5px;
}
.progress {
background-color: #5c5d5f;
border-radius: 25px;
position: relative;
height: 20px;
width: 100%;
}
.progress-bar {
background-color: #C3CFFF;
height: 100%;
border-radius: 25px;
text-align: center;
line-height: 20px;
font-size: 0.9rem;
}
.html5 {
width: 95%;
}
.css3 {
width: 90%;
}
.js {
width: 85%;
color:var(--text-color);
}
.bootstrap {
width: 80%;
}
.react {
width: 70%;
color:var(--text-color);
}
.figma {
width: 65%;
}
.github {
width: 85%;
}
@media (max-width: 625px) {
.skills-image img {
  display: none;
  }
  .skills-section {
    width: 100%;
    }}
/* end skills  */

/* start works  */
.section-title2 {
text-align: center;
margin: 10px 0 40px;
}
.works-section {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.work-item {
width: 30%;
margin-bottom: 30px;
background-color: var(--backgroundcolor);
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
padding: 20px;
text-align: center;
}
.work-item:hover{
transform: scale(1.1);
}
.work-item img {
width: 100%;
height: 270px;
border-radius: 10px;
margin-bottom: 10px;
}
.work-item h3 {
font-size: 1.2rem;
margin-bottom: 10px;
}
.work-item p {
font-size: 1rem;
color: #666;
margin-bottom: 15px;
}
.work-item a {
display: inline-block;
color: var(--first-color);
padding: 10px 20px;

text-decoration: none;
font-size: 1rem;
}
@media (max-width: 837px) {
  .works-section {
    flex-direction: column;
    align-items: center;
  }
  .work-item {
    width: 80%;}
}
/* end works */

/* start contact */
#contact{
  margin-top: 60px;
}
.contact{
display: flex;
justify-content: space-between;
}
.contact-info, .contact-form {
width: 45%;
}
.contact-form {
position: relative;}

.contact-info h3, .contact-form h3 {
margin: 30px auto;
color: var(--text-color);
}
.contact-info i {
margin-right: 10px;
color: var(--first-color);
}
.contact-info p {
font-size: 1.1rem;
margin: 40px auto;
color:var(--forth-color) ;
}
.form-input {
margin-bottom: 20px;
}
.form-input input, .form-input textarea {
width: 100%;
padding: 10px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 5px;
outline: none;
}
.form-input textarea {
height: 120px;
resize: vertical;
}
.send-btn {
padding: 10px 20px;
background-color:var(--first-color);
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
position: absolute;
right: 0;
}
@media (max-width: 625px) {
  .contact{
   flex-direction: column;  
   align-items: center;
    }
  .contact-info, .contact-form {
   width: 80%;
      }
  .contact-info{
    text-align: center;
      }
}
/* end contact  */

/* start footer  */
.footer {
margin-top: 10%;
padding: 30px 0;
text-align: center;
}

.footer-text ,.footer-title {
font-size: 0.9rem;
color:var(--forth-color);
margin-bottom: 20px;}

.footer a {
color: var(--first-color);
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
/* end footer  */