@import url("https://fonts.googleapis.com/css2?family=DM+Sans");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
  font-family: "Inter", sans-serif;
}

:root {
  --main_color: #c9f31d;
  --p_color: #8a8a8a;
  --bg_color: #f1f1f1;
  --white_color: #fff;
  --black_color: #070707;
  --border-color: rgba(255, 255, 255, 0.1);
}

body {
  background: #131313;
}

.container {
  width: 80%;
  margin: auto;
  max-width: 1500px;
}

/* Background Lines */
.bg-lines span {
  position: fixed;
  top: 0;
  z-index: -1;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  width: 1px;
  animation: left_Right 18s infinite;
}

.bg-lines span:nth-child(1) { left: 10%; }
.bg-lines span:nth-child(2) { left: 20%; }
.bg-lines span:nth-child(3) { left: 30%; }
.bg-lines span:nth-child(4) { left: 40%; }
.bg-lines span:nth-child(5) { left: 50%; }
.bg-lines span:nth-child(6) { left: 60%; }
.bg-lines span:nth-child(7) { left: 70%; }
.bg-lines span:nth-child(8) { left: 80%; }
.bg-lines span:nth-child(9) { left: 90%; }

@keyframes left_Right {
  0% { transform: translateX(0); }
  50% { transform: translateX(-100px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--white_color);
  font-family: "DM Sans", sans-serif;
  padding-top: 10px;
}

span {
  color: var(--main_color);
}

p {
  color: var(--p_color);
  padding-top: 10px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  transition: 0.3s;
  z-index: 1000;
}

header.active {
  background-color: rgb(59, 57, 57);
  border-bottom: 1px solid #03030397;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

header nav .logo {
  max-height: 50px;
}

header nav .logo img {
  width: 200px;
}

header nav .links {
  display: flex;
  gap: 40px;
  left: -100%;
}

header nav .links a {
  color: var(--white_color);
  font-size: 18px;
  text-transform: capitalize;
  transition: 0.3s;
}

header nav .links a:hover {
  color: var(--main_color);
}

header nav .icons {
  display: flex;
  gap: 30px;
}

header nav .icons a {
  color: var(--main_color);
  font-size: 28px;
  transition: 0.3s;
}

header nav .icons a:hover {
  transform: scale(1.4);
}

/* About Section */
.about {
  padding-top: 120px;
}

.btns {
  display: flex;
  padding-top: 15px;
}

.btn {
  background: var(--main_color);
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--black_color);
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.1);
}

/* Skills Section */
#skills {
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
}

#skills h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  margin-top: 15px;
  text-align: left;
  padding-right: 50%;
}


.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.skills-container::-webkit-scrollbar {
  display: none;
}

.skill {
  color: #d3ff23;
  padding: 1rem;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  min-width: 120px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

.skill:hover {
  transform: scale(1.3);
}

/* Contact Section */
.contact {
  padding: 60px 20px;
  color: white;
  text-align: center;
}

.contact .top_section h2 {
  font-size: 2rem;
  margin-bottom: 60px;
}

.meeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.call {
  background: #111;
  padding: 30px;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.call .icon i {
  font-size: 30px;
  margin-bottom: 10px;
  color: var(--main_color);
}

.call h2 {
  font-size: 24px;
  color: white;
}

.call p {
  font-size: 16px;
  color: #aaa;
  margin-top: 8px;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background: #111;
  padding: 25px 20px;
  border: 1px solid #333;
  border-radius: 12px;
  width: 240px;
  text-align: center;
}

.card .icon i {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--main_color);
}

/* Projects Section */
.projects {
  padding: 60px 0;
}

.projects .project_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
}

.projects .project_box img {
  width: 45%;
  border: 2px solid #519651;
  border-radius: 8px;
}

.projects .project_box .text {
  margin-left: 100px;
  width: calc(50% - 100px);
}

.projects .project_box .text h4 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: normal;
}

.projects .project_box.project_box_2 {
  flex-direction: row-reverse;
  align-items: flex-start;
}

.projects .project_box.project_box_2 img {
  border: 2.5px solid #519651;
  border-radius: 8px;
}

.projects .project_box.project_box_2 .text {
  margin-right: 100px !important;
  margin-left: 0 !important;
  width: calc(50% - 100px) !important;
}

/* Mobile Menu */
.close_menu,
.icon_menu {
  display: none;
}

/* ------------------- MEDIA QUERIES ------------------- */
@media (max-width: 1250px) {
  .container {
    width: 90%;
  }
}

@media (max-width: 1000px) {
  header nav .links {
    position: fixed;
    top: 0;
    flex-direction: column;
    width: 400px;
    background: var(--black_color);
    left: -100%;
    padding: 50px 0;
    height: 100%;
    border-right: 1px solid var(--border-color);
    text-align: center;
    transition: 0.3s ease-in-out;
  }

  header nav .links.active {
    left: 0;
  }

  .close_menu,
  .icon_menu {
    display: block;
    font-size: 28px;
    cursor: pointer;
  }

  .icon_menu {
    margin-left: 10px;
  }

  .about .div_Text h4 { font-size: 25px; }
  .about .div_Text h1,
  .about .div_Text h2 { font-size: 55px; }
  .about .div_Text p { font-size: 16px; }
  .about .btn { font-size: 18px; padding: 16px 40px; }
  .about .container { flex-direction: column; }
  .about .div_Text { width: 100%; }

  .projects .project_box .text {
    width: calc(50% - 50px);
    margin-left: 50px;
  }

  #skills h2 {
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .projects .project_box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
  }

  .projects .project_box img {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    border-radius: 10px;
  }

  .projects .project_box .text {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 10px;
  }

  .projects .project_box .text h3 {
    font-size: 20px;
  }

  .projects .project_box .text h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .projects .project_box .text p {
    font-size: 14px;
    line-height: 1.5;
  }

  .about .div_Text h1 {
    font-size: 36px;
  }

  .about .div_Text h2 {
    font-size: 28px;
  }

  .about .div_Text p {
    font-size: 14px;
    line-height: 1.6;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .card {
    width: 100%;
  }

  .contact .top_section h2 {
    font-size: 1.5rem;
  }

  header nav .logo img {
    width: 150px;
  }
}

