/* ==========================================================================
   LearnPro - Responsive CSS
   Mobile-first responsive design with no animations on mobile
   ========================================================================== */

/* Mobile First - Base Styles (320px and up) */
@media (max-width: 575.98px) {
    /* Disable all animations on mobile */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Navbar brand conservative size */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    #hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    #hero h2 {
        font-size: 1.1rem;
    }
    
    #hero p {
        font-size: 16px;
    }
    
    /* Remove decorative elements on mobile */
    #hero::before {
        display: none;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Team member images */
    .team-member img {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Form controls */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Button sizes */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Section padding reduction */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3,
    #gallery .col-md-4,
    #gallery .col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Process steps - remove connecting lines */
    .process-step::after {
        display: none;
    }
    
    /* Footer adjustments */
    footer {
        text-align: center;
    }
    
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Navbar */
    .navbar-brand {
        font-size: 1.4rem !important;
    }
    
    /* Hero adjustments */
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero h2 {
        font-size: 1.15rem;
    }
    
    /* Card layouts */
    .card-deck .card {
        margin-bottom: 1.5rem;
    }
    
    /* Team layout */
    .team-member img {
        width: 110px !important;
        height: 110px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Hero section */
    #hero h1 {
        font-size: 2.25rem;
    }
    
    #hero h2 {
        font-size: 1.2rem;
    }
    
    /* Services grid */
    .services-grid .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Team grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container max width adjustment */
    .container {
        max-width: 960px;
    }
    
    /* Hero section */
    #hero h1 {
        font-size: 2.5rem;
    }
    
    /* Card hover effects enabled */
    .card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    /* Navigation spacing */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full desktop experience */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced hero section */
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #hero h2 {
        font-size: 1.3rem;
    }
    
    /* Process steps with connecting lines */
    .process-step::after {
        display: block;
    }
    
    /* Enhanced card effects */
    .card:hover .card-img-top {
        transform: scale(1.05);
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Increased spacing for ultra-wide */
    section {
        padding: 4rem 0;
    }
    
    .py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

/* Height-based media queries */
@media (max-height: 600px) and (orientation: landscape) {
    /* Landscape mobile optimization */
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* Print styles override */
@media print {
    /* Ensure proper layout for printing */
    .container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .row {
        display: block !important;
    }
    
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-md-6,
    .col-md-4 {
        width: 100% !important;
        display: block !important;
        margin-bottom: 1rem;
    }
    
    /* Hide interactive elements */
    .navbar-toggler,
    .btn,
    form {
        display: none !important;
    }
    
    /* Adjust colors for print */
    .bg-light {
        background-color: #f8f9fa !important;
        -webkit-print-color-adjust: exact;
    }
    
    .text-primary {
        color: #000 !important;
    }
}

/* Dark mode support */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    /* Ensure no motion for users who prefer it */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Focus management for keyboard navigation */
@media (hover: none) and (pointer: coarse) {
    /* Touch device optimizations */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* Specific mobile navbar customization (no custom hamburger) */
@media (max-width: 991.98px) {
    /* Use standard Bootstrap navbar toggler - no customization */
    .navbar-toggler {
        border: 1px solid rgba(0,0,0,.1);
    }
    
    .navbar-collapse {
        border-top: 1px solid rgba(0,0,0,.1);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
    }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
