.about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    @media(max-width: 768px){
        height: 70vh;
    }

    h1 {
        font-size: 2.5rem;
        margin: 1rem auto;
        @media(max-width: 768px){
            font-size: 1.8rem;
        }
        @media(max-width: 480px){
            font-size: 1.4rem;
        }

        span {
            display: inline-block;
            transform: translateY(-150%);
            opacity: 0;
            animation: fadeInDown 5s ease forwards infinite;
        }
    }

    h1 span:nth-child(1) {
        animation-delay: 0.1s;
    }
    h1 span:nth-child(2) {
        animation-delay: 0.2s;
    }
    h1 span:nth-child(3) {
        animation-delay: 0.3s;
    }
    h1 span:nth-child(4) {
        animation-delay: 0.4s;
    }
    h1 span:nth-child(5) {
        animation-delay: 0.5s;
    }
    h1 span:nth-child(6) {
        animation-delay: 0.6s;
    }
    h1 span:nth-child(7) {
        animation-delay: 0.7s;
    }
    h1 span:nth-child(8) {
        animation-delay: 0.8s;
    }
    h1 span:nth-child(9) {
        animation-delay: 0.9s;
    }
    h1 span:nth-child(10) {
        animation-delay: 1s;
    }
    h1 span:nth-child(11) {
        animation-delay: 1.1s;
    }
    h1 span:nth-child(12) {
        animation-delay: 1.2s;
    }
    h1 span:nth-child(13) {
        animation-delay: 1.3s;
    }

    h2 {
        font-size: 1.8rem;
        animation: slideLeft 5s ease forwards infinite;
        @media(max-width: 768px){
            font-size: 1.2rem;
        }
    }

    q {
        font-size: 1rem;
        margin-top: 10px;
        max-width: 600px;
        text-wrap: balance;
        &:nth-child(odd) {
            animation: slideRight 5s ease forwards infinite;
        }
        &:nth-child(even) {
            animation: slideLeft 5s ease forwards infinite;
        }
    }

    a {
        display: inline-block;
        margin-top: 20px;
        padding: 10px 20px;
        font-size: 1.2rem;
        color: var(--text-color);
        background-color: var(--bg-color);
        border: 1px solid var(--text-color);
        text-decoration: none;
        border-radius: 5px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

        &:hover {
            background-color: var(--text-color);
            color: var(--bg-color);
        }
    }
}

@keyframes fadeInDown {
    0% {
        transform: translateY(-150%);
        opacity: 0;
    }
    10% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}