@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");

:root {
  --primary-color: #17a2b8;
  --primary-color-dark: #0e6b7f;
  --secondary-color: #4ebac4;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --extra-light: #faf5ff;
  --max-width: 1200px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

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

a {
  text-decoration: none;
}

body {
  font-family: "Poppins", sans-serif;
}

nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #ffffff;
  z-index: 99;
}

.nav__content {
  max-width: var(--max-width);
  margin: auto;
  padding: 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: 0.3s;
}
nav .logo a:hover {
  color: var(--primary-color-dark);
}

nav .checkbox {
  display: none;
}

nav input {
  display: none;
}
nav .checkbox i {
  font-size: 2rem;
  color: var(--primary-color);
  cursor: pointer;
}

ul {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  transition: left 0.3s;
}

ul li a {
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  color: var(--text-dark);
  transition: 0.3s;
}

ul li a:hover {
  border-bottom-color: var(--secondary-color);
  color: var(--secondary-color);
}

.section {
  background-color: var(--extra-light);
}

.section__container {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.subtitle {
  letter-spacing: 2px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.title span {
  font-weight: 600;
  animation: typing 3s steps(12, end) forwards;
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.description {
  line-height: 1.5rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.action__btns {
  display: flex;
  gap: 1rem;
}

.action__btns button {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 1rem 2rem;
  outline: none;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.hire__me {
  background-color: var(--primary-color);
  color: #ffffff;
}

.hire__me:hover {
  background-color: var(--primary-color-dark);
}

.download__cv {
  color: var(--primary-color);
}

.download__cv:hover {
  background-color: var(--primary-color-dark);
  color: #ffffff;
}

.image {
  display: grid;
  place-items: center;
}

.image img {
  width: min(25rem, 90%);
  border-radius: 100%;
}

@media (width < 750px) {
  nav .checkbox {
    display: block;
  }

  .nav__content ul {
    position: absolute;
    width: 100%;
    height: calc(100vh - 85px);
    left: -100%;
    top: 85px;
    background-color: var(--extra-light);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
  }

  nav #check:checked ~ ul {
    left: 0;
  }

  ul li a {
    font-size: 1.25rem;
  }

  .section__container {
    padding: 10rem 1rem 5rem 1rem;
    text-align: center;
    grid-template-columns: repeat(1, 1fr);
  }

  .image {
    grid-area: 1/1/2/2;
  }

  .action__btns {
    margin: auto;
  }
}

/* back to top */
#backToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none; /* Hide by default */
  z-index: 99;
}

#backToTopBtn a {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 24px;
  color: #fff;
  background-color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
}

#backToTopBtn a:hover {
  background-color: var(--primary-color-dark);
}

/* back to top end */

/* Basic styling for the section */
.section3 {
  padding: 40px;
  background-color: var(--extra-light);
}

/* Container styling */
.section3__container {
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

/* Project list styling */
.projects__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Project card styling */
.project__card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: calc(33.333% - 20px);
  max-width: 350px;
  transition: transform 0.3s;
}

.project__card:hover {
  transform: scale(1.05);
}

/* Project card content styling */
.project__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project__card h3 {
  margin: 10px;
}

.project__card p {
  margin: 0 10px 10px;
  color: #555;
}

@media (max-width: 768px) {
  .project__card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .project__card {
    width: 100%;
  }
}
.project__buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.project__buttons button {
  padding: 5px 10px;
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.project__buttons button:hover {
  background-color: var(--primary-color-dark);
}

.project__live-button {
  margin: 10px;
}

.project__live-button button {
  padding: 8px 16px;
  border: none;
  background-color: #28a745;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.project__live-button button:hover {
  background-color: #218838;
}

@media (max-width: 768px) {
  .project__card {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .project__card {
    width: 100%;
  }
}
.footer {
  padding: 20px;
  background-color: #333;
  color: #fff;
  text-align: center;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}
/* contact section */

.section4 {
  background-color: var(--extra-light);
  padding: 50px 20px;
  text-align: center;
}

.section4__container {
  max-width: 800px;
  margin: 0 auto;
}

.section4 h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

/* Contact form styles */
#contact-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

#contact-form .form-group {
  margin-bottom: 20px;
}

#contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

#contact-form textarea {
  resize: vertical;
}

#contact-form button[type="submit"] {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

#contact-form button[type="submit"]:hover {
  background-color: var(--primary-color-dark);
}

/* Social media links */
.social-media {
  margin-top: 40px;
}

.social-media a {
  display: inline-block;
  margin: 0 10px;
  color: #333;
  font-size: 1.5rem;
  text-decoration: none;
}

.social-media a:hover {
  color: var(--primary-color);
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    width: 90%;
  }

  .section4 h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .section4 h2 {
    font-size: 1.5rem;
  }

  #contact-form {
    padding: 15px;
  }

  #contact-form button[type="submit"] {
    padding: 8px 16px;
  }

  .social-media a {
    font-size: 1.2rem;
  }
}

.ri-linkedin-box-fill,
.ri-facebook-circle-fill {
  color: #0077b5;
  font-size: 3rem;
}
.ri-github-fill {
  color: #333;
  font-size: 3rem;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
}

.tools-category {
  margin-bottom: 30px;
}

h3 {
  margin-bottom: 15px;
}

li {
  position: relative;
  font-size: 20px;
}

li i {
  transition: color 0.3s ease;
}

/* Frontend Icons */
.card:nth-of-type(1) li:nth-of-type(1) i {
  color: #e34f26;
} /* HTML */
.card:nth-of-type(1) li:nth-of-type(2) i {
  color: #1572b6;
} /* CSS */
.card:nth-of-type(1) li:nth-of-type(3) i {
  color: #f7df1e;
} /* JavaScript */
.card:nth-of-type(1) li:nth-of-type(4) i {
  color: #61dafb;
} /* React */
.card:nth-of-type(1) li:nth-of-type(5) i {
  color: #7952b3;
} /* Bootstrap */

/* Backend Icons */
.card:nth-of-type(2) li:nth-of-type(1) i {
  color: #4db33d;
} /* MongoDB */
.card:nth-of-type(2) li:nth-of-type(2) i {
  color: #339933;
} /* Node.js */
.card:nth-of-type(2) li:nth-of-type(3) i {
  color: #339933;
} /* Express.js */

/* Other Icons */
.card:nth-of-type(3) li:nth-of-type(1) i {
  color: #f24e1e;
} /* Figma */
.card:nth-of-type(3) li:nth-of-type(2) i {
  color: #ff9800;
} /* Sublime */
.card:nth-of-type(3) li:nth-of-type(3) i {
  color: #ff6c37;
} /* Postman */
.card:nth-of-type(3) li:nth-of-type(4) i {
  color: #0079bf;
} /* Trello */
.card:nth-of-type(3) li:nth-of-type(5) i {
  color: #f05032;
} /* Git */

.tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

li:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

li:hover i {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  ul {
    justify-content: center;
  }

  li {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  li {
    font-size: 18px;
  }

  .tooltip {
    font-size: 14px;
  }
}
.section2 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background-color: var(--extra-light);
}

.section2__container {
  text-align: center;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

.cards-container {
  display: flex;
  flex-direction: column; /* Stacks cards vertically */
  align-items: center;
  gap: 20px;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 1050px;
  padding: 20px;
  box-sizing: border-box;
}

.skills-category {
  text-align: center;
}

.skills-category h3 {
  margin-bottom: 20px;
}

.skills-category ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.skills-category li {
  margin: 10px;
  position: relative;
}

.skills-category i {
  font-size: 3rem;
  color: #333;
}

.skills-category li:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Responsive styles */
@media (max-width: 750px) {
  .skills-category ul {
    justify-content: center;
  }

  .skills-category i {
    font-size: 34px;
  }
}
