/*
 * APJ PRIME HELPING HANDS NGO - Responsive Stylesheet
 * Contains screen size adjustments for laptop, tablet, and mobile.
 */

/* Medium & Large Laptops / Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 130px 0 80px;
    }
}

/* Tablets & Small Laptops (max-width: 991px) */
@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
        background-attachment: scroll; /* Disable parallax on tablets/mobile for performance */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link-custom::after {
        left: 0;
        right: 0;
        transform: none;
        display: none; /* Disable hover underline effect on mobile menu */
    }
    
    .nav-link-custom {
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link-custom:last-child {
        border-bottom: none;
    }
    
    .navbar-custom .btn-secondary-gradient {
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    .about-img-container {
        margin-bottom: 40px;
        height: 350px;
    }
    
    .contact-info-box {
        margin-bottom: 40px;
    }
}

/* Small Tablets & Mobile Landscape (max-width: 767px) */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .counter-box {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 15px 0;
    }
    
    .counter-box:last-child {
        border-bottom: none;
    }
    
    .counter-num {
        font-size: 2.8rem;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .form-glass {
        padding: 25px;
    }
}

/* Extra Small Mobile (max-width: 575px) */
@media (max-width: 575px) {
    .navbar-brand-custom .brand-text {
        font-size: 1rem;
    }
    
    .navbar-brand-custom img {
        height: 35px;
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .badge-achievement {
        padding: 10px 15px;
        right: 10px;
        bottom: 10px;
    }
    
    .badge-achievement i {
        font-size: 1.8rem;
    }
    
    .badge-achievement h4 {
        font-size: 1.1rem;
    }
}

/* Accessibility & Print Optimizations */
@media print {
    .navbar-custom, 
    .footer-custom, 
    .hero-buttons,
    .btn,
    .floating-shape {
        display: none !important;
    }
    
    body {
        background-color: #fff;
        color: #000;
    }
    
    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
}
