/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 80px;
        min-height: 100vh;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-section .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navbar-brand {
        font-size: 1.50rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .feature-icon {
        padding: 15px;
    }
    
    .feature-icon i {
        font-size: 2rem !important;
    }
    
    .process-number .badge {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* No animations on mobile for better performance */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section .display-4 {
        font-size: 2.26rem;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    .col-lg-2-4 {
        width: 50%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section .display-4 {
        font-size: 2.60rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .col-lg-2-4 {
        width: 33.333333%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 120px;
    }
    
    .hero-section .display-4 {
        font-size: 2.64rem;
    }
    
    .col-lg-2-4 {
        width: 20%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section .display-4 {
        font-size: 2.99rem;
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Mobile Navigation Adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #cfcfcf;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
    
    .btn:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .navbar,
    #footer,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
        min-height: auto;
    }
    
    .card {
        border: 1px solid #d6dee6 !important;
        box-shadow: none !important;
    }
}

/* Landscape Phone Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
}

/* Accessibility - Focus States */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .form-select:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 

body {
    overflow-x: hidden;
}

.hero-section h1 {
    padding-top: 225px;
}