/* Responsive CSS for Surya Computer Education */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    .course-card .course-body {
        padding: 1.5rem;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .course-card .course-body {
        padding: 1.2rem;
    }
    
    .course-img {
        height: 180px;
    }
    
    .counter-card h3 {
        font-size: 2rem;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .course-img {
        height: 200px;
    }
    
    .counter-card h3 {
        font-size: 1.8rem;
    }
    
    .footer-widget {
        text-align: center;
    }
    
    .widget-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-links li a {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn-gradient {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .course-card {
        margin-bottom: 20px;
    }
    
    .course-img {
        height: 180px;
    }
    
    .counter-card {
        margin-bottom: 15px;
    }
    
    .counter-card h3 {
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .gallery-item img {
        height: 150px;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .btn-gradient {
        padding: 6px 16px;
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .btn-outline-light {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .course-card {
        margin-bottom: 20px;
    }
    
    .course-img {
        height: 160px;
    }
    
    .course-body h4 {
        font-size: 1.1rem;
    }
    
    .course-meta {
        font-size: 0.8rem;
    }
    
    .counter-card {
        margin-bottom: 15px;
        padding: 15px;
    }
    
    .counter-card h3 {
        font-size: 1.3rem;
    }
    
    .counter-card p {
        font-size: 0.85rem;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section .lead {
        font-size: 1rem;
    }
    
    .gallery-item img {
        height: 120px;
    }
    
    .footer-brand {
        font-size: 1.3rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .footer-links li a {
        font-size: 0.85rem;
    }
    
    .copyright, .designed-by {
        font-size: 0.75rem;
    }
}

/* Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .course-img {
        height: 140px;
    }
    
    .course-body h4 {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .counter-card h3 {
        font-size: 1.1rem;
    }
    
    .btn-gradient {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
}

/* Tablet and Desktop Navigation */
@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateY(10px);
    }
    
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .whatsapp-float,
    .scroll-top,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .cta-section,
    .newsletter-form,
    .social-links {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    .course-card,
    .feature-card,
    .counter-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* High Resolution Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .course-img {
        height: 220px;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0;
    }
    
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .course-card:hover {
        transform: none;
    }
    
    .btn-gradient:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loader::before,
    .loader::after {
        animation: none;
    }
    
    .whatsapp-float {
        animation: none;
    }
}