/* Mobile First Responsive Design */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 225px;
}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 225px;
}
    
    .contact-info {
        margin-top: 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 225px;
}
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 225px;
}
    
    .container {
        max-width: 1140px;
    }
}

/* Mobile Specific Styles */
@media (max-width: 767.98px) {
    /* Disable animations on mobile for better performance */
    .hero-section::before {
        animation: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    /* Mobile typography adjustments */
    h1, .display-5 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Mobile spacing */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Mobile hero section */
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Mobile contact form */
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    /* Mobile team layout */
    .team img {
        width: 100px;
        height: 100px;
    }
    
    /* Mobile cards */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Mobile navigation adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .services .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .breadcrumb,
    footer {
        display: none;
    }
    
    body {
        padding-top: 0;
    overflow-x: hidden;
}
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    .hero-section {
        background: #f8f9fa;
        color: #000;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .py-5 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    * {
        transition: none;
        animation: none;
    }
} 