/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.910px) {
    /* No animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: 0 8px 6px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.85rem;
    }
    
    h3, .h3 {
        font-size: 1.64rem;
    }
    
    /* Hero section */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-decorative-shape {
        display: none;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.22rem !important;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.71rem;
    }
    
    /* Team images */
    .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Process steps */
    .bg-primary.rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Contact form */
    .form-control {
        margin-bottom: 1rem;
    }
    
    /* Footer */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-4 {
        font-size: 2.27rem;
    }
    
    h2, .h2 {
        font-size: 1.89rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-decorative-shape {
        width: 150px;
        height: 150px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-decorative-shape {
        width: 175px;
        height: 175px;
    }
    
    /* Team grid adjustments */
    .col-lg-2.col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Process steps */
    .col-lg-2.col-md-4 {
        margin-bottom: 1.75rem;
    }
}

/* Large devices (desktops, 996px and up) */
@media (min-width: 992px) {
    /* Full animations enabled */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
        opacity: 0.9;
    }
    
    /* Hero decorative elements */
    .hero-decorative-shape {
        display: block;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-decorative-shape {
        width: 250px;
        height: 250px;
    }
}

/* Ultra wide screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (max-width: 768px) {
    #hero {
        text-align: center;
    }
    
    #hero .col-lg-6:last-child {
        margin-top: 2rem;
    }
    
    /* Stack team members vertically on small portrait screens */
    .col-lg-2.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card {
        box-shadow: 0 2px 7px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover {
        box-shadow: 0 5px 8px rgba(0, 0, 0, 0.15);
    }
}

/* Print styles */
@media print {
    * {
        animation: none !important;
        transition: none !important;
        box-shadow: none !important;
    }
    
    .navbar,
    #footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .card {
        border: 1px solid #f9f9f9;
        box-shadow: none;
        margin-bottom: 1rem;
    }
    
    a {
        text-decoration: none !important;
        color: inherit !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-decorative-shape {
        display: none;
    }
}

/* Dark mode support (if user prefers) */

/* Container responsive adjustments */
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

@media (max-width: 575.98px) {
    .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }
}

/* Grid system responsive adjustments */
@media (max-width: 767.98px) {
    .row {
        margin-right: -0.75rem;
        margin-left: -0.75rem;
    }
    
    .col-lg-6,
    .col-lg-4,
    .col-lg-3,
    .col-lg-2 {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
}

/* Form responsive adjustments */
@media (max-width: 575.98px) {
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Navigation responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        border-radius: 0.375rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 0.66rem;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid #c9d2d8;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Gallery responsive grid */
@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Services grid responsive */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Team responsive layout */
@media (max-width: 575.98px) {
    .col-lg-2.col-md-4.col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Process steps responsive */
@media (max-width: 767.98px) {
    .col-lg-2.col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2.col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.73rem;
    }
} 

body {
    overflow-x: hidden;
}