@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Clicker+Script&display=swap');
:root {
  --main-white-text: #f3f3f3;
  /* --main-black-text: #1e1e1e; */
  --pink-text: #D96A9E; /* Vaihdettu */
  --main-light-text: #a7a7a7;
  --light-link-text: #f3f3f3; /* Vaihdettu */
  --btn-link-text: #1C1C1C; /* Vaihdettu */
  --active-link-text: #D96A9E;  /* Vaihdettu */
  --bg-pink: #D96A9E; /* Vaihdettu */
  --bg-pink-hover: #DF82AD; /* Vaihdettu */
  --bg-pink-outline-hover: rgba(217,106,158,0.08); /* Vaihdettu */
  --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%;
  height: 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);
}
h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--main-white-text);
}
/* Icons */
h3 i {
  color: var(--pink-text);  /* tai jokin tehosteväri */
  margin-right: 12px;
  font-size: 24px;
  transition: transform 0.3s ease;
}
h3 i:first-child:hover, h3 i:nth-child(2):hover, h3 i:nth-child(3):hover {
  transform: scale(1.2) rotate(-5deg);
}
/* Buttons */
.btn {
  padding: 20px 36px;
  font-weight: 500;
  border-radius: 8px;
}
.btn-color {
  background-color: var(--bg-pink);
  color: var(--btn-link-text);
  animation: cornerGroove 2.4s ease-in-out infinite;
  transform-origin: center;
  transition: all 0.3s ease;
}
@keyframes cornerGroove {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(-2deg); }
  25%  { transform: rotate(3deg); }
  40%  { transform: rotate(-1.5deg); }
  55%  { transform: rotate(2.5deg); }
  70%  { transform: rotate(-1deg); }
  85%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
.btn-color:hover {
  background-color: var(--bg-pink-hover);
  color: var(--btn-link-text);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(217,106,158, 0.4);
}
.btn-outline-color {
  border: 1px solid var(--bg-pink);
  color: var(--pink-text);
}
.btn-outline-color:hover {
  border-color: var(--bg-pink);
  background-color: var(--bg-pink-outline-hover);
  color: var(--pink-text);
}
.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;
}

/********** 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) }

/********** HERO/HOME **********/
#home {
  width: 100%;
  min-height: 100vh;
  padding: 70px 0 0 0;
  position: relative;
  background-image: linear-gradient(to right top, #131313, #181818, #1c1c1d, #202122, #242627, #242627, #242627, #242627, #202122, #1c1c1d, #181818, #131313);
  overflow: hidden;
  z-index: 1;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 80px 60px;
  gap: 40px; /* Lisätty enemmän tilaa vasen/oikea */
  position: relative;
  z-index: 1;
}

/* Geometriset kuviot */
.shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.linear-shape {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 300px;
  height: 300px;
  --target-opacity: 0.05;
  background-image: repeating-linear-gradient(
    135deg,
    #ffffff,
    #ffffff 2px,
    transparent 2px,
    transparent 12px
  );
  transform: rotate(25deg);
}
.linear-shape-sm {
  position: absolute;
  bottom: 307px;
  left: 45%;
  width: 190px;
  height: 190px;
  --target-opacity: 0.05;
  background-image: repeating-linear-gradient(
    135deg,
    #ffffff,
    #ffffff 2px,
    transparent 2px,
    transparent 12px
  );
  transform: rotate(-18deg);
}
.hexagon-shape {
  position: absolute;
  bottom: 238px;
  left: 120px;
  width: 180px;
  height: 180px;
  --target-opacity: 0.1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'><polygon points='30,2 58,13 58,39 30,50 2,39 2,13' fill='none' stroke='%23F475A8' stroke-width='1.5'/></svg>");
  background-size: 60px 52px;
  background-repeat: repeat;
}
.linear-shape, .linear-shape-sm, .hexagon-shape {
  animation: fadeIn 1.5s ease-out forwards;
  opacity: 0;
}
@keyframes fadeIn {
  to { opacity: var(--target-opacity); }
}

/* Vasemman puolen sisältö */
.home-content { 
  position: relative;
  flex: 1 1 500px;
  max-width: 850px;
  min-width: 280px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-content h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.7s;
}
.home-content h3 {
  font-size: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 1rem;
}
.home-content h3 i {
  transition: transform 0.3s ease, color 0.3s ease;
}
.home-content h3 i:hover {
  transform: scale(1.2) rotate(-5deg);
  color: var(--bg-pink-hover);
}
.home-content p {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.3s;
}
.home-content .mt-5 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Wave-text-animaatio */
.wave-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}
.wave-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(2em) rotate(-15deg);
  animation: fly-in 0.8s cubic-bezier(.23,1.16,.38,1.03) forwards;
  animation-delay: calc(var(--i) * 0.2s);
}
@keyframes fly-in {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
} 

/* Oikea puoli – allekirjoituskortti */
.right-col {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Kortin perusasettelu */
.signature-card {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem;
  min-height: 280px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 3;
  isolation: isolate;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.signature-card:hover {
  transform: translateY(-3px) rotate(-0.5deg);
  box-shadow: 0 6px 16px var(--bg-pink-hover);
}
.signature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
}
.signature-card:hover::before {
  left: 130%;
}
/* 🖋️ Allekirjoitus */
.signature-text {
  position: relative;
  font-family: 'Clicker Script', cursive;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  color: #f3f3f3;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(30px) rotate(0deg);
  animation: slideAndTilt 1.2s ease-out forwards;
  animation-delay: 0.6s;
  text-shadow: 0 0 8px rgba(255,255,255,0.35),
               0 0 24px rgba(80,190,255,0.25);
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.4));
}
@keyframes slideAndTilt {
  to { opacity: 1; transform: translateY(0) rotate(-8deg); }
}
/* Flourish-viiva */
.flourish {
  position: absolute;
  bottom: 35px;
  left: 50%;
  width: 70%;
  max-width: 500px;
  opacity: 0.8;
  transform: translateX(-50%) rotate(-8deg);
  z-index: -1;
}
.flourish path {
  fill: none;
  stroke: rgba(255,255,255,0.7);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  animation: drawFlourish 1.6s ease-out forwards;
  animation-delay: 0.9s;
}
@keyframes drawFlourish {
  0% { stroke-dashoffset: var(--len, 400); }
  70% { stroke-dashoffset: 40; }
  100% { stroke-dashoffset: 0; }
}

/*** ABOUT ME ***/
#about {
    position: relative;
    min-height: 90vh;
    padding: 100px 60px;
    background-image: linear-gradient(to right top, #2a2c2e, #2d2e2f, #2f2f31, #313132, #333333);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--main-white-text);
  }

  .section-text {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    width: 100%;
    background: rgba(0,0,0,0.15);
    padding: 2.5rem;
    border-radius: 16px;

    /* Fade-in aloitustila */
    opacity: 0;
    transform: translateY(70px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }

  .section-text.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Profiilikuva */
  .about-image {
    flex: 0 0 200px;
    text-align: center;
  }
  .about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--active-link-text);
    transition: transform 0.3s ease;
  }
  .about-image img:hover {
    transform: scale(1.05);
  }

  /* Tekstialue */
  .about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .about-text h2 {
    font-size: 32px;
    color: var(--main-white-text);
    margin: 0;
  }
  .about-text h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, rgba(239,177,201,0) 0%, rgba(239,177,201,0.4) 50%, rgba(239,177,201,0) 100%);
    margin-top: 12px;
    border-radius: 2px;
  }
  .about-text h2:hover {
    color: var(--active-link-text);
    transform: translateY(-5px);
  }
  .about-text p {
    font-size: 16px;
    line-height: 1.6em;
    color: var(--main-light-text);
    position: relative;
    padding-left: 0.5rem;
  }
  .about-text p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(239,177,201,0), rgba(239,177,201,0.25), rgba(239,177,201,0));
    border-radius: 2px;
  }
  .about-text p:hover {
    color: var(--active-link-text);
    transform: translateY(-2px);
  }
  /* Tekstit aluksi näkymättömiä */
.about-text h2,
.about-text p,
.about-image img {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* Kun osio tulee näkyviin */
.section-text.visible h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.section-text.visible p:nth-of-type(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}
.section-text.visible p:nth-of-type(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.9s;
}
.section-text.visible .about-image img {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
  /* Responsiivisuus */
  @media (max-width: 768px) {
    #about { padding: 80px 20px; }
    .section-text { flex-direction: column; text-align: center; }
    .about-image img { margin-bottom: 1rem; }
    .about-text h2, .about-text p { text-align: center; }
  }

/*** SKILLS ***/
/* --- Skills-osio --- */ 
.skills-section {
  padding: 100px 60px;
  background: linear-gradient(to right top, #333, #444, #555, #666, #777);
  color: var(--main-white-text);
}
.skills-section .container { max-width: 900px; margin: 0 auto; }

.lead { margin: 1rem 0 2rem; line-height: 1.7; }

.btn-more {
  display: inline-block; margin-left: .5rem; padding: .4rem .9rem;
  border-radius: 999px; border: 1px solid var(--active-link-text);
  color: var(--active-link-text); background: transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-more:hover { transform: translateY(-2px); background: var(--active-link-text); color: #1b1b1b; }

/* Soft skills ja tekniset taidot grid */
.soft-skills, .skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}

/* Skill-box yleinen tyyli */
.skill-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--main-white-text);
}
.skill-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  background: rgba(255, 255, 255, 0.12);
}
.skill-box i {
  font-size: 24px;
  color: var(--active-link-text);
  margin-bottom: 12px;
}

/* Progress bar */
.skill {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.skill-bar {
  background: rgba(255,255,255,0.12);
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #efb1c9, #eca4c0);
  transition: width 1.1s ease-out, background .3s ease;
}
.skill-box:hover .skill-fill {
  background: linear-gradient(90deg, #f5c0d1, #f1abb8);
}
.skill-percent {
  text-align: right;
  color: var(--main-light-text);
  font-size: 14px;
}

/* Fade-in animaatio */
.fade-in { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}
.fade-in.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* Responsiivisuus */
@media (max-width: 768px) {
  .skills-section { padding: 80px 20px; }
  .skill-box { flex-direction: column; }
}

/* --- Modaali --- */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999;
}
.modal.open { display: block; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.modal-content {
  position: relative;
  margin: 5vh auto;
  max-width: 900px;
  max-height: 90vh;
  overflow: auto;
  background: rgba(20,20,20,0.96);
  color: var(--main-white-text);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 28px;
  line-height: 1;
  border: 0;
  background: transparent;
  color: var(--main-white-text);
  cursor: pointer;
  opacity: .8;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.modal-close:hover {
  opacity: 1;
  transform: scale(1.05);
}
.modal-body h4 { margin: 1.25rem 0 0.4rem; font-size: 18px; color: var(--main-white-text); }
.modal-body p { margin-bottom: 1rem; line-height: 1.6; color: var(--main-light-text); }



/*** 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: 405px;
  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);
}

/*** 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: 20px!important;
    opacity: 1!important;
    animation: none!important;
  }
  h2 {
    opacity: 1!important;
    animation: none!important;
  }
  h3 {
    font-size: 5.5vw!important;
    line-height: 20px!important;
    opacity: 1!important;
    animation: none!important;
  }
  p {
    font-size: 4vw!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 0 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 .home-content {
    position: relative;
    order: 2;
    max-width: unset;
    min-height: 66vh;
    height: auto;
    padding-left: 0!important;
    margin: 32px 0!important;
  }
  .home-content .content {
    margin-left: 13px!important;
    padding-right: 10px;
  }
  .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 .more-text {
    position: relative;
    overflow: hidden;
    /* max-height: 64vh; */
    margin-top: -15px!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 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 .animated-btns {
    width: 100%;
    margin-top: 12px!important;
    margin-left: unset!important;
    margin-bottom: 5px;
    gap: 5px!important;
  }
  #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: 152px!important;
    height: 36px!important;
  }
  #home .anim-btn-contact .btn-bg a, #home .anim-btn-load .btn-bg a {
    font-size: 3.5vw;
    max-width: 175px!important;
  }
  #home .anim-btn-contact, #home .anim-btn-load {
    margin-bottom: 10px;
    width: 160px;
    height: 40px;
  }
  #home .anim-btn-contact {
    margin-left: 5px;
    margin-right: 5px;
  }
  .right-col {
    position: relative;
    top: 7vh;
    order: 1;
    margin-left: 0!important;
  }
  @-moz-document url-prefix() {
    .right-col {
        top: 7vh;
    }
}
  .home-img {
    top: 0;
    opacity: 1;
    height: 350px;
    animation: none;
  }
  .home-img .image {
    /* top: 5vh; */
    height: 330px;
  }
  .home-img .image img.profile_blob {
    top: 0;
    max-width: 88.7vw;
  }
  #home .home-social-media {
    position: absolute;
    flex-direction: column;
    top: 22px;
    right: 30px;
    left: unset;
    gap: 0!important;
  }
  #home .home-social-media a {
    margin: 5px 0;
  }
  #home .home-social-media a:nth-child(1), #home .home-social-media a:nth-child(2), #home .home-social-media a:nth-child(3) {
    opacity: 1;
    animation: unset!important;
  }
  /*** 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: 380vh;
    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;
    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: 49vh;
  }
  #portfolio .card:nth-child(2) {
    height: 40vh;
  }
  #portfolio .card:nth-child(3), #portfolio .card:nth-child(4), #portfolio .card:nth-child(6) {
    height: 48vh;
  }
  #portfolio .card:nth-child(5), #portfolio .card:nth-child(7) {
    height: 43vh;
  }

  /*** 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: 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: 24px!important;
    opacity: 1!important;
    animation: none!important;
  }
  p {
    font-size: 3.6vw!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 0 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 .home-content {
    position: relative;
    order: 2;
    max-width: unset;
    min-height: 66vh;
    height: auto;
    padding-left: 0!important;
    margin: 36px 0!important;
  }
  .home-content .content {
    margin-left: 13px!important;
    padding-right: 10px;
  }
  .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 .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 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 .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;
    max-width: 170px!important;
  }
  #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;
    height: 350px;
    animation: none;
  }
  .home-img .image {
    height: 350px;
  }
  .home-img .image img.profile_blob {
    top: 0;
    max-width: 88.7vw;
  }
  #home .home-social-media {
    position: absolute;
    flex-direction: column;
    top: -25px;
    right: 24px;
    left: unset;
    gap: 0!important;
  }
  #home .home-social-media a {
    margin: 5px 0;
  }
  #home .home-social-media a:nth-child(1), #home .home-social-media a:nth-child(2), #home .home-social-media a:nth-child(3) {
    opacity: 1;
    animation: unset!important;
  }
  /*** 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: 380vh;
    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;
    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: 49vh;
  }
  #portfolio .card:nth-child(2) {
    height: 40vh;
  }
  #portfolio .card:nth-child(3), #portfolio .card:nth-child(4), #portfolio .card:nth-child(6) {
    height: 48vh;
  }
  #portfolio .card:nth-child(5), #portfolio .card:nth-child(7) {
    height: 43vh;
  }

  /*** 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 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: 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: 29vh!important;
    margin-left: -4px;
    width: 96vw;
  }
  #portfolio .card {
    opacity: 1;
    animation: none;
    width: 95%!important;
    max-width: 94vw!important;
  }
  #portfolio .card:nth-child(1) {
    height: 57vh;
  }
  #portfolio .card:nth-child(2) {
    height: 46vh;
  }
  #portfolio .card:nth-child(3), #portfolio .card:nth-child(4), #portfolio .card:nth-child(6) {
    height: 56vh;
  }
  #portfolio .card:nth-child(5), #portfolio .card:nth-child(7) {
    height: 46vh;
  }

  /*** 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 .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 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: 490vh;
    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 {
    opacity: 1;
    animation: none;
    width: 95%!important;
    max-width: 94vw!important;
  }
  #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 {
    flex-direction: column!important;
    position: relative;
    top: 24vh!important;
    margin-left: 14px;
    width: 93vw;
  }
  #portfolio .card {
    opacity: 1;
    animation: none;
    width: 95%!important;
    max-width: 94vw!important;
  }
  #portfolio .card:nth-child(1) {
    height: 58vh;
  }
  #portfolio .card:nth-child(2) {
    height: 45vh;
  }
  #portfolio .card:nth-child(3), #portfolio .card:nth-child(4), #portfolio .card:nth-child(6) {
    height: 58vh;
  }
  #portfolio .card:nth-child(5), #portfolio .card:nth-child(7) {
    height: 46vh;
  }
  /*** 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) {
    width: 31.5vw!important;
    height: 41vh;
  }
  #portfolio .card-row .card:nth-child(2) {
    width: 42.5vw!important;
    height: 41vh;
  }
  #portfolio .card-row .card:nth-child(3) {
    width: 37vw!important;
    height: 44vh;
  }
  #portfolio .card-row .card:nth-child(4) {
    width: 37vw!important;
    height: 44vh;
  }
  #portfolio .card-row .card:nth-child(5) {
    width: 42.5vw!important;
    height: 42vh;
  }
  #portfolio .card-row .card:nth-child(6) {
    width: 31.5vw!important;
    height: 42vh;
  }
  #portfolio .card-row .card:nth-child(7) {
    width: 42.5vw!important;
    height: 40vh;
  }
  /*** 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) {
    width: 340px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(2) {
    width: 460px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(3) {
    width: 400px!important;
    height: 390px;
  }
  #portfolio .card-row .card:nth-child(4) {
    width: 400px!important;
    height: 390px;
  }
  #portfolio .card-row .card:nth-child(5) {
    width: 460px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(6) {
    width: 340px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(7) {
    width: 460px!important;
    height: 350px;
  }
  /*** 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) {
    width: 340px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(2) {
    width: 460px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(3) {
    width: 400px!important;
    height: 390px;
  }
  #portfolio .card-row .card:nth-child(4) {
    width: 400px!important;
    height: 390px;
  }
  #portfolio .card-row .card:nth-child(5) {
    width: 460px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(6) {
    width: 340px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(7) {
    width: 460px!important;
    height: 350px;
  }
  /*** 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) {
    width: 320px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(2) {
    width: 430px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(3) {
    width: 320px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(4) {
    width: 320px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(5) {
    width: 430px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(6) {
    width: 320px!important;
    height: 350px;
  }
  #portfolio .card-row .card:nth-child(7) {
    width: 430px!important;
    height: 350px;
  }
  /*** 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;
  }
}