@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 670px;
    }
}

.about-me {
    margin-top: 15px;
    padding-top: 100px; /* Space for fixed nav */
    text-align: center;
}

    .about-me h2 {
        margin-top: 34px;
        margin-bottom: 40px;
        color: var(--text);
    }

/* Tabs */
.about-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tab-button {
    padding: 0.5rem 2rem;
    border: none;
    border-radius: 5px;
    background: #f77aaa;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    font-family: "Racing Sans One", sans-serif;
    transition: 0.3s;
}

    .tab-button.active, .tab-button:hover {
        background: #fd5294;
        transform: translateY(-2px);
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
        animation: fadeIn 0.4s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    min-height: 550px; 
}

.carousel-view {
    overflow: hidden;
    border-radius: 15px;
    background-color: #0d1224; 
    border: 5px solid #b0a399; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


    .carousel-view.portrait {
        width: 300px; 
        aspect-ratio: 9 / 16;
    }

    .carousel-view.landscape {
        width: 800px; 
        aspect-ratio: 16 / 10;
        max-width: 90vw; 
    }


.carousel-track {
    display: flex;
    height: 100%;
    transition: none !important;
}

    .carousel-track img {
        width: 100%;
        height: 100%;
        flex-shrink: 0;
        object-fit: cover;
        transition: none !important;
    }


.prev-btn, .next-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 3rem;
    color: #f77aaa;
    transition: 0.2s;
}

    .prev-btn:hover, .next-btn:hover {
        color: #fd5294;
        transform: scale(1.1);
    }


.project-desc {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

    .project-desc h3 {
        font-size: 37px;
        font-family: "Racing Sans One", sans-serif;
        font-weight: 100;
        margin-bottom: 10px;
        color: var(--text);
    }

    .project-desc p {
        font-size: 1rem;
        line-height: 1.6;
        color: #555;
        max-width: 600px;
        margin: 0 auto;
    }

@media (max-width: 768px) {

    .carousel-container {
        flex-direction: column;
        gap: 10px;
        min-height: auto;
    }

    .carousel-view.landscape {
        width: 90vw;
        aspect-ratio: 16 / 10;
    }

    .carousel-view.portrait {
        width: 90vw;
        aspect-ratio: 9 / 16;
    }

    .prev-btn, .next-btn {
        font-size: 2rem;
    }

    .about-me h2 {
        font-size: 32px;
        max-width: fit-content;
    }

    @keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 300px;
    }
}

    .project-desc h3 {
        font-size: 28px;
    }

    .project-desc p {
        max-width: 90vw;
    }

    .about-tabs {
        gap: 10px;
    }

    .tab-button {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}
