* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-light: #1a1a1a;
  --bg-dark: #0b0b0b;
  --bg-nav: #0b0b0be3;
  --text-light: #f2f2f2;
  --text-dark: #9ca3af;
  --accent: #ef4444;
  --accent-dark: #b91c1c;
  --white: #ffffff;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  font-family: Arial, sans-serif;
  color: var(--white);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

strong {
  color: var(--accent);
}

.container {
  max-width: 1720px;
  padding: 0 10px;
  margin: 0 auto;
}

.section-box {
  padding-top: 50px;
  scroll-margin-top: 125px;
}

.section_title {
  font-size: 55px;
}

.section_text {
  font-size: 20px;
}

.section_img {
  width: 75px;
  height: 75px;
}

.span_accent {
  color: var(--accent);
}

.header_bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 60px;
  width: 100%;
  background-image: url("img/background/5.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: 35%;
  box-shadow: var(--shadow-lg);
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  height: 60vh;
  overflow: hidden;
}

.header_title {
  font-size: 60px;
  text-shadow: 2px 5px 10px #000000;
  line-height: 1.1;
  text-align: center;
  animation-name: opacity-position;
  animation-duration: 2s;
}

.header_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  right: 0;
  padding: 18px 32px;
  background-color: var(--bg-nav);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.navbar {
  text-transform: uppercase;
}

.nav_list {
  display: flex;
  font-size: 18px;
  color: var(--text-light);
  gap: 20px;
}

.nav_links {
  position: relative;
  transition: all 0.2s ease;
}

.nav_links::after {
  content: "";
  position: absolute;
  width: 0%;
  left: 0;
  height: 3px;
  bottom: -5px;
  background-color: var(--accent);
  transition: all 0.3s ease;
}

.nav_links:hover::after {
  width: 100%;
}

.logo {
  color: var(--text-light);
  font-size: 1.8rem;
  z-index: 50;
}

.nav_btn {
  display: none;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 25px;
  padding: 0;
  border: none;
  background-color: transparent;
  position: relative;
}

.nav_btn span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--white);
  position: absolute;
}

.nav_btn::after,
.nav_btn::before {
  content: "";
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--white);
  position: absolute;
}

.nav_btn::before {
  top: 0;
}

.nav_btn::after {
  bottom: 0;
}

.section_about-skills {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about_inner {
  padding: 30px 30px;
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  max-width: 800px;
}

.skills {
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills_inner {
  margin-top: 30px;
  padding: 30px 30px;
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  max-width: 800px;
  overflow: hidden;
}

.skills_title {
  margin-bottom: 10px;
}

.skills_img-list {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.skills_imgbox {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.skills_textbox {
}

.projects {
  margin-bottom: 30px;
}

.project_title {
  padding-left: 30px;
}

.project_list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 20px;
  justify-items: center;
}

.project_item {
  padding: 20px;
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-light);
  width: 100%;
  border-radius: 15px;
  position: relative;
}

.project_item:last-child {
  min-height: 500px;
}

.project_item:last-child:after {
  content: "Coming Soon";
  font-size: 20px;
  position: absolute;
  opacity: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.project_item:hover::after {
  opacity: 1;
}

.project_item-card {
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 100%;
}

.project_img-link img {
  width: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  border-radius: 15px;
  margin-bottom: 20px;
}

.project_img-link:hover img {
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

.project_item-title {
  font-size: 35px;
  margin-bottom: 15px;
}

.project_item-text {
  font-size: 20px;
  margin-bottom: 20px;
}

.project_item-skillsbox {
  display: flex;
  justify-content: space-between;
  align-items: end;
  height: 100%;
  width: 100%;
}

.project_skillsbox-list {
  display: flex;
  gap: 15px;
}

.project_skillsbox-item {
  box-shadow: var(--shadow-lg);
  border-radius: 15px;
  padding: 20px;
  line-height: 0;
}

.project_skillsbox-item img {
  width: 80px;
}

.project_skillsbox-btn {
  border-radius: 100px;
  padding: 15px 20px;
  font-size: 18px;
  color: var(--bg-dark);
  background-color: var(--white);
  text-align: center;
}

.contact_title {
  text-align: center;
  margin-bottom: 15px;
}

.contact_link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  font-size: 20px;
  gap: 5px;
  padding: 15px 24px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  border: 1px solid var(--white);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.contact_link:hover {
  background-color: var(--accent);
  border: 1px solid var(--accent);
}

.contact_img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 20px;
  gap: 0.5rem;
}

.contact_img img {
  padding: 15px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.contact_img img:hover {
  background-color: var(--accent);
}

.site-information {
  font-size: 13px;
}

.footer {
  padding-top: 10px;
  scroll-margin-top: 100px;
  background-color: var(--bg-dark);
}

@media (max-width: 1160px) {
  .section_title {
    font-size: 40px;
  }

  .section_text {
    font-size: 20px;
  }

  .header_title {
    text-align: center;
    line-height: 1.16;
    font-size: 80px;
  }

  .project_list {
    grid-template-columns: 1fr;
  }

  .about_inner {
    max-width: 650px;
  }

  .about_text {
    font-size: 15px;
  }

  .skills {
    padding-top: 5px;
    padding-bottom: 15px;
    margin-top: 15px;
  }

  .skills_inner {
    box-shadow: none;
    overflow: inherit;
    max-width: max-content;
  }

  .skills_img {
    width: 55px;
    height: 55px;
  }
  .project_skillsbox-item img {
    width: 80px;
  }
}

@media (max-width: 880px) {
  .section_title {
    font-size: 25px;
  }

  .section_text {
    font-size: 14px;
  }

  .header_bottom {
    padding-top: 60px;
    height: 60vh;
  }

  .nav_btn {
    display: flex;
  }

  .nav_btn::after {
    transition: all 0.3s ease;
  }

  .nav_btn::before {
    transition: all 0.3s ease;
  }

  .nav_btn span {
    transition: opacity 0.3s ease;
  }

  .nav_btn.active span {
    opacity: 0;
  }

  .nav_btn.active::before {
    top: 50%;
    transform: rotate(45deg);
  }

  .nav_btn.active::after {
    bottom: 50%;
    transform: rotate(-45deg);
  }

  .nav_list {
    position: absolute;
    justify-items: end;
    align-items: end;
    flex-direction: column;
    top: 100%;
    right: 0;
    gap: 25px;
    font-size: 18px;
    padding: 30px 35px 35px 50px;
    transition: transform 0.5s ease;
    border-bottom-left-radius: 20px;
    background-color: var(--bg-nav);
    /* backdrop-filter: grayscale(30%); */
    transform: translateX(100%);
  }

  .nav_list.active {
    transform: translateX(0);
  }

  .project_item-title {
    font-size: 25px;
  }
  .project_item-text {
    font-size: 16px;
  }

  .project_skillsbox-item img {
    width: 60px;
  }

  .about_inner {
    max-width: 500px;
  }

  .about_title {
    font-size: 25px;
  }

  .about_text {
    font-size: 13px;
  }

  .skills_title {
    font-size: 25px;
  }

  .skills_img {
    width: 45px;
  }

  .skills_textbox-title {
    font-size: 14px;
  }

  .skills_textbox-text {
    font-size: 13px;
  }

  .skills_imgbox {
    gap: 15px;
  }
}

@media (max-width: 700px) {
  /* .header_bottom {
    padding-top: 60px;
    height: 65vh;
  } */

  .header_title {
    line-height: 1.3;
    text-align: center;
    font-size: 45px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav_list {
    font-size: 17px;
    padding: 30px 35px 35px 45px;
  }

  .nav_btn {
    width: 35px;
    height: 20px;
  }

  .project_list {
    gap: 15px;
  }

  .project_skillsbox-item img {
    width: 50px;
  }

  .project_skillsbox-btn {
    padding: 8px 13px;
    font-size: 13px;
  }

  .about_inner {
    max-width: 480px;
  }

  .skills_textbox-title {
    font-size: 13px;
  }

  .skills_textbox-text {
    font-size: 12px;
  }

  .contact_title {
    margin-bottom: 10px;
  }

  .contact_link {
    font-size: 17px;
    padding: 12px 17px;
  }

  .contact_img {
    padding-top: 5px;
  }

  .contact_img img {
    padding: 10px;
    width: 55px;
    border-radius: 10px;
  }

  .skills_imgbox {
    gap: 15px;
    padding: 20px;
  }
}

@media (max-width: 570px) {
  .header_bottom {
    padding-top: 60px;
    height: 60vh;
  }

  .header_title {
    line-height: 1.3;
    text-align: center;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav_list {
    font-size: 15px;
    padding: 25px 30px 30px 40px;
  }

  .nav_btn {
    width: 30px;
    height: 20px;
  }

  .project_list {
    gap: 20px;
  }

  .project_item {
    min-height: 250px;
    padding: 15px;
  }

  .project_item-skillsbox {
    gap: 15px;
  }

  .project_skillsbox-list {
    gap: 10px;
  }

  .project_skillsbox-item {
    padding: 13px;
  }

  .project_skillsbox-item img {
    width: 35px;
  }

  .project_skillsbox-btn {
    padding: 5px 10px;
    font-size: 10px;
  }

  .about_inner {
    max-width: 350px;
  }

  .about_text {
    font-size: 11px;
  }

  .skills_title {
    margin-bottom: 10px;
  }

  .skills_imgbox {
    gap: 10px;
    padding: 15px;
  }

  .skills_img {
    width: 40px;
  }

  .skills_textbox-title {
    font-size: 12px;
  }

  .skills_textbox-text {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
}
