@media (min-width: 769px) and (max-width: 1280px) {
    .hero-section,
    .why-me-section,
    .skills-section,
    .work-section,
    .references-section,
    .contact-section {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        padding-left: clamp(48px, 7vw, 90px);
        padding-right: clamp(48px, 7vw, 90px);
        overflow: visible;
    }

    .why-me-section,
    .skills-section,
    .work-section,
    .references-section,
    .contact-section {
        display: flex;
        flex-direction: column;
    }

    .why-me-title,
    .skills-title,
    .work-title,
    .references-title,
    .contact-title {
        writing-mode: horizontal-tb;
        transform: none;
        width: auto;
        align-self: flex-start;
        margin: 0 0 32px;
        font-size: clamp(40px, 5vw, 54px);
    }

    .why-me-content,
    .skills-content,
    .project-grid,
    .reference-grid,
    .contact-content {
        width: 100%;
        max-width: 100%;
    }

    .why-me-section,
    .skills-section,
    .work-section,
    .references-section {
        min-height: 100vh;
        justify-content: center;
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-section {
        min-height: 100vh;
        padding: 80px 48px 48px;
        overflow: hidden;
    }

   .hero-content {
        width: 100%;
        min-height: calc(100vh - 128px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
    }

    .hero-image {
        position: static;
        transform: none;
        width: clamp(300px, 42vw, 420px);
        height: auto;
        margin-top: 40px;
    }

    .hero-naming {
        position: static;
        transform: none;
        width: 100%;
        max-width: 600px;
        margin-top: 32px;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .designation {
        order: 1;
    }

    .name {
        width: 100%;
        order: 2;
    }

    .hero-location {
        display: block;
        order: 3;
        margin-top: 12px;
        font-size: 20px;
        text-align: center;
    }

    .name h1 {
        margin: 8px 0 0;
        font-size: clamp(34px, 4.5vw, 48px);
        line-height: 1.1;
        white-space: normal;
        text-align: center;
    }

    .designation h2 {
        margin: 0;
        font-size: clamp(24px, 3vw, 34px);
        line-height: 1.15;
        text-align: center;
        -webkit-text-stroke-width: 0;
        color: var(--highlight-main);
        text-transform: uppercase;
    }

    .social-links,
    .next-section-link {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .skills-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .skills-text {
        max-width: 100%;
        font-size: clamp(16px, 1.7vw, 20px);
        padding-top: 68px;
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(70px, 1fr));
        gap: 22px 24px;
        width: 100%;
    }

    .skills-grid img {
        width: clamp(64px, 7vw, 82px);
        height: auto;
        justify-self: center;
    }

    .skills-side-text {
        width: 100%;
        grid-column: 1 / -1;
        margin-top: 0;
        text-align: center;
    }

    .skills-btn {
        width: 180px;
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        margin-top: 20px;
        border-radius: 999px;
        background-color: var(--highlight-main);
        color: #4A4A4A;
        font-size: 18px;
        font-weight: 400;
        text-decoration: none;
    }

    .work-section {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .work-grid {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .project-grid {
        display: flex;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 32px;
        padding-bottom: 34px;
        box-sizing: border-box;
    }

    #portfolio > .contact-section {
        min-height: 100vh;
        height: auto;
    }

    .contact-section {
        min-height: auto;
        height: auto;
        padding-top: 100px;
        padding-bottom: 0;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        flex: 1;
    }

    .contact-info {
        position: static;
        width: 100%;
        text-align: left;
        align-items: flex-start;
        order: 1;
        margin-bottom: 32px;
    }

    .contact-form {
        order: 2;
        width: 100%;
    }

    .contact-item {
        justify-content: flex-start;
    }

    .contact-back-link {
        display: none;
    }

    .contact-section::after {
        display: none;
    }

    .contact-footer {
        order: 3;
        position: static;
        width: calc(100% + 2 * clamp(48px, 7vw, 90px));
        margin-left: calc(-1 * clamp(48px, 7vw, 90px));
        margin-right: calc(-1 * clamp(48px, 7vw, 90px));
        margin-top: auto;
        margin-bottom: 0;
        padding: 24px 0 16px;
        box-sizing: border-box;
        background: linear-gradient(
            to top,
            #5c817f,
            var(--highlight-main)
        );
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .mobile-footer-logo,
    .footer-links {
        display: flex;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }

    .contact-footer a,
    .contact-footer p {
        color: #4a4a4a;
    }

    .footer-logo-link {
        display: block;
        width: 110px;
        height: 90px;
    }
}

@media (min-width: 600px) and (max-width: 768px) {

    .why-me-section,
    .skills-section,
    .references-section {
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .skills-btn {
        align-self: flex-end;
    }

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

}

@media (min-width: 1281px) and (max-width: 1366px) and (min-height: 900px) {
    .hero-sidebar {
        display: none;
    }

    .hero-section {
        width: 100%;
        min-height: 100vh;
        padding: 80px 48px 48px;
    }

    .hero-content {
        width: 100%;
        min-height: calc(100vh - 128px);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image {
        position: static;
        transform: none;
        width: 420px;
        height: auto;
        margin-top: 40px;
    }

    .hero-naming {
        position: static;
        transform: none;
        width: 100%;
        max-width: 600px;
        margin-top: 32px;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .designation {
        order: 1;
    }

    .name {
        width: 100%;
        order: 2;
    }

    .hero-location {
        display: block;
        order: 3;
        text-align: center;
    }

    .name h1 {
        font-size: 48px;
        white-space: normal;
        text-align: center;
    }

    .designation h2 {
        font-size: 34px;
        color: var(--highlight-main);
        -webkit-text-stroke-width: 0;
        text-align: center;
        text-transform: uppercase;
    }

    .social-links,
    .next-section-link {
        display: none;
    }

    .skills-content {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .skills-text {
        max-width: 100%;
        font-size: clamp(16px, 1.7vw, 20px);
    }

    .skills-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(70px, 1fr));
        gap: 28px 24px;
        width: 100%;
    }

    .skills-grid img {
        width: clamp(64px, 7vw, 82px);
        height: auto;
        justify-self: center;
    }

    .skills-side-text {
        width: 100%;
        grid-column: 1 / -1;
        margin-top: 8px;
    }

    .skills-btn {
        display: flex;
        align-self: center;
        margin-top: 32px;
    }
}

@media (min-width: 769px) and (max-width: 1280px) and (orientation: landscape) {
    .hero-content {
        position: relative;
    }

    .hero-image {
        width: clamp(300px, 36vw, 380px);
        margin-top: 24px;
    }

    .hero-naming {
        position: absolute;
        left: 50%;
        bottom: 75px;
        transform: translateX(-50%);
        width: max-content;
        max-width: 90%;
        margin: 0;
        z-index: 2;
    }

    .designation {
        order: 2;
    }

    .name {
        order: 1;
    }

    .name h1 {
        white-space: nowrap;
    }

    .skills-section {
        padding-top: 48px;
    }
}