/* ==========================================================================
   OPTIMIZED RESPONSIVE QUERIES - MCR BUILDTECH
   ========================================================================== */

/* --- TABLETS & SMALL DESKTOPS (Max 991px) --- */
@media (max-width: 991px) {
    /* Navigation & Hero */
    .modern-nav { padding: 0; }
    .navbar-collapse {
        background: var(--dark-bg);
        padding: 25px;
        margin-top: 15px;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .hero-slider { height: 60vh; }
    .hero-title, .service-hero h1 { font-size: 2.2rem; }

    /* Layout Components */
    .experience-badge { position: static; margin-top: 30px; width: 100%; border-radius: 8px; }
    
    .section-title h2 { font-size: 2rem; }

    /* Team & Project */
    .member-img-wrapper { width: 100px; height: 100px; }
    .member-info h5 { font-size: 1.1rem; }
    .project-list-header { display: none; }
    .project-summary-row { grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px; }
    .project-summary-row div:nth-child(3) {grid-column: span 2;color: var(--primary-yellow);font-weight: 900;font-size: 18px;color: #525252;}
}

/* --- PHONES (Max 767px) --- */
@media (max-width: 767px) {
    /* Typography */
    .hero-title { font-size: 1.8rem; }
    .hero-desc { font-size: 0.9rem; line-height: 1.5; }
    .m-info h5 { font-size: 1.1rem; }
    .feature-checklist li { font-size: 0.9rem; }

    /* Sliders & Controls */
    .slider-controls { flex-direction: column; gap: 15px; bottom: 15px; left: 5%; right: 5%; }
    .slider-progress-container { width: 100%; height: 2px; }
    .project-slider { height: 220px; border-radius: 8px; }
    .slider-wrapper img { object-fit: cover; height: 100%; }

    /* Feature & Priority Cards */
    .feature-item { flex-direction: column; text-align: center; padding: 30px 20px !important; gap: 15px; }
    .priority-card { padding: 40px 20px 30px 20px; }
    .service-main-img { margin-bottom: 30px; }
    
    /* Team Roster */
    .member-card { padding: 20px 15px; margin-bottom: 10px; text-align: center; }
    .member-img-wrapper { width: 90px; height: 90px; margin: 0 auto; }
    .member-info h5 { font-size: 1.05rem; font-weight: 700; } /* Bold fix for mobile */
    .member-exp { padding: 4px 10px; font-size: 10px; }

    /* Project Logic Fix */
    .project-summary-row { display: flex; flex-direction: column; position: relative; padding-right: 50px; }
    .p-arrow { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }

    /* Footer */
    .footer-title { margin-top: 35px; text-align: center; }
    .footer-title::before { display: none;}
}

/* --- SMALL PHONES (Max 480px) --- */
@media (max-width: 480px) {
    /* team-roster */
    .team-roster-section .col-6 {
        width: 100%;
    }
    /* Buttons & Spacing */
    .hero-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; }
    .hero-btns .btn { width: 100%; margin: 0 !important; padding: 12px; font-size: 0.9rem; }
    
    /* Section Tweaks */
    .section-title h2 { font-size: 1.5rem; }
    .experience-badge h2 { font-size: 2.2rem; }
    .priority-card:hover { transform: translateY(-5px); } /* Reduced motion */

    /* Team Grid Fix */
    .member-card { padding: 15px 5px; }
    .member-info h5 { font-size: 0.9rem; }
    .thumb-name { font-size: 0.75rem; }
    .thumb-selector.active-tab .thumb-name { font-size: 0.85rem; color: var(--primary-yellow) !important; font-weight: bold; }
}
@media (max-width: 768px) {
    .floating-contact {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }
    .floating-contact2 {
        bottom: 76px !important;
    }
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Mobile par hover expansion band kar sakte hain ya chhota rakh sakte hain */
    .float-btn:hover {
        width: 50px; /* Mobile par sirf gol button hi rahega */
        transform: scale(1.1);
    }
    
    .btn-text {
        display: none !important; /* Mobile par text chhupa diya taaki screen block na ho */
    }
    .navbar-brand {
        padding-left: 0;
    }
    .main-profile-showcase {
        margin-top: 50px;
    }
    .btn-quote{
        display: none;
    }
}
@media (max-width: 500px) {
    .hero-title {
        font-size: 35px;
    }
    h6,h5{
        font-size: 28px !important; 
    }
    .navbar-brand img {
        width: 140px;
        height: 44px;
    }
    .p-name {
        font-size: 21px;
    }
    .project-details-content .row.g-4.p-4 {
        padding: 5px !important;
    }
    .hero-video-wrapper {
        height: 76vh;
    }
    .features-checkered-bar {
        margin-top: 72vh !important;
    }
    ul.navbar-nav.ms-auto.align-items-center {
        align-items: revert !important;
    }
    li.nav-item{
        border-bottom: 1px solid #ffffff6b;
    }
    

}