@media (max-width: 1320px) {
    .bottom-nav-inner {
        grid-template-columns: 112px minmax(0, 1fr) auto;
        padding: 0 22px 0 14px;
        column-gap: 12px;
    }

    .nav-links {
        gap: 130px;
    }

    .nav-link {
        padding: 10px 14px;
    }

    .language-switch {
        gap: 4px;
        justify-self: end;
    }

    .language-switch a {
        padding: 6px 10px;
    }

    .contact-details-arrow {
        top: -126px;
        right: -150px;
        width: 34px;
    }
}

@media (max-width: 1240px) {
    .project-card {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 388px);
        gap: 12px;
        padding-left: 30px;
        padding-right: 24px;
    }

    .project-copy {
        left: 0;
    }

    .project-preview {
        left: 0;
    }

    .project-technologies,
    .preview-window {
        max-width: 388px;
    }

    .contact-details-arrow {
        top: -118px;
        right: -210px;
        width: 34px;
    }
}

@media (max-width: 1180px) {
    .bottom-nav-inner {
        grid-template-columns: 122px minmax(0, 1fr) auto;
        padding: 0 28px 0 20px;
        column-gap: 18px;
    }

    .nav-links {
        gap: 88px;
    }

    .nav-link {
        padding: 10px 16px;
    }

    .language-switch {
        gap: 4px;
        justify-self: end;
    }

    .language-switch a {
        padding: 6px 10px;
    }

    .about-grid {
        grid-template-columns: max-content minmax(320px, 1fr);
    }

    .projects-section .section-heading,
    .projects-section .project-tabs {
        max-width: 100%;
    }

    .project-tabs {
        gap: 22px;
        left: 0;
        font-size: 24px;
        flex-wrap: wrap;
    }

    .project-card {
        grid-template-columns: minmax(0, 1fr) minmax(340px, 424px);
        gap: 24px;
    }

    .project-copy,
    .project-preview {
        left: 0;
    }

    .contact-top {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-details-arrow {
        top: -109px;
        right: -190px;
        width: 32px;
    }

    .footer-bar {
        min-height: auto;
    }

    .footer-bar-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        justify-items: center;
        padding: 40px 40px;
        min-height: auto;
    }

    .footer-copy,
    .footer-socials {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-logo {
        order: 1;
        transform: none;
    }

    .footer-socials {
        order: 2;
        justify-content: center;
        margin-top: 8px;
    }

    .footer-social-icon-desktop {
        display: none;
    }

    .footer-social-icon-mobile {
        display: block;
        opacity: 1;
    }

    .footer-copy {
        order: 3;
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        text-align: left;
        margin-top: 24px;
    }

    .footer-copy-name {
        order: 1;
    }

    .footer-copy-legal {
        order: 2;
    }
}


@media (max-width: 1045px) {
    .nav-links {
        gap: 36px;
    }
}

@media (max-width: 1050px) {
    .testimonial-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .testimonial-card {
        max-width: 300px;
    }

    .testimonial-card-content {
        width: 66%;
    }

    .testimonial-card h3 {
        font-size: 22px;
    }

    .testimonial-card .testimonial-project {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .testimonial-card p,
    .testimonial-card a {
        font-size: 16px;
    }

    .testimonial-card a {
        margin-top: 18px;
    }
}

@media (max-width: 1080px) {
    .contact-details-arrow {
        top: -109px;
        right: -65px;
        width: 32px;
    }

    .skills-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 12px;
        justify-items: center;
    }

    .skills-note {
        width: min(100%, 320px);
        height: 320px;
        justify-self: center;
    }

    .skills-note-content {
        width: 76%;
    }
}

@media (max-width: 900px) {
    .content-section {
        padding: 32px 24px;
    }

    .project-tabs {
        padding-bottom: 0;
    }

    .section-heading {
        margin-bottom: 44px;
    }

    .section-heading h2 {
        font-size: 46px;
    }

    .headline-wrap h1 {
        white-space: normal;
    }

    .project-card,
    .about-grid,
    .contact-top {
        grid-template-columns: 1fr;
    }

    .skills-note,
    .testimonial-card {
        width: 100%;
        max-width: 370px;
        height: auto;
    }

    .testimonial-card-content {
        width: 74%;
    }

    .testimonial-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(280px, 370px);
        grid-template-columns: none;
        gap: 20px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 8px 12px;
        justify-items: stretch;
        scroll-snap-type: x proximity;
    }

    .testimonial-card {
        scroll-snap-align: start;
    }

    .bottom-nav {
        display: none;
    }

    .about-grid {
        gap: 24px;
    }

    .location-pill {
        white-space: normal;
        font-size: 24px;
        justify-self: center;
        text-align: center;
    }

    .about-copy {
        max-width: min(100%, 720px);
        margin: 0 auto;
    }

    .skills-layout {
        justify-items: center;
        gap: 28px;
    }

    .skills-note {
        width: min(100%, 370px);
        aspect-ratio: 1 / 1;
    }

    .skills-grid {
        gap: 42px 42px;
    }

    .projects-section .project-card {
        width: calc(100% + 48px);
        margin-left: -24px;
        margin-right: -24px;
    }

    .project-tabs {
        justify-content: center;
        padding-bottom: 0;
        font-size: 22px;
    }

    .project-card {
        gap: 32px;
        padding: 28px 24px 36px;
    }

    .project-copy {
        top: 0;
    }

    .project-item+.project-item {
        margin-top: 28px;
    }

    .project-preview {
        width: 100%;
    }

    .project-technologies,
    .preview-window {
        max-width: min(424px, 100%);
    }

    .project-actions {
        flex-wrap: wrap;
    }

    .section-intro {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .testimonial-grid {
        gap: 30px;
    }

    .contact-top {
        gap: 20px;
        margin-bottom: 32px;
    }

    .contact-copy {
        max-width: none;
    }

    .contact-details {
        justify-content: flex-start;
        gap: 16px;
    }

    .contact-details-arrow {
        display: none;
    }

    .contact-form {
        gap: 32px;
    }
}


@media (max-width: 800px) {
    .project-tabs {
        font-size: 20px;
        gap: 14px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .page-shell {
        width: 100%;
        padding: 0;
    }

    .content-section {
        padding: 40px 20px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .location-pill {
        font-size: 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 70px;
    }

    .skills-note {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: auto;
        display: block;
        text-align: left;
        justify-self: stretch;
        margin-top: -160px;
    }

    .skills-note-shape {
        display: none;
    }

    .skills-note-content {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 20px;
    }

    .skills-note h3 {
        order: 1;
        flex: 0 0 100%;
        font-size: 18px;
        color: var(--accent);
        margin-bottom: 8px;
    }

    .skills-note p {
        order: 2;
        flex: 1;
        min-width: 0;
        margin: 0;
    }

    .skills-note-tech {
        order: 3;
        flex-shrink: 0;
        background-image: url("../assets/images/Ellipse 25.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        width: 90px;
        height: 90px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .project-tabs,
    .footer-bar-inner {
        grid-template-columns: 1fr;
    }

    .project-tabs {
        left: 0;
        gap: 12px;
        font-size: 18px;
        justify-content: flex-start;
    }

    .project-copy {
        left: 0;
    }

    .project-card {
        padding: 24px 18px 28px;
    }

    .projects-section .project-card {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
    }

    .project-item {
        grid-template-columns: 24px 1fr;
        column-gap: 8px;
    }

    .project-item-icon {
        width: 24px;
        height: 22px;
    }

    .project-item h3 {
        font-size: 22px;
    }

    .project-item p {
        font-size: 16px;
    }

    .project-technologies h3 {
        font-size: 16px;
    }

    .project-technologies-icons {
        gap: 20px;
    }

    .preview-window {
        height: 230px;
    }

    .project-actions {
        gap: 16px;
        margin-top: 24px;
    }

    .mini-button {
        padding: 10px 18px;
        font-size: 16px;
    }

    .section-intro {
        font-size: 21px;
    }

    .testimonial-card h3 {
        font-size: 22px;
    }

    .testimonial-card p,
    .testimonial-card a {
        font-size: 16px;
    }

    .contact-copy p,
    .contact-detail-link {
        font-size: 16px;
        text-align: left;
    }

    .checkbox-line {
        margin-top: -8px;
    }

    .contact-form {
        justify-self: stretch;
    }

    .form-row {
        gap: 30px;
    }

    .footer-bar-inner {
        display: grid;
        gap: 12px;
        justify-items: center;
        padding: 16px;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 630px) {
    .project-card {
        grid-template-columns: 1fr;
    }

    .project-preview {
        display: flex;
        order: 1;
        width: 100%;
    }

    .project-copy {
        order: 2;
    }

    .project-preview-title {
        display: block;
        order: 1;
        margin-bottom: 10px;
    }

    .preview-window {
        order: 3;
    }

    .project-technologies {
        order: 2;
        margin: 0 0 22px;
        color: #F8F5EC;
        text-align: left;
        font-family: "Josefin Sans", sans-serif;
        font-weight: 400;
        font-size: 18px;
        line-height: 1.5;
    }

    .project-technologies h3,
    .project-technologies-icons {
        display: none;
    }

    .project-actions-desktop {
        display: none;
    }

    .project-actions-mobile {
        display: flex;
    }

    .project-actions {
        margin-left: auto;
        margin-right: auto;
        gap: 50px;
        padding-top: 0;
    }

    .skills-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        justify-items: stretch;
        align-items: start;
    }

    .skills-grid {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        max-width: 280px;
        gap: 28px 32px;
        margin: 0 auto;
    }

    .skills-note {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }

    .skills-note h3 {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .mobile-menu-panel {
        top: 16svh;
    }

    .content-section {
        padding: 24px 14px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .location-pill {
        gap: 8px;
        font-size: 18px;
    }

    .location-icon {
        width: 54px;
        height: 48px;
    }

    .about-copy p,
    .skills-note p,
    .project-item p {
        font-size: 15px;
    }

    .skill-item small {
        font-size: 16px;
    }

    .project-tab {
        padding: 10px 12px;
    }

    .project-card {
        padding: 20px 14px 24px;
        gap: 24px;
    }

    .projects-section .project-card {
        width: calc(100% + 28px);
        margin-left: -14px;
        margin-right: -14px;
    }

    .project-item h3 {
        font-size: 19px;
    }

    .preview-window {
        height: 200px;
    }

    .project-actions {
        gap: 18px;
    }

    .mini-button {
        justify-content: center;
    }

    .section-intro {
        font-size: 18px;
    }

    .testimonial-card-content {
        width: 80%;
    }

    .testimonial-card h3 {
        font-size: 20px;
    }

    .testimonial-card .testimonial-project {
        font-size: 14px;
    }

    .contact-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-detail-link {
        white-space: normal;
    }

    .form-label {
        font-size: 14px;
        padding-left: 10px;
    }

    .contact-form input,
    .contact-form textarea {
        border-radius: 16px;
    }

    .contact-form {
        padding: 0 35px;
        margin-bottom: 44px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .form-actions .ghost-button {
        align-self: flex-end;
    }

    .checkbox-line span {
        font-size: 13px;
    }

    .footer-copy {
        font-size: 16px;
    }

        .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .project-tabs {
        gap: 14px;
        font-size: 16px;
    }
}

@media (max-width: 430px) {
    .project-tab {
        padding: 10px 10px;
    }

    .project-tabs {
        gap: 0px;
    }

    .project-tabs {
        width: calc(100% + 48px);
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 380px) {
    .project-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        overflow-x: auto;
        white-space: nowrap;
        width: calc(100% + 48px);
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }
}

@media (max-width: 577px) {
    .form-field {
        padding-bottom: 38px;
    }

    .form-error {
        padding-top: 5px;
    }
}

@media (max-width: 350px) {
    .contact-form {
        padding: 0 14px;
    }
}

@media (max-width: 340px) {
    .mobile-menu-panel {
        top: 18svh;
    }
}