/* ============================================
   HANDA JATHERE - Responsive Styles
   ============================================ */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-slider .carousel-item {
        height: 80vh;
        max-height: 850px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 3.5rem;
    }
}

/* Desktop (1200px - 1919px) */
@media (max-width: 1399px) {
    .hero-slider .carousel-caption h2 {
        font-size: 2.5rem;
    }
}

/* Laptop (992px - 1199px) */
@media (max-width: 1199px) {
    .navbar-nav .nav-link {
        padding: 18px 14px;
        font-size: 0.9rem;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .hero-slider .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 2.2rem;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .full-banner .banner-content h2 {
        font-size: 2rem;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-padding-sm {
        padding: 40px 0;
    }
    
    /* Navbar Mobile Container */
    .navbar-collapse {
        background: #1a202c !important;
        padding: 14px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0 0 10px 10px;
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    /* Mobile Nav Links */
    .navbar-nav .nav-link {
        color: #ffffff !important;
        padding: 13px 18px;
        font-size: 0.95rem;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 6px;
        margin-bottom: 3px;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .nav-link::after {
        display: none !important;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #ff6b5b !important;
        background: rgba(255, 255, 255, 0.06);
        padding-left: 22px;
    }
    
    .navbar-nav .nav-link.active {
        color: #ffffff !important;
        background: rgba(209, 63, 49, 0.25);
        border-left: 4px solid var(--primary);
        font-weight: 700;
        padding-left: 22px;
    }
    
    .navbar-social {
        margin: 15px 0 5px 0;
        justify-content: center;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Hero */
    .hero-slider .carousel-item {
        height: 50vh;
        min-height: 350px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .hero-slider .carousel-caption h4 {
        font-size: 1.1rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.95rem;
    }
    
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: none;
    }
    
    /* Section Header */
    .section-header h2 {
        font-size: 1.7rem;
    }
    
    .section-header {
        margin-bottom: 35px;
    }
    
    /* Page Banner */
    .page-banner {
        padding: 45px 0;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    /* Members */
    .member-card .member-photo {
        width: 110px;
        height: 110px;
    }
    
    /* Full Banner */
    .full-banner {
        min-height: 280px;
        background-attachment: scroll;
    }
    
    .full-banner .banner-content h2 {
        font-size: 1.8rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    /* Lightbox */
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    
    /* Footer */
    .site-footer {
        padding: 50px 0 0;
    }
    
    .site-footer .col-lg-4,
    .site-footer .col-lg-3 {
        margin-bottom: 30px;
    }
    
    /* Contact */
    .contact-form-card {
        margin-top: 25px;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    
    /* Hero */
    .hero-slider .carousel-item {
        height: 45vh;
        min-height: 300px;
    }
    
    .hero-slider .carousel-caption {
        padding: 20px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .hero-slider .carousel-caption h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.88rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-slider .carousel-caption .btn-hero {
        padding: 10px 25px;
        font-size: 0.88rem;
    }
    
    /* Section Header */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* News */
    .news-card .news-image {
        height: 180px;
    }
    
    .news-card .news-body {
        padding: 20px;
    }
    
    /* Page Banner */
    .page-banner {
        padding: 35px 0;
    }
    
    .page-banner h1 {
        font-size: 1.5rem;
    }
    
    /* Members */
    .member-card {
        padding: 25px 15px;
    }
    
    .member-card .member-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .album-card .album-cover {
        height: 180px;
    }
    
    .gallery-year-title {
        font-size: 1.5rem;
    }
    
    /* Full Banner */
    .full-banner {
        min-height: 250px;
    }
    
    .full-banner .banner-content h2 {
        font-size: 1.5rem;
    }
    
    .full-banner .banner-content p {
        font-size: 0.95rem;
    }
    
    /* CTA */
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
    }
    
    /* Contact */
    .contact-info-card {
        padding: 25px;
    }
    
    .contact-form-card {
        padding: 25px;
    }
    
    /* Video */
    .video-card .play-icon {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    /* About */
    .about-content {
        font-size: 0.98rem;
    }
}

/* Mobile Small (430px and below) */
@media (max-width: 430px) {
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }
    
    .navbar-brand .brand-text small {
        font-size: 0.5rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    /* Hero */
    .hero-slider .carousel-item {
        height: 40vh;
        min-height: 250px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.3rem;
    }
    
    .hero-slider .carousel-caption h4 {
        font-size: 0.9rem;
    }
    
    .hero-slider .carousel-caption p {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }
    
    .hero-slider .carousel-indicators {
        bottom: 10px;
    }
    
    .hero-slider .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
    
    /* Section */
    .section-padding {
        padding: 40px 0;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Members */
    .member-card .member-photo {
        width: 90px;
        height: 90px;
    }
    
    .member-card .member-name {
        font-size: 1rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .album-card .album-cover {
        height: 150px;
    }
    
    .album-card .album-body {
        padding: 15px;
    }
    
    .gallery-year-title {
        font-size: 1.3rem;
    }
    
    /* Lightbox */
    .lightbox-content {
        max-width: 95vw;
    }
    
    .lightbox-prev {
        left: 5px;
    }
    
    .lightbox-next {
        right: 5px;
    }
    
    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .lightbox-close {
        font-size: 1.5rem;
        top: -35px;
    }
    
    .lightbox-info {
        bottom: -40px;
    }
    
    .lightbox-info .lightbox-title {
        font-size: 0.85rem;
    }
    
    /* Page Banner */
    .page-banner h1 {
        font-size: 1.3rem;
    }
    
    /* Contact Form */
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    /* Full Banner */
    .full-banner .banner-content {
        padding: 25px;
    }
    
    .full-banner .banner-content h2 {
        font-size: 1.3rem;
    }
    
    .full-banner .banner-content p {
        font-size: 0.88rem;
    }
    
    /* Footer */
    .site-footer h5 {
        font-size: 1.05rem;
    }
    
    .footer-bottom {
        font-size: 0.82rem;
        padding: 15px 0;
    }
    
    /* Hindi Typography */
    .hindi, .text-hindi, [lang="hi"] {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

/* Extra Small Mobile (375px and below) */
@media (max-width: 375px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 36px;
    }
    
    .hero-slider .carousel-item {
        height: 35vh;
        min-height: 220px;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.1rem;
    }
    
    .hero-slider .carousel-caption h4 {
        font-size: 0.85rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .member-card {
        padding: 20px 12px;
    }
    
    .member-card .member-photo {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .album-card .album-cover {
        height: 130px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hero-slider .carousel-control-prev,
    .hero-slider .carousel-control-next {
        display: none;
    }
    
    .album-card .album-overlay {
        opacity: 1;
    }
    
    .gallery-item .gallery-overlay {
        opacity: 0.4;
    }
    
    .video-card .play-icon {
        opacity: 1;
    }
    
    /* Disable hover effects on touch */
    .news-card:hover,
    .member-card:hover,
    .video-card:hover,
    .album-card:hover,
    .gallery-item:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .navbar, .site-footer, .back-to-top, .hero-slider, .full-banner,
    .cta-section, .lightbox-overlay {
        display: none !important;
    }
    
    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Landscape Orientation Fix for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider .carousel-item {
        height: 100vh;
        min-height: auto;
    }
    
    .hero-slider .carousel-caption h2 {
        font-size: 1.3rem;
    }
    
    .hero-slider .carousel-caption p {
        display: none;
    }
    
    .page-banner {
        padding: 25px 0;
    }
    
    .page-banner h1 {
        font-size: 1.3rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
