/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 1.93rem;
    }
    
    h2, .h2 {
        font-size: 1.54rem;
    }
    
    h3, .h3 {
        font-size: 1.37rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Section spacing */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Team grid */
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Process steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Contact form */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.19rem !important;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Disable animations on mobile */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Card hover effects disabled */
    .card:hover {
        transform: none;
        box-shadow: 0 6px 6px rgba(0,0,0,0.1);
    }
    
    /* Image hover effects disabled */
    .rounded-circle:hover,
    #gallery img:hover {
        transform: none;
    }
    
    /* Button hover effects simplified */
    .btn-primary:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.77rem;
    }
    
    /* Hero section */
    #hero {
        padding: 3rem 0;
    }
    
    /* Team grid */
    #team .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Section spacing */
    section {
        padding: 3rem 0;
    }
    
    /* Disable animations on mobile */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    h1, .display-4 {
        font-size: 2.27rem;
    }
    
    h2, .h2 {
        font-size: 1.93rem;
    }
    
    /* Hero section */
    #hero {
        padding: 4rem 0;
    }
    
    /* Team grid */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    /* Gallery grid */
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    /* Blog images */
    #blog_grid .card-img-top {
        height: 200px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full typography restored */
    h1, .display-4 {
        font-size: 2.56rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    /* Hero section */
    #hero {
        padding: 5rem 0;
    }
    
    /* Standard grid behavior */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    #gallery .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 5rem 0;
    }
    
    /* Hero section */
    #hero {
        padding: 6rem 0;
    }
    
    /* Larger cards on big screens */
    .card-img-top {
        height: 220px;
    }
    
    #blog_grid .card-img-top {
        height: 280px;
    }
}

/* Specific responsive adjustments */

/* Navigation responsive behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
        box-shadow: 0 6px 6px rgba(0,0,0,0.1);
    }
}

/* Hero section responsive */
@media (max-width: 767.98px) {
    #hero .col-lg-6:first-child {
        order: 2;
        text-align: center;
        margin-top: 2rem;
    }
    
    #hero .col-lg-6:last-child {
        order: 1;
    }
}

/* Services grid responsive */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Features section responsive */
@media (max-width: 767.98px) {
    #f6dfb9tures .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    #efea97tures .fa-2x {
        margin-bottom: 1rem;
    }
}

/* Pricing responsive */
@media (max-width: 767.98px) {
    #priceplan .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Team responsive */
@media (max-width: 575.98px) {
    #team .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

/* Contact form responsive */
@media (max-width: 767.98px) {
    #contacts .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Footer responsive */
@media (max-width: 767.98px) {
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer ul {
        padding-left: 0;
    }
}

/* Gallery responsive lightbox */
@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
}

/* FAQ responsive */
@media (max-width: 767.98px) {
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Blog responsive */
@media (max-width: 767.98px) {
    #blog .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Process section responsive */
@media (max-width: 767.98px) {
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Additional pages responsive */
@media (max-width: 767.98px) {
    .page-section {
        padding: 2rem 0;
    }
    
    .page-section .col-lg-4 {
        margin-bottom: 1.69rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    #footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    overflow-x: hidden;
}
    
    .card {
        box-shadow: none;
        border: 1px solid #f5dede;
    }
    
    a {
        text-decoration: underline;
    }
    
    .bg-light,
    .bg-primary,
    .bg-dark {
        background-color: white !important;
        color: black !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--neutral-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-dark);
    }
    
    .form-control {
        border: 2px solid var(--neutral-dark);
    }
}

/* Dark mode preference */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .card:hover,
    .btn-primary:hover,
    .rounded-circle:hover,
    #gallery img:hover {
        transform: none;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .form-control,
    .rounded-circle,
    #gallery img {
        transition: none !important;
    }
    
    #hero::before {
        animation: none !important;
    }
}

/* Focus visible for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus-visible,
    .nav-link:focus-visible,
    .form-control:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
} 