/* --- Sorted by px value (lowest to highest) --- */

/* 480px */
@media (max-width: 480px) {
    .company-logo {
        width: 160px!important;
    }
    .menu-overlay-logo {
        width: 60px !important;
        height: 60vh;
        object-fit: contain;
        margin-right: 1.5rem;
        z-index: 1101;
    }
    .hero-overlay {
        top: 30%;
        left: 5%;
    }
    .hero-overlay h1 {
        font-size: 3rem;
    }
    .hero-overlay p {
        font-size: 1rem;
    }
    .menu-overlay-logo {
        width: 120px !important;
        height: auto;
        margin-right: 1.5rem;
        z-index: 1101;
    }
}

/* 600px */
@media (max-width: 600px) {
    .about-parallax-section {
        min-height: 80vh;
    }
    .about-parallax-content {
        padding: 1rem 0.5rem;
    }
    .about-parallax-text h1 {
        font-size: 1.3rem;
    }
    .about-parallax-text p {
        font-size: 0.97rem;
    }
    .menu-button .menu-text,
    .contact-hero-btn .menu-text {
        display: none;
    }
    .menu-button,
    .contact-hero-btn {
        padding: 0.5rem 0.7rem;
        font-size: 1.5rem;
    }
    .license-modal-close {
        top: 0.3rem;
        right: 0.7rem;
        font-size: 2rem;
    }
}

/* 700px */
@media (max-width: 700px) {
    .division-parallax-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.5rem 0.2rem;
        flex-direction: column;
        align-items: center;
    }
    .division-parallax-block {
        max-width: 100vw;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto;
    }
    .division-parallax-block .division-img img {
        max-width: 100vw;
        height: 140px;
    }
    .portfolio-title {
        font-size: 1.3rem;
        margin: 1.2rem 0 1.5rem 0;
    }
    .portfolio-table th,
    .portfolio-table td {
        font-size: 0.97rem;
        padding: 0.5em 0.5em;
    }
    .portfolio-table-wrapper {
        padding: 1rem 0.2rem;
    }
    .portfolio-filters-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        margin-bottom: 1.2rem;
        scrollbar-width: thin;
        scrollbar-color: #ffd700 #181818;
    }
    #portfolio-filters {
        flex-wrap: nowrap;
        gap: 0.7rem;
        min-width: max-content;
    }
    #portfolio-filters li {
        font-size: 1rem;
        padding: 0.5em 0.8em;
        white-space: nowrap;
        min-width: 90px;
        text-align: center;
    }
    .portfolio-filters-row::-webkit-scrollbar {
        height: 6px;
        background: #181818;
    }
    .portfolio-filters-row::-webkit-scrollbar-thumb {
        background: #ffd700;
        border-radius: 3px;
    }
    .projects-modal-content {
        padding: 0.7rem 0.2rem 0.2rem 0.2rem;
        max-width: 99vw;
    }
    .projects-modal-title {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
    }
    .projects-modal-cards-row {
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    .projects-modal-close {
        top: 0.3rem;
        right: 0.7rem;
        font-size: 2rem;
    }
    .license-modal-close {
        top: 0.7rem;
        right: 1.2rem;
        font-size: 2.5rem;
    }
    .footer-menu-list {
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .footer-menu-link {
        font-size: 1.1rem;
        padding: 0.2em 0.1em;
    }
}

/* 768px */
@media (max-width: 768px) {
    .company-logo {
        width: 250px!important;
        height: auto;
    }
    .menu-overlay-logo {
        width: 110px !important;
    }
    .hero-overlay {
        top: 40%;
        left: 10%;
    }
    .hero-overlay h1 {
        font-size: 4rem;
    }
    .hero-overlay p {
        font-size: 1.2rem;
    }
}

/* 900px */
@media (max-width: 900px) {
    .about-parallax-content {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    .about-parallax-image img {
        max-width: 90vw;
    }
    .about-parallax-text {
        padding: 1.2rem;
    }
    .services-modal-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 0.5rem 2rem 0.5rem;
    }
    .services-modal-card {
        max-width: 98vw;
    }
    .hero-overlay {
        top: 50%;
        left: 5%;
    }
    .hero-overlay h1 {
        font-size: 3rem;
    }
    .hero-overlay p {
        font-size: 1rem;
    }
    .menu-overlay-logo {
        width: 110px !important;
    }
}


/* 1100px */
@media (max-width: 1100px) {
    .division-parallax-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    .division-parallax-block {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 auto;
    }
    .division-parallax-block .division-img img {
        max-width: 90vw;
    }
}



/* Mobile-friendly contact modal layout */
@media (max-width: 900px) {
    .contact-modal-content.contact-modal-full {
        flex-direction: column !important;
        width: 100vw !important;
        min-width: 0 !important;
        max-width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
        padding: 0.5rem 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    .contact-modal-form,
    .contact-modal-info {
        max-width: 100vw !important;
        min-width: 0 !important;
        width: 100vw !important;
        height: auto !important;
        min-height: unset !important;
        border-right: none !important;
        border-bottom: 2px solid #ffd700 !important;
        border-left: none !important;
        border-radius: 0 !important;
        padding: 1.2rem 0.7rem !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        box-sizing: border-box;
        overflow-y: visible;
    }
    .contact-modal-info {
        border-bottom: none !important;
        border-top: 2px solid #ffd700 !important;
        border-radius: 0 !important;
        height: auto !important;
        padding-bottom: 2rem !important;
    }
    .contact-modal-map iframe {
        height: 180px !important;
    }
    .contact-modal-close {
        top: 0.7rem !important;
        right: 1.2rem !important;
        font-size: 2.5rem !important;
    }
    .contact-modal-textinfo {
        padding-left: 1rem !important;
        margin-left: 0.5rem !important;
    }
}

@media (max-width: 600px) {
    .contact-modal-content.contact-modal-full {
        padding: 0.2rem 0 !important;
    }
    .contact-modal-form,
    .contact-modal-info {
        padding: 0.7rem 0.3rem !important;
    }
    .contact-modal-map iframe {
        height: 120px !important;
    }
    .contact-modal-close {
        top: 0.3rem !important;
        right: 0.7rem !important;
        font-size: 2rem !important;
    }
    .contact-modal-form h2,
    .contact-modal-info h3 {
        font-size: 1.1rem !important;
    }
    .contact-modal-form label,
    .contact-modal-form input,
    .contact-modal-form textarea,
    .contact-modal-form button,
    .contact-modal-status,
    .contact-modal-info p {
        font-size: 0.97rem !important;
    }
    .contact-modal-textinfo {
        padding-left: 0.5rem !important;
        margin-left: 0.2rem !important;
    }
}