/* Common classes & Utilities */
:root {
  --primary-color: #1b3f6e;
  --white-color: #fff;
  --black-color: #000;
  --grey-color: #333;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  background-color: #fff;
  color: #000;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  font-weight: 500;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: 114rem;
  margin: 0 auto;
}

.title {
  margin: 4rem 0 7rem 0;
  text-align: center;
}

.title h1 {
  font-size: 3rem;
  display: inline-block;
  position: relative;
  z-index: 0;
}

.title h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
  width: 50%;
  height: 0.4rem;
  z-index: 1;
}

a.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 0.5rem;
  border: 2px solid var(--primary-color);
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  transition: all 300ms ease-out;
}

a.btn:hover {
  transform: translateY(-3px);
}

a.btn:active {
  transform: translateY(0);
}

/* Header */
.header {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #000;
  z-index: 1;
}

.header img {
  position: absolute;
  right: 10%;
  bottom: 0;
  width: 75rem;
  z-index: -1;
}

/* Navigation */
.nav {
  color: #fff;
  padding: 1.6rem 0;
}

.nav.fix-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.nav-top {
  display: none;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  font-size: 2.5rem;
  color: #fff;
}

.logo h1 span {
  font-weight: bold;
  color: var(--primary-color);
}

.nav-list {
  display: flex;
  align-items: center;
}

.nav-item:not(:last-child) {
  margin-right: 0.5rem;
}

.nav-link:link,
.nav-link:visited {
  color: #fff;
  padding: 0.8rem 1rem;
  transition: all 300ms ease-in-out;
}

.nav-link:hover {
  border-radius: 0.3rem;
  background-color: var(--primary-color);
}

.hamburger {
  display: none;
}

/* Hero */
.hero {
  position: absolute;
  top: 50%;
  transform: translate(75%, -50%);
  color: #fff;
}

.hero h3 {
  font-weight: 400;
}

.hero h1 {
  font-size: 4.5rem;
}

.hero h4 {
  font-size: 2rem;
}

.hero h4 span {
  color: var(--primary-color);
  text-decoration: underline;
}

.hero a:link,
.hero a:visited {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
  margin-top: 2rem;
}

.hero a:hover {
  background-color: transparent;
}

/* Icons */
.icons {
  position: absolute;
  bottom: 5%;
  left: 20%;
}

.icons a:not(:last-child) {
  margin-right: 1rem;
}

.icons a {
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: all 400ms ease-in-out;
}

.icons a:hover {
  color: var(--primary-color);
}
/* End of Header */

/* Main */
.section {
  padding: 5rem 0 7rem 0;
  overflow-x: hidden;
}

/* About */
.about {
  margin-top: 5rem;
}

.about-center {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem 5rem;
}

.about-center .left img {
  height: 40rem;
  max-width: 35rem;
  object-fit: cover;
}

.about-center .right h1 {
  margin-bottom: 2rem;
}

.about-center .right p {
  line-height: 2;
  margin-bottom: 2rem;
  color: #333;
}

.about-center .right h1 span {
  color: var(--primary-color);
}

/* Services */
.theme {
  background-color: #000;
}

.theme .title {
  color: #fff;
}

.services-center {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.service {
  color: #fff;
  background-color: #111;
  padding: 2rem;
  text-align: center;
  border-radius: 1rem;
  transition: all 300ms ease-in-out;
}

.service span {
  color: var(--primary-color);
  font-size: 4rem;
  transition: all 300ms ease-in-out;
}

.service h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.service a {
  font-size: 1.4rem;
  color: #f1f1f1;
  display: flex;
  justify-content: center;
  line-height: 2.5;
}

.service a:hover {
  transform: scale(1.2);
  color: #999;
}

.service:hover {
  background-color: var(--primary-color);
}

.service:hover span {
  color: #fff;
}

/* Skills */
.skills-box:not(:last-child) {
  margin-bottom: 2rem;
}

.skills-box h4 {
  font-size: 1.8rem;
  color: #888;
  font-weight: 500;
}

.skills-box .skills-ilt {
  width: 100%;
  position: relative;
  height: 0.4rem;
  background-color: #ccc;
  border-radius: 0.5rem;
}

.skills-box .skills-bar {
  background-color: var(--primary-color);
  height: 0.4rem;
}

.skills-box .html {
  width: 80%;
}

.skills-box .css {
  width: 80%;
}

.skills-box .javascript {
  width: 70%;
}

.skills-box .jquery {
  width: 60%;
}

.skills-box .bootstrap {
  width: 55%;
}

.skills-box span {
  position: absolute;
  bottom: 10%;
  right: 0;
  font-size: 1.4rem;
}

.skills-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
}

.skills-center .right h3 {
  margin-bottom: 1rem;
}

.skills-center .right p {
  margin-bottom: 2rem;
}

/* Mentors */
.mentor {
  color: #fff;
  background-color: #111;
  padding: 3rem;
  text-align: center;
  border-radius: 1rem;
  border-bottom: 4px solid transparent;
  transition: all 300ms ease-in-out;
  height: 35rem;
}

.mentor .img-cover {
  overflow: hidden;
  border-radius: 100%;
  border: 4px solid var(--primary-color);
  height: 13rem;
  width: 13rem;
  margin: 0 auto;
  transition: all 300ms ease-in-out;
}

.mentor .img-cover img {
  height: 100%;
  object-fit: cover;
}

.mentor h3 {
  font-size: 1.6rem;
  margin: 1rem 0;
}

.mentor p {
  font-size: 1.5rem;
  color: #ccc;
  width: 80%;
  margin: 0 auto 1rem auto;
}

.mentor:hover {
  border-bottom: 4px solid #fff;
  background-color: var(--primary-color);
}

.mentor:hover .img-cover {
  border-color: #fff;
}

/* Contact */
.contact-center {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-center .left h2 {
  font-size: 2rem;
}

.contact-center .left p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-center .left div {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-center .left div .content {
  text-align: left;
}

.contact-center .left .icon {
  margin-right: 2rem;
  font-size: 2.3rem;
  color: var(--primary-color);
}

.form h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.form input,
.form textarea {
  font-family: "Poppins", sans-serif;
  font-size: 1.6rem;
  padding: 1rem 0;
  text-indent: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
  outline: none;
}

.form textarea {
  max-width: 55.5rem;
  height: 16rem;
}

.form input[type="submit"] {
  background-color: var(--primary-color);
  color: #fff;
  cursor: pointer;
}
/* End of Main */

/* Footer */
footer {
  background-color: #000;
  padding: 3rem 1rem;
  text-align: center;
}

footer p {
  color: #fff;
}

footer p span {
  color: var(--primary-color);
}

/* MEDIA QUERIES */
@media (max-width: 1500px) {
  .header img {
    right: 0;
    width: 75rem;
  }

  .hero {
    transform: translate(55%, -50%);
  }

  .icons {
    left: 17%;
  }
}

@media (max-width: 1350px) {
  .header img {
    right: 0;
    bottom: 0;
    width: 70rem;
  }

  .hero {
    transform: translate(40%, -50%);
  }

  .icons {
    left: 14%;
  }
}

@media (max-width: 1200px) {
  .container {
    padding: 0 3rem;
  }

  .hero {
    transform: translate(30%, -50%);
  }

  .icons {
    left: 12%;
  }
}

@media (max-width: 1150px) {
  .header img {
    width: 65rem;
  }

  .hero h1 {
    font-size: 4rem;
  }
}

@media (max-width: 996px) {
  .header {
    min-height: 60vh;
  }

  .header img {
    width: 56rem;
    bottom: 20%;
  }

  .hero {
    top: 40%;
    transform: translate(10%, -50%);
  }

  .icons {
    left: 4%;
  }

  .right h1 {
    font-size: 2rem;
  }

  .right p {
    font-size: 1.5rem;
  }

  a.btn {
    padding: 0.7rem 1.8rem;
  }

  .left img {
    height: 40rem;
    max-width: 25rem;
  }
}

@media (max-width: 850px) {
  .logo h1 {
    font-size: 2.1rem;
  }

  .header img {
    width: 53rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .header img {
    width: 45rem;
    bottom: 10%;
    right: 20%;
  }

  .menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    max-width: 40rem;
    background-color: #fff;
    transition: all 500ms ease-in-out;
    z-index: 100;
  }

  .menu.show {
    left: 0;
  }

  .nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    padding: 1rem 1.6rem;
  }

  .nav-top .logo span {
    color: #fff;
  }

  .nav-top .close {
    color: #fff;
    font-size: 2.3rem;
    padding: 1rem;
    cursor: pointer;
  }

  .hamburger {
    display: block;
    color: #fff;
    font-size: 2.4rem;
    padding: 0.5rem;
    cursor: pointer;
  }

  .nav-link:link,
  .nav-link:visited {
    display: block;
    font-size: 1.7rem;
    color: #222;
    padding: 1rem 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.6rem;
  }

  body.show::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1;
  }

  .nav.show {
    background-color: rgba(0, 0, 0, 0.8);
  }

  .hero {
    top: 30%;
    transform: translate(50%, -50%);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .icons {
    left: 40%;
  }

  .about-center {
    grid-template-columns: 1fr;
    gap: 3rem 0;
  }

  .left {
    text-align: center;
  }

  .left img {
    height: 40rem;
    max-width: 90%;
  }

  .skills-center {
    grid-template-columns: 1fr;
  }

  .contact-center {
    grid-template-columns: 1fr;
  }

  .contact-center .left {
    text-align: left;
  }

  .left div .content h3 {
    font-size: 1.6rem;
  }

  .left div .content span {
    font-size: 1.5rem;
  }
}

@media (max-width: 567px) {
  .header {
    min-height: 100vh;
  }

  .header img {
    right: 7%;
  }

  .hero {
    top: 28%;
  }

  .hero h3 {
    font-size: 1.6rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero h4 {
    font-size: 1.6rem;
  }

  .icons {
    left: 35%;
  }

  footer p {
    width: 250px;
    margin: auto;
  }
}

@media (max-width: 430px) {
  .header img {
    width: 30rem;
    right: 10%;
  }

  .hero {
    transform: translate(20%, -50%);
  }

  .icons {
    left: 32%;
  }
}
