:root {
  --customColor: #04f;
  --purple: #ce00ff;
  --orange: #ff4600;
  --blue: #04f;
  --cyan: #03ffc7;
  --white: #fff;
  --black: #222;
  --primaryColor: #fff;
  --secondaryColor: #212121;
}
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}
body {
  font-family: Lato, sans-serif;
  background-color: var(--primaryColor);
  color: var(--secondaryColor);
}
body.dark {
  --primaryColor: #000106;
  --secondaryColor: #fff;
}
h1 {
  font-size: 6rem;
  font-weight: 900;
}
h2 {
  font-size: 4.2rem;
  padding-bottom: 1rem;
}
h3 {
  font-size: 3rem;
  color: var(--customColor);
  font-weight: 900;
  margin-bottom: 2rem;
}
h4 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
}
p {
  font-size: 1.5rem;
}
a {
  text-decoration: none;
  color: inherit;
}
li {
  list-style: none;
}
img {
  vertical-align: middle;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem;
}
.d-flex {
  display: flex;
  align-items: center;
}
.section {
  overflow-x: hidden;
  padding-top: 8rem;
}
@media only screen and (max-width: 768px) {
  h1 {
    font-size: 4.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 2rem;
  }
  .section {
    padding-top: 5rem;
  }
}
/* Header */
.header {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Navigation */
.navigation {
  height: 6rem;
  line-height: 6rem;
}
.nav-center {
  justify-content: space-between;
}
.nav-center .logo span {
  color: var(--customColor);
}
.nav-center .nav-item:not(:last-child) {
  margin-right: 0.5rem;
}
.nav-center .nav-item:last-child {
  cursor: pointer;
}
.nav-center .nav-item:last-child i {
  font-size: 2rem;
  color: var(--black);
}
.nav-center .nav-link {
  font-size: 1.8rem;
  padding: 1rem;
  transition: all 300ms ease-in-out;
}
.nav-center .nav-link:hover {
  color: var(--customColor);
}
.nav-center .hamburger,
.nav-center .theme {
  display: none;
  font-size: 2.3rem;
  color: var(--secondaryColor);
  cursor: pointer;
}
@media only screen and (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 10%;
    left: -35rem;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--secondaryColor);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 20%);
    height: 100%;
    width: 0%;
    max-width: 35rem;
    z-index: 100;
    transition: all 300ms ease-in-out;
  }
  .nav-list.open {
    left: 0;
    width: 100%;
  }
  .nav-list .nav-item {
    margin: 0 0 1rem 0;
    width: 100%;
  }
  .nav-list .nav-item:last-child {
    display: none;
  }
  .nav-list .nav-item .nav-link {
    font-size: 2rem;
    color: var(--primaryColor);
  }
  .nav-center .hamburger,
  .nav-center .theme {
    display: block;
  }
}
/* Hero */
.hero {
  height: calc(100vh - 10rem);
  overflow: hidden;
}
.hero .left,
.hero .right {
  flex: 0 0 55%;
  max-width: 52%;
}
.hero .right .img-box {
  position: relative;
  max-width: 30rem;
  height: 30rem;
  display: block;
  margin: auto;
  background-color: var(--customColor);
  border-radius: 50%;
}
.hero .right .img-box img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0%;
  border-radius: 50%;
  width: 100%;
}
.hero .left {
  padding-left: 10rem;
}
.hero .left h1 {
  line-height: 1.3;
}
.hero .left h1 span {
  color: var(--customColor);
}
.offer {
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 3rem;
}
.wrapper .static-txt {
  color: var(--secondaryColor);
  font-size: 4rem;
  font-weight: 900;
}
.wrapper .dynamic-txts {
  margin-left: 1rem;
  height: 4rem;
  padding-bottom: 0.2rem;
  line-height: 5rem;
  overflow: hidden;
}
.dynamic-txts li {
  list-style: none;
  color: var(--customColor);
  font-size: 4rem;
  font-weight: 900;
  position: relative;
  top: -5px;
  animation: slide 12s steps(3) infinite;
}
@keyframes slide {
  100% {
    top: -15rem;
  }
}
.dynamic-txts li span {
  position: relative;
  margin: 5px 0;
  line-height: 5rem;
}
.dynamic-txts li span::after {
  content: "";
  position: absolute;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--primaryColor);
  border-left: 2px solid var(--customColor);
  animation: typing 4s steps(12) infinite;
}
@keyframes typing {
  40%,
  60% {
    left: calc(100% + 30px);
  }
  100% {
    left: 0;
  }
}
@media only screen and (max-width: 1200px) {
  .hero .left {
    padding-left: 10rem;
  }
}
@media only screen and (max-width: 996px) {
  .hero .right .img-box {
    max-width: 28rem;
    height: 28rem;
  }
  .hero .right .img-box img {
    width: 100%;
  }
  .hero .left {
    padding-left: 0;
  }
}
@media only screen and (max-width: 768px) {
  .hero .left h1 {
    line-height: 1;
  }
  .offer {
    align-items: center;
  }
  .hero {
    height: fit-content;
    padding-top: 11rem;
    flex-direction: column;
  }
  .hero .right {
    width: 100%;
    padding: 4rem;
  }
  .hero .left {
    padding-top: 6rem 0 7rem 0;
    text-align: center;
  }
}
@media only screen and (max-width: 567px) {
  .hero {
    height: calc(100vh - 8rem);
    overflow: hidden;
    padding-top: 4rem;
  }
  .offer {
    align-items: center;
    padding-bottom: 3rem;
  }
  .hero .right {
    flex: auto;
    max-width: 80%;
  }
  .hero .right .img-box {
    max-width: 21rem;
    height: 21rem;
  }
  .hero .right .img-box img {
    width: 100%;
  }
  .hero .left {
    padding-top: 8rem;
    flex: 1;
    max-width: 100%;
  }
  .hero .left h1 {
    line-height: 0.5;
  }
}
/* Color control */
.control {
  position: fixed;
  right: -4rem;
  top: 15%;
  transition: all 300ms ease-in-out;
  z-index: 1000;
}
.control.open {
  right: 0;
}
.control .widget {
  position: absolute;
  left: -3.4rem;
  border-radius: 1rem 0 0 1rem;
  padding: 0.5rem 0.7rem;
  margin-right: 0.1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 40%);
  cursor: pointer;
  background-color: #fff;
  text-align: center;
}
.control .widget i {
  font-size: 2rem;
  animation: spin 2s linear infinite;
  color: var(--black);
}
.control .colors {
  background-color: var(--white);
  padding: 1rem 0.8rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 20%);
}
.control .colors span {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.7rem;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 20%);
  cursor: pointer;
}
.control .colors span:not(:last-child) {
  margin-bottom: 0.7rem;
}
.control .colors span:first-child {
  background-color: var(--blue);
}
.control .colors span:nth-child(2) {
  background-color: var(--orange);
}
.control .colors span:nth-child(3) {
  background-color: var(--purple);
}
.control .colors span:nth-child(4) {
  background-color: var(--cyan);
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* About section */
.title {
  text-align: center;
  margin: 0 3rem;
}
.title h2 {
  display: inline-block;
  position: relative;
  margin-bottom: 3rem;
}
.title h2::after {
  content: "";
  background-color: var(--customColor);
  width: 80%;
  height: 5px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.about .right,
.about .left {
  flex: 0 0 44%;
}
.about .left div {
  position: relative;
  width: 20rem;
  height: 20rem;
  background-color: var(--customColor);
  border-radius: 50%;
  margin: auto;
}
.about .left div img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4%;
  border-radius: 50%;
  width: 100%;
}
.about .right h3 {
  margin-bottom: 1.5rem;
}
.about .right p {
  line-height: 1.5;
}
@media only screen and (max-width: 768px) {
  .about-center {
    flex-direction: column-reverse;
  }
  .about-center .left,
  .about-center .right {
    flex: 0;
  }
  .about-center .left div {
    margin: 2rem;
    width: 20rem;
    height: 20rem;
  }
  .about-center .left div img {
    max-width: 20rem;
  }
  .about-center .right {
    text-align: center;
    margin-bottom: 5rem;
  }
  .about-center .right h1 {
    font-size: 3rem;
  }
  .about-center .right p {
    width: 85%;
    margin: auto;
  }
}
/* Skills */
.skills .skills-center .right img {
  max-width: 40rem;
  width: 100%;
  margin-right: 3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 40%);
}
.skills .skills-center .left {
  flex: 0 0 50%;
  max-width: 50%;
  margin-left: 6%;
}
.skills .skills-center .left .skill-card {
  margin-bottom: 3rem;
}
.skills .skills-center .left .skill-card .cards {
  flex-wrap: wrap;
}
.skills .skills-center .left .skill-card .cards .card {
  border: 1px solid var(--secondaryColor);
  border-radius: 0.5rem;
  width: 12rem;
  height: 3.5rem;
  padding: 0 0.5rem;
  text-transform: uppercase;
  text-align: center;
  line-height: 3.5rem;
  margin-bottom: 1.3rem;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}
.skills .skills-center .left .skill-card .cards .card:not(:last-child) {
  margin-right: 0.8rem;
}
.skills .skills-center .left .skill-card .cards .card:hover {
  background-color: var(--customColor);
  color: var(--white);
}
@media only screen and (max-width: 768px) {
  .skills .skills-center {
    flex-direction: column;
  }
  .skills .skills-center .left {
    flex: 1;
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .skills .skills-center .right img {
    display: none;
  }
}
/* Timeline */
.timeline-center {
  width: 100%;
  display: flex;
  justify-content: center;
}
.timeline {
  margin: 0 auto;
  margin: 2rem;
  position: relative;
  max-width: 65%;
}
.timeline-event:before {
  background-color: var(--customColor);
  content: "";
  position: absolute;
  top: 20%;
  left: 3%;
  width: 3px;
  height: 70%;
}
.timeline-event {
  position: relative;
}
.timeline-event:hover .timeline-event-icon {
  rotate: (-45deg);
  background-color: var(--primaryColor);
}
.timeline-event:hover .timeline-event-thumbnail {
  box-shadow: (inset 40rem 0 0 0 black);
}
.timeline-event-copy {
  padding: 2rem;
  position: relative;
  top: -1.875rem;
  left: 4rem;
  width: 80%;
}
.timeline-event-copy strong {
  font-weight: 700;
}
.timeline-event-copy p:not(.timeline-event-thumbnail) {
  padding-bottom: 1.2rem;
}
.timeline-event-icon {
  background-color: var(--customColor);
  outline: 10px solid var(--secondaryColor);
  display: block;
  margin: 0.5rem 0.5rem 0.5rem -0.5rem;
  position: absolute;
  top: 0;
  left: 2rem;
  width: 1rem;
  height: 1rem;
}
.timeline-event-icon:hover {
  animation: spin 2s linear 2;
}
.timeline-event-thumbnail {
  color: var(--primaryColor);
  background-color: var(--customColor);
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.25rem 1rem 0.2rem 1rem;
}
@media only screen and (max-width: 768px) {
  .timeline {
    max-width: 85%;
  }
}
/* Portfolio */
.portfolio .title h2 {
  margin-bottom: 1rem;
}
.portfolio-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 4rem 5rem 0 5rem;
  overflow: hidden;
  transform: skew(5deg);
}
.portfolio-center .card {
  flex: 1;
  transition: all 1s ease-in-out;
  height: 35rem;
  position: relative;
}
.portfolio-center .card .card__head {
  color: white;
  background: var(--customColor);
  padding: 0.5rem;
  transform: rotate(-90deg);
  transform-origin: 0% 0%;
  transition: all 0.5s ease-in-out;
  min-width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 1rem;
  white-space: nowrap;
}
.portfolio-center .card:hover {
  flex-grow: 10;
}
.portfolio-center .card:hover img {
  filter: grayscale(0);
}
.portfolio-center .card:hover .card__head {
  text-align: center;
  top: calc(100% - 4rem);
  color: white;
  background: rgba(0, 0, 0, 50%);
  font-size: 2rem;
  transform: rotate(0deg) skew(-5deg);
}
.portfolio-center .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1s ease-in-out;
  filter: grayscale(100%);
}
.portfolio-center .card:not(:nth-child(5)) {
  margin-right: 1rem;
}
@media only screen and (max-width: 768px) {
  .portfolio-center {
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: rotate(0deg) skew(0deg);
    margin: 3rem;
  }
  .portfolio-center .card img {
    filter: none;
  }
  .portfolio-center .card {
    margin: 1rem;
  }
  .portfolio-center .card .card__head {
    transform: rotate(0);
  }
}
/* Contact */
.contact-center .left img {
  width: 100%;
  max-width: 35rem;
  display: block;
  margin: auto;
}
.contact ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.contact ul li {
  list-style: none;
  margin: 0 5px;
}
.contact ul li a i {
  font-size: 5rem;
  color: var(--secondaryColor);
  line-height: 8rem;
  transition: 0.5s;
  padding-right: 1.5rem;
}
.contact ul li a span {
  padding: 0;
  margin: 0;
  position: absolute;
  top: 30px;
  color: var(--secondaryColor);
  letter-spacing: 4px;
  transition: 0.5s;
}
.contact ul li a {
  text-decoration: none;
  display: block;
  width: fit-content;
  height: fit-content;
  margin: 5rem;
  background: var(--primaryColor);
  padding-left: 20px;
  transform: rotate(-30deg) skew(25deg) translate(0, 0);
  transition: 0.5s;
  box-shadow: -20px 20px 10px rgba(0, 0, 0, 50%);
}
.contact ul li a:before {
  content: "";
  position: absolute;
  top: 10px;
  left: -20px;
  height: 100%;
  width: 20px;
  background: #b1b1b1;
  transform: 0.5s;
  transform: rotate(0deg) skewY(-45deg);
}
.contact ul li a:after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -10px;
  height: 20px;
  width: 100%;
  background: #b1b1b1;
  transform: 0.5s;
  transform: rotate(0deg) skewX(-45deg);
}
.contact ul li a:hover {
  transform: rotate(-30deg) skew(25deg) translate(20px, -15px);
  box-shadow: -50px 50px 50px rgba(0, 0, 0, 50%);
}
.contact ul li:hover .fa {
  color: var(--primaryColor);
}
.contact ul li:hover span {
  color: var(--primaryColor);
}
.contact ul li:hover a {
  background: var(--customColor);
}
.contact ul li:hover a:before {
  background: var(--secondaryColor);
}
.contact ul li:hover a:after {
  background: var(--secondaryColor);
}
@media only screen and (max-width: 768px) {
  .contact-center {
    flex-direction: column;
  }
  .contact ul li a {
    margin: 3rem;
  }
  .contact ul li a i {
    font-size: 3rem;
    line-height: 5rem;
  }
}
footer {
  padding: 2rem 0;
  background-color: #222;
}
footer p {
  font-size: 1.8rem;
  color: #b1b1b1;
  text-align: center;
}
footer p span {
  color: var(--customColor);
}
