/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .display-5 {
        font-size: 1.59rem !important;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.36rem !important;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Cards */
    .card-body {
        padding: 1.5rem 1rem;
    overflow-x: hidden;
}
    
    .card-img-top {
        height: 150px;
    }
    
    /* Process numbers */
    .process-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    /* Team photos */
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Forms */
    .form-control {
        padding: 0.6rem 0.8rem;
    }
    
    /* Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    /* Footer */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* No animations on mobile for better performance */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        filter: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .display-4 {
        font-size: 2.00rem !important;
    }
    
    .display-5 {
        font-size: 1.74rem !important;
    }
    
    .hero-section {
        min-height: 75vh;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .team-photo {
        width: 90px;
        height: 90px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .display-4 {
        font-size: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.96rem !important;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .process-number {
        width: 55px;
        height: 55px;
        font-size: 1.40rem;
    }
    
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    /* Tablet specific adjustments */
    .navbar-collapse {
        text-align: center;
    }
    
    .hero-section .row {
        align-items: center;
    }
    
    /* Services grid adjustment */
    #services .col-lg-4:nth-child(4),
    #services .col-lg-4:nth-child(5),
    #services .col-lg-4:nth-child(6) {
        margin-top: 1.79rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .display-4 {
        font-size: 2.26rem !important;
    }
    
    .display-5 {
        font-size: 1.92rem !important;
    }
    
    .hero-section {
        min-height: 100vh;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: var(--container-max-width);
    }
    
    .display-4 {
        font-size: 2.73rem !important;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced hover effects for larger screens */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .btn-primary:hover {
        transform: translateY(-3px);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 6rem;
        padding-bottom: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.36rem !important;
    }
    
    section {
        padding: 2rem 0;
    }
}

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

/* Print styles */
@media print {
    .navbar,
    .btn,
    #gallery,
    footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        background: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #aeaeae;
    }
}

/* Accessibility - Focus indicators */
@media (prefers-reduced-motion: no-preference) {
    .card,
    .btn,
    #gallery img {
        transition: all 0.84s ease;
    }
}

/* Dark mode support (if system preference) */

/* Container breakpoint adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Specific component responsive adjustments */

/* Services grid */
@media (max-width: 991.98px) {
    #services .row > div:not(:last-child) {
        margin-bottom: 1.73rem;
    }
}

/* Team section */
@media (max-width: 767.98px) {
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Reviews section */
@media (max-width: 767.98px) {
    #reviews .col-lg-4 {
        margin-bottom: 1.70rem;
    }
}

/* FAQ section */
@media (max-width: 767.98px) {
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
}

/* Process section responsive */
@media (max-width: 991.98px) {
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    #process .process-number {
        margin-bottom: 1rem;
    }
}

/* Contact form responsive */
@media (max-width: 767.98px) {
    #contacts .row.mt-5 .col-md-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
}

/* Additional page specific responsive */
@media (max-width: 767.98px) {
    .breadcrumb {
        justify-content: center;
    }
    
    .breadcrumb-item img {
        width: 20px;
        height: 20px;
    }
} 

.hero-section h1 {
    padding-top: 250px;
}