body {
    margin: 0;
    background: #111;
    color: white;
    font-family: Arial, sans-serif;
}

header {
    background: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

button {
    background: #333;
    color: white;
    border: none;
    padding: 10px 16px;
    min-width: 100px;
    margin: 5px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #555;
}

.section-nav {
    text-align: center;
    padding: 20px;
    /*background: #161616;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.hero {
    text-align: center;
}

.hero img {
    width: 50%;
    max-width: 200px;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
}

.content-box {
    max-width: 750px;
    margin: 30px auto;
}

.content-box h1 {
    font-size: 46px;
}

.content-box p {
    font-size: 20px;
    color: #ccc;
}

.skills {
    margin-top: 1rem;
}

.skill-group {
    margin-top: 1.5rem;
}

.skill-group h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #ffffff;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tags span {
    padding: 0.5rem 1rem;
    border: 1px solid #334155;
    border-radius: 999px;
    background: #111827;
    color: #e5e7eb;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 20px 70px;
}

.hidden {
    display: none !important;
}

.carousel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    max-width: 1100px;
    margin: 70px auto;
    padding: 0 20px;
}

.carousel-card {
    display: grid;
    grid-template-columns: 360px 1fr;

    align-items: center;
    gap: 36px;

    background: #222;
    padding: 36px;
    border-radius: 24px;

    max-width: 900px;
}

.carousel-card img {
    width: 320px;

    max-height: 420px;

    object-fit: contain;

    border-radius: 16px;

    background: #111;

    display: block;
}

.carousel-text {
    text-align: left;
}

.arrow {
    width: 56px;
    height: 56px;

    border: none;
    border-radius: 14px;

    background: #333;
    color: white;

    font-size: 32px;
    cursor: pointer;

    transition: 0.2s;
}

.arrow:hover {
    background: #555;
    transform: scale(1.05);
}

.resume-item {
    margin-bottom: 30px;
}

.resume-item h3 {
    margin-bottom: 8px;
    color: #66ccff;
}

.resume-item h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    color: #cccccc;
    font-size: 20px;
}

#description h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

h2 {
    text-align: left;
    max-width: 900px;
    margin: 40px auto 20px auto;
}

#section-experience,
#section-education {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

#section-intro {
    text-align: left;
}

#section-intro {
     text-align: left;
     max-width: 850px;
     margin: 0 auto;
     line-height: 1.8;
 }

.mobile-games-list {
    max-width: 420px;
    margin: 30px auto;
    padding: 0 14px;

    display: flex;
    flex-direction: column;
    gap: 28px;
}

.mobile-game-card {
    background: #222;

    border-radius: 22px;

    padding: 20px;
}

.mobile-game-card img {
    width: 100%;

    max-height: 220px;

    object-fit: contain;

    border-radius: 16px;

    margin-bottom: 18px;
}

.mobile-game-text {
    text-align: left;
}

.mobile-game-text h2 {
    font-size: 34px;

    margin-bottom: 10px;

    word-break: keep-all;
}

.mobile-game-text h3 {
    margin-bottom: 16px;

    color: #bbb;
}

.mobile-game-text p {
    line-height: 1.8;
}

@media (max-width: 768px) {

    .carousel-section {
        display: flex;
        justify-content: center;
        align-items: center;

        margin: 30px auto;
        padding: 0 12px;
    }

    .carousel-card {
        display: flex;
        flex-direction: column;

        width: 100%;
        max-width: 360px;

        padding: 20px;
        gap: 20px;

        border-radius: 20px;
    }

    .carousel-card img {
        width: 100%;
        max-width: 320px;

        max-height: 220px;

        object-fit: contain;

        margin: 0 auto;
    }

    .carousel-text {
        width: 100%;
        text-align: left;
    }

    .carousel-text h2 {
        font-size: 42px;
        line-height: 1.1;

        margin-bottom: 12px;

        word-break: keep-all;
    }

    .carousel-text h3 {
        font-size: 24px;
        margin-bottom: 18px;

        word-break: keep-all;
    }

    .carousel-text p {
        font-size: 17px;
        line-height: 1.8;

        word-break: normal;
    }

    .arrow {
        display: none;
    }

    header {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }

    .hero img {
        width: 95%;
        height: 260px;
    }

    .content-box h1 {
        font-size: 34px;
    }
}