/* Responsive CSS for Digital Whiteboard Templates Marketplace */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile optimization */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    /* Navigation mobile adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    
    /* Cards mobile layout */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Services grid mobile */
    .services-grid .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Team members mobile layout */
    .team img {
        width: 80px;
        height: 80px;
    }
    
    /* Process steps mobile */
    .process-step .badge {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact form mobile */
    .contact-form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Gallery mobile layout */
    #gallery .col-6 {
        margin-bottom: 1rem;
    }
    
    /* FAQ mobile spacing */
    #faq .card {
        margin-bottom: 0.75rem;
    }
    
    /* Footer mobile layout */
    footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Section padding mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Mobile-specific spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hide decorative elements on mobile */
    .hero-section::before {
        display: none;
    }
    
    /* Mobile text alignment */
    .text-center h2 + h3 {
        margin-top: 0.25rem;
    }
    
    .text-center h3 + p {
        margin-top: 0.75rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Hero section adjustments */
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.1rem;
    }
    
    /* Cards layout */
    .card-img-top {
        height: 180px;
    }
    
    /* Team members */
    .team img {
        width: 100px;
        height: 100px;
    }
    
    /* Button adjustments */
    .btn {
        width: auto;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section tablet layout */
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    /* Cards tablet layout */
    .services-grid .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team layout tablet */
    .team .col-md-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Process steps tablet */
    .process-step .col-md-4 {
        margin-bottom: 1.5rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Ensure proper spacing on desktop */
    .hero-section {
        padding: 4rem 0;
    }
    
    /* Team member layout */
    .team .col-lg-2 {
        margin-bottom: 1rem;
    }
    
    /* Process steps desktop layout */
    .process-step .col-lg-2 {
        margin-bottom: 1rem;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments for very large screens */
    .container {
        max-width: 1140px;
    }
    
    /* Typography scale for large screens */
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 125px;
}
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    /* Reduce hero section height on landscape mobile */
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    /* Adjust navbar for landscape */
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp rendering on high DPI displays */
    .card {
        border-width: 0.5px;
    }
    
    .form-control {
        border-width: 0.5px;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #gallery,
    footer {
        display: none !important;
    }
    
    /* Ensure proper spacing for print */
    .hero-section {
        background: white !important;
        color: black !important;
        padding: 1rem 0;
    }
    
    /* Remove shadows and transitions for print */
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    
    /* Ensure readable text colors */
    * {
        color: black !important;
        background: white !important;
    }
}

/* Dark mode support (if user prefers) */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove hover effects for reduced motion */
    .card:hover {
        transform: none !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Focus management for mobile */
@media (max-width: 767.98px) {
    /* Larger focus targets for mobile */
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline-width: 3px;
        outline-offset: 3px;
    }
    
    /* Ensure minimum touch target size */
    .btn,
    .nav-link,
    .form-control {
        min-height: 44px;
    }
}

/* Accessibility: High contrast mode */
@media (prefers-contrast: high) {
    /* Increase contrast for better accessibility */
    .card {
        border-width: 2px;
        border-color: black;
    }
    
    .btn-primary {
        background: black !important;
        border-color: black !important;
        color: white !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: black;
        color: white;
    }
}

/* Tablet-specific layout optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Optimize for tablet landscape and portrait */
    .hero-section .row {
        align-items: center;
    }
    
    /* Ensure proper spacing on tablets */
    .services-grid .card {
        height: 100%;
    }
    
    /* FAQ tablet layout */
    #faq .row .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Ultra-wide screen adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Prevent content from stretching too wide */
    .hero-section .container,
    section .container {
        max-width: 1200px;
    }
} 