.hero {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    margin-top: 10vh;
    gap: 40px;
    margin-bottom: 80px;
}

.hero-content {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    letter-spacing: 2px;
}

.hero-image {
    width: 30vw;
    z-index: -1;
}

.hero-visuals {
    display: flex;
    flex-direction: column;
}

.hero-shortcuts {
    background-color: #07152D;
    width: fit-content;
    height: max-content;
    border-radius: 20px;
    padding: 8px 20px;
    margin-top: -40px;
    z-index: 1;
}

.hero-shortcut {
    color: #ffffffa0;
    text-decoration: none;
    padding: 8px 20px;
}

.hero-shortcut:first-child {
    border-radius: 20px 0 0 20px;
}

.hero-shortcut:last-child {
    border-radius: 0 20px 20px 0;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-left: -2px;
}

.color-blob-top {
    position: absolute;
    top: 200px;
    right: 230px;
    width: 300px;
    height: 500px;
    background-color: #003cff;
    filter: blur(320px);
    z-index: -1;
    animation: blobAnimation 18s infinite alternate ease-in-out;
    /* Adjust animation duration and timing function */
    transform-origin: center;
}

@keyframes blobAnimation {
    0% {
        transform: scale(1) rotate(0deg) translateY(0);
        background-color: #003cff;
        /* Initial color */
        width: 300px;
        height: 500px;
    }

    50% {
        transform: scale(1.1) rotate(50deg) translateY(-50px);
        background-color: #9900ff;
        /* Mid-animation color change */
        width: 200px;
        height: 800px;
    }

    100% {
        transform: scale(1) rotate(0deg) translateY(60);
        background-color: #031cff;
        /* Back to initial color */
        width: 900px;
        height: 100px;
    }
}

@keyframes rotate-background-gradient {
    0% {
        background-position: 0%;
        transform: rotate(0deg);
    }

    50% {
        background-position: 200%;
        transform: rotate(1deg);

    }

    100% {
        background-position: 0%;
        transform: rotate(0deg);
    }

}

.bento {
    display: grid;
    min-height: 700px;
    width: 100%;
    padding: 5vw 5vw;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 16px;
    border-radius: 8px;
    margin-top: 10vh;
}

.bento-cell {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento-cell p {
    opacity: 0.6;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    padding-right: 50px;
}

.bento-cell::after,
.swiper-slide-active.project-slide::after {
    background-color: rgb(12, 12, 12);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 15px;
}

.swiper-slide-active.project-slide::after {
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: calc(100% - 6px);
}

.gr-border::before,
.gr-only-hover::before,
.swiper-slide-active.project-slide::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    background: linear-gradient(90deg,
            rgba(19, 96, 228, 1) 0%,
            rgb(255, 0, 157) 50%,
            rgb(19, 96, 228) 100%);
    background-size: 200%;
    z-index: -1;
    border-radius: 15px;
    opacity: 0.3;
    transition: all 0.6s ease-in-out;
}


.gr-border::before {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
}

.swiper-slide-active.project-slide::before {
    width: calc(100% + 14px);
    height: calc(100% + 14px);
}

.gr-only-hover:hover:before {
    opacity: 1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
}

.gr-border:hover::before,
.gr-only-hover:hover:before {
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: all 0.6s ease-in-out;
    animation: rotate-background-gradient 10s ease infinite;
}



.bento-cell:nth-child(1) {
    grid-column: span 1;
    grid-row: span 3;
    opacity: 1;
    transition: all 0.6s ease-in-out;
    animation: rotate-background-gradient 10s ease infinite;
}

.bento-cell:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-cell:nth-child(3) {
    grid-column: span 1;
    grid-row: span 4;
}

.bento-cell:nth-child(4) {
    grid-column: span 1;
    grid-row: span 4;
}

.bento-cell:nth-child(5) {
    grid-column: span 1;
    grid-row: span 3;
}

#services {
    margin-top: 10vh;
}

.services-intro,
.team-intro {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.services-header,
.featured-header,
.team-title,
.faq-heading h1 {
    text-align: center;
    font-size: 4em;
}

.services-intro .seperator {
    display: block;
    min-height: 100px;
    height: 100%;
    width: 5px;
    background-color: #07152D;
}

.services-des,
.featured-des,
.team-des,
.faq-des {
    font-size: large;
    text-align: center;
    max-width: 790px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.6;
}

.service-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.service-card {
    max-width: 480px;
    padding: 2.5em;
    margin: 1em;
    border-radius: 15px;
}

.service-card::after {
    background-color: #0c0c0c;
    ;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 15px;
}

#featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10vh;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 4em;
}


.image-frame {
    max-width: 400px;
}

.image-frame img {
    max-width: 100%;
}

.swiper {
    width: 80vw;
    max-width: 1200px;
    margin-top: 6vh;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 400px;
    object-fit: cover;
}

.project-slide {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: start;
    gap: 2em;
    background-color: rgb(20, 20, 20);
    padding: 2.5em;
    backdrop-filter: blur(200px);
    border-radius: 15px;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: start;
    letter-spacing: 2px;
    max-width: 760px;
}

.collapsible {
    background-color: transparent;
    color: #ffffffa0;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: center;
    outline: none;
    font-size: 15px;
}

.project-s {
    display: none;
}

#team {
    margin-top: 10vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-cards {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 80vw;
    margin-top: 3rem;
    max-height: 376px;
    overflow: hidden;
    padding-top: 10px;
    padding-bottom: 40px;
    transition: max-height 0.2s ease-in-out;
}

.team-card {
    width: 224px;
    height: 350px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.0);
    transition: all 0.5s ease-in-out;
    background-color: rgb(0, 0, 0);
}

.team-card::after {
    background-color: rgb(0, 0, 0);
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    border-radius: 15px;
}

@keyframes rotate-background {
    0% {
        background-position: 0%;
    }

    50% {
        background-position: 200%;
    }

    100% {
        background-position: 0%;
    }

}

.team-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    background: linear-gradient(90deg,
            rgba(19, 96, 228, 1) 0%,
            rgb(255, 0, 157) 50%,
            rgb(19, 96, 228) 100%);
    background-size: 200%;
    z-index: -1;
    border-radius: 15px;
    opacity: 0;
    transition: all 0.6s ease-in-out;
}

.team-card:hover::before,
.swiper-slide-active.project-slide:hover::before {
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transition: all 0.6s ease-in-out;
    animation: rotate-background 10s ease infinite;
}

.team-image {
    width: 224px;
    height: 224px;
    background-color: rgb(0, 0, 0);
    background-position: center;
    background-size: contain;
    border-radius: 15px;
}

.team-info {
    margin: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.team-name {
    color: #ffffffa4;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1.2px;
}

.team-role {
    color: #ffffff60;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.96px;
    text-align: center;
}

.team-socials {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-items: center;
    gap: 10px;

    position: absolute;
    top: 190px;
    right: 10px;
}

.team-social-link {
    display: block;
    border-radius: 5px;
    width: 25px;
    height: 25px;
    overflow: hidden;
    filter: grayscale(100%);
    opacity: 0.9;
    transition: all 0.3s ease-in-out;
}

.team-social-link:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(105%);
}

#faq {
    display: flex;
    flex-direction: row;
    justify-content: center;

    margin-top: 10vh;
    padding: 10px 60px;
}

.faq-heading {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.faq-heading h1 {
    text-align: end;
    transform: rotate(-90deg);
    margin: 0;
    margin-right: -70px;
    margin-top: 130px;
    font-weight: 400;
    width: 400px;
}

.faq-des {
    margin-top: 0.5rem;
    text-align: start;
    margin-bottom: 40px;
}

.category-selector {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.category-button {
    background: #07152D;
    outline: none;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    color: white;
    opacity: 0.6;
    transition: all 0.6s ease-in-out;
}

.category-button:hover {
    opacity: 1;
}

.category-button.active {
    background-color: #0277bd;
    opacity: 1;
}

.faq {
    text-align: start;
    font-size: 20px;
    max-width: 800px;
}

.faq-a {
    margin: 10px 20px;
    max-width: 700px;
    opacity: 0.8;
}

.popup {
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100svw;
    height: 100svh;
    background-color: rgba(0, 0, 0, 0.4);
    max-height: 100svh;
}


.popup-content {
    background: #0c0c0c;
    margin: 15% auto;
    padding: 2px;


    width: 80%;
    max-width: 500px;
    max-height: 90dvh;
    text-align: center;
    overflow-y: auto;

    border: solid 1px transparent;
    background-image:
        linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
        linear-gradient(90deg,
            rgba(19, 96, 228, 0.5) 0%,
            rgb(255, 0, 157, 0.5) 50%,
            rgb(19, 96, 228, 0.5) 100%);
    border-radius: 15px;
    background-origin: border-box;
    background-clip: content-box, border-box;
    animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {

    0% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(90deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    10% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(81deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    20% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(72deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    30% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(63deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    40% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(54deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    50% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(45deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    60% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(54deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    70% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(63deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    80% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(72deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    90% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(81deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }

    100% {
        background-image: linear-gradient(rgb(14, 14, 14), rgb(14, 14, 14)),
            linear-gradient(90deg,
                rgba(19, 96, 228, 0.5) 0%,
                rgb(255, 0, 157, 0.5) 50%,
                rgb(19, 96, 228, 0.5) 100%);
    }


}

.popup-content-wrapper {
    padding: 30px;
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.popup-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;

}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgb(119, 23, 23);
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    text-align: start;
    margin-bottom: 15px;
}

.input-header {
    display: block;
    margin-bottom: 5px;
    font-weight: 300;
    opacity: 0.5;
}

.form-group input,
.form-group textarea {
    outline: none;
    background-color: #0c0c0c;
    border: 1px solid #0c0c0c;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    color: white;
    transition: all 0.2s;
}

.form-group input:active,
.form-group input:focus,
.form-group textarea:active,
.form-group textarea:focus {
    border-radius: 12px;
    border: 3px solid #07152D;
}

@media only screen and (max-width: 1366px) {
    .hero {
        margin: 10vh 4vw;
    }

    .hero-shortcuts {
        padding: 6px 10px;
    }

    .hero-shortcut {
        padding: 6px 10px;
        font-size: 14px;
    }

    .swiper {
        max-width: 80vw;
    }


}

@media only screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 30px;
        gap: 20px;
        margin-top: 10px;
    }

    .hero-content {
        text-align: center;
        align-items: center;
        margin-bottom: 20px;
    }

    .hero-image {
        width: 80vw;
    }

    .hero-shortcuts {
        margin-top: 0;
    }

    .hero-visuals {
        gap: 20px;
        align-items: center;
    }

    .bento {
        display: flex;
        flex-direction: column;
    }

    .bento-cell:nth-child(1)::before,
    #web-development::before{
        box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
        opacity: 1;
        width: calc(100% + 4px);
        height: calc(100% + 4px);
        transition: all 0.6s ease-in-out;
        animation: rotate-background-gradient 10s ease infinite;
    }

    .services-header,
    .featured-header,
    .team-title,
    .faq-heading h1 {
        font-size: 2.5em;
        margin-top: 6vh;
        padding: 0 20px;
    }

    .services-des,
    .featured-des {
        padding: 20px;
    }

    .swiper {
        width: 90vw;
    }

    .swiper-slide img {
        display: block;
        width: 100%;
        object-fit: cover;
    }

    .project-slide {
        flex-direction: column;
    }

    .project-info {
        text-align: center;
        letter-spacing: 0;
        font-size: small;
        width: 100%;
    }

    .project-l-des {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease-out;
    }

    .project-s {
        display: block;
    }

    .team-cards {
        max-height: 1600px;
    }

    #faq {
        flex-direction: column;
    }

    .faq-heading h1 {
        transform: rotate(0deg);
        width: 100%;
        text-align: center;
        margin-bottom: 1em;
    }


    .popup-content {
        margin: 10px;
        width: 96vw;
        max-height: 96vh;
    }
}

.tilt {
    animation-fill-mode: none;
}