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

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  color: var(--text-color);
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #fff;
  --main-color: #0ef;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

nav,
footer {
  padding: 20px 7% !important;
}

section {
  min-height: 100vh;
  padding: 20px 7%;
}

a {
  text-decoration: none !important;
}

.header {
  background: var(--bg-color);
  color: var(--text-color) !important;
}

.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 600;
  cursor: default;
}

.nav-item a {
  font-size: 1.7rem;
  color: var(--text-color);
  transition: 0.3s;
}

.navbar-toggler {
  border-color: white !important;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

.home {
  background-color: var(--bg-color);
}

.home .row {
  height: 100%;
}

.home-content {
  height: 70vh;
  display: flex;
  align-items: center;
}

.home-content-text h3 {
  font-size: 3.2rem;
  font-weight: 700;
}

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

.home-content-text h3:nth-of-type(2) {
  margin-bottom: 2rem;
}

.home-content-text h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content-text p {
  font-size: 1.6rem;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 3rem 0;
  transition: 0.5s ease;
}

.social-media a:hover {
  background-color: var(--main-color);
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.cv-btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  background-color: var(--bg-color);
  color: var(--main-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.5s ease;
  cursor: pointer;
}

.cv-btn:hover {
  box-shadow: none;
  background-color: var(--main-color);
  color: var(--bg-color);
}

.home-img {
  /* background-color: red; */
  height: 100%;
  position: relative;
  display: flex;
}

.home-img img {
  width: 65%;
  margin: auto;
  animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4rem);
  }
  100% {
    transform: translateY(0);
  }
}

/* Portfolio */
.portfolio {
  background: var(--second-bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio h2 {
  font-size: 4rem;
  font-weight: 700;
  width: fit-content;
  margin: 0 auto;
}

.portfolio-box {
  margin-top: 20px;
  position: relative;
  border-radius: 2rem;
  box-shadow: 0 0 1rem var(--bg-color);
  overflow: hidden;
  height: 200px;
  display: flex;
}

.portfolio-box img {
  width: 100%;
  transition: 0.5s ease;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}

.portfolio-layer h4 {
  font-size: 3rem;
}

.portfolio-layer p {
  font-size: 1.6rem;
  margin: 0.3rem 0 1rem;
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background-color: var(--text-color);
  border-radius: 50%;
}

.portfolio-layer a i {
  font-size: 2rem;
  color: var(--second-bg-color);
}

/* About Section */
.about {
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.heading {
  font-size: 4rem;
  font-weight: 700;
}

.about-img {
  height: 100%;
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 60%;
}

.about-right {
  position: relative;
}

.about-content {
  width: 90%;
  margin: auto;
}

.about-content p {
  font-size: 1.6rem;
}

/* Services section  */
.services {
  background-color: var(--second-bg-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services h2 {
  width: fit-content;
  margin: auto;
}

.services-box {
  margin-top: 20px;
  background: var(--bg-color);
  padding: 3rem 0 4rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  transition: 0.5s ease;
}

.services-box:hover {
  border-color: var(--main-color);
  transform: scale(1.02);
}

.services-box i {
  font-size: 7rem;
  color: var(--main-color);
}
.services-box h3 {
  font-size: 2.6rem;
}

.footer {
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
}

.footer-text p {
  font-size: 1.6rem;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.5s ease;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--second-bg-color);
}

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }
}

@media (max-width: 766px) {
  .about-content .heading {
    width: fit-content;
    margin: auto;
  }
}

@media (max-width: 750px) {
  .home {
    height: fit-content;
  }

  .home-content {
    height: fit-content;
  }

  .home-img {
    margin-top: 50px;
  }

  .home-img img {
    width: 50%;
  }
}
