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

:root:not(.light) {
  --bg-color1: #292929;
  --bg-color2: #1c1c1c;
  --color1: #fff;
  --color2: #888888;
}

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

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  outline: none;
}

li {
  list-style: none;
}

h1,
h2 {
  font-family: "Poppins", sans-serif;
  color: var(--color1);
  font-size: 4rem;
  font-weight: 700;
}

h3 {
  color: var(--color1);
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.portfolio-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.portfolio-row {
  display: flex;
  flex-wrap: wrap;
}

header {
  position: absolute;
  padding: 0 15px;
  left: 0;
  right: 0;
  z-index: 11;
  transition: 0.8s;
  background-color: var(--bg-color1);
}

header .portfolio-row.header-wrap {
  justify-content: space-between;
  align-items: center;
}

.brand-name a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color1);
  font-family: "Poppins", sans-serif;
}

.hamburger i {
  font-size: 20px;
  background-color: rgb(236, 241, 250);
  color: #01143e;
  display: none;
  height: 30px;
  width: 35px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #eee;
}

.portfolio-navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portfolio-navbar ul li {
  display: inline;
  margin-left: 35px;
}

.portfolio-navbar ul li a {
  font-size: 1rem;
  line-height: 72px;
  color: var(--color1);
  font-weight: 600;
  position: relative;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  transform: 0.8s;
}

.slider {
  position: relative;
  padding: 150px 0 50px 0;
  background-color: var(--bg-color1);
}

.slider-content {
  align-items: center !important;
  display: flex;
  flex-wrap: wrap;
}

.slider-general {
  flex: 0 0 auto;
  width: 60%;
}

.slider-general .welcome-msg {
  font-family: "Poppins", sans-serif;
  color: var(--color1);
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.welcome-text h1 {
  display: inline;
}

.slider-general p {
  line-height: 30px;
  padding-right: 26%;
  font-family: "Poppins", sans-serif;
  color: var(--color1);
}

.text-wrap {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  cursor: pointer;
}

.main-title {
  -webkit-text-stroke: 1px var(--color1);
  -webkit-text-fill-color: transparent;
}

.main-title,
.hover-title {
  transition: 0.5s cubic-bezier(0.51, 0.57, 0.17, 1);
}

.hover-title {
  color: var(--color1);
  position: absolute;
  transform: translate3d(0, 100%, 0);
}

.text-wrap:hover .main-title {
  transform: translate3d(0, -100%, 0);
  transition-delay: 0.1s;
}

.text-wrap:hover .hover-title {
  transform: translate3d(0, 0, 0);
}

.download-resume a {
  display: inline-block;
  margin-top: 15px;
  padding: 15px 30px;
  transition: ease all 0.35s;
  color: var(--color1);
  font-family: "Poppins", sans-serif;
  background-color: #ff5252;
  z-index: 1001;
  text-transform: uppercase;
  line-height: 30px;
}

.download-resume a::before {
  background-color: #44f;
}

.download-resume a::before {
  top: 0;
  width: 0;
  left: auto;
  right: 0;
  z-index: -1;
  bottom: 0;
  content: "";
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.download-resume a::before {
  left: 0;
  width: 100%;
  right: auto;
}

.welcome-image img {
  max-height: 300px;
  width: 100%;
  object-fit: cover;
  vertical-align: middle;
}

.slider-image .welcome-image {
  position: relative;
  z-index: 2;
  transition-duration: 0.4s;
}

.slider-image .welcome-image::before {
  content: " ";
  width: calc(50% + 10px);
  height: calc(50% + 10px);
  right: -10px;
  bottom: -10px;
  position: absolute;
  z-index: -1;
  transition: all 0.7s;
  background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);
}

.welcome-image:hover::before {
  width: 100%;
  height: 100%;
  opacity: 1;
}

.welcome-image:hover {
  transform: translateY(-10.5px);
}

#contact {
  background-color: var(--bg-color2);
  padding: 100px 0;
  text-align: center;
}

.contact-info {
  margin: 30px 0;
}

.contact-info span,
.contact-info a {
  color: var(--color2);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.contact-info h3 {
  color: var(--color2);
  transition: all 0.3s ease-out 0s;
  cursor: pointer;
}

.social-link li {
  display: inline-block;
  margin: 5px 10px;
}

.social-link li a {
  color: var(--color2);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease-out 0s;
}

.contact-info h3:hover,
.social-link li a:hover {
  color: var(--color1);
}

@media screen and (max-width: 700px) {
  h1,
  h2 {
    font-size: 3rem;
  }

  header {
    padding: 15px;
    position: fixed;
    background-color: rgb(236, 241, 250);
    border-bottom: solid 1px #eee;
  }

  .brand-name .logo {
    color: #01143e;
  }

  .hamburger i {
    display: inline-block;
  }

  .portfolio-navbar {
    position: absolute;
    background-color: rgb(236, 241, 250);
    width: 100%;
    left: 0px;
    top: 60px;
    padding: 15px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: none;
  }

  .portfolio-navbar.show {
    display: block;
  }

  .portfolio-navbar ul li {
    display: block;
    margin-left: 0;
    text-align: center;
  }

  .portfolio-navbar ul li a {
    line-height: 42px;
    color: #01143e;
  }

  .portfolio-navbar ul li a::before {
    bottom: -3px;
    background-color: #01143e;
  }

  .slider-content {
    margin: 0 -15px;
    padding: 0 30px;
  }

  .slider-image {
    width: 100%;
    order: 1;
  }

  .slider-general {
    margin-top: 3rem;
    width: 100%;
    order: 2;
  }
}
