@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        order: 2;
        width: 100%;
        padding: 1rem;
        display: block;
        text-align: center;
        max-width: 100%;
    }
    .subheadline {
        padding: 0;
        text-align: left;
    }
    .hero-image {
        order: 1;
        width: 100%;
        display: block;
        margin-top: 10rem;
        align-items: center;
        margin-left:0;
    }
    .hero-image img {
        margin-left: 0;
        width: 300px;
        height: 300px;
    }

    #about h2 {
        padding-left: 3rem;
    }
    .projects-grid {
        flex-direction: column;
        align-items: center;
    }

    section {
        max-width: 100%;
        width: 100%;
    }

    .projects-section h2, section h2 {
        font-size: 2.5rem;
        padding-left: 2rem;
    }
    .projects-section  {
        padding: 0;
    }
    .projects-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }
    .project-card {
        flex-direction: column;
        align-items: center;
        padding: 0.2rem;
        width: 100%;
        max-width: 400px;
    }
    .project-card h3,
    .project-card p {
        font-size: 1rem;
        text-align: left;
        width: 100%;
    }

    .project-links{
        text-align: center;
        font-size: 1rem;
        width: 100%;
    }
    .project-card img {
        width: 100%;
        height: auto;
    }

}

@media (max-width: 768px) {
    .floating-nav {
        display: none;
    }

    .mobile-menu-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 101;
        background: none;
        border: none;
        font-size: 2rem;
        color: white;
        cursor: pointer;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 100;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    .mobile-nav.active {
        transform: translateY(0);
    }

    .mobile-nav a {
        color: white;
        font-size: 1.8rem;
        text-decoration: none;
    }


    body {
        font-size: 18px;
    }
    .hero{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100vh;
        padding: 0;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0;
        gap: 1rem;
    }
    .hero-text, .hero-image {
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .hero-image {
        order: 1;
        width: 100%;
        display: block;
        margin-top: 10rem;
        align-items: center;
        margin-left:0;
    }
    .hero-image img {
        width: 220px;
        height: 220px;
        max-width: 80vw;
        max-height: 30vh;
    }
    .hero-text {
        order: 2;
        width: 100%;
        padding: 1rem;
        display: block;
        text-align: center;
        max-width: 100%;
    }
    .hero-text h1 {
        font-size: 9vw;
        text-align: center;
    }
    .hero-text p, #about p {
        font-size: 1.4rem;
        margin-top: 1rem;
    }
    section {
        max-width: 100%;
        width: 100%;
    }
    section p {
        padding-left: 0;
        padding-right: 0;
        text-align:left;
        margin: 0 auto;
        max-width: 800px;
    }

    .subheadline {
        padding: 0;
        text-align: left;
    }
    .subheadline a{
        font-size: 1.0rem;
    }
    .language-switcher {
        z-index: 50;
    }
    .skills-column {
        min-width: 100%;
    }
    .skills-column h3 {
        font-size: 2.5rem;
    }
    .skills-column li {
        font-size: 1.2rem;
    }
    .projects-section h2, section h2 {
        font-size: 2.5rem;
        padding-left: 2rem;
    }
    .projects-section  {
        padding: 0;
    }
    .projects-grid {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .project-card {
        width: 100%;
        max-width: 100%;
        margin: 0; /* Optional: reset any margins if needed */
        padding: 0.5rem; /* Or adjust */
        box-sizing: border-box;
    }

    .project-card h3,
    .project-card p {
        font-size: 1rem;
        text-align: left;
        width: 100%;
    }

    .project-links{
        text-align: center;
        font-size: 1rem;
        width: 100%;
    }
    .project-card img {
        width: 100%;
        height: auto;
    }

    .flag-button, .flag-button-en {
        width: 45px;
        height: 45px;
    }
    .arrow-icon {
        width: 36px;
        height: 36px;
    }
    .explore-btn {
        padding: 0.2rem 0.2rem;
        font-size: 1rem;
        margin-top:0.1rem;
    }
    .floating-nav ul,
    .bottom-nav ul {
        flex-direction: column;
        gap: 0.75rem;
    }
    .floating-nav,
    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
    }



}

@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-nav {
        display: none !important;
    }
}

@media (max-width: 480px) {

    .mobile-nav.active {
        transform: translateY(0);
    }

    .mobile-nav a {
        color: white;
        font-size: 1.8rem;
        text-decoration: none;
    }

    .hero-image img {
        width: 150px;
        height: 150px;
        max-width: 80vw;
        max-height: 30vh;
    }
    .hero-text {
        order: 2;
        width: 100%;
        padding: 1rem;
        display: block;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 11vw;
    }
    .scroll-arrow {
        width: 50px;
        height: 50px;
    }

    footer {
        font-size: 1rem;
        text-align: center;
    }

    .floating-nav li,
    .bottom-nav li {
        font-size: 0.9rem;
    }
    .skills-column h3 {
        font-size: 1.8rem;
    }
    .skills-column li {
        font-size: 1rem;
    }
}
/* Prevent horizontal scroll on all screens */
body, html {
    overflow-x: hidden;
}