/* main general scaling for smaller screens */
@media (max-width: 1000px) {
  .header {
    font-size: 12px;
    width: calc(100% - 30px);
    /* transition: max-width 0.8s ease; */
  }
  /*
  .header-scrolled {
    max-width: calc(100% - 40px);
  }
  */
  .hero-content h1 {
    font-size: 2rem;
  }
  p {
    font-size: 0.9rem !important;
  }
  a {
    font-size: 0.9rem;
  }
  h2 {
    font-size: 1.5rem !important;
  }
  section {
    margin: 0rem 0vw !important;
    padding: 2rem 5vw !important;
  }
  .header nav a:hover {
    padding: 4px 7px;
    margin: none;
  }
  .lastlink:hover {
    margin-right: 14px !important;
    padding-right: 10px !important;
    padding-left: 5px !important;
  }
  .icon img {
    max-height: 50px;
  }
  h3 {
    font-size: 1rem !important;
  }
  .about-image img {
    max-height: 50vh;
  }
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  .contact-intro {
    margin-bottom: 0;
  }
  .contact-form {
    padding: 0;
  }
  .contact-form label {
    font-size: 0.9rem;
  }
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
  .contact-info ul li a {
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    outline: #ffffff33 1px solid;
    padding: 15px 20px;
  }
  .contact-grid-container {
    grid-template-columns: 1fr;
  }
  .contact-info {
    padding: 0;
  }
  .footer {
    padding: 1rem 2rem;
    font-size: 0.9rem;
    width: 90%;
    max-width: none;
  }
}
/* service cards into bubbles */
@media (max-width: 590px) {
  .card {
    padding: 1rem;
    border-radius: 500px;
    margin: 0;
    margin: -15px;
    position: relative;
    outline: rgba(255, 255, 255, 0.318) 1px solid;
    background: #22222274;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .cards {
    gap: 0rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    position: relative;
    max-height: 400px;
    min-height: 400px;
  }
  .card:nth-child(odd) {
    transform: translateY(-10px);
  }
  .card:nth-child(even) {
    margin-top: 20px;
  }
  .card:nth-child(3n+1) {
    max-width: var(--card-resolution);
    min-height: var(--card-resolution);
    max-height: var(--card-resolution);
    --card-resolution: 210px;
    background: #2f394274;
    animation: floatingBubble1 20s ease-in-out infinite alternate;
  }
  .card:nth-child(3n+2) {
    z-index: 2;
    background: #422f2f74;
    max-width: var(--card-resolution);
    min-height: var(--card-resolution);
    max-height: var(--card-resolution);
    --card-resolution: 210px;
    animation: floatingBubble2 10s ease-in-out infinite alternate;
  }
  .card:nth-child(3n+3) {
    margin-top: -50px;
    margin-right: 20px;
    background: #42412f74;
    max-width: var(--card-resolution);
    min-height: var(--card-resolution);
    max-height: var(--card-resolution);
    --card-resolution: 230px;
    animation: floatingBubble3 15s ease-in-out infinite alternate;
  }
  .card:hover {
    z-index: 10;
  }
  .card:hover .icon {
    transform: scale(1.2) translateY(3px);
  }
}
/* service card bubbles for smaller screens */
@media (max-width: 460px) {
    .card {
        padding: 0.8rem;
    }
    .card h3 {

        font-size: 0.9rem !important;
    }
    .card p {
        font-size: 0.8rem !important;
    }
    .cards {
        max-height: 330px;
        min-height: 330px;
    }
    .icon {
        margin-bottom: 0;
    }
    .icon img {
        max-height: 40px;
    }
    .card:nth-child(3n+1) {
        --card-resolution: 180px;
    }
    .card:nth-child(3n+2) {
        --card-resolution: 190px;
    }
    .card:nth-child(3n+3) {
        /* max-width: 200px;
        min-height: 200px;
        max-height: 200px; */
        --card-resolution: 200px;
    }
}
@media (max-width: 390px) {
    .cards {
        max-height: 300px;
        min-height: 300px;
    }
    .card:nth-child(3n+1) {
        --card-resolution: 170px;
    }
    .card:nth-child(3n+2) {
        --card-resolution: 165px;
    }
    .card:nth-child(3n+3) {
        --card-resolution: 185px;
    }
}

/* display warnings on very small screens */
@media (max-width: 360px) {
    .resolution-warning-container {
        display: block;
    }
}
@media (max-height: 300px) {
    .resolution-warning-container {
        display: block;
    }
}