/* Responsive Design - Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }
    
    section {
        padding: 2rem 0 !important;
    }
    
    .hero-section {
        min-height: 70vh !important;
        text-align: center;
    }
    
    .feature-card,
    .service-card,
    .team-card,
    .price-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .contact-form {
        padding: 2rem !important;
    }
    
    .team-image {
        width: 120px !important;
        height: 120px !important;
    }
    
    .service-price {
        font-size: 1.5rem !important;
    }
    
    .price-amount {
        font-size: 2rem !important;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: 75vh;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero-section {
        min-height: 85vh;
    }
    
    .service-card,
    .feature-card,
    .team-card {
        margin-bottom: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Disable Swiper autoplay and effects on mobile */
    .swiper-container {
        --swiper-autoplay-delay: 0;
    }
    
    .swiper-slide {
        transition: none !important;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .container {
        max-width: 1200px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Ultra Wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container-xxl {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('../TEC_images/hero-bg@2x.webp');
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
        background: #fff !important;
    }
    
    .hero-title,
    .section-title {
        color: #000 !important;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .swiper-container {
        --swiper-autoplay-delay: 0 !important;
    }
    
    .swiper-slide {
        transition: none !important;
        transform: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .team-card:hover,
    .price-card:hover {
        transform: none !important;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --light-gray: #2d2d2d;
        --medium-gray: #a0a0a0;
        --dark-gray: #f0f0f0;
    }
    
    body {
        background: var(--white);
        color: var(--dark-gray);
    }
    
    .feature-card,
    .service-card,
    .team-card,
    .price-card,
    .blog-card,
    .contact-form {
        background: var(--light-gray);
        color: var(--dark-gray);
    }
}

/* Container Responsive Adjustments */
@media (max-width: 1199.98px) {
    .container-xl {
        max-width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 991.98px) {
    .container-lg {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .container-md {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Stack columns on mobile */
    .row > [class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-navy);
        margin-top: 1rem;
        border-radius: 10px;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
    font-size: 10px !important;
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--primary-steel);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Form Responsive */
@media (max-width: 767.98px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
}

/* Timeline Responsive */
@media (max-width: 767.98px) {
    .timeline-item {
        border-left: none;
        padding-left: 0;
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .timeline-item::before {
        display: none;
    }
}

/* Process Steps Responsive */
@media (max-width: 767.98px) {
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* Team Section Responsive */
@media (max-width: 767.98px) {
    .team-card {
        text-align: center;
        padding: 1.5rem;
    }
    
    .team-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
}

/* Services Grid Responsive */
@media (max-width: 991.98px) {
    .service-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 1.5rem;
    }
    
    .service-image {
        height: 150px;
    }
}

/* Blog Grid Responsive */
@media (max-width: 767.98px) {
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .blog-image {
        height: 150px;
    }
}

/* FAQ Responsive */
@media (max-width: 767.98px) {
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
} 