@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");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #e5e5e5;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.flex {
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/*----- NAVBAR-----*/
.navbar {
  justify-content: space-between;
}

.nav-links {
  gap: 20px;
  list-style: none;
}

.navbar a {
  padding: 20px 0;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s;
}

.navbar a:hover {
  color: #ddd;
}

/*----- HOME -----*/
.homepage {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url("images/coding.png");
  background-position: center;
  background-size: cover;
}

.homepage::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.1);
}

.homepage .content {
  position: relative;
  height: 85%;
  flex-direction: column;
  justify-content: center;
}

.homepage .text {
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
}

.homepage .text h1 {
  font-size: 60px;
  font-weight: 700px;
  margin-bottom: 10px;
}

.homepage a {
  color: #333;
  text-decoration: none;
  background: #fff;
  padding: 10px 30px;
  border-radius: 5px;
  border: 2px solid #fff;
  box-shadow: rgba(0, 0, 0, 0.3);
  font-size: 18px;
  transition: 0.3s;
}

.homepage a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.3);
}

/*----- SERVICES -----*/
section {
  padding-top: 80px;
}

.section-title {
  text-align: center;
}

section h2 {
  font-size: 2rem;
}

section .cards {
  margin-top: 50px;
  flex-wrap: wrap;
  justify-content: space-between;
}

section .card {
  width: calc(100% / 3 - 30px);
  text-align: center;
  list-style: none;
  background-color: #fff;
  padding: 40px 15px;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

section .card img {
  height: 64px;
  width: 64px;
  margin-bottom: 20px;
}

section .card p {
  margin-top: 5px;
}

/*----- PORTFOLIO -----*/
.portfolio .card {
  padding: 0 0 20px;
}

.portfolio .card img {
  height: 240px;
  width: 100%;
  border-radius: 8px 8px 0 0;
}

/*----- ABOUT -----*/
.about .company-info {
  margin-top: 30px;
}

.about .row {
  padding: 0 10px;
}

.about h3 {
  margin: 30px 0 10px;
}

.about ul {
  padding-left: 20px;
}

/*----- CONTACT -----*/
.contact-details {
  margin-left: 20px;
}

.contact .row {
  justify-content: space-between;
  margin: 60px 0 90px;
}

.contact .row .col {
  padding: 0 10px;
  width: calc(100% / 2 - 50px);
}

.contact .row .col p {
  color: #7a7a7a;
  margin-bottom: 10px;
}

.contact .row .col p i {
  margin-right: 10px;
  font-size: 16px;
}

.contact form input {
  width: 100%;
  height: 45px;
  margin-bottom: 20px;
  padding: 0 15px;
  border: 1px solid #bfbfbf;
  outline: none;
}

.contact form textarea {
  padding: 15px;
  width: 100%;
  height: 150px;
  border: 1px solid #bfbfbf;
  outline: none;
  resize: none;
}

.contact form button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 17px;
  color: #fff;
  margin-top: 10px;
  border: none;
  background: #333;
  cursor: pointer;
  transition: 0.2s;
}

.contact form button:hover {
  background: #525252;
}

/*----- FOOTER -----*/
.footer {
  background: #333;
  padding: 20px 0;
}

.footer span {
  color: #fff;
}

#menu-toggler,
#hamburger-btn {
  display: none;
}

/*----- RESPONSIVENESS -----*/
@media (width < 860px) {
  .navbar .nav-links {
    position: fixed;
    left: 0;
    top: 77px;
    height: 100%;
    display: block;
    background-color: rgba(0, 0, 0, 0.85);
    width: 300px;
    padding-left: 20px;
    padding-top: 30px;
    left: -100%;
    transition: all 0.4s ease;
  }

  #menu-toggler:checked ~ .nav-links {
    left: 0;
  }

  .nav-links li {
    font-size: 18px;
  }

  #hamburger-btn {
    display: block;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
  }

  section .cards .card {
    width: calc(100% / 2 - 15px);
  }

  .contact .row {
    flex-direction: column;
  }

  .contact .row .col {
    width: 100%;
  }

  .contact .row .col:last-child {
    margin-top: 40px;
  }
}

@media (width < 560px) {
  section .cards .card {
    width: 100%;
  }

  .homepage .text h1 {
    font-size: 30px;
  }

  section h2 {
    font-size: 1.5rem;
  }
}
