/* Responsive CSS for Remote Peer-Learning Circles */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    *, *::before, *::after {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    
    /* Typography adjustments */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    h1, .h1 {
        font-size: 2rem !important;
    }
    
    h2, .h2 {
        font-size: 1.75rem !important;
    }
    
    h3, .h3 {
        font-size: 1.5rem !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Hero section adjustments */
    #hero {
        padding: 3rem 0 !important;
        min-height: 70vh !important;
    }
    
    #hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    #hero .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Section spacing */
    section {
        padding: 2.5rem 0 !important;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 180px !important;
    }
    
    /* Team member images */
    #team img {
        width: 120px !important;
        height: 120px !important;
    }
    
    /* Price plan cards */
    #priceplan .card {
        margin-bottom: 2rem;
    }
    
    /* Contact form */
    #contact .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Stats display */
    .display-4 {
        font-size: 2.5rem !important;
    }
    
    /* Navigation adjustments */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Footer adjustments */
    #footer {
        text-align: center;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery grid */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Process steps */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Timeline items */
    #timeline .col-lg-4,
    #timeline .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2.25rem;
    }
    
    h2, .h2 {
        font-size: 1.875rem;
    }
    
    /* Hero section */
    #hero {
        padding: 4rem 0;
        min-height: 80vh;
    }
    
    /* Section spacing */
    section {
        padding: 3.5rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team images */
    #team img {
        width: 140px;
        height: 140px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section */
    #hero {
        padding: 5rem 0;
    }
    
    /* Section spacing */
    section {
        padding: 4rem 0;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Features grid */
    #features .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team grid */
    #team .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Reviews grid */
    #reviews .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Case studies */
    #casestudy .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Career items */
    #career .col-lg-6 {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Typography fine-tuning */
    h1, .h1 {
        font-size: 2.75rem;
    }
    
    h2, .h2 {
        font-size: 2.25rem;
    }
    
    /* Hero section */
    #hero {
        padding: 6rem 0;
    }
    
    /* Section spacing */
    section {
        padding: 5rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 240px;
    }
    
    /* Services items spacing */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width */
    .container {
        max-width: 1140px;
    }
    
    /* Full typography scale */
    h1, .h1 {
        font-size: 3rem;
    }
    
    h2, .h2 {
        font-size: 2.5rem;
    }
    
    /* Hero section */
    #hero {
        padding: 7rem 0;
    }
    
    /* Section spacing */
    section {
        padding: 6rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 250px;
    }
    
    /* Enhanced spacing */
    .mb-5 {
        margin-bottom: 4rem !important;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Enhanced typography for large screens */
    h1, .h1 {
        font-size: 3.25rem;
    }
    
    h2, .h2 {
        font-size: 2.75rem;
    }
    
    .display-4 {
        font-size: 4rem;
    }
    
    /* Hero section */
    #hero {
        padding: 8rem 0;
    }
    
    /* Section spacing */
    section {
        padding: 7rem 0;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: 100vh !important;
        padding: 2rem 0 !important;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 2rem 0 !important;
    }
}

/* Print styles */
@media print {
    /* Remove unnecessary elements for print */
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    /* Adjust colors for print */
    body {
        color: #000 !important;
        background: #fff !important;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    /* Ensure readable text sizes */
    h1, .h1 { font-size: 24pt !important; }
    h2, .h2 { font-size: 20pt !important; }
    h3, .h3 { font-size: 18pt !important; }
    h4, .h4 { font-size: 16pt !important; }
    h5, .h5 { font-size: 14pt !important; }
    h6, .h6 { font-size: 12pt !important; }
    p { font-size: 11pt !important; }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000 !important;
    }
    
    .btn {
        border: 2px solid !important;
    }
    
    .text-muted {
        color: #333 !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Ensure minimum touch target size on mobile */
@media (max-width: 767.98px) {
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
        min-width: 44px;
    }
} 