/**
 * Ekarth Commerce Classes - Responsive Stylesheet
 * Mobile-first responsive design
 */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --section-padding: 60px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--secondary-dark);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .nav-link {
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-cta {
        margin-top: 30px;
        width: 100%;
    }
    
    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .floating-card {
        display: none;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 50px;
    }
    
    html {
        font-size: 14px;
    }
    
    /* Typography */
    .section-title {
        margin-bottom: 40px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 100px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Grids */
    .courses-grid,
    .test-series-grid,
    .faculty-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .test-series-card.featured {
        transform: none;
    }
    
    /* Glass Cards */
    .glass-card {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        right: 80px;
        bottom: 20px;
    }
    
    /* Modal */
    .modal {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 60px;
    }
    
    /* Forms */
    .form-control {
        padding: 12px 15px;
    }
    
    /* Testimonials */
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-info-card,
    .contact-form-wrapper {
        padding: 25px;
    }
    
    /* Payment */
    .payment-details {
        padding: 25px;
    }
    
    .qr-code {
        width: 200px;
        height: 200px;
    }
    
    /* Faculty */
    .faculty-image {
        height: 250px;
    }
    
    /* Slider */
    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    /* Navigation */
    .nav-logo {
        gap: 8px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    
    /* Hero */
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    /* Course Cards */
    .course-content {
        padding: 20px;
    }
    
    .course-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Test Series */
    .test-series-card {
        padding: 30px 20px;
    }
    
    .test-series-price {
        font-size: 2.2rem;
    }
    
    /* Features */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-title {
        margin-bottom: 20px;
    }
    
    /* Alerts */
    .alert {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .nav-menu {
        padding-top: 80px;
    }
    
    .modal {
        max-height: 80vh;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .shape {
        opacity: 0.08;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Already dark theme by default */
}

/* 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;
    }
    
    .shape {
        animation: none;
    }
    
    .floating-card {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .whatsapp-float,
    .scroll-top,
    .hero-shapes,
    .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    section {
        padding: 30px 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover {
        transform: none;
    }
    
    .card-3d:hover {
        transform: none;
    }
    
    .feature-card:hover .feature-icon {
        transform: none;
    }
}

/* Large Screens Optimization */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content {
        gap: 80px;
    }
}

/* Ultra Wide Screens */
@media (min-width: 1920px) {
    :root {
        --section-padding: 120px;
    }
    
    .container {
        max-width: 1500px;
    }
}
