/* Mobile First Responsive Design */

/* Mobile devices (up to 767px) */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    #hero-title-1 {
        font-size: 2rem;
        text-align: center;
    }
    
    #hero-subtitle-1 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
        text-align: center;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .testimonial-swiper {
        padding: 1rem 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    #team img {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .breadcrumbs {
        padding-top: 80px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.1rem; }
    
    /* Disable autoplay and effects on mobile for Swiper */
    .swiper-wrapper {
        transform: none !important;
    }
    
    .swiper-slide {
        opacity: 1 !important;
    }
}

/* Tablet devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    #hero-title-1 {
        font-size: 2.5rem;
    }
    
    #hero-subtitle-1 {
        font-size: 1.3rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    .col-md-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

/* Desktop devices (992px and up) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .container {
        max-width: 1200px;
    }
    
    .testimonial-card {
        padding: 2.5rem;
    }
}

/* Large desktop devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    #hero-title-1 {
        font-size: 3.5rem;
    }
    
    .card-img-top {
        height: 220px;
    }
}

/* Extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px;
    }
    
    #hero-title-1 {
        font-size: 4rem;
    }
}

/* Portrait orientation adjustments */
@media (orientation: portrait) and (max-width: 991px) {
    .hero-section .row {
        flex-direction: column;
    }
    
    .hero-section .col-lg-6:first-child {
        order: 1;
        text-align: center;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 2;
        margin-top: 1rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .swiper-pagination,
    footer {
        display: none !important;
    }
    
    body {
  overflow-x: hidden;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .hero-section {
        min-height: auto;
        page-break-inside: avoid;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .swiper-wrapper {
        transform: none !important;
    }
    
    .card,
    .btn,
    img,
    * {
        transition: none !important;
        animation: none !important;
    }
}
