@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --whit: #fff;
  --main-color-text: #3a6cf4;
}
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.2s linear;
  scroll-behavior: smooth;
  text-decoration: none;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #fff;
}
::-webkit-scrollbar-thumb {
  background-color: var(--main-color-text);
  border-radius: 0 5px 5px 0;
}
section {
  padding: 2rem 8%;
}
.heading {
  text-align: center;
  color: var(--main-color-text);
  font-size: 2rem;
  font-weight: 800;
  padding: 2rem 0 2rem;
}
/* header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--whit);
  padding: 0.5rem 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}
header .logo {
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--main-color-text);
  font-weight: 600;
}
header .navigation a {
  color: var(--main-color-text);
  font-size: 1.25rem;
  margin-right: 3rem;
  font-weight: 600;
  opacity: 0.8;
}
header input[type="checkbox"] {
  display: none;
}
header .fa-bars {
  color: black;
  font-size: 1.5rem;
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  border: 0.1rem solid rgba(0, 0, 0, 0.1);
  display: none;
}
header .navigation a:hover,
header .logo:hover {
  opacity: 1;
}
/* main */
.main {
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-image: url(./images/home2.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: left;
}
.main h2 {
  color: #ffffffcf;
  /* font-size: 2rem; */
  line-height: 1.6;
}
.main h2 span {
  color: #0045ff;
  font-size: 2.5rem;
}
.main h3 {
  color: #ffffffcf;
  font-size: 1.5rem;
  letter-spacing: 0.1rem;
}
.main-btn {
  display: block;
  padding: 1rem 2rem;
  color: var(--whit);
  background: #0136c6;
  margin: 1rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  border-radius: 1rem;
  width: fit-content;
  text-align: center;
}
.main-btn:hover {
  transform: scale(1.1);
  background: #0031b4;
}
.social-icons a {
  color: var(--whit);
  margin-right: 2rem;
  margin-left: 0.3rem;
  font-size: 1.5rem;
}
.social-icons a:hover,
.projects .card .info i:hover {
  color: #0136c6;
}
/* about */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8rem;
}
@media (max-width: 768px) {
  .about .img {
    display: none;
  }
}
/* Skills */
.skills {
  background: black;
  padding: 50px 20px;
  text-align: center;
  color: white;
}
.toggle-buttons {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}
.toggle-buttons input[type="checkbox"] {
  display: none;
}
.toggle-buttons label {
  display: inline-block;
  background: #1e202c;
  border-radius: 30px;
  padding: 5px;
  width: 160px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-buttons .skills-label,
.toggle-buttons .tools-label {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 30px;
  transition: background 0.3s;
  font-weight: bold;
  font-size: 14px;
}
input[type="checkbox"]:checked + label .tools-label {
  background: #ffffff22;
}
input[type="checkbox"]:not(:checked) + label .skills-label {
  background: #ffffff22;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  max-width: 600px;
  margin: auto;
}
.icon {
  background: #1e202c;
  padding: 15px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.icon:hover {
  transform: translateY(-5px);
}
.icon img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}
.icon p {
  font-size: 14px;
  margin: 0;
  color: #ddd;
}
.hidden {
  display: none;
}
/* services */
.content {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
}
.cards .card {
  flex: 0 1 20rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  border: 1rem solid #fff;
  text-align: center;
  border-radius: 0.5rem;
  position: relative;
  padding: 2rem;
  line-height: 2;
}
.cards .card:hover {
  transform: scale(1.1);
}
.cards .card i {
  font-size: 5rem;
  color: var(--main-color-text);
  margin-bottom: 3rem;
}
.cards .card h3 {
  font-size: 1.25rem;
  padding-bottom: 1rem;
  color: #0045ffb8;
}
.cards .card p {
  color: #666;
  font-size: 0.85rem;
}
/* projects */
.projects {
  background: black;
  position: relative;
  margin-top: 6rem;
  padding-bottom: 5rem;
}
.projects .filter-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  border-radius: 5px;
  padding: auto;
}
.projects .filter-buttons button {
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-weight: bold;
  background-color: transparent;
  font-size: 16px;
    transition: all 0.3s ease;
}
.projects .filter-buttons button:hover {
  background-color: #ffffff22;
  color: #fff;
  border-radius: 30px;
}
.projects .card {
  position: relative;
  flex: 0 1 20rem;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}
.projects .card:hover {
  transform: scale(1.1);
}
.projects .card .img-project {
  width: 336px;
  height: 252px;
}
.projects .card .img-project img {
  height: 100%;
}
.projects .card .info {
  background-color: #3a6cf4;
  position: absolute;
  top: 0;
  bottom: -3px;
  right: 0;
  left: 0;
  transform: translateY(100%);
  transition: transform 0.5s;
  text-align: center;
  padding: 90px 1rem;
  text-transform: uppercase;
}
.projects .card .info .text {
  margin-bottom: 15px;
}
.projects .card .info i {
  font-size: 20px;
  margin-left: 10px;
  color: #666;
}
.projects .card:hover .info {
  transform: translateY(0%);
}
/* contact */
.contact .card {
  flex: 0 1 20rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
  border: 1rem solid #fff;
  text-align: center;
  border-radius: 0.5rem;
  position: relative;
  padding: 2rem;
}
.contact .card:hover {
  transform: scale(1.1);
}
.contact .card i {
  font-size: 5rem;
  margin-bottom: 3rem;
  color: var(--main-color-text);
}
.contact .card h3 {
  font-size: 1.5rem;
  padding-bottom: 1.5rem;
  color: #0045ffb8;
}
.contact .card p,
.contact .card a {
  color: #666;
}
/* footer */
footer {
  background: black;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  color: var(--whit);
  text-transform: capitalize;
  letter-spacing: 0.001rem;
  align-items: center;
}
footer a {
  color: var(--main-color-text);
  opacity: 0.8;
}
footer a:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  html {
    font-size: 80%;
  }

  header .fa-bars {
    display: block;
  }

  header .navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }

  header #toggler:checked ~ .navigation {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    background-color: #ffffff;
    padding: 1rem;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
  }

  header .navigation a {
    margin: 0;
    padding: 1.25rem 2.5rem;
    display: block;
  }
}
