* {
  margin: 0;
}

/* theme */
:root {
  --text: #e6e6e6;
  --background: #111c40;
  --primary: #0b1828;
  --secondary: #038c8c;
  --accent: #12f3f3;
}

.anta-regular {
  font-family: "Anta", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background);
}

/* crazy navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  color: white;
  width: 100vw;
  z-index: 8;
}

[type="checkbox"]:checked,
[type="checkbox"]:not(:checked) {
  position: absolute;
  left: -9999px;
}

.menu-icon:checked + label,
.menu-icon:not(:checked) + label {
  position: fixed;
  top: 63px;
  right: 75px;
  display: block;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 10;
}

.menu-icon:checked + label:before,
.menu-icon:not(:checked) + label:before {
  position: absolute;
  content: "";
  display: block;
  width: 30px;
  height: 20px;
  z-index: 20;
  top: 0;
  left: 0;
  border-top: 2px solid #ececee;
  border-bottom: 2px solid #ececee;
  transition:
    border-width 100ms 1500ms ease,
    top 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
    height 100ms 1600ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms ease,
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked + label:after,
.menu-icon:not(:checked) + label:after {
  position: absolute;
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  z-index: 20;
  top: 10px;
  right: 4px;
  background-color: #ececee;
  margin-top: -1px;
  transition:
    width 100ms 1750ms ease,
    right 100ms 1750ms ease,
    margin-top 100ms ease,
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked + label:before {
  top: 10px;
  transform: rotate(45deg);
  height: 2px;
  background-color: #ececee;
  border-width: 0;
  transition:
    border-width 100ms 340ms ease,
    top 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
    height 100ms 300ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 200ms 500ms ease,
    transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon:checked + label:after {
  width: 30px;
  margin-top: 0;
  right: 0;
  transform: rotate(-45deg);
  transition:
    width 100ms ease,
    right 100ms ease,
    margin-top 100ms 500ms ease,
    transform 200ms 1700ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav {
  position: fixed;
  top: 33px;
  right: 50px;
  display: block;
  width: 80px;
  height: 80px;
  padding: 0;
  margin: 0;
  z-index: 9;
  overflow: hidden;
  box-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.3);
  background-color: var(--secondary);
  animation: border-transform 7s linear infinite;
  transition:
    top 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
    right 350ms 1100ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 250ms 1100ms ease,
    width 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1),
    height 650ms 400ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes border-transform {
  0%,
  100% {
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  }

  14% {
    border-radius: 40% 60% 54% 46% / 49% 60% 40% 51%;
  }

  28% {
    border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
  }

  42% {
    border-radius: 61% 39% 55% 45% / 61% 38% 62% 39%;
  }

  56% {
    border-radius: 61% 39% 67% 33% / 70% 50% 50% 30%;
  }

  70% {
    border-radius: 50% 50% 34% 66% / 56% 68% 32% 44%;
  }

  84% {
    border-radius: 46% 54% 50% 50% / 35% 61% 39% 65%;
  }
}

.menu-icon:checked ~ .nav {
  animation-play-state: paused;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 200%;
  height: 200%;
  transition:
    top 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
    right 350ms 700ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 250ms 700ms ease,
    width 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1),
    height 750ms 1000ms cubic-bezier(0.23, 1, 0.32, 1);
}

.nav ul {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  z-index: 6;
  text-align: center;
  transform: translateY(-50%);
  list-style: none;
}

.nav ul li {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 10px 0;
  text-align: center;
  list-style: none;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 250ms linear;
}

.nav ul li:nth-child(1) {
  transition-delay: 200ms;
}

.nav ul li:nth-child(2) {
  transition-delay: 150ms;
}

.nav ul li:nth-child(3) {
  transition-delay: 100ms;
}

.nav ul li:nth-child(4) {
  transition-delay: 50ms;
}

.nav ul li a {
  font-family: "Montserrat", sans-serif;
  font-size: 9vh;
  text-transform: uppercase;
  line-height: 1.2;
  font-weight: 800;
  display: inline-block;
  position: relative;
  color: #ececee;
  transition: all 250ms linear;
}

.nav ul li a:hover {
  text-decoration: none;
  color: var(--primary);
}

.nav ul li a:after {
  display: block;
  position: absolute;
  top: 50%;
  content: "";
  height: 2vh;
  margin-top: -1vh;
  width: 0;
  left: 0;
  background-color: #353746;
  opacity: 0.8;
  transition: width 250ms linear;
}

.nav ul li a:hover:after {
  width: 100%;
}

.menu-icon:checked ~ .nav ul li {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 350ms ease,
    transform 250ms ease;
}

.menu-icon:checked ~ .nav ul li:nth-child(1) {
  transition-delay: 1400ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(2) {
  transition-delay: 1480ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(3) {
  transition-delay: 1560ms;
}

.menu-icon:checked ~ .nav ul li:nth-child(4) {
  transition-delay: 1640ms;
}

@media screen and (max-width: 991px) {
  .menu-icon:checked + label,
  .menu-icon:not(:checked) + label {
    right: 55px;
  }

  .nav {
    right: 30px;
  }

  .nav ul li a {
    font-size: 8vh;
  }
}

/* Intro part */

#intro-background {
  /* background-image: url("./img/fractal.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat; */
  color: var(--text);
}

#welcome-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.767);
  position: relative;
}

#welcome-section h1 {
  font-family: "Anta", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5em;
  animation: text-flicker-in-glow 4s cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
  -webkit-animation: text-flicker-in-glow 4s
    cubic-bezier(0.55, 0.085, 0.68, 0.53) both;
}

.resume-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
}

.spin-btn {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-decoration: none;
}

.spin-ring {
  position: absolute;
  inset: 0;
  animation: spin 8s linear infinite;
}

.spin-ring svg {
  width: 100%;
  height: 100%;
}

.spin-core {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.spin-btn:hover .spin-core {
  transform: scale(1.07);
}

.spin-btn:hover .spin-ring {
  animation-duration: 3s;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  color: var(--background);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.ring-text {
  font-size: 10px;
  font-weight: 500;
  fill: var(--text);
  letter-spacing: 2px;
}

@keyframes text-flicker-in-glow {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 0;
    text-shadow: none;
  }

  10.1% {
    opacity: 1;
    text-shadow: none;
  }

  10.2% {
    opacity: 0;
    text-shadow: none;
  }

  20% {
    opacity: 0;
    text-shadow: none;
  }

  20.1% {
    opacity: 1;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
  }

  20.6% {
    opacity: 0;
    text-shadow: none;
  }

  30% {
    opacity: 0;
    text-shadow: none;
  }

  30.1% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.45),
      0 0 60px rgba(255, 255, 255, 0.25);
  }

  30.5% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.45),
      0 0 60px rgba(255, 255, 255, 0.25);
  }

  30.6% {
    opacity: 0;
    text-shadow: none;
  }

  45% {
    opacity: 0;
    text-shadow: none;
  }

  45.1% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.45),
      0 0 60px rgba(255, 255, 255, 0.25);
  }

  50% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.45),
      0 0 60px rgba(255, 255, 255, 0.25);
  }

  55% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.45),
      0 0 60px rgba(255, 255, 255, 0.25);
  }

  55.1% {
    opacity: 0;
    text-shadow: none;
  }

  57% {
    opacity: 0;
    text-shadow: none;
  }

  57.1% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.55),
      0 0 60px rgba(255, 255, 255, 0.35);
  }

  60% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.55),
      0 0 60px rgba(255, 255, 255, 0.35);
  }

  60.1% {
    opacity: 0;
    text-shadow: none;
  }

  65% {
    opacity: 0;
    text-shadow: none;
  }

  65.1% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.55),
      0 0 60px rgba(255, 255, 255, 0.35),
      0 0 100px rgba(255, 255, 255, 0.1);
  }

  75% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.55),
      0 0 60px rgba(255, 255, 255, 0.35),
      0 0 100px rgba(255, 255, 255, 0.1);
  }

  75.1% {
    opacity: 0;
    text-shadow: none;
  }

  77% {
    opacity: 0;
    text-shadow: none;
  }

  77.1% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.55),
      0 0 60px rgba(255, 255, 255, 0.4),
      0 0 110px rgba(255, 255, 255, 0.2),
      0 0 100px rgba(255, 255, 255, 0.1);
  }

  85% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.55),
      0 0 60px rgba(255, 255, 255, 0.4),
      0 0 110px rgba(255, 255, 255, 0.2),
      0 0 100px rgba(255, 255, 255, 0.1);
  }

  85.1% {
    opacity: 0;
    text-shadow: none;
  }

  86% {
    opacity: 0;
    text-shadow: none;
  }

  86.1% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.6),
      0 0 60px rgba(255, 255, 255, 0.45),
      0 0 110px rgba(255, 255, 255, 0.25),
      0 0 100px rgba(255, 255, 255, 0.1);
  }

  100% {
    opacity: 1;
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.6),
      0 0 60px rgba(255, 255, 255, 0.45),
      0 0 110px rgba(255, 255, 255, 0.25),
      0 0 100px rgba(255, 255, 255, 0.1);
  }
}

#welcome-section p {
  column-gap: 0;
  display: block;
  font-family: "DM Serif Display", serif;
  margin-top: 2vh;
}

#welcome-section .role {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 1.6em;
  animation: text-flicker-in-glow 6s linear both;
  -webkit-animation: text-flicker-in-glow 6s linear both;
}

#social-icons {
  margin-top: 5.5vh;
  font-size: 22px;
  color: white;
}

#social-icons a {
  text-decoration: none;
  display: inline-block;
  animation: text-flicker-in-glow 4s cubic-bezier(0.215, 0.61, 0.355, 1);
  -webkit-animation: text-flicker-in-glow 4s cubic-bezier(0.215, 0.61, 0.355, 1);
  animation-delay: calc(0.3s * var(--index));
  animation-fill-mode: forwards;
}

ion-icon {
  color: white;
  margin-left: 8px;
}

/* about me section */
#about-me {
  min-height: 100vh;
  padding-top: 4vh;
  width: auto;
  background-color: var(--primary);
  color: var(--text);
  display: flex;
  align-items: center;
  flex-direction: column;
  font-family: "poppins", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.5;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "width" 100;
}

#about-me h3 {
  font-family: "DM Serif Display", serif;
  font-weight: 570;
  font-size: 1.5em;
  margin-bottom: 2vh;
  margin-left: 1vw;
}

@keyframes fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
  }
}

.me-intro {
  margin: 2vh 2vw;
}

.me-intro-p {
  --delay: 0.1s;
  opacity: 0;
  transform: translateY(100%);
  -webkit-transform: translateY(100%);
  -moz-transform: translateY(100%);
  -ms-transform: translateY(100%);
  -o-transform: translateY(100%);
}

.me-intro-p.visible {
  animation: fade-in 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  -webkit-animation: fade-in 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  animation-fill-mode: both;
  animation-delay: calc(var(--delay) * var(--introIndex));
}

.me-intro span {
  font-weight: 550;
  line-height: 1.5;
  display: block;
}

.me-intro hr {
  margin-top: 1vh;
  margin-bottom: 1vh;
}

.me-intro p {
  margin-top: 16px;
  line-height: 1.5;
  margin: 1vh 1vw;
}

@keyframes reveal-img {
  to {
    clip-path: inset(0);
  }
}

@keyframes show-wrapper {
  from {
    box-shadow: 8px 8px 32px 4px rgba(3, 140, 140, 0);
  }
  to {
    box-shadow: 8px 8px 32px 4px rgba(3, 140, 140, 0.93);
  }
}

.profile-img-wrapper {
  width: 190px;
  height: 190px;
  border-radius: 10px;
  animation: show-wrapper 1s cubic-bezier(0.19, 1, 0.22, 1) both;
  -webkit-animation: show-wrapper 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.profile-img {
  width: 190px;
  height: 190px;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
  object-fit: cover;
}

#what-I-Do {
  min-height: 100vh;
  padding-top: 7vh;
  background-color: rgba(255, 255, 255, 0.815);
}

.what-I-do-item {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  -webkit-transform: translateY(100%);
  -moz-transform: translateY(100%);
  -ms-transform: translateY(100%);
  -o-transform: translateY(100%);
  transition:
    opacity 0.5s,
    transform 0.4s;
  -webkit-transition:
    opacity 0.5s,
    transform 0.4s;
  -moz-transition:
    opacity 0.5s,
    transform 0.4s;
  -ms-transition:
    opacity 0.5s,
    transform 0.4s;
  -o-transition:
    opacity 0.5s,
    transform 0.4s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  transition-delay: calc(0.1s * var(--iconIndex));
}

.what-I-do-item.visible {
  opacity: 1;
  transform: translateY(0);
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
}

#what-I-Do h2 {
  text-align: center;
  font-family: "Rubik";
  font-weight: 500;
  font-size: 28px;
}

.icons {
  width: 175px;
  height: 175px;
  background-color: var(--secondary);
  max-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  font-size: 50px;
}

.icons :hover {
  animation: rotate-center 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
  -webkit-animation: rotate-center 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

/* let's rotate */
@keyframes rotate-center {
  0% {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#design,
#development,
#writing {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.5vh;
}

#design h3,
#development h3,
#writing h3 {
  margin-top: 2vh;
  margin-bottom: 2vh;
  font-family: "Rubik";
  font-weight: 500;
}

#design p,
#development p,
#writing p {
  margin: 3vh 3vw;
  line-height: 1.5;
}

#passions {
  display: flex;
  flex-direction: column;
}

#skills {
  padding-top: 5vh;
  color: var(--text);
  padding-bottom: 5vh;
}

#skills h2,
hr,
p {
  margin: 2vh;
}

#skills h2,
#projects h2,
#contacts h2 {
  font-family: "Rubik";
  font-weight: 500;
  font-size: 28px;
  color: var(--text);
  text-align: center;
}

.skills-container {
  margin-top: 28px;
  width: 100%;
  text-align: center;
}

.skills-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  min-height: 140px;
}

.skill-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.233);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  opacity: 0;
  transform: translateY(10px);
  -webkit-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -moz-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -ms-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -o-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.skill-badge.show {
  opacity: 1;
  transform: translateY(0);
}

.skill-badge:hover {
  border-color: rgba(255, 255, 255, 0.726);
  background: rgba(255, 255, 255, 0.05);
}

.skill-icon {
  font-size: 1rem;
  opacity: 0.9;
}

.section-title {
  color: var(--text);
  margin-bottom: 16px;
  font-family: "Monteserrat", serif;
}

.tab-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tab-line {
  position: absolute;
  height: 4px;
  background: var(--text);
  width: 500px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.tab-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 500px;
}

.tab-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  backdrop-filter: blur(5px);
  -webkit-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -moz-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -ms-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -o-transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.tab-button.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.tab-button .tab-icon {
  font-size: 1rem;
  color: white;
  transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -webkit-transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -moz-transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -ms-transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
  -o-transition: color 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.tab-button.active .tab-icon {
  color: #2c3e50;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

/* Special styling for Tools section with fewer items */
#tools .skills-display {
  gap: 60px;
}

@media (max-width: 768px) {
  .skills-title {
    font-size: 2rem;
    margin-bottom: 80px;
  }

  .skills-display {
    gap: 25px;
    margin-bottom: 60px;
  }

  .skill-badge {
    font-size: 0.9rem;
    padding: 6px 12px;
  }

  .tab-line {
    width: 460px;
  }

  .tab-buttons {
    width: 460px;
  }

  .tab-button {
    width: 32px;
    height: 32px;
  }

  #tools .skills-display {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .skills-display {
    gap: 20px;
  }

  .skill-badge {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .tab-line {
    width: 340px;
  }

  .tab-buttons {
    width: 340px;
  }
}

#blogs {
  margin: 5vh 1vw;
  padding-top: 5vh;
}

#blogs h2 {
  color: var(--text);
}

.puppeteer-logo {
  width: 50px;
  margin-top: 6px;
  margin-bottom: 8px;
}

/* new blog card */

.blog-card {
  display: flex;
  flex-direction: column;
  margin: 1rem auto;
  box-shadow: 0 3px 7px -1px rgba(#000, 0.1);
  margin-bottom: 1.6%;
  background: var(--primary);
  line-height: 1.4;
  font-family: "Poppins";
  border-radius: 5px;
  overflow: hidden;
  z-index: 0;

  a {
    color: inherit;

    &:hover {
      color: rgba(0, 0, 0, 0.486);
    }
  }

  &:hover {
    .photo {
      transform: scale(1.3) rotate(3deg);
      -webkit-transform: scale(1.3) rotate(3deg);
      -moz-transform: scale(1.3) rotate(3deg);
      -ms-transform: scale(1.3) rotate(3deg);
      -o-transform: scale(1.3) rotate(3deg);
    }
  }

  .meta {
    position: relative;
    z-index: 0;
    height: 200px;
  }

  .photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s;
  }

  .details,
  .details ul {
    margin: auto;
    padding: 0;
    list-style: none;
  }

  .details {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100%;
    margin: auto;
    transition: left 0.2s;
    background: rgba(#000, 0.6);
    color: white;
    padding: 10px;
    width: 100%;
    font-size: 0.9rem;

    a {
      text-decoration: dotted underline;
    }

    ul li {
      display: inline-block;
    }

    .author:before {
      font-family: FontAwesome;
      margin-right: 10px;
      content: "\f007";
    }

    .date:before {
      font-family: FontAwesome;
      margin-right: 10px;
      content: "\f133";
    }

    .tags {
      ul:before {
        font-family: FontAwesome;
        content: "\f02b";
        margin-right: 10px;
      }

      li {
        margin-right: 2px;

        &:first-child {
          margin-left: -4px;
        }
      }
    }
  }

  .description {
    padding: 1rem;
    color: var(--text);
    background: var(--primary);
    position: relative;
    z-index: 1;

    h1 {
      font-family: "Poppins", sans-serif;
    }

    h1 {
      line-height: 1;
      margin: 0;
      font-size: 1.4rem;
    }

    .read-more {
      text-align: right;

      a {
        color: var(--accent);
        display: inline-block;
        position: relative;

        &:after {
          content: "\f061";
          font-family: FontAwesome;
          margin-left: -10px;
          opacity: 0;
          vertical-align: middle;
          transition:
            margin 0.3s,
            opacity 0.3s;
        }

        &:hover:after {
          margin-left: 5px;
          opacity: 1;
        }
      }
    }
  }

  p {
    position: relative;
    margin: 1rem 0 0;

    &:first-of-type {
      margin-top: 1.25rem;

      &:before {
        content: "";
        position: absolute;
        height: 5px;
        background: rgba(0, 0, 0, 0.2);
        width: 35px;
        top: -0.75rem;
        border-radius: 3px;
      }
    }
  }

  &:hover {
    .details {
      left: 0%;
    }
  }

  @media (min-width: 640px) {
    flex-direction: row;
    max-width: 800px;

    .meta {
      flex-basis: 40%;
      height: auto;
    }

    .description {
      flex-basis: 60%;

      &:before {
        transform: skewX(-3deg);
        content: "";
        background: var(--primary);
        width: 30px;
        position: absolute;
        left: -10px;
        top: 0;
        bottom: 0;
        z-index: -1;
      }
    }

    &.alt {
      flex-direction: row-reverse;

      .description {
        &:before {
          left: inherit;
          right: -10px;
          transform: skew(3deg);
        }
      }

      .details {
        padding-left: 25px;
      }
    }
  }
}

@keyframes blur {
  from {
    filter: blur(10px);
    opacity: 0;
    -webkit-filter: blur(10px);
  }
  to {
    filter: blur(0px);
    -webkit-filter: blur(0px);
    opacity: 1;
  }
}

#projects {
  font-family: "Poppins", sans-serif;
  padding: 4vh 2vw;
  background-color: var(--primary);
}

#projects hr {
  margin-left: 0;
  margin-right: 0;
}

.project {
  background-image: url("./img/gallery.jpeg");
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 320px;
  margin-top: 2vh;
  min-width: 340px;
}

.project-overlay {
  background-color: rgba(0, 0, 0, 0.8);
  min-height: 320px;
  padding-top: 35px;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.project-title {
  font-family: "DM serif";
  margin-left: 15px;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.prj-desc {
  opacity: 0;
}

.prj-desc.visible {
  animation: blur 2s cubic-bezier(0.075, 0.82, 0.165, 1);
  -webkit-animation: blur 2s cubic-bezier(0.075, 0.82, 0.165, 1);
  animation-fill-mode: both;
}

.prj-skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding-left: 15px;
  margin-bottom: 15px;
  max-width: 320px;
}

.prj-skills li {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  -webkit-transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  -moz-transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  -ms-transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  -o-transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.prj-skills li.visible {
  opacity: 1;
  transform: translateY(0);
}

.project ul li {
  margin-right: 12px;
  margin-bottom: 4px;
  font-family: "Montserrat";
  font-weight: 600;
  font-size: 0.8em;
}

.project p {
  margin-left: 15px;
  font-family: "Poppins";
  font-size: 0.7rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.project-overlay div {
  margin-left: 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.project-overlay div a {
  margin-right: 5px;
}

.more-prjs,
.more-blogs {
  margin-top: 4vh;
}

.more-prjs a,
.more-blogs a {
  color: var(--accent);
}

.more-prjs a:hover,
.more-blogs a:hover {
  color: var(--secondary);
}

.project-image {
  display: none;
}

.project-icons a {
  margin-left: 5px;
}

.project-icons a:hover {
  transform: scale(1.1);
  -webkit-transform: scale(1.1);
  -moz-transform: scale(1.1);
  -ms-transform: scale(1.1);
  -o-transform: scale(1.1);
}

#contactHeader {
  padding: 5vh 2vw;
  color: var(--text);
  background-color: rgba(0, 0, 0, 0.459);
}
#contacts {
  background: url("https://i.giphy.com/media/v1.Y2lkPTc5MGI3NjExdG80aGNzdGtoMjg0Yjhod3NjdDkybGxzcGpweXZuNHN6ZmFyajA1eSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/VDGOdvmp1bpc3PcCry/giphy.gif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

#contacts p {
  margin-left: 0;
  font-family: "Poppins";
  font-size: 1.2em;
  line-height: 1.3;
  text-align: center;
}

#contactHeader h2,
.socials {
  text-align: center;
}

.socials a {
  text-decoration: none;
  font-size: 1.3em;
  margin: 15px 5px;
}

.email {
  text-align: center;
  margin-top: 10px;
}

/* Large screen optimizations */

@media (min-width: 768px) {
  #welcome-section h1 {
    font-size: 3.5em;
  }

  #welcome-section .role {
    font-size: 2em;
  }

  #social-icons {
    font-size: 32px;
  }

  #about-me {
    flex-direction: row;
    justify-content: space-evenly;
  }

  .profile-img-wrapper {
    width: 300px;
    height: 300px;
  }
  .profile-img {
    width: 100%;
    height: 100%;
  }

  .me-intro {
    flex-basis: 700px;
  }

  #what-I-Do {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #passions {
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: 80px;
  }

  #design,
  #development,
  #writing {
    max-width: 35%;
  }

  #what-I-Do h2 {
    margin-bottom: 60px;
    font-size: 2.2em;
  }

  #design h3,
  #development h3,
  #writing h3 {
    font-size: 1.4em;
  }

  #skills,
  #projects {
    padding-left: 5%;
    padding-right: 5%;
  }

  .languages {
    justify-content: space-evenly;
  }

  #blogs {
    margin-top: 70px;
  }

  #blogs h2 {
    padding-left: 5%;
    margin-bottom: 40px;
  }

  .more-blogs {
    text-align: center;
  }

  .more-blogs a {
    text-decoration: none;
    border: solid var(--secondary);
    padding: 4px 8px;
    box-shadow: 2px 4px 8px;
  }

  .project-image {
    display: block;
  }

  .project-image img {
    width: 400px;
    opacity: 1;
    box-shadow: none;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    -moz-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    -ms-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    -o-transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
  }

  .project-image img.persist-shadow {
    box-shadow: 8px 8px 32px 4px rgba(3, 140, 140, 0.93);
  }

  .project {
    background: none !important;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: var(--text);
    padding-left: 4vw;
    padding-right: 4vw;
  }

  .project-overlay {
    background: none !important;
    min-width: 400px;
  }

  .project-overlay p {
    background-color: var(--background);
    position: absolute;
    margin-top: 50px;
    min-height: 90px;
    width: 680px;
    display: flex;
    align-items: center;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
    box-shadow: 8px 8px 32px 4px rgba(3, 140, 140, 0.93);
  }

  .project-overlay h4 {
    font-size: 1.6em;
  }

  .project-overlay ul {
    margin-top: 120px;
  }

  #contactHeader {
    position: relative;
    padding: 5vh 10vw;
    text-align: center;
  }

  #contactHeader p {
    padding-left: 15%;
    padding-right: 15%;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}
