@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
:root {
  --main-white-text: #f3f3f3;
  /* --main-black-text: #1e1e1e; */
  --pink-text: #F475A8;
  --main-light-text: #a7a7a7;
  --light-link-text: #f3f3f3;
  --btn-link-text: #131313;
  --active-link-text: #F475A8;
  --logo-blue: #33ccff;
  --main-gradient-text: linear-gradient(45deg, #f06,#3cf);
  --notification-pink: rgba(244, 117, 168, 1);
  --primary-dark-bg: #212529;
  --secondary-dark-bg: #353535;
  --footer-dark-bg: #181818;/* 
  --viewport-height: 100vh; */
}
*
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}
html, body {
  width: 100%;
}
a {
  text-decoration: none;
  color: var(--main-link-text);
}
body {
  color: var(--main-white-text);
  background-color: var(--primary-dark-bg);
}
#about, #skills, #portfolio, #contact {
  position: relative;
  min-height: 90vh;
  padding: 120px 100px;
  flex-direction: column;
}
#about, #skills .container, #portfolio .container, #contact .container {
  position: relative;
  gap: 10px;
}
#home, #skills, #contact {
  background-image: linear-gradient(to right top, #131313, #181818, #1c1c1d, #202122, #242627, #242627, #242627, #242627, #202122, #1c1c1d, #181818, #131313);
}
#about, #portfolio {
  background-image: linear-gradient(to right top, #2a2c2e, #2d2e2f, #2f2f31, #313132, #333333, #333333, #333333, #333333, #313132, #2f2f31, #2d2e2f, #2a2c2e);
}
.section-text {
  position: relative;
  /* width: 100%; */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.section-text h2 {
  font-size: 32px;
  color: var(--main-white-text);
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.7s;
}
.section-text h2::after {
  content: " ";
  display: block;
  height: 3px;
  background-color: var(--active-link-text);
  width: 100px;
  margin: 18px auto 18px auto;
}
.section-text p {
  max-width: 800px;
  text-align: start;
  color: var(--main-light-text);
  font-size: 16px;
  line-height: 1.5em;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1s;
}

/*** ANIMATED BUTTONS ***/
.anim-btn-contact, .anim-btn-load, .anim-btn-read-more, .anim-btn-send-message, .anim-btn-show-more {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background-color: transparent;
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  transition: .3s;
  z-index: 1;
  font-family: inherit;
  cursor: pointer;
}
.anim-btn-contact {
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 1.5s;
}
.anim-btn-load, .anim-btn-read-more, .anim-btn-send-message, .anim-btn-show-more {
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 1.8s;
}
.anim-btn-contact, .anim-btn-load, .anim-btn-read-more, .anim-btn-send-message {
  width: 236px;
  height: 66px;
}
.anim-btn-show-more {
  width: 154px;
  height: 46px;
}
.anim-btn-contact .glowing-edges, .anim-btn-load .glowing-edges, .anim-btn-read-more .glowing-edges, .anim-btn-send-message .glowing-edges, .anim-btn-show-more .glowing-edges {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.anim-btn-contact .glowing-edges span, .anim-btn-load .glowing-edges span, .anim-btn-read-more .glowing-edges span, .anim-btn-send-message .glowing-edges span, .anim-btn-show-more .glowing-edges span {
  position: absolute;
  background: linear-gradient(#f06, #3cf);
  animation: circleRotate 5s linear infinite;
}
.anim-btn-contact .glowing-edges span, .anim-btn-load .glowing-edges span, .anim-btn-read-more .glowing-edges span, .anim-btn-send-message .glowing-edges span {
  width: 270px;
  height: 270px;
}
.anim-btn-show-more .glowing-edges span {
  width: 180px;
  height: 180px;
}
.anim-btn-contact .glowing-edges .btn-bg, .anim-btn-load .glowing-edges .btn-bg,
.anim-btn-read-more .glowing-edges .btn-bg, .anim-btn-send-message .glowing-edges .btn-bg, .anim-btn-show-more .glowing-edges .btn-bg {
  position: relative; 
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  z-index: 1;
  overflow: hidden;
}
.anim-btn-contact .glowing-edges .btn-bg, .anim-btn-load .glowing-edges .btn-bg,
.anim-btn-read-more .glowing-edges .btn-bg, .anim-btn-send-message .glowing-edges .btn-bg {
  width: 230px;
  height: 60px;
}
.anim-btn-show-more .glowing-edges .btn-bg {
  width: 148px;
  height: 40px;
  transition: 0.8s;
}
.anim-btn-contact .glowing-edges .btn-bg {
  background-color: transparent;
  transition: 0.8s;
}
.anim-btn-load .glowing-edges .btn-bg, .anim-btn-read-more .glowing-edges .btn-bg, .anim-btn-send-message .glowing-edges .btn-bg, .anim-btn-send-message .glowing-edges .btn-bg, .anim-btn-show-more .glowing-edges .btn-bg {
  background-color: var(--primary-dark-bg);
  transition: 0.8s;
}
.anim-btn-contact .btn-bg a, .anim-btn-load .btn-bg a, .anim-btn-read-more .btn-bg a, .anim-btn-send-message .btn-bg button, .anim-btn-show-more .btn-bg a {
  position: absolute;
  max-width: 250px;
  padding: 2rem;
  opacity: 1;
  animation: slideAnimation 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0s;
}
.anim-btn-send-message .btn-bg button {
  background: transparent;
}
.anim-btn-contact a {
  color: var(--btn-link-text);
  width: 230px;
}
.anim-btn-load a, .anim-btn-read-more a, .anim-btn-send-message button, .anim-btn-show-more a {
  color: var(--main-white-text);
  width: 234px;
}
.anim-btn-contact:hover .btn-bg {
  background-color: var(--primary-dark-bg);
  transition: .3s;
}
.anim-btn-load:hover .btn-bg, .anim-btn-read-more:hover .btn-bg, .anim-btn-send-message:hover .btn-bg, .anim-btn-show-more:hover .btn-bg {
  background-color: transparent;
}
.anim-btn-contact:hover .btn-bg::after {
  font: var(--fa-font-solid);
  content: '\f044';
  font-size: 24px;
  color: var(--main-white-text);
  animation: slideAnimation 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0s;
}
.anim-btn-load:hover .btn-bg::after {
  font: var(--fa-font-solid);
  content: '\f019';
  font-size: 24px;
  color: var(--btn-link-text);
  animation: slideAnimation 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0s;
}
.anim-btn-read-more:hover .btn-bg::after, .anim-btn-show-more:hover .btn-bg::after {
  font: var(--fa-font-solid);
  content: '\f35d';
  font-size: 24px;
  color: var(--btn-link-text);
  animation: slideAnimation 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0s;
}
.anim-btn-send-message:hover .btn-bg::after {
  font: var(--fa-font-solid);
  content: '\f1d8';
  font-size: 24px;
  color: var(--btn-link-text);
  animation: slideAnimation 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0s;
}
.anim-btn-contact:hover .btn-bg a, .anim-btn-load:hover .btn-bg a, .anim-btn-read-more:hover .btn-bg a, .anim-btn-send-message:hover .btn-bg button, .anim-btn-show-more:hover .btn-bg a {
  display: block;
  color: transparent;
}
@keyframes circleRotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
} 
@keyframes slideAnimation {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@-webkit-keyframes slideAnimation {
  0% {
    opacity: 0;
    -webkit-transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
  }
}

/*** NAVBAR ***/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 100px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content:space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(20px);
}
.logo {
  font-size: 25px;
  color: var(--active-link-text);
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideTop 1s ease forwards;
}
.logo-text {
  color: var(--logo-blue);
}
.navbar-toggler {
  border: 1px solid var(--main-light-text);
  border-radius: 10px;
}
.navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-collapse {
  flex-grow: unset;
}
.navbar-nav .nav-link {
  display: inline-block;
  font-size: 18px;
  color: var(--main-link-text);
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  text-transform: uppercase;
  animation: slideTop 0.5s ease forwards;
  /* Latoo linkit naviin vuorotellen järjestyksessä */
  animation-delay: calc(.2s * var(--i));
}
.navbar-nav .nav-link.active, .navbar-nav .nav-link:hover {color: var(--active-link-text) }

/*** HOME ***/
#home {
  width: 100%;
  min-height: 100vh;
  padding: 70px 10% 0;
}
/* Jumbing balls */
.ball-red, .ball-blue, .ball-violet {
  position: absolute;
  border-radius: 50%;
}
.ball-red {
  background: radial-gradient(circle at 65% 15%, #F475A8 3%, #f06 60%, #990842 100%);
  --base-size: 50px;
  height: var(--base-size);
  width: var(--base-size);
  top: 130px;
  left: 160px;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 0.1s, 1.1s;
}
.ball-blue {
  background: radial-gradient(circle at 65% 15%, #00D2FF 3%, #002FFF 60%, #084299 100%);
  --base-size: 40px;
  top: 373px;
  left: 200px;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 0.4s, 2.1s;
}
.ball-violet {
  background: radial-gradient(circle at 65% 15%, #B975F4 3%, #581FA2 60%, #480899 100%);
  --base-size: 30px;
  top: 310px;
  left: 65px;
  animation: zoomIn 8s ease forwards, floatImage 8s ease-in-out infinite;
  animation-delay: 0.5s, 3.1s;
}
.home-content { max-width: 780px; }
.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.7s;
}
.home-content h3 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1s;
  background: var(--main-gradient-text);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-content p {
  font-size: 16px;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.3s;
}
.home-img {
  height: 410px;
  opacity: 0;
  top: -28px;
  position: relative;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.5s;
}
/* Profile image */
.home-img .image {
  position: relative;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  z-index: 1;
  overflow: hidden;
}
.home-img .image img.profile_blob {
  position: absolute;
  top: -30px;
  left: 48%;
  transform: translateX(-50%);
  max-width: 420px;
}
@keyframes zoomIn {
  0% {
    width: calc(1 * var(--base-size));
    height: calc(1 * var(--base-size));
  }
  50% {
    width: calc(4.5 * var(--base-size));
    height: calc(4.5 * var(--base-size));
  }
  100% {
    width: calc(4.5 * var(--base-size));
    height: calc(4.5 * var(--base-size));
  }
}
@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-24px);
  }
  100% {
    transform: translateY(0);
  }
}
/*** ABOUT ME ***/
#about {
  overflow-x: hidden;
}
#about::before {
  position: absolute;
  content: '';
  background: radial-gradient(circle at 65% 15%, #F475A8 3%, #f06 60%, #990842 100%);
  --base-size: 40px;
  height: var(--base-size);
  width: var(--base-size);
  top: 342px;
  left: 93px;
  border-radius: 50%;
  z-index: 2;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 0.1s, 2.1s;
}
#about::after {
  content: '';
  position: absolute;
  background: radial-gradient(circle at 65% 15%, #B975F4 3%, #581FA2 60%, #480899 100%);
  --base-size: 60px;
  height: var(--base-size);
  width: var(--base-size);
  top: 114px;
  left: 75px;
  border-radius: 50%;
  z-index: 1;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 0.7s, 1.1s;
}
#about .container::before {
  content: '';
  position: absolute;
  background: radial-gradient(circle at 65% 15%, #00D2FF 3%, #002FFF 60%, #084299 100%);
  --base-size: 40px;
  height: var(--base-size);
  width: var(--base-size);
  top: 630px;
  left: 480px;
  border-radius: 50%;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 0.7s, 1.1s;
}
#about .container::after {
  position: absolute;
  content: '';
  background: radial-gradient(circle at 65% 15%, #A4F0A4 3%, #00FF00 60%, #089965 100%);
  --base-size: 30px;
  height: var(--base-size);
  width: var(--base-size);
  top: 650px;
  right: 50px;
  border-radius: 50%;
  animation: zoomIn 8s ease both, rollIn 10s ease-in-out forwards infinite;
  animation-delay: 1.2s, 1.1s;
}
@keyframes rollIn {
  0%, 100% {
    transform: translateX(-40px) rotate(280deg);
  }
  50% {
    transform: translateX(-60px) rotate(380deg);
  }
}
#about .latest-card {
  position: relative;
  width: 365px;
  height: 576px;
  margin: 30px 15px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: linear-gradient(to right top, rgba(19, 19, 19, 0.6), rgba(24, 24, 24, 0.6), rgba(28, 28, 29, 0.6), rgba(32, 33, 34, 0.6), rgba(36, 38, 39, 0.6), rgba(32, 33, 34, 0.6), rgba(28, 28, 29, 0.6), rgba(24, 24, 24, 0.6), rgba(19, 19, 19, 0.6));
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  opacity: 0;
  z-index: 2;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.7s;
}
#about .latest-card-text h5 {
  font-size: 18px;
}
#about .latest-card-text p {
  font-size: 14px;
}
#about .latest-card-text .time {
  display: flex;
  justify-content: center;
  color: #1e1e1e;
  background: var(--notification-pink);
  max-width: 100px;
  margin-left: 23px;
  padding: 2px 0;
  border-radius: 10px;
}
#about .latest-card-text .title { letter-spacing: 0.05rem; }
#about .latest-card-text li { font-size: 14px; }
#about .anim-btn-load {
  margin-top: 30px!important;
}
/*** SKILLS ***/
/* Animated background */
.circles{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.circles li{
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  animation: animate 50s linear infinite;
  bottom: -150px;
}
.circles li:nth-child(1){
  left: 25%;
  width: 80px;
  height: 80px;
  background-color: #f06;
  filter: blur(10px);
  animation-delay: 0s;
}
.circles li:nth-child(2){
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  background-color: #6237a0;
  filter: blur(10px);
  animation-duration: 12s;
}
.circles li:nth-child(3){
  left: 70%;
  width: 20px;
  height: 20px;
  background-color: #6237a0;
  filter: blur(10px);
  animation-delay: 4s;
}
.circles li:nth-child(4){
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  background-color: #0f0;
  filter: blur(15px);
  animation-duration: 18s;
}
.circles li:nth-child(5){
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;  
  background-color: #f06;
  filter: blur(10px);
}
.circles li:nth-child(6){
  left: 75%;
  width: 110px;
  height: 110px;
  background-color: #3cf;
  filter: blur(10px);
  border-radius: 30px;
  animation-delay: 3s;
}
.circles li:nth-child(7){
  left: 35%;
  width: 150px;
  height: 150px;
  background-color: #6237a0;
  filter: blur(10px);
  border-radius: 30px;
  animation-delay: 7s;
}
.circles li:nth-child(8){
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  background-color: #3cf;
  filter: blur(10px);
  animation-duration: 45s;
}
.circles li:nth-child(9){
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  background-color: #3cf;
  filter: blur(10px);
  animation-duration: 35s;
}
.circles li:nth-child(10){
  left: 85%;
  width: 150px;
  height: 150px;
  border-radius: 40px;
  animation-delay: 0s;
  animation-duration: 20s;
  background: rgba(255, 0, 102);
  filter: blur(15px);
}
@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
      opacity: 1;
      border-radius: 20%;
  }
  100% {
    transform: translateY(-1000px) rotate(360deg);
    opacity: 0;
    border-radius: 50%;
  }
}
/* Animated skill boxes */
#skills .skill-boxes {
  z-index: 10;
}
@-moz-document url-prefix() {
  .skill-boxes svg {
    /* Firefox-spesifiset tyylit */
    transform: translateY(13px);
  }
}
#skills .box {
  position: relative;
  width: 250px;
  height: 300px;
  background: linear-gradient(0deg,#131313,#212529,#131313);
  padding-top: 8px;
  border-radius: 10px;
  text-align: center;
  overflow: hidden;
  transition: 0.5s;
  user-select: none;
  box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
  animation: zoomInBoxes 8s ease both;
  animation-delay: 0.1s;
}
@keyframes zoomInBoxes {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
#skills .box:hover {
  box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.2);
}
#skills .box:hover #percentage-1, 
#skills .box:hover #percentage-2, 
#skills .box:hover #percentage-3,
#skills .box:hover #percentage-4,
#skills .box:hover #percentage-5,
#skills .box:hover .skill-text {
  color: var(--main-white-text);
}
#skills .box:hover #percentage-1, #skills .box:hover #percentage-2, #skills .box:hover #percentage-3,  #skills .box:hover #percentage-4, #skills .box:hover #percentage-5 {
  transition: ease-in .4s;
  transform: scale(1.2);
}
#skills .box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .05);
  pointer-events: none;
  z-index: 1;
}
#skills .skill {
  width: 160px;
  height: 160px;
  position: relative;
}
#skills .outer {
  height: 160px;
  width: 160px;
  padding: 20px;
  box-shadow: 6px 6px 10px -1px rgba(0, 0, 0, 0.15), 2px 2px 10px -1px rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}
#skills .inner {
  display: flex;
  height: 120px;
  width: 120px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 4px 4px 6px -1px rgba(0, 0, 0, 0.2), inset 4px 2px 5px -1px rgba(255, 255, 255, 0.5), 0.5px 0.5px 0 rgba(0, 0, 0, 0.15), 0px 10px 0px -10px rgba(0, 0, 0, 0.05);
}
#skills #percentage-1, #skills #percentage-2, #skills #percentage-3, #skills #percentage-4, #skills #percentage-5 {
  font-weight: 700;
  color: var(--main-light-text);
  font-size: 30px;
  transition: 0.5s;
}
#skills .circle-1, #skills .circle-2, #skills .circle-3, #skills .circle-4, #skills .circle-5 {
  fill: none;
  stroke: url(#GradientColor);
  stroke-width: 20px;
  stroke-dasharray: 439.8;  /* Tämä arvo määrää viivan kokonaispituuden */
  stroke-dashoffset: 439.8; /* Tämä arvo määrää, kuinka paljon viivasta on piilotettu alussa ennen sen liikkumista */
}
#skills .circle-1 { 
  animation: circleAnim1 3s linear forwards; 
  animation-delay: 3.5s;
}
#skills .circle-2 { 
  animation: circleAnim2 2s linear forwards; 
  animation-delay: 3.5s;
}
#skills .circle-3 { 
  animation: circleAnim3 2s linear forwards; 
  animation-delay: 3.5s;
}
#skills .circle-4 { 
  animation: circleAnim4 2s linear forwards; 
  animation-delay: 3.5s;
}
#skills .circle-5 { 
  animation: circleAnim5 2s linear forwards; 
  animation-delay: 3.5s;
}
#skills .skill-boxes svg {
  position: absolute;
  top: 43px;
}
#skills .skill-text {
  font-size: 18px;
  color: var(--main-light-text);
  text-transform: uppercase;
  transition: 0.5s;
}
@keyframes circleAnim1 {
  100% {
    /* Tämä arvo määrää, kuinka paljon viivasta näytetään animaation lopussa */
    stroke-dashoffset: 65.97; /* 439.8 - 439.8 x 0.85 */
  }
}
@keyframes circleAnim2 {
  100% {
    stroke-dashoffset: 87.96; /* 439.8 - 439.8 x 0.8 */
  }
}
@keyframes circleAnim3 {
  100% {
    stroke-dashoffset: 153.93; /* 439.8 - 439.8 x 0.65 */
  }
}
@keyframes circleAnim4 {
  100% {
    stroke-dashoffset: 131.94; /* 439.8 - 439.8 x 0.7 */
  }
}
@keyframes circleAnim5 {
  100% {
    stroke-dashoffset: 87.96; /* 439.8 - 439.8 x 0.8 */
  }
}
/* Read more - Skills carousel */
#skillCarousel {
  top: 20%;
  left: 0;
}
#skillCarousel .modal-dialog { 
  max-width: 850px!important; 
  margin-top: 10vh;
}
#skillCarousel .modal-header {
  background-color: #1e1e1e;
  border-bottom: unset;
}
#skillCarousel .modal-content {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(30px);
  box-shadow: 0px 0px 10px 0px rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: unset;
  height: 500px;
}
#skillCarousel .modal-content .btn-close { color: #fff; }
#skillCarousel .card-title { color: #FF6BB0; }
#skillCarousel .carousel-control-prev { left: -115px; }
#skillCarousel .carousel-control-next { right: -115px; }
#skillCarousel .carousel-indicators { bottom: -70px; }
#skillCarousel .carousel-indicators .active { background-color: #ff6bb0; }
#skillCarousel .modal-footer { border-top: unset; }
#carouselIndicators .carousel-item {
  overflow-y: auto; /* Sallii pystysuuntaisen vierityksen */
  height: 350px;
  padding: 20px;
  box-sizing: border-box; /* Huomioi sisävälit korkeuden laskemisessa */
}
#carouselIndicators .carousel-item::-webkit-scrollbar { width: 5px; }
#carouselIndicators .carousel-item::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}
#carouselIndicators .carousel-item::-webkit-scrollbar-track { background-color: #f1f1f1; }

/*** PORTFOLIO ***/
#portfolio { 
  text-align: center; 
}
#portfolio .card-row {
  width: 100%;
  height: 100%;
  align-items: center;
  gap: 10px;
  display: inline-flex;
  flex-wrap: wrap;
}
#portfolio .card {
  background: linear-gradient(to right top, rgba(19, 19, 19, 0.6), rgba(24, 24, 24, 0.6), rgba(28, 28, 29, 0.6), rgba(32, 33, 34, 0.6), rgba(36, 38, 39, 0.6), rgba(32, 33, 34, 0.6), rgba(28, 28, 29, 0.6), rgba(24, 24, 24, 0.6), rgba(19, 19, 19, 0.6));
  color: var(--main-white-text);
  height: 400px;
  padding: 8px;
  border-radius: 10px;
  opacity: 0;
  box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.2);
  transition: box-shadow 0.3s ease;
  animation: slideTop 1s ease forwards;
  animation-delay: calc(.2s * var(--i));
}
#portfolio .card:hover {
  box-shadow: 0px 8px 16px rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}
#portfolio .card-img-top {
  border-radius: 10px;
}
#portfolio .card-title {
  font-size: 18px;
  color: var(--main-white-text);
  text-align: left;
  text-transform: uppercase;
}
#portfolio .card-text {
  text-align: left;
  color: var(--main-light-text);
  font-size: 14px!important;
}

/*** CONTACT ***/
#contact::before {
  position: absolute;
  content: '';
  background: radial-gradient(circle at 65% 15%, #F475A8 3%, #f06 60%, #990842 100%);
  --base-size: 50px;
  height: var(--base-size);
  width: var(--base-size);
  top: 342px;
  left: 93px;
  border-radius: 50%;
  z-index: 2;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 0.1s, 2.1s;
}
#contact::after {
  content: '';
  position: absolute;
  background: radial-gradient(circle at 65% 15%, #B975F4 3%, #581FA2 60%, #480899 100%);
  --base-size: 65px;
  height: var(--base-size);
  width: var(--base-size);
  top: 75px;
  left: 180px;
  border-radius: 50%;
  z-index: 1;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 0.7s, 1.1s;
}
#contact .container::before {
  position: absolute;
  content: '';
  background: radial-gradient(circle at 65% 15%, #A4F0A4 3%, #00FF00 60%, #089965 100%);
  --base-size: 60px;
  height: var(--base-size);
  width: var(--base-size);
  top: 380px;
  right: -100px;
  border-radius: 50%;
  z-index: 2;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 1.2s, 1.1s;
}
#contact .container::after {
  content: '';
  position: absolute;
  background: radial-gradient(circle at 65% 15%, #00D2FF 3%, #002FFF 60%, #084299 100%);
  --base-size: 40px;
  height: var(--base-size);
  width: var(--base-size);
  top: -60px;
  right: -226px;
  border-radius: 50%;
  animation: zoomIn 8s ease both, floatImage 8s ease-in-out infinite;
  animation-delay: 1.7s, 2.1s;
}
.contact-form {
  width: 80%;
  padding: 20px 30px;
  background: linear-gradient(to right top, rgba(19, 19, 19, 0.6), rgba(24, 24, 24, 0.6), rgba(28, 28, 29, 0.6), rgba(32, 33, 34, 0.6), rgba(36, 38, 39, 0.6), rgba(32, 33, 34, 0.6), rgba(28, 28, 29, 0.6), rgba(24, 24, 24, 0.6), rgba(19, 19, 19, 0.6));
  border-radius: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.3);
  z-index: 3;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.7s;
}
.contact-form p {
  opacity: 1;
  animation: none;
}
.contact-form .col-lg-6:nth-child(2) {
  background: linear-gradient(to right top, rgba(19, 19, 19, 0.6), rgba(24, 24, 24, 0.6), rgba(28, 28, 29, 0.6), rgba(32, 33, 34, 0.6), rgba(36, 38, 39, 0.6), rgba(32, 33, 34, 0.6), rgba(28, 28, 29, 0.6), rgba(24, 24, 24, 0.6), rgba(19, 19, 19, 0.6));
  box-shadow: 1px 1px 5px rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.contact-form .row-100 {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.contact-form .row-100 .col {
  position: relative;
  width: 100%;
  padding: 0 20px;
  margin: 30px 0 10px;
  transition: 0.5s;
}
.contact-form .row-100 .inputBox {
  position: relative;
  width: 100%;
  height: 35px;
  color: var(--main-light-text);
}
.contact-form .row-100 .inputBox input,
.contact-form .row-100 .inputBox.textarea textarea {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow: none;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 0 10px;
  color: #000;
  z-index: 1;
}
.contact-form .row-100 .inputBox .text {
  position: absolute;
  top: 0;
  left: 0;
  line-height: 40px;
  font-size: 16px;
  padding: 0 10px;
  display: block;
  transition: 0.5s;
  pointer-events: none;
}
.contact-form .row-100 .inputBox input:focus + .text,
.contact-form .row-100 .inputBox input:valid + .text {
  top: -35px;
  left: -10px;
}
.contact-form .row-100 .inputBox .line {
  position: absolute;
  bottom: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: var(--main-light-text);
  transition: 0.5s;
  border-radius: 10px;
  pointer-events: none;
}
.contact-form .row-100 .inputBox input:focus ~ .line,
.contact-form .row-100 .inputBox input:valid ~ .line {
  height: 100%;
}
.contact-form .row-100 .inputBox.textarea {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 10px 0;
}
.contact-form .row-100 .inputBox.textarea textarea {
  height: 100%;
  resize: none;
}
.contact-form .row-100 .inputBox textarea:focus + .text,
.contact-form .row-100 .inputBox textarea:valid + .text {
  top: -35px;
  left: -10px;
}
.contact-form .row-100 .inputBox textarea:focus ~ .line,
.contact-form .row-100 .inputBox textarea:valid ~ .line {
  height: 100%;
}
/* form-to-email.php */
.contact-response-title {
  display: flex;
  justify-content: center;
  margin-top: 220px;
  color: var(--pink-text);
  letter-spacing: 0.5px;
}
.contact-response-text {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}
.contact-response-link {
  text-decoration: underline;
}
/*** FOOTER ***/
footer {
  background: var(--footer-dark-bg);
  min-height: 80px;
}
.copyright {
  color: var(--main-light-text);
}

/* Keyframes Animation */
@keyframes slideTop {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideRight {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideLeft {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideBottom {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/*** MEDIA QUERIES ***/
@media only screen and (max-width: 365px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
  }
  .navbar {
    padding: 20px 35px;
  }
  .logo {
    margin-left: -24px;
    opacity: 1;
    animation: none;
  }
  .navbar-toggler {
    margin-right: -24px;
  }
  .navbar-nav .nav-link {
    animation: none;
  }
  .navbar-nav .nav-link.active {
    color: unset;
  }
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:active,
  .navbar-nav .nav-link:focus {
  color: var(--active-link-text);
  }
  h1 {
    font-size: 6.8vw!important;
    line-height: 22px!important;
    opacity: 1!important;
    animation: none!important;
  }
  h2 {
    opacity: 1!important;
    animation: none!important;
  }
  h3 {
    font-size: 5.5vw!important;
    line-height: 15px!important;
    opacity: 1!important;
    animation: none!important;
  }
  p {
    font-size: 4.2vw!important;
    opacity: 1!important;
    animation: none!important;
  }
  li {
    font-size: 4.2vw!important;
  }
  #home, #about .container, #skills, #portfolio, #contact {
    flex-direction: column;
    width: 100%;
    padding: 50px 12px 0 0;
  }
  .anim-btn-contact, .anim-btn-load, .anim-btn-read-more, .anim-btn-send-message {
    opacity: 1;
    animation: none;
  }
  /*** HOME ***/
  #home {
    position: relative;
    overflow: hidden;
    min-height: 156vh;
    max-height: 160vh;
    height: auto;
  }
  .ball-red, .ball-blue, .ball-violet {
    animation: none;
    display: none;
  }
  .home-content {
    position: relative;
    top: 8vh;
    order: 2;
    max-width: 82vw;
    min-height: 66vh;
    height: auto;
    padding-left: 0!important;
    margin-left: 0!important;
  }
  .home-content .content {
    margin-bottom: 60px;
    margin-left: -2px!important;
  }
  .home-content p {
    margin: 16px 0;
    max-height: 40vh;
    overflow: hidden; 
    transition: max-height 0.5s ease; /* Animoi muutokset */
  }
  .home-content p:nth-child(2) {
    margin-top: -3px!important;
  }
  .home-content input[name="read-more"] {
    display: none;
  }
  .home-content .more-text {
    position: relative;
    overflow: hidden;
    max-height: 58vh;
    margin-top: -8px!important;
    transition: 0.5s ease-in-out;
  }
  .home-content .more-text::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    transition: 0.5s ease-in-out;
  }
  .home-content .read-more-link {
    text-align: left;
    margin-top: -12px;
  }
  .home-content label {
    text-align: left;
    display: inline-block;
    width: 140px;
    position: relative;
    cursor: pointer;
    color: var(--pink-text);
    font-size: 3.8vw!important
  }
  .home-content label::before {
    content: attr(data-more);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .home-content input[name="read-more"]:checked ~ .content label::before {
    content: attr(data-less);
  }
  .home-content input[name="read-more"]:checked ~ .content .more-text {
    max-height: 52vh;
  }
  .home-content input[name="read-more"]:checked ~ .content .more-text::before {
    height: 0px;
  }
  #home .anim-btn-contact, #home .anim-btn-load {
    height: 40px;
  }
  #home .anim-btn-contact .glowing-edges span, #home .anim-btn-load .glowing-edges span {
    width: 160px;
    height: 160px;
  }
  #home .anim-btn-contact .glowing-edges .btn-bg, #home .anim-btn-load .glowing-edges .btn-bg {
    width: 122px!important;
    height: 36px!important;
  }
  #home .anim-btn-contact .btn-bg a, #home .anim-btn-load .btn-bg a {
    font-size: 3.8vw;
  }
  #home .anim-btn-contact, #home .anim-btn-load {
    margin-top: -2.5rem;
    margin-bottom: 10px;
    width: 236px;
    height: 40px;
  }
  #home .anim-btn-contact a, #home .anim-btn-load a {
    font-size: 3vw;
  }
  .right-col {
    position: relative;
    top: 8vh;
    order: 1;
    margin-left: 0!important;
  }
  .home-img {
    height: 300px;
    opacity: 1;
    animation: none;
  }
  .home-img .image {
   width: 300px; 
   height: 300px;
  }
  .home-img .image img.profile_blob {
    top: 0;
    max-width: 88.7vw;
  }
  /* .home-social-media {
    flex-direction: column;
    gap: 0px!important;
    position: absolute;
    top: 80px;
    right: -15px;
  }
  .home-social-media a {
    opacity: 1!important;
    animation: none!important;
  }
  .home-social-media a:nth-child(2) {
    top: -20px;
  } */
  /*** ABOUT ***/
  #about {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 238vh;
    height: auto;
  }
  #about::before, #about::after, #about .container::before, #about .container::after {
    animation: none;
    display: none;
  }
  #about .container {
    position: absolute;
    top: 0px;
    max-width: 93vw;
    padding: 0!important;
    align-items: center;
    margin: 0 10px!important;
  }
  #about .latest-card {
    position: absolute;
    top: 140vh;
    margin: 0 0 0 -2px;
    width: 93.4vw;
    height: 80vh;
    opacity: 1;
    animation: none!important;
  }
  #about .section-text {
    top: 8vh;
    display: flex;
    position: absolute;
    max-width: 88vw;
    padding-left: 10px!important;
  }
  #about .section-text p {
    padding-top: 0!important;
  }
  .latest-card-text {
    margin-left: -7px;
  }
  #about .anim-btn-load {
    top: 83vh;
  }
  /*** SKILLS ***/
  #skills {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 312vh;
    height: auto;
  }
  #skills .circles li {
    animation: none;
    display: none;
  }
  #skills .container {
    top: 6vh;
    max-width: 93vw;
    padding: 0 10px 0 10px!important;
    margin: 0!important;
  }
  #skills .container.section-text p {
    padding-top: 0!important;
  }
  .skill-boxes {
    flex-direction: column;
    margin-top: 10px!important;
  }
  #skills .box {
    animation: none;
    width: 236px;
  }
  #skills .circle-1, #skills .circle-2, #skills .circle-3, #skills .circle-4, #skills .circle-5 {
    animation-delay: 0.5s;
  }
  /* Skill carousel */
  #skillCarousel {
    top: 2%!important;
  }
  #skillCarousel .carousel-indicators {
    bottom: -64px;
}
  #carouselIndicators .carousel-item {
    padding: 0;
    margin-left: -10px;
    width: 89vw;
  }
  #skillCarousel .carousel-control-prev {
    left: -16px;
    align-items: end;
    bottom: -53px;
  } 
  #skillCarousel .carousel-control-next {
    right: -16px;
    align-items: end;
    bottom: -53px;
  }

  /*** PORTFOLIO ***/
  #portfolio {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 420vh;
    height: auto;
  }
  #portfolio .container {
    position: absolute;
    top: 8vh;
    max-width: 93vw;
    margin: 0!important;
  }
  #portfolio .card-row {
    flex-direction: column!important;
    position: relative;
    top: 38vh!important;
    margin-left: -4px;
    width: 86vw;
  }
  #portfolio .card {
    opacity: 1;
    animation: none;
    max-width: 94vw!important;
  }
  #portfolio .card:nth-child(2), #portfolio .card:nth-child(5), #portfolio .card:nth-child(7) {
    max-width: 342px;
  }
  #portfolio .card:nth-child(1) {
    height: 55vh;
  }
  #portfolio .card:nth-child(2) {
    height: 44vh;
  }
  #portfolio .card:nth-child(3), #portfolio .card:nth-child(4), #portfolio .card:nth-child(6) {
    height: 51vh;
  }
  #portfolio .card:nth-child(5), #portfolio .card:nth-child(7) {
    height: 53vh;
  }

  /*** CONTACT ***/
  #contact {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 180vh;
    height: auto;
  }
  #contact .container {
    position: absolute;
    top: 10vh;
    max-width: 94vw;
    margin: 0 -2px!important;
    padding: 0;
  }
  #contact::before {
    animation: none;
    display: none;
  }
  #contact::after {
    animation: none;
    display: none;
  }
  #contact .container::before {
    animation: none;
    display: none;
  }
  #contact .container::after {
    animation: none;
    display: none;
  }
  #contact .contact-form {
    flex-direction: column;
    width: 94vw;
    padding: 20px;
  }
  #contact .contact-form h5 {
    margin-top: 5px;
  }
  #contact .contact-form p:nth-child(1) {
    margin-top: 8px!important;
  }
  #contact .contact-form .col-lg-6:nth-child(2) {
    display: flex;
    flex-direction: column;
    width: 86vw;
    height: 69vh;
    margin: 5px -6px;
  }
  #contact .contact-form .row-100 .anim-btn-send-message {
    margin-top: -2vh;
    margin-bottom: 5vh;
  }
  /*** FOOTER ***/
  footer {
    padding-top: 20px!important;
  }
}
@media only screen and (min-width: 366px) and (max-width: 419px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
  }
  .navbar {
    padding: 20px 35px;
  }
  .logo {
    margin-left: -24px;
    opacity: 1;
    animation: none;
  }
  .navbar-toggler {
    margin-right: -24px;
  }
  .navbar-nav .nav-link {
    animation: none;
  }
  .navbar-nav .nav-link.active {
    color: unset;
  }
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:active,
  .navbar-nav .nav-link:focus {
  color: var(--active-link-text);
  }
  h1 {
    font-size: 6.8vw!important;
    line-height: 24px!important;
    opacity: 1!important;
    animation: none!important;
  }
  h2 {
    opacity: 1!important;
    animation: none!important;
  }
  h3 {
    font-size: 5.5vw!important;
    line-height: 18px!important;
    opacity: 1!important;
    animation: none!important;
  }
  p {
    font-size: 3.8vw!important;
    opacity: 1!important;
    animation: none!important;
  }
  li {
    font-size: 3.8vw!important;
  }
  #home, #about .container, #skills, #portfolio, #contact {
    flex-direction: column;
    width: 100%;
    padding: 50px 12px 0 0;
  }
  .anim-btn-contact, .anim-btn-load, .anim-btn-read-more, .anim-btn-send-message {
    opacity: 1;
    animation: none;
  }
  /*** HOME ***/
  #home {
    position: relative;
    overflow: hidden;
    min-height: 150vh;
    max-height: 156vh;
    height: auto;
  }
  .ball-red, .ball-blue, .ball-violet {
    animation: none;
    display: none;
  }
  .home-content {
    position: relative;
    order: 2;
    max-width: 82vw;
    min-height: 66vh;
    height: auto;
    padding-left: 0!important;
    margin-left: 0!important;
  }
  .home-content .content {
    margin-bottom: 60px;
  }
  .home-content p {
    margin: 16px 0;
    max-height: 40vh;
    overflow: hidden; 
    transition: max-height 0.5s ease; /* Animoi muutokset */
  }
  .home-content p:nth-child(2) {
    margin-top: -3px!important;
  }
  .home-content input[name="read-more"] {
    display: none;
  }
  .home-content .more-text {
    position: relative;
    overflow: hidden;
    max-height: 58vh;
    margin-top: -8px!important;
    transition: 0.5s ease-in-out;
  }
  .home-content .more-text::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    transition: 0.5s ease-in-out;
  }
  .home-content .read-more-link {
    text-align: left;
    margin-top: -12px;
  }
  .home-content label {
    text-align: left;
    display: inline-block;
    width: 140px;
    position: relative;
    cursor: pointer;
    color: var(--pink-text);
    font-size: 3.8vw!important
  }
  .home-content label::before {
    content: attr(data-more);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .home-content input[name="read-more"]:checked ~ .content label::before {
    content: attr(data-less);
  }
  .home-content input[name="read-more"]:checked ~ .content .more-text {
    max-height: 52vh;
  }
  .home-content input[name="read-more"]:checked ~ .content .more-text::before {
    height: 0px;
  }
  #home .anim-btn-contact, #home .anim-btn-load {
    height: 40px;
  }
  #home .anim-btn-contact .glowing-edges span, #home .anim-btn-load .glowing-edges span {
    width: 170px;
    height: 170px;
  }
  #home .anim-btn-contact .glowing-edges .btn-bg, #home .anim-btn-load .glowing-edges .btn-bg {
    width: 146px!important;
    height: 36px!important;
  }
  #home .anim-btn-contact .btn-bg a, #home .anim-btn-load .btn-bg a {
    font-size: 3.5vw;
  }
  #home .anim-btn-contact, #home .anim-btn-load {
    margin-top: -2.5rem;
    margin-bottom: 10px;
    width: 236px;
    height: 40px;
  }
  #home .anim-btn-contact a, #home .anim-btn-load a {
    font-size: 3vw;
  }
  .right-col {
    position: relative;
    top: 8vh;
    order: 1;
    margin-left: 0!important;
  }
  .home-img {
    opacity: 1;
    animation: none;
  }
  .home-img .image img.profile_blob {
    top: 0;
    max-width: 88.7vw;
  }
  /*** ABOUT ***/
  #about {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 210vh;
    height: auto;
  }
  #about::before, #about::after, #about .container::before, #about .container::after {
    animation: none;
    display: none;
  }
  #about .container {
    position: absolute;
    top: 0px;
    max-width: 93vw;
    padding: 0!important;
    align-items: center;
    margin: 0 10px!important;
  }
  #about .latest-card {
    position: absolute;
    top: 111vh;
    margin: 0 0 0 -2px;
    width: 93.4vw;
    height: 72vh;
    opacity: 1;
    animation: none!important;
  }
  #about .section-text {
    top: 8vh;
    display: flex;
    position: absolute;
    max-width: 88vw;
    padding-left: 10px!important;
  }
  #about .section-text p {
    padding-top: 0!important;
  }
  .latest-card-text {
    margin-left: -7px;
  }
  #about .anim-btn-load {
    top: 76vh;
  }
  /*** SKILLS ***/
  #skills {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 270vh;
    height: auto;
  }
  #skills .circles li {
    animation: none;
    display: none;
  }
  #skills .container {
    top: 6vh;
    max-width: 93vw;
    padding: 0 10px 0 10px!important;
    margin: 0!important;
  }
  #skills .container.section-text p {
    padding-top: 0!important;
  }
  .skill-boxes {
    flex-direction: column;
    margin-top: 10px!important;
  }
  #skills .box {
    animation: none;
    width: 236px;
  }
  #skills .circle-1, #skills .circle-2, #skills .circle-3, #skills .circle-4, #skills .circle-5 {
    animation-delay: 0.5s;
  }
  /* Skill carousel */
  #skillCarousel {
    top: 2%!important;
  }
  #skillCarousel .carousel-indicators {
    bottom: -64px;
}
  #carouselIndicators .carousel-item {
    padding: 0;
    margin-left: -10px;
    width: 89vw;
  }
  #skillCarousel .carousel-control-prev {
    left: -16px;
    align-items: end;
    bottom: -53px;
  } 
  #skillCarousel .carousel-control-next {
    right: -16px;
    align-items: end;
    bottom: -53px;
  }

  /*** PORTFOLIO ***/
  #portfolio {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 610vh;
    height: auto;
  }
  #portfolio .container {
    position: absolute;
    top: 8vh;
    max-width: 93vw;
    margin: 0!important;
  }
  #portfolio .card-row {
    flex-direction: column!important;
    position: relative;
    top: 32vh!important;
  }
  #portfolio .card-title {
      font-size: 16px!important;
  }
  #portfolio .card {
    opacity: 1;
    animation: none;
    width: 100%!important;
    max-width: 94vw!important;
    height: 44vh;
  }
  /*** CONTACT ***/
  #contact {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 168vh;
    height: auto;
  }
  #contact .container {
    position: absolute;
    top: 10vh;
    max-width: 94vw;
    margin: 0 -2px!important;
    padding: 0;
  }
  #contact::before {
    animation: none;
    display: none;
  }
  #contact::after {
    animation: none;
    display: none;
  }
  #contact .container::before {
    animation: none;
    display: none;
  }
  #contact .container::after {
    animation: none;
    display: none;
  }
  #contact .contact-form {
    flex-direction: column;
    width: 94vw;
    padding: 20px;
  }
  #contact .contact-form h5 {
    margin-top: 5px;
  }
  #contact .contact-form p:nth-child(1) {
    margin-top: 8px!important;
  }
  #contact .contact-form .col-lg-6:nth-child(2) {
    display: flex;
    flex-direction: column;
    width: 86vw;
    height: 62vh;
    margin: 5px -6px;
  }
  #contact .contact-form .row-100 .anim-btn-send-message {
    margin-top: -2vh;
    margin-bottom: 5vh;
  }
  /*** FOOTER ***/
  footer {
    padding-top: 20px!important;
  }
}
@media only screen and (min-width: 420px) and (max-width: 575px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
  }
  .navbar {
    padding: 20px 35px;
  }
  .logo {
    margin-left: -24px;
    opacity: 1;
    animation: none;
  }
  .navbar-toggler {
    margin-right: -24px;
  }
  .navbar-nav .nav-link {
    animation: none;
  }
  .navbar-nav .nav-link.active {
    color: unset;
  }
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:active,
  .navbar-nav .nav-link:focus {
  color: var(--active-link-text);
  }
  h1 {
    font-size: 6.8vw!important;
    line-height: 34px!important;
    opacity: 1!important;
    animation: none!important;
  }
  h2 {
    opacity: 1!important;
    animation: none!important;
  }
  h3 {
    font-size: 5.5vw!important;
    line-height: 28px!important;
    opacity: 1!important;
    animation: none!important;
  }
  p {
    font-size: 2.8vw!important;
    opacity: 1!important;
    animation: none!important;
  }
  li {
    font-size: 2.8vw!important;
  }
  #home, #about .container, #skills, #portfolio, #contact {
    flex-direction: column;
    width: 100%;
    padding: 50px 12px 0 0;
  }
  .anim-btn-contact, .anim-btn-load, .anim-btn-read-more, .anim-btn-send-message {
    opacity: 1;
    animation: none;
  }
  /*** HOME ***/
  #home {
    position: relative;
    overflow: hidden;
    min-height: 135vh;
    max-height: 140vh;
    height: auto;
  }
  .ball-red, .ball-blue, .ball-violet {
    animation: none;
    display: none;
  }
  .home-content {
    position: relative;
    top: 8vh;
    order: 2;
    max-width: 82vw;
    min-height: 66vh;
    height: auto;
    padding-left: 0!important;
    margin-left: 0!important;
  }
  .home-content .content {
    margin-bottom: 60px;
  }
  .home-content h3.text-uppercase.pt-2 {
    margin-top: 2vh;
  }
  .home-content p {
    margin: 16px 0;
    max-height: 40vh;
    overflow: hidden; 
    transition: max-height 0.5s ease; /* Animoi muutokset */
  }
  .home-content p:nth-child(2) {
    margin-top: -3px!important;
  }
  .home-content input[name="read-more"] {
    display: none;
  }
  .home-content .more-text {
    position: relative;
    overflow: hidden;
    max-height: 58vh;
    margin-top: -8px!important;
    transition: 0.5s ease-in-out;
  }
  .home-content .more-text::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    transition: 0.5s ease-in-out;
  }
  .home-content .read-more-link {
    text-align: left;
    margin-top: -12px;
  }
  .home-content label {
    text-align: left;
    display: inline-block;
    width: 140px;
    position: relative;
    cursor: pointer;
    color: var(--pink-text);
    font-size: 3.8vw!important
  }
  .home-content label::before {
    content: attr(data-more);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .anim-btn-contact .glowing-edges .btn-bg, .anim-btn-load .glowing-edges .btn-bg {
    width: 220px;
  }
  #home .anim-btn-contact .btn-bg a, #home .anim-btn-load .btn-bg a {
    font-size: 2.8vw;
  }
  #home .anim-btn-contact, #home .anim-btn-load {
    margin-top: -2.5rem;
  }
  #home .anim-btn-contact a, #home .anim-btn-load a {
    font-size: 3vw;
  }
  .right-col {
    position: relative;
    top: 8vh;
    order: 1;
    margin-left: 0!important;
  }
  .home-img {
    opacity: 1;
    animation: none;
  }
  .home-img .image img.profile_blob {
    top: 0;
    max-width: 88.7vw;
  }
  /*** ABOUT ***/
  #about {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 178vh;
    height: auto;
  }
  #about::before, #about::after, #about .container::before, #about .container::after {
    animation: none;
    display: none;
  }
  #about .container {
    position: absolute;
    top: 0px;
    max-width: 93vw;
    padding: 0!important;
    align-items: center;
    margin: 0 10px!important;
  }
  #about .latest-card {
    position: absolute;
    top: 85vh;
    width: 88vw;
    height: 60vh;
    opacity: 1;
    animation: none!important;
  }
  #about .section-text {
    top: 8vh;
    display: flex;
    position: absolute;
    max-width: 88vw;
    padding-left: 20px!important;
  }
  #about .section-text p {
    padding-top: 0!important;
  }
  #about .anim-btn-load {
    top: 64vh;
  }
  /*** SKILLS ***/
  #skills {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 165vh;
    height: auto;
  }
  #skills .circles li {
    animation: none;
    display: none;
  }
  #skills .container {
    top: 6vh;
    max-width: 93vw;
    padding: 0 20px!important;
    margin: 0!important;
  }
  #skills .container.section-text p {
    padding-top: 0!important;
  }
  .skill-boxes {
    margin-top: 10px!important;
    flex-wrap: wrap;
  }
  #skills .box {
    animation: none;
    width: 236px;
  }
  #skills .circle-1, #skills .circle-2, #skills .circle-3, #skills .circle-4, #skills .circle-5 {
    animation-delay: 0.5s;
  }
  /* Skill carousel */
  #skillCarousel {
    top: 2%!important;
  }
  #skillCarousel .carousel-indicators {
    bottom: -64px;
}
  #carouselIndicators .carousel-item {
    padding: 0;
    margin-left: -10px;
    width: 89vw;
  }
  #skillCarousel .carousel-control-prev {
    left: -16px;
    align-items: end;
    bottom: -53px;
  } 
  #skillCarousel .carousel-control-next {
    right: -16px;
    align-items: end;
    bottom: -53px;
  }

  /*** PORTFOLIO ***/
  #portfolio {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 578vh;
    height: auto;
  }
  #portfolio .container {
    position: absolute;
    top: 8vh;
    max-width: 93vw;
    margin: 0!important;
  }
  #portfolio .card-row {
    flex-direction: column!important;
    position: relative;
    top: 29vh!important;
    margin-left: -4px;
    width: 96vw;
  }
  #portfolio .card-title {
      font-size: 16px!important;
  }
  #portfolio .card {
    opacity: 1;
    animation: none;
    width: 80%!important;
    max-width: 94vw!important;
    height: 44vh;
  }
  /*** CONTACT ***/
  #contact {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 147vh;
    height: auto;
  }
  #contact .container {
    position: absolute;
    top: 10vh;
    max-width: 94vw;
    padding: 0;
  }
  #contact::before {
    animation: none;
    display: none;
  }
  #contact::after {
    animation: none;
    display: none;
  }
  #contact .container::before {
    animation: none;
    display: none;
  }
  #contact .container::after {
    animation: none;
    display: none;
  }
  #contact .contact-form {
    flex-direction: column;
    width: 97%;
    padding: 20px;
  }
  #contact .contact-form h5 {
    margin-top: 5px;
  }
  #contact .contact-form p:nth-child(1) {
    margin-top: 8px!important;
  }
  #contact .contact-form .col-lg-6:nth-child(2) {
    display: flex;
    flex-direction: column;
    width: 86vw;
    height: 58vh;
    margin: 5px -6px;
  }
  #contact .contact-form .row-100 .anim-btn-send-message {
    margin-top: -2vh;
    margin-bottom: 5vh;
  }
  /*** FOOTER ***/
  footer {
    padding-top: 20px!important;
  }
}
@media only screen and (min-width: 576px) and (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
  }
  .navbar {
    padding: 20px 35px;
  }
  .logo {
    margin-left: -24px;
    opacity: 1;
    animation: none;
  }
  .navbar-toggler {
    margin-right: -24px;
  }
  .navbar-nav .nav-link {
    animation: none;
  }
  .navbar-nav .nav-link.active {
    color: unset;
  }
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:active,
  .navbar-nav .nav-link:focus {
  color: var(--active-link-text);
  }
  h1 {
    font-size: 6.8vw!important;
    line-height: 48px!important;
    opacity: 1!important;
    animation: none!important;
  }
  h2 {
    opacity: 1!important;
    animation: none!important;
  }
  h3 {
    font-size: 5.5vw!important;
    line-height: 38px!important;
    opacity: 1!important;
    animation: none!important;
  }
  p {
    font-size: 16px!important;
    opacity: 1!important;
    animation: none!important;
  }
  li {
    font-size: 16px!important;
  }
  #home, #about .container, #skills, #portfolio, #contact {
    flex-direction: column;
    width: 100%;
    padding: 50px 12px 0 0;
  }
  .anim-btn-contact, .anim-btn-load, .anim-btn-read-more, .anim-btn-send-message {
    opacity: 1;
    animation: none;
  }
  /*** HOME ***/
  #home {
    position: relative;
    overflow: hidden;
    min-height: 135vh;
    max-height: 140vh;
    height: auto;
  }
  .ball-red, .ball-blue, .ball-violet {
    animation: none;
    display: none;
  }
  .home-content {
    position: relative;
    top: 8vh;
    order: 2;
    max-width: 82vw;
    min-height: 66vh;
    height: auto;
    padding-left: 0!important;
    margin-left: 0!important;
  }
  .home-content .content {
    margin-bottom: 60px;
  }
  .home-content h3.text-uppercase.pt-2 {
    margin-top: 2vh;
  }
  .home-content p {
    margin: 16px 0;
    max-height: 40vh;
    overflow: hidden; 
    transition: max-height 0.5s ease; /* Animoi muutokset */
  }
  .home-content p:nth-child(2) {
    margin-top: -3px!important;
  }
  .home-content input[name="read-more"] {
    display: none;
  }
  .home-content .more-text {
    position: relative;
    overflow: hidden;
    max-height: 58vh;
    margin-top: -8px!important;
    transition: 0.5s ease-in-out;
  }
  .home-content .more-text::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    transition: 0.5s ease-in-out;
  }
  .home-content .read-more-link {
    text-align: left;
    margin-top: -12px;
  }
  .home-content label {
    text-align: left;
    display: inline-block;
    width: 140px;
    position: relative;
    cursor: pointer;
    color: var(--pink-text);
    font-size: 3.8vw!important
  }
  .home-content label::before {
    content: attr(data-more);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .anim-btn-contact .glowing-edges .btn-bg, .anim-btn-load .glowing-edges .btn-bg {
    width: 220px;
  }
  #home .anim-btn-contact .btn-bg a, #home .anim-btn-load .btn-bg a {
    font-size: 16px;
  }
  #home .anim-btn-contact, #home .anim-btn-load {
    margin-top: -2.5rem;
  }
  #home .anim-btn-contact a, #home .anim-btn-load a {
    font-size: 3vw;
  }
  .right-col {
    position: relative;
    top: 8vh;
    order: 1;
    margin-left: 0!important;
  }
  .home-img {
    opacity: 1;
    animation: none;
  }
  .home-img .image img.profile_blob {
    top: 0;
    max-width: 88.7vw;
  }
  /*** ABOUT ***/
  #about {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 144vh;
    height: auto;
  }
  #about::before, #about::after, #about .container::before, #about .container::after {
    animation: none;
    display: none;
  }
  #about .container {
    position: absolute;
    top: 0px;
    max-width: 93vw;
    padding: 0!important;
    align-items: center;
    margin: 0 10px!important;
  }
  #about .latest-card {
    position: absolute;
    top: 70vh;
    width: 88vw;
    height: 52vh;
    opacity: 1;
    animation: none!important;
  }
  #about .latest-card-text p {
    font-size: 16px;
}
  #about .section-text {
    top: 8vh;
    display: flex;
    position: absolute;
    max-width: 88vw;
    padding-left: 20px!important;
  }
  #about .section-text p {
    padding-top: 0!important;
    padding-left: 10px;
  }
  #about .anim-btn-load {
    top: 58vh;
  }
  /*** SKILLS ***/
  #skills {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 165vh;
    height: auto;
  }
  #skills .circles li {
    animation: none;
    display: none;
  }
  #skills .container {
    top: 6vh;
    max-width: 93vw;
    padding: 0 20px!important;
    margin: 0!important;
  }
  #skills .container.section-text p {
    padding-top: 0!important;
    padding-left: 10px;
  }
  .skill-boxes {
    margin-top: 10px!important;
    flex-wrap: wrap;
  }
  #skills .box {
    animation: none;
    width: 236px;
  }
  #skills .circle-1, #skills .circle-2, #skills .circle-3, #skills .circle-4, #skills .circle-5 {
    animation-delay: 0.5s;
  }
  /* Skill carousel */
  #skillCarousel {
    top: 2%!important;
  }
  #skillCarousel .carousel-indicators {
    bottom: -64px;
}
  #carouselIndicators .carousel-item {
    padding: 0;
    margin-left: -10px;
    width: 89vw;
  }
  #skillCarousel .carousel-control-prev {
    left: -16px;
    align-items: end;
    bottom: -53px;
  } 
  #skillCarousel .carousel-control-next {
    right: -16px;
    align-items: end;
    bottom: -53px;
  }

  /*** PORTFOLIO ***/
  #portfolio {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 705vh;
    height: auto;
  }
  #portfolio .container {
    position: absolute;
    top: 8vh;
    max-width: 93vw;
    margin: 0!important;
  }
  #portfolio .section-text p {
    padding-left: 12px;
  }
  #portfolio .card-row {
    flex-direction: column!important;
    position: relative;
    top: 29vh!important;
    margin-left: 8px;
    width: 95vw;
  }
  #portfolio .card-title {
      font-size: 16px!important;
  }
  #portfolio .card {
    opacity: 1;
    animation: none;
    width: 80%!important;
    max-width: 94vw!important;
    height: 44vh;
  }
  /*#portfolio .card:nth-child(1) {
    height: 69vh;
  }
  #portfolio .card:nth-child(2) {
    height: 54vh;
  }
  #portfolio .card:nth-child(3), #portfolio .card:nth-child(4), #portfolio .card:nth-child(6) {
    height: 68vh;
  }
  #portfolio .card:nth-child(5), #portfolio .card:nth-child(7) {
    height: 56vh;
  }*/

  /*** CONTACT ***/
  #contact {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 136vh;
    height: auto;
  }
  #contact .container {
    position: absolute;
    top: 10vh;
    max-width: 94vw;
    padding: 0;
  }
  #contact::before {
    animation: none;
    display: none;
  }
  #contact::after {
    animation: none;
    display: none;
  }
  #contact .container::before {
    animation: none;
    display: none;
  }
  #contact .container::after {
    animation: none;
    display: none;
  }
  #contact .contact-form {
    flex-direction: column;
    width: 95%;
    padding: 20px;
    margin-left: 12px;
  }
  #contact .contact-form h5 {
    margin-top: 5px;
  }
  #contact .contact-form p:nth-child(1) {
    margin-top: 8px!important;
  }
  #contact .contact-form .col-lg-6:nth-child(1) {
    padding: 12px 15px;
  }
  #contact .contact-form .col-lg-6:nth-child(2) {
    display: flex;
    padding: 15px;
    flex-direction: column;
    width: 82vw;
    height: 58vh;
    margin: 5px 8px;
  }
  #contact .contact-form .row-100 .anim-btn-send-message {
    margin-top: 1vh;
    margin-bottom: 5vh;
  }
  /*** FOOTER ***/
  footer {
    padding-top: 20px!important;
  }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
  }
  .navbar {
    padding: 20px 35px;
  }
  .logo {
    margin-left: -24px;
    opacity: 1;
    animation: none;
  }
  .navbar-toggler {
    margin-right: -24px;
  }
  .navbar-nav .nav-link {
    animation: none;
  }
  .navbar-nav .nav-link.active {
    color: unset;
  }
  .navbar-nav .nav-link.active,
  .navbar-nav .nav-link:active,
  .navbar-nav .nav-link:focus {
  color: var(--active-link-text);
  }
  h1 {
    font-size: 6.8vw!important;
    line-height: 58px!important;
    width: 55vw;
    opacity: 1!important;
    animation: none!important;
  }
  h2 {
    margin-bottom: 13px;
    opacity: 1!important;
    animation: none!important;
  }
  h3 {
    font-size: 4.2vw!important;
    line-height: 38px!important;
    width: 55vw;
    opacity: 1!important;
    animation: none!important;
  }
  p {
    font-size: 16px!important;
    opacity: 1!important;
    animation: none!important;
  }
  li {
    font-size: 16px!important;
  }
  #home, #about .container, #skills, #portfolio, #contact {
    width: 100%;
    padding: 50px 12px 0 0;
  }
  .anim-btn-contact, .anim-btn-load, .anim-btn-read-more, .anim-btn-send-message {
    top: 2vh;
    opacity: 1;
    animation: none;
  }
  /*** HOME ***/
  #home {
    position: relative;
    overflow: hidden;
    min-height: 102vh;
    max-height: 140vh;
    height: auto;
  }
  .ball-red, .ball-blue, .ball-violet {
    animation: none;
    display: none;
  }
  .home-content {
    position: relative;
    top: 20px;
    width: 83vw;
    min-height: 66vh;
    height: auto;
    padding-left: 0!important;
    margin-left: -20px!important;
  }
  .home-content .content {
    margin-bottom: 60px;
    width: 83vw;
  }
  .home-content h3.text-uppercase.pt-2 {
    margin-top: 2vh;
  }
  .home-content p {
    margin: 25px 0;
    max-height: 40vh;
    overflow: hidden; 
    transition: max-height 0.5s ease; /* Animoi muutokset */
  }
  .home-content p:nth-child(2) {
    margin-top: -3px!important;
  }
  .home-content input[name="read-more"] {
    display: none;
  }
  .home-content .more-text {
    position: relative;
    overflow: hidden;
    max-height: 58vh;
    margin-top: 5px!important;
    transition: 0.5s ease-in-out;
  }
  .home-content .more-text::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    transition: 0.5s ease-in-out;
  }
  .home-content .read-more-link {
    text-align: left;
    margin-top: -12px;
  }
  .home-content label {
    text-align: left;
    display: inline-block;
    width: 140px;
    position: relative;
    cursor: pointer;
    color: var(--pink-text);
    font-size: 3.8vw!important
  }
  .home-content label::before {
    content: attr(data-more);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .anim-btn-contact .glowing-edges .btn-bg, .anim-btn-load .glowing-edges .btn-bg {
    width: 230px;
  }
  #home .anim-btn-contact .btn-bg a, #home .anim-btn-load .btn-bg a {
    font-size: 16px;
  }
  #home .anim-btn-contact, #home .anim-btn-load {
    margin-top: -2.5rem;
  }
  #home .anim-btn-contact a, #home .anim-btn-load a {
    font-size: 3vw;
  }
  .right-col {
    position: relative;
    margin-left: 0!important;
    top: -162px;
    right: 355px;
  }
  .home-img {
    opacity: 1;
    animation: none;
    height: 44vh;
  }
  .home-img .image img.profile_blob {
    top: 0;
    max-width: 88.7vw;
  }
  /*** ABOUT ***/
  #about {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 130vh;
    height: auto;
  }
  #about::before, #about::after, #about .container::before, #about .container::after {
    animation: none;
    display: none;
  }
  #about .container {
    position: absolute;
    top: 0px;
    max-width: 93vw;
    padding: 0!important;
    align-items: center;
    margin: 0 10px!important;
  }
  #about .latest-card {
    position: absolute;
    top: 60vh;
    width: 85vw;
    height: 42vh;
    margin-left: 32px;
    opacity: 1;
    animation: none!important;
  }
  #about .latest-card-text p {
    font-size: 16px;
}
  #about .section-text {
    top: 8vh;
    display: flex;
    position: absolute;
    max-width: 86vw;
    padding-left: 34px!important;
  }
  #about .section-text p {
    padding-top: 10px!important;
    padding-left: 10px;
  }
  #about .anim-btn-load {
    top: 50vh;
  }
  /*** SKILLS ***/
  #skills {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 136vh;
    height: auto;
  }
  #skills .circles li {
    animation: none;
    display: none;
  }
  #skills .container {
    top: 6vh;
    max-width: 93vw;
    padding: 0 20px!important;
    margin: 0!important;
  }
  #skills .container.section-text p {
    padding-top: 0!important;
    padding-left: 34px!important;
    max-width: 86vw;
  }
  .skill-boxes {
    margin-top: 10px!important;
    flex-wrap: wrap;
  }
  #skills .box {
    animation: none;
    width: 236px;
  }
  #skills .circle-1, #skills .circle-2, #skills .circle-3, #skills .circle-4, #skills .circle-5 {
    animation-delay: 0.5s;
  }
  /* Skill carousel */
  #skillCarousel {
    top: 2%!important;
  }
  #skillCarousel .carousel-indicators {
    bottom: -64px;
}
  #carouselIndicators .carousel-item {
    padding: 0;
    margin-left: -10px;
    width: 89vw;
  }
  #skillCarousel .carousel-control-prev {
    left: -16px;
    align-items: end;
    bottom: -53px;
  } 
  #skillCarousel .carousel-control-next {
    right: -16px;
    align-items: end;
    bottom: -53px;
  }

  /*** PORTFOLIO ***/
  #portfolio {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 440vh;
    height: auto;
  }
  #portfolio .container {
    position: absolute;
    top: 8vh;
    padding-left: 34px!important;
    max-width: 86vw;
    margin: 0!important;
  }
  #portfolio .section-text p {
    padding-left: 12px;
  }
  #portfolio .card-row {
    position: relative;
    top: 24vh!important;
    margin-left: 14px;
    width: 93vw;
  }
  #portfolio .card-title {
      font-size: 16px!important;
  }
  #portfolio .card {
    opacity: 1;
    animation: none;
    width: 45%!important;
    max-width: 94vw!important;
    height: 44vw;
  }
  /*** CONTACT ***/
  #contact {
    position: relative;
    overflow: hidden;
    padding: 12px;
    min-height: 122vh;
    max-height: 128vh;
    height: auto;
  }
  #contact .container {
    position: absolute;
    top: 10vh;
    max-width: 94vw;
    padding: 0;
  }
  #contact::before {
    animation: none;
    display: none;
  }
  #contact::after {
    animation: none;
    display: none;
  }
  #contact .container::before {
    animation: none;
    display: none;
  }
  #contact .container::after {
    animation: none;
    display: none;
  }
  #contact .contact-form {
    flex-direction: column;
    width: 92%;
    padding: 20px;
    margin-left: 12px;
  }
  #contact .contact-form h5 {
    margin-top: 5px;
  }
  #contact .contact-form p:nth-child(1) {
    margin-top: 8px!important;
  }
  #contact .contact-form .col-lg-6:nth-child(1) {
    padding: 12px 15px;
  }
  #contact .contact-form .col-lg-6:nth-child(2) {
    display: flex;
    padding: 15px;
    flex-direction: column;
    width: 77vw;
    min-height: 46vh;
    max-height: 54vh;
    margin: 5px 19px;
  }
  #contact .contact-form .row-100 .anim-btn-send-message {
    margin-top: 1vh;
    margin-bottom: 5vh;
  }
  /*** FOOTER ***/
  footer {
    padding-top: 20px!important;
  }
}
@media only screen and (min-width: 992px) and (max-width: 1023px) {
  p {
    font-size: 14px!important;
  }
  .logo {
    margin-left: -24px;
  }
  #home .ball-red {
    --base-size: 40px;
    top: 110px;
    left: 85px;
  }
  #home .ball-blue {
    --base-size: 33px;
    top: 350px;
    left: 100px;
  }
  #home .ball-violet {
    --base-size: 25px;
    top: 266px;
    left: 26px;
  }
  .home-content {
    width: 80vw;
    padding-left: 0!important;
    margin-top: 20px;
    margin-left: 0!important;
  }
  .home-content .content {
    width: 80vw;
  }
  .home-content h1 {
    width: 53vw;
  }
  .home-content h3 {
    width: 53vw;
  }
  .home-content p {
    font-size: 14px;
  }
  .home-content .more-text {
    max-width: 71vw;
  }
  #home .right-col {
    position: relative;
    right: 300px;
  }
  #home .home-img {
    top: -120px;
    right: 160px
  }
  #home .home-img img {
    max-width: 36vw;
  }
  /*** ABOUT ***/
  #about::after {
    --base-size: 45px;
    left: 50px;
  }
  #about::before {
    --base-size: 30px;
    left: -15px;
    top: 300px;
  }
  #about .container::before {
    --base-size: 30px;
    left: 280px;
    top: 654px;
  }
  #about .container::after {
    --base-size: 20px;
    top: 682px;
  }
  #about .latest-card {
    margin: 30px -65px;
    width: 342px;
  }
  #about .section-text {
    width: 72%;
    padding-left: 98px!important;
  }
  /*** SKILLS ***/
  #skills .skill-boxes {
    flex-wrap: wrap;
  }
  #skills .skill-boxes .box {
    max-width: 236px;
  }
  /*** PORTFOLIO ***/
  #portfolio .card-row .card:nth-child(1), #portfolio .card-row .card:nth-child(2), #portfolio .card-row .card:nth-child(3), #portfolio .card-row .card:nth-child(4), #portfolio .card-row .card:nth-child(5), 
  #portfolio .card-row .card:nth-child(6), #portfolio .card-row .card:nth-child(7), #portfolio .card-row .card:nth-child(8),#portfolio .card-row .card:nth-child(9), #portfolio .card-row .card:nth-child(10), 
  #portfolio .card-row .card:nth-child(11), #portfolio .card-row .card:nth-child(12) {
    width: 370px!important;
    height: 370px;
  }
  /*** CONTACT ***/
  #contact::after {
    --base-size: 40px;
    top: 105px;
    left: 73px;
  }
  #contact::before {
    --base-size: 30px;
    top: 330px;
    left: 53px;
  }
  #contact .container::before {
    --base-size: 40px;
    top: 505px;
    right: -100px;
  }
  #contact .container::after {
    --base-size: 30px;
    top: 0;
    right: -94px;
  }
  #contact .contact-form {
    width: 100%;
  }
}
@media only screen and (min-width: 1024px) and (max-width: 1199px) {
  p {
    font-size: 14px!important;
  }
  .logo {
    margin-left: -24px;
  }
  /*** HOME ***/
  #home .ball-red {
    --base-size: 40px;
    top: 110px;
    left: 85px;
  }
  #home .ball-blue {
    --base-size: 33px;
    top: 350px;
    left: 100px;
  }
  #home .ball-violet {
    --base-size: 25px;
    top: 266px;
    left: 26px;
  }
  .home-content {
    width: 80vw;
    margin-top: 20px;
    padding-left: 0!important;
    margin-left: 0!important;
  }
  .home-content .content {
    width: 80vw;
  }
  .home-content h1 {
    width: 46vw;
  }
  .home-content h3 {
    width: 55vw;
  }
  .home-content .more-text {
    max-width: 61vw;
  }
  #home .right-col {
    position: relative;
    right: 440px;
    top: -100px;
  }
  #home .home-img {
    margin-top: 20px;
    right: 52px;
  }
  #home .home-img img {
    max-width: 380px;
  }
  /*** ABOUT ***/
  #about::after {
    --base-size: 45px;
    top: 88px;
    left: 50px;
  }
  #about::before {
    --base-size: 30px;
    left: -15px;
    top: 300px;
  }
  #about .container::before {
    --base-size: 30px;
    left: 308px;
    top: 654px;
  }
  #about .container::after {
    --base-size: 22px;
    top: 682px;
  }
  #about .latest-card {
    margin: 30px -65px;
    width: 342px;
  }
  #about .section-text {
    width: 72%;
    padding-left: 102px!important;
  }
  #about .anim-btn-load {
    top: 5px;
  }
  /*** SKILLS ***/
  #skills .skill-boxes {
    flex-wrap: wrap;
  }
  #skills .skill-boxes .box {
    max-width: 236px;
  }
  /*** PORTFOLIO ***/
  #portfolio .card-row .card:nth-child(1), #portfolio .card-row .card:nth-child(2), #portfolio .card-row .card:nth-child(3), #portfolio .card-row .card:nth-child(4), #portfolio .card-row .card:nth-child(5), 
  #portfolio .card-row .card:nth-child(6), #portfolio .card-row .card:nth-child(7), #portfolio .card-row .card:nth-child(8),#portfolio .card-row .card:nth-child(9), #portfolio .card-row .card:nth-child(10), 
  #portfolio .card-row .card:nth-child(11), #portfolio .card-row .card:nth-child(12) {
    width: 370px!important;
    height: 370px;
  }
  /*** CONTACT ***/
  #contact::after {
    --base-size: 40px;
    top: 105px;
    left: 73px;
  }
  #contact::before {
    --base-size: 30px;
    top: 330px;
    left: 53px;
  }
  #contact .container::before {
    --base-size: 40px;
    top: 505px;
    right: -100px;
  }
  #contact .container::after {
    --base-size: 30px;
    top: 0;
    right: -94px;
  }
  #contact .contact-form {
    width: 100%;
  }
  #contact .contact-form .col-lg-6:nth-child(1) {
    padding-right: 15px;
  }
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  p {
    font-size: 14px!important;
  }
  .logo {
    margin-left: -24px;
  }
  /*** HOME ***/
  #home .ball-red {
    --base-size: 45px;
    top: 110px;
    left: 85px;
  }
  #home .ball-blue {
    --base-size: 33px;
    top: 350px;
    left: 100px;
  }
  #home .ball-violet {
    --base-size: 25px;
    top: 266px;
    left: 26px;
  }
  .home-content {
    width: 65vw;
    margin-top: 20px;
    padding-left: 0!important;
    margin-left: 0!important;
  }
  .home-content .content {
    width: 65vw;
  }
  .home-content .more-text {
    margin-top: 28px!important;
    max-width: 44vw;
  }
  #home .right-col {
    position: relative;
    right: 210px;
    top: -45px;
  }
  #home .home-img {
    margin-top: 20px;
    right: 52px;
  }
  #home .home-img img {
    max-width: 380px;
  }
  /*** ABOUT ***/
  #about::after {
    --base-size: 45px;
    top: 88px;
    left: 50px;
  }
  #about::before {
    --base-size: 30px;
    left: -15px;
    top: 300px;
  }
  #about .container::before {
    --base-size: 30px;
    left: 400px;
    top: 654px;
  }
  #about .container::after {
    --base-size: 22px;
    top: 682px;
  }
  #about .latest-card {
    margin: 30px -30px;
  }
  #about .section-text {
    padding-left: 80px!important;
  }
  /*** SKILLS ***/
  #skills .skill-boxes {
    flex-wrap: wrap;
  }
  #skills .skill-boxes .box {
    max-width: 236px;
  }
  /*** PORTFOLIO ***/
  #portfolio .card-row .card:nth-child(1), #portfolio .card-row .card:nth-child(2), #portfolio .card-row .card:nth-child(3), #portfolio .card-row .card:nth-child(4), #portfolio .card-row .card:nth-child(5), 
  #portfolio .card-row .card:nth-child(6), #portfolio .card-row .card:nth-child(7), #portfolio .card-row .card:nth-child(8),#portfolio .card-row .card:nth-child(9), #portfolio .card-row .card:nth-child(10), 
  #portfolio .card-row .card:nth-child(11), #portfolio .card-row .card:nth-child(12) {
    width: 370px!important;
    height: 370px;
  }
  /*** CONTACT ***/
  #contact::after {
    --base-size: 45px;
    top: 105px;
    left: 73px;
  }
  #contact::before {
    --base-size: 30px;
    top: 330px;
    left: 53px;
  }
  #contact .container::before {
    --base-size: 40px;
    top: 505px;
    right: -100px;
  }
  #contact .container::after {
    --base-size: 30px;
    top: 45px;
    right: -80px;
  }
  #contact .contact-form {
    width: 100%;
  }
  #contact .contact-form .col-lg-6:nth-child(1) {
    padding-right: 15px;
  }
}
@media only screen and (min-width: 1400px) and (max-width: 1599px) {
  /*** HOME ***/
  .home-content {
    width: 55vw;
    margin-top: 20px;
  }
  .home-content h1 {
    width: 46vw;
  }
  .home-content h3 {
    width: 55vw;
  }
  .home-content .more-text {
    margin-top: 28px!important;
    max-width: 43vw;
  }
  #home .right-col {
    position: relative;
    right: 80px;
    top: -25px;
  }
  #home .home-img {
    margin-top: 20px;
    right: 52px;
  }
  /*** ABOUT ***/
  #about::after {
    --base-size: 50px;
    top: 88px;
    left: 50px;
  }
  #about::before {
    --base-size: 35px;
    left: 25px;
    top: 300px;
  }
  #about .container::before {
    --base-size: 35px;
    left: 435px;
    top: 654px;
  }
  #about .container::after {
    --base-size: 30px;
    top: 682px;
  }
  #about .section-text {
    width: 66%;
  }
 
  /*** SKILLS ***/
  #skills .skill-boxes {
    flex-wrap: wrap;
  }
  #skills .skill-boxes .box {
    max-width: 236px;
  }
  /*** PORTFOLIO ***/
  #portfolio .card p {
    font-size: 14px;
  }
  #portfolio .card-row .card:nth-child(1), #portfolio .card-row .card:nth-child(2), #portfolio .card-row .card:nth-child(3), #portfolio .card-row .card:nth-child(4), #portfolio .card-row .card:nth-child(5), 
  #portfolio .card-row .card:nth-child(6), #portfolio .card-row .card:nth-child(7), #portfolio .card-row .card:nth-child(8),#portfolio .card-row .card:nth-child(9), #portfolio .card-row .card:nth-child(10), 
  #portfolio .card-row .card:nth-child(11), #portfolio .card-row .card:nth-child(12) {
    width: 370px!important;
    height: 370px;
  }
  /*** CONTACT ***/
  #contact::after {
    --base-size: 45px;
    top: 105px;
    left: 73px;
  }
  #contact::before {
    --base-size: 30px;
    top: 330px;
    left: 53px;
  }
  #contact .container::before {
    --base-size: 40px;
    top: 505px;
    right: -100px;
  }
  #contact .container::after {
    --base-size: 30px;
    top: 0;
    right: -94px;
  }
  #contact .contact-form {
    width: 100%;
  }
  #contact .contact-form .col-lg-6:nth-child(1) {
    padding-right: 15px;
  }
}