/* Responsive CSS for Peer Learning Circles Website */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        padding-top: 80px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    padding-top: 275px;
}
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card {
        margin-bottom: 1rem;
    }
    
    /* Team */
    .member-photo img {
        width: 150px;
        height: 150px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item::before {
        left: -30px;
        width: 12px;
        height: 12px;
    }
    
    /* Gallery */
    .gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Breadcrumb */
    .breadcrumb-icon {
        width: 30px;
        height: 30px;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    #hero {
        min-height: 85vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* Cards Grid */
    .service-card,
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    /* Team */
    .member-photo img {
        width: 180px;
        height: 180px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 2rem;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 3rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Cards */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Team Grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process Steps */
    .process-step {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    .gallery img {
        margin-bottom: 1rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero Section */
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    /* Cards spacing */
    .row.g-4 > * {
        margin-bottom: 1.5rem;
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Full hero height on large screens */
    #hero {
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    /* Enhanced spacing for large screens */
    .py-5 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Even larger typography for ultra-wide */
    .hero-content h1 {
        font-size: 4.5rem;
    }
    
    .display-4 {
        font-size: 3.5rem;
    }
}

/* Height-based Media Queries */
@media (max-height: 600px) {
    #hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        padding: 2rem 0;
    padding-top: 275px;
}
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 4rem 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .hero-buttons,
    #footer .contact-details,
    .contact-form {
        display: none;
    }
    
    /* Adjust colors for print */
    body {
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    .bg-light,
    .bg-primary,
    .bg-dark {
        background: #fff;
        color: #000;
    }
    
    /* Ensure good contrast */
    .text-muted,
    .text-light {
        color: #666;
    }
    
    /* Page breaks */
    .py-5 {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    /* Adjust spacing for print */
    .py-5 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Enhance image quality on retina displays */
    .hero-image-wrapper img,
    .service-card img,
    .blog-card img,
    .member-photo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support (if browser supports) */

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    /* Remove animations on mobile for better performance */
    .feature-card:hover,
    .service-card:hover,
    .blog-card:hover,
    .member-photo:hover img {
        transform: none;
    }
    
    /* Simplify scroll behavior */
    html {
        scroll-behavior: auto;
    }
    
    /* Remove parallax and complex animations */
    .hero-shape-1,
    .hero-shape-2 {
        display: none;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .service-card:hover,
    .btn:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    /* Enhance form controls for touch */
    .form-control {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Specific Mobile Fixes */
@media (max-width: 480px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* Stack pricing cards */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    /* Full width buttons on mobile */
    .hero-buttons .btn,
    .pricing-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Adjust team grid */
    .team-member {
        margin-bottom: 3rem;
    }
    
    /* Mobile-friendly contact info */
    .contact-info {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Improve form layout */
    .contact-form .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* iOS Safari Specific Fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix viewport height issues on iOS */
    #hero {
        min-height: -webkit-fill-available;
    }
    
    /* Prevent zooming on form inputs */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px;
    }
}

/* Android Specific Optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Android Chrome optimizations */
    .btn {
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    input[type="submit"] {
        -webkit-appearance: none;
    }
} 