/* Mobile First Responsive Design */

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .hero-content {
        padding: 6rem 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }
    
    #hero {
        text-align: center;
        padding: 2rem 0;
    }
    
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 2.25rem;
    }
    
    .py-5 {
        padding: 3rem 0;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    /* Team cards stack better on tablets */
    .team-card img {
        height: 250px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    /* NO ANIMATIONS IN MOBILE RESOLUTION */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    
    .card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
    }
    
    .h2 {
        font-size: 1.75rem;
    }
    
    .h3 {
        font-size: 1.375rem;
    }
    
    .h4 {
        font-size: 1.125rem;
    }
    
    .h5 {
        font-size: 1rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding: 2.5rem 0;
    }
    
    .mb-5 {
        margin-bottom: 2rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        border: none;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
    
    #hero .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    #hero .col-lg-6:last-child {
        margin-bottom: 0;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Services section */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Team section */
    .team-card img {
        height: 300px;
    }
    
    /* Gallery adjustments */
    #gallery img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        margin-bottom: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    #footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    /* Text centering on mobile */
    .text-md-center {
        text-align: center;
    }
    
    /* FAQ section mobile */
    .faq-section .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Price plan mobile */
    .price-card.featured {
        transform: none;
        margin: 1rem 0;
    }
    
    /* Contact section mobile */
    .contact-info {
        margin-top: 2rem;
        text-align: center;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Even smaller typography */
    .display-4 {
        font-size: 1.75rem;
    }
    
    .h2 {
        font-size: 1.5rem;
    }
    
    .h3 {
        font-size: 1.25rem;
    }
    
    .h4 {
        font-size: 1.125rem;
    }
    
    .h5 {
        font-size: 1rem;
    }
    
    /* Smaller spacing */
    .py-5 {
        padding: 2rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hero section extra small */
    #hero {
        min-height: 60vh;
        padding: 1rem 0;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 180px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    /* Gallery smaller images */
    #gallery img {
        height: 150px;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Icon size adjustments */
    .fa-3x {
        font-size: 2rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        font-size: 0.875rem;
    }
    
    /* Footer mobile */
    #footer {
        padding: 2rem 0;
    }
    
    #footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Form mobile */
    .form-control {
        padding: 0.5rem 0.75rem;
    }
    
    /* Team images smaller */
    .team-card img {
        height: 250px;
    }
}

/* Landscape phone specific adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
    #hero {
        min-height: 50vh;
    }
    
    .py-5 {
        padding: 1.5rem 0;
    }
    
    .navbar-nav {
        max-height: 200px;
        overflow-y: auto;
    }
}

/* Print styles */
@media print {
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .card {
        break-inside: avoid;
        border: 1px solid #000;
        margin-bottom: 1rem;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .text-muted {
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms;
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        scroll-behavior: auto;
    }
}

/* Dark mode support */

/* Focus indicators for accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #hero .col-lg-6 img {
        max-width: 80%;
        margin: 0 auto;
        display: block;
    }
} 