@media (max-width: 1200px) {
    .rectangle {
        width: 24vw;
    }

    .center-text {
        width: 42vw;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rectangle {
        width: 28vw;
        height: 9vh;
    }

    .rectangle a {
        font-size: clamp(0.65rem, 1.1vw, 1rem);
        padding: 8px;
    }

    .center-text {
        width: 38vw;
        font-size: clamp(1.6rem, 3.5vw, 2.8rem);
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }

    .about {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .section-title p {
        font-size: 16px;
    }

    .services-grid,
    .key-services,
    .qualifications-grid {
        grid-template-columns: 1fr;
    }

    .rectangle {
        width: 30px;
        height: 8vh;
        min-height: 60px;
    }

    .rectangle a {
        font-size: 0.75rem;
        padding: 8px;
    }

    .center-text {
        width: 35vw;
        padding: 18px;
        font-size: clamp(1.5rem, 4vw, 2.3rem);
    }

    .mobile-menu {
        display: block;
        color: #fff !important;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: auto;
        padding: 20px 0;
        background: linear-gradient(
            135deg,
            #1e3c72 0%,
            #2a5298 100%
        );
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        transition: left 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        z-index: 999;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    nav ul li a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
        color: #fff;
    }
}



@media (max-width: 576px) {
    .section-1 {
        width: 100%;
        height: 100svh;
        min-height: 500px;
        position: relative;
        overflow: hidden;
        padding: 0;
    }

    .header.top,
    .rectangle {
        display: none !important;
    }

    .center-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        max-width: 90%;
        margin: 0;
        padding: 20px;
        z-index: 3;
        text-align: center;
        font-size: clamp(
            1.5rem,
            7vw,
            2.2rem
        );
        border: 2px solid rgba(255,255,255,0.3);
        border-radius: 20px;
        background: rgba(0,0,0,0.2);
        box-sizing: border-box;
    }


    .center-text p {
        margin: 5px 0;
    }


    .center-text p:nth-child(2) {
        font-size: 1.3em;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .image-placeholder {
        font-size: 50px;
    }

    .box-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }

    .box-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .box-header h3 {
        font-size: 1.4rem;
    }
}