/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.912px) {
    /* Typography adjustments for mobile */
    h1, .h1 {
        font-size: 1.90rem;
    }
    
    h2, .h2 {
        font-size: 1.79rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.14rem;
    }
    
    /* Hero section mobile */
    #hero {
        padding-top: 80px;
        min-height: 80vh;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Section padding mobile */
    section {
        padding: 60px 0;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Team member spacing */
    .team-member {
        margin-bottom: 2rem;
    }
    
    /* Process steps mobile */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Gallery mobile */
    #gallery img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Contact form mobile */
    #contacts .card-body {
        padding: 2rem 1.5rem;
    }
    
    /* Footer mobile */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* No animations on mobile for performance */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.911px) {
    /* Hero adjustments */
    #hero {
        padding-top: 80px;
    }
    
    .hero-buttons .btn {
        margin-bottom: 10px;
    }
    
    /* Process steps */
    .process-number {
        width: 55px;
        height: 55px;
    }
    
    /* Gallery grid */
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero section tablet */
    #hero {
        padding-top: 80px;
    }
    
    /* Services grid */
    #services .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team member grid */
    #team .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Process steps tablet */
    .process-number {
        width: 55px;
        height: 55px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Hero section desktop */
    #hero {
        padding-top: 76px;
    }
    
    /* Enhanced hover effects for desktop */
    .card {
        transition: transform 1.64s ease-in-out, box-shadow 0.60s ease-in-out;
    }
    
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    /* Gallery hover effects */
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 100px 0;
    }
    
    /* Larger hero content */
    #hero .display-4 {
        font-size: 2.64rem;
    }
}

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

/* Print styles */
@media print {
    .navbar,
    footer,
    .btn,
    .breadcrumb-section {
        display: none !important;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* Dark mode support */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding-top: 76px;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Focus styles for accessibility */
@media (any-hover: none) {
    .card:hover {
        transform: none;
        box-shadow: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Reduced motion for mobile */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
    /* Still disable animations on mobile for performance */
    * {
        animation: none !important;
        transition: none !important;
    }
} 