:root {
  --main-color: #3498db;
  --secondary-color: #2ecc71;
  --background-color: #ecf0f1;
  --text-color: #2c3e50;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* images */
.img {
  width: 500px;
  display: block;
  border-radius: 15px;
}

.imgs {
  width: 50%;
  padding-right: 10px;
  border-radius: 15px;
}

/* images */

/* General Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
  width: 100%;
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Styling */
.header2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  border-radius: 10px;
  background-color: rgb(244, 244, 244);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Navigation Styling */

.nav2 {
  width: 100%;
  background-color: #3a3a3a;
  border-radius: 10px;
  margin: 15px 0;
}

.nav2 ul {
  display: flex;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.nav2 ul li {
  padding: 15px 0;
  display: inline-block;
}

.nav2 ul li a {
  display: block;
  color: var(--secondary-color);
  text-align: center;
  padding: 0 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
}

.nav2 ul li a:hover {
  color: #006400;
  transform: scale(1.1);
}

/* btn */
.butn {
  background-color: var(--text-color);
  color: var(--background-color);
  padding: 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btns{
  display: flex;
  width: 150px;
  justify-content: center;
  align-items: center;
  margin: 0 auto;  
}

.butn a {
  text-decoration: none;
}

.butn:hover {
  background-color: var(--secondary-color);
}

/* Home section */
.text {
  margin: auto;
  text-align: left;
}

.text-1 {
  text-align: left;
}

/* projects */
.projects {
  animation: fadeIn 1s;
}

.projects:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* icon */
.icon {
  display: flex;
  font-size: 28px;
}

.icon_lang {
  font-size: 30px;
  padding-left: 5px;
}

.name {
  color: var(--secondary-color);
}

/* media queries */
@media only screen and (max-width: 800px) {
  .imgs {
    width: 100%;
  }
  .header2 {
    flex-direction: column;
    align-items: center;
  }

  .intro {
    display: flex;
    flex-direction: column;
  }

  .nav2 ul li {
    padding: 10px 0;
  }

  .nav2 ul li a {
    padding: 0 15px;
  }

  .text {
    text-align: center;
  }

  .text-1 {
    text-align: center;
  }
}

@media only screen and (max-width: 425px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  .imgs {
    width: 100%;
  }

  /* Toggle menu open/close */
  .menu.open {
    left: 0;
  }

  .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .header2 {
    flex-direction: column;
    align-items: center;
  }

  .intro {
    display: flex;
    flex-direction: column;
  }

  .nav2 ul {
    display: none;
  }

  .nav2 ul li {
    padding: 10px 0;
  }

  .nav2 ul li a {
    padding: 0 15px;
  }

  .btns {
    width: 200px;
  }
}

@media only screen and (max-width: 375px) {
  .header2 {
    flex-direction: column;
    align-items: center;
  }

  .imgs {
    width: 100%;
  }

  .intro {
    display: flex;
    flex-direction: column;
  }

  .nav2 ul {
    display: none;
    flex-direction: column;
  }
  .nav2 ul li {
    padding: 10px 0;
  }

  .nav2 ul li a {
    padding: 0 15px;
  }

  .butn {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 10px;
  }

  .butn a {
    text-decoration: none;
  }

  .btns{
    width: 150px;
  }
}
