@media (max-width: 900px),
(pointer: coarse) {
    :root {
        --heightNavBar: 0;
    }

    .onlyDesktop {
        display: none !important;
    }

    .onlyMobile {
        display: block !important;
    }

    .onlyMobileFlex {
        display: flex !important;
    }

    .section-content {
        padding: 32px 8px;
    }

    .section-row {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    p,
    .ref_quote,
    .ref_project,
    .contact-intro p,
    .contact-info a,
    #footer p {
        font-size: 1.15rem;
        line-height: 1.6;
    }

    h3 {
        font-size: 1.4rem;
    }

    .btn {
        font-size: 1.15rem;
    }

    /* HERO (mobile) */
    #hero {
        padding: 0 0;
        height: 100vh;
        flex-direction: column;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        position: relative;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        text-align: center;
    }

    .hero-left {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
    }

    .mobile-logo {
        position: absolute;
        top: 24px;
        left: 24px;
        z-index: 50;

        width: 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
    }


    .mobile-logo .heroLogo {
        width: 55px;
        height: 32px;
        background-size: contain;
        background-repeat: no-repeat;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .mobile-hamburger {
        position: absolute;
        top: 24px;
        right: 24px;
        width: 36px;
        height: 36px;
        background-image: url("../img/menu.svg");
        background-size: contain;
        background-repeat: no-repeat;
        z-index: 60;
        cursor: pointer;
    }

    .mobile-hamburger.active {
        background-image: url("../img/menu_close.svg");
    }

    .mobile-menu {
        position: absolute;
        inset: 0;
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-image: url("../img/mobile_menu.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        padding: 20px;
        z-index: 10;
    }

    .mobile-menu.open {
        display: flex !important;
        z-index: 2000;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .mobile-menu-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .mobile-menu-list a {
        color: #262E34;
        font-size: 1.4rem;
        font-weight: 500;
        text-decoration: none;
    }

    .mobile-lang {
        display: flex;
        gap: 20px;
        margin-top: 20px;
        width: 70%;
    }

    .mobile-lang span {
        color: #262E34;
        font-size: 1.2rem;
        font-weight: 500;
    }

    .mobile-lang .active {
        background-image: url("../img/active_language.svg");
        background-size: cover;
        color: var(--color_secondary);
    }

    .profile-ellipse {
        width: 260px;
        height: 260px;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }

    .socialMedia {
        display: none !important;
    }

    nav .section {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
    }

    .language-switch {
        justify-content: center;
    }

    .legalNav {
        justify-content: space-around;
        width: 100%;
        padding-top: 24px;
    }

    /* WHY ME */
    #whyMe .col-left,
    #whyMe .col-right {
        align-items: center;
        text-align: center;
    }

    #whyMe .col-right button {
        align-self: center;
    }

    /* SKILLS */
    .skill-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .skills-grid {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .ellipse--learning {
        width: 95%;
        aspect-ratio: 1/1;
        max-width: 340px;
    }

    /* PROJECTS */
    #projects .section-row {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        display: flex;
    }

    .project-preview img {
        width: 100%;
        max-width: 320px;
    }

    .project-buttons {
        gap: 12px;
        margin-top: 20px;
        margin-bottom: 64px;
    }

    .project-list {
        max-height: none;
        padding-right: 16px;
        padding-left: 4px;
    }

    .project-list li::before {
        width: 16px;
    }

    .selectetProject {
        padding: 0;
        padding-left: 8px;
        padding-right: 8px;
    }

    #projectSkill {
        order: 1;
    }

    #projectDescription {
        order: 2;
    }

    #projectTechnology {
        order: 1;
    }

    #projectPreview {
        order: 2;
    }

    .project-buttons {
        order: 4;
    }

    .project-technlologies {
        padding-top: 24px;
    }

    #projectDescription {
        max-width: 100%;
    }

    /* REFERENCES */
    .references-content {
        display: flex;
        flex-direction: row;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px;
        padding-left: 20px;
        scroll-snap-type: none;
        -webkit-overflow-scrolling: touch;
        scroll-padding-left: 20px;
    }

    .references-content .ellipse {
        flex: 0 0 auto;
        scroll-snap-align: center;
        overflow: inherit;
        transform: translateX(25%);
        max-width: 100%;
    }

    .ref_quote {
        height: 180px;
        margin-bottom: 4px;
    }

    #reference-content h3 {
        margin-bottom: 0;
    }

    /* CONTACT */
    .contact-top {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .contact-row {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        width: 100%;
        padding: 0 10px;
    }

    .contactLabel {
        font-size: 1.1rem;
    }

    .inputBase,
    .contactInput,
    #contactMessage {
        font-size: 1.1rem;
    }

    .privacy {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .contact-intro p {
        margin: 0;
    }

    /* FOOTER */
    #footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    #footer .maxWidthFlex {
        flex-direction: column;
    }

    .footer-left {
        order: 3;
    }

    .footer-center {
        order: 1;
        padding-bottom: 16px;
    }

    .footer-right {
        order: 2;
        padding-bottom: 16px;
    }

    #footer p,
    #footer a {
        font-size: 1.1rem;
    }
}

@media (max-width: 900px) and (max-height: 780px) {

    #hero {
        height: auto;
        min-height: 100vh;
    }

    .hero-left {
        padding-top: 40px;
    }

    .profile-ellipse {
        transform: scale(0.9);
    }

    .name {
        transform: scale(0.85);
        transform-origin: top center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .name h1 {
        padding: 0.5rem 0;
        margin: 0 0 4px 0;
    }

    .name h2 {
        margin: 0;
        padding: 0;
    }

    .btnDown {
        margin-top: 4px;
        margin-bottom: 12px;
    }

    .mobile-logo {
        top: 12px;
        left: 16px;
    }
}

@media (max-width: 900px) and (max-height: 660px) {
    .btnDown {
        display: none;
    }
}

@media (max-width: 1000px) {
    #projects .section-row {
        flex-direction: column;
        gap: 40px;
        /*text-align: center;*/
        display: flex;
    }

    #projectSkill {
        order: 1;
    }

    #projectDescription {
        order: 2;
    }

    #projectTechnology {
        order: 1;
    }

    #projectPreview {
        order: 2;
    }

    .project-buttons {
        order: 4;
    }

    .project-technlologies {
        padding-top: 24px;
    }

    .project-list {
        max-height: none;
    }

    .contact-top {
        flex-direction: column;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }

    .project-preview img {
        width: 100%;
        max-width: 320px;
    }

    #projectSkill {
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #projectDescription {
        max-width: 100%;
    }

    .selectetProject .onlyDesktop {
        display: none !important;
    }

    .selectetProject .onlyMobile {
        display: block;
    }

    .name {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .references-content .ellipse {
        transform: translateX(50%);
    }

}

@media (max-width: 380px) {
    #currentLeraning {
        width: 70%;
        height: 65px;
    }

    .ref_text {
        max-width: 280px;
    }

    p,
    .ref_quote,
    .ref_project,
    .contact-intro p,
    .contact-info a,
    #footer p {
        font-size: 16px;
    }

    .ref_quote {
        height: 120px;
    }

    .project-list li {
        padding-left: 24px;
    }
}