/* ============================================
   Responsive Overrides — Modern Dark Theme
============================================ */

/* Lock scroll when mobile menu is open */
body.open {
    overflow: hidden;
}

/* Fluid hero headings */
.hero-info h1 {
    font-size: clamp(2rem, 7vw, 4.5rem);
}

.text-animate h2 {
    font-size: clamp(1.1rem, 4vw, 1.8rem) !important;
}

/* Button and social wrapping */
.btn-box {
    width: auto;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-media {
    width: auto;
    height: auto;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

/* Title container */
.title-container {
    display: block;
}

/* ==================== Tablet ==================== */
@media (max-width: 991px) {
    header, section, footer {
        padding-left: 4%;
        padding-right: 4%;
    }

    .home {
        flex-direction: column-reverse;
        text-align: center;
        align-items: center;
    }

    .social-media {
        justify-content: center;
    }

    .btn-box {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-info p {
        max-width: 100%;
    }

    .about-inner {
        flex-direction: column;
        align-items: center;
    }

    .about-img {
        max-width: 100%;
        width: 100%;
    }

    .about .about-img .aboutHero {
        width: 100%;
        height: auto;
    }

    .portfolio-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .contact-container {
        flex-direction: column;
    }
}

/* ==================== Mobile ==================== */
@media (max-width: 768px) {
    .proposal {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .proposal img {
        width: 160px;
        margin: 0 auto;
    }

    .img-hero img {
        width: 260px;
        height: 260px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .awards-container {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
        gap: 0;
    }
}

/* ==================== Small Mobile ==================== */
@media (max-width: 530px) {
    section {
        padding: 70px 4%;
    }

    .img-hero img {
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto;
        display: block;
    }

    .img-hero-ring {
        display: none;
    }

    .rotate-text {
        display: none;
    }

    .btn-box {
        width: 100%;
        margin-bottom: 2rem;
    }

    .fillter-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .fillter-buttons button {
        width: 100%;
        padding: 10px;
        font-size: 0.8rem;
    }

    .tech-icon {
        width: 52px;
        height: 52px;
    }

    .tech-icon i {
        font-size: 1.6rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .portfolio-gallery {
        grid-template-columns: 1fr;
    }

    .chat-box {
        width: 290px;
        height: 420px;
    }
}

@media (max-width: 400px) {
    html { font-size: 84%; }

    .about-btn button {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .fillter-buttons {
        grid-template-columns: 1fr;
    }
}
