/* Mobile First Responsive Design */

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
    }
    
    h1, .h1 {
        font-size: 1.6rem;
    }
    
    h2, .h2 {
        font-size: 1.4rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-image-container {
        margin-top: 2rem;
    }
    
    .hero-image-container::before {
        display: none; /* Remove decorative element on mobile */
    }
    
    /* Buttons */
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex .btn {
        width: auto;
        flex: 1;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Feature Icons */
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    /* Section Padding */
    section {
        padding: 40px 0;
    }
    
    /* Contact Form */
    .form-control {
        padding: 10px 12px;
    }
    
    /* Team Cards */
    .card-img-top.rounded-circle {
        width: 150px;
        height: 150px;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Disable animations on mobile to respect reduced motion */
    * {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    /* Step numbers */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* Footer */
    #footer .col-lg-4,
    #footer .col-lg-2,
    #footer .col-lg-3 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small Devices (Landscape Phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    #hero {
        padding: 120px 0 80px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Disable hover animations on mobile */
    * {
        animation-duration: 0s !important;
        transition-duration: 0s !important;
    }
    
    .card:hover {
        transform: none;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2.2rem;
    }
    
    #hero {
        padding: 140px 0 100px;
    }
    
    section {
        padding: 70px 0;
    }
    
    /* Re-enable hover effects for tablets and larger */
    .card {
        transition: all 0.3s ease;
    }
    
    .card:hover {
        transform: translateY(-3px);
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    #hero {
        min-height: 100vh;
    }
    
    section {
        padding: 80px 0;
    }
    
    /* Full hover effects */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
    
    .category-card:hover {
        transform: translateY(-5px);
    }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 100px 0;
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
}

/* Landscape Orientation Adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
    
    section {
        padding: 40px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    section {
        padding: 20px 0;
    }
}

/* Accessibility - 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;
    }
    
    .card:hover,
    .btn:hover,
    .category-card:hover {
        transform: none;
    }
}

/* Dark Mode Support */

/* Focus Indicators for Keyboard Navigation */
@media (any-hover: none) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus,
    .card:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Container Adjustments for Mobile */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Utility Classes for Mobile */
@media (max-width: 767.98px) {
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-mb-3 {
        margin-bottom: 1rem;
    }
    
    .mobile-hide {
        display: none;
    }
} 