/* ===== MEDIA QUERIES FOR RESPONSIVE DESIGN ===== */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #home h1 {
        font-size: 4.5rem;
    }
    
    .hero-buttons .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
}

/* Medium devices (tablets, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-brand img {
        transform: scale(3) !important;
        margin-left: 10px !important;
    }
    
    #home h1 {
        font-size: 3.8rem;
    }
    
    .service-card-content {
        padding: 1.2rem;
    }
    
    .stats-number {
        font-size: 2.5rem;
    }
}

/* Small devices (landscape phones, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Navigation */
    .navbar-brand img {
        transform: scale(2.5) !important;
        margin-left: 15px !important;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        margin: 5px 0;
    }
    
    /* Hero Section */
    #home {
        min-height: 600px;
        padding: 60px 0;
    }
    
    #home h1 {
        font-size: 3.2rem;
        margin-bottom: 1rem;
    }
    
    #home .lead {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 25px;
        margin: 5px;
        font-size: 1rem;
    }
    
    /* Services Section */
    #services .nav-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #services .nav-pills .nav-link {
        margin: 5px;
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    /* Stats Section */
    .stats-number {
        font-size: 2.2rem;
    }
    
    .stats-icon {
        font-size: 2.2rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    /* Process Section */
    .step-box {
        padding: 1.5rem;
        margin-bottom: 20px;
    }
    
    /* General Section Padding */
    section {
        padding: 80px 0;
    }
}

/* Extra small devices (portrait phones, less than 768px) */
@media (max-width: 767.98px) {
    /* Body and General */
    body {
        padding-top: 70px;
        font-size: 14px;
    }
    
    html, body {
        font-size: 12px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem !important;
        padding-top: 20px;
    }
    
    /* Navigation */
    .navbar {
        padding: 8px 0;
    }
    
    .navbar-brand img {
        transform: scale(2) !important;
        margin-left: 10px !important;
        max-width: 200px;
    }
    
    .navbar-toggler {
        margin-right: 15px;
    }
    
    .navbar-collapse {
        background: var(--light-color);
        margin-top: 10px;
        border-radius: 10px;
        padding: 15px;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 12px 0;
        margin: 5px 0;
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    #home {
        min-height: 500px;
        height: auto;
        padding: 40px 0;
        text-align: center;
    }
    
    #home h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    #home .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 25px;
        font-size: 1rem;
        margin: 5px 0;
    }
    
    /* Video Background */
    .video-background {
        min-height: 100%;
        min-width: 100%;
        transform: translateX(-50%) translateY(-50%) scale(1.2);
    }
    
    /* Services Section */
    #services .nav-pills {
        flex-direction: column;
        border-radius: 15px;
        padding: 10px;
    }
    
    #services .nav-pills .nav-link {
        margin: 5px 0;
        padding: 12px 20px;
        font-size: 0.9rem;
        text-align: center;
    }
    
    .service-card {
        margin-bottom: 25px;
    }
    
    .service-card img {
        height: 160px;
    }
    
    .service-card-content {
        padding: 1.2rem;
    }
    
    .service-card-content h5 {
        font-size: 1.2rem;
    }
    
    /* Process Section */
    .step-box {
        padding: 1.5rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .step-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-box i {
        font-size: 2rem;
    }
    
    /* Stats Section */
    .stats-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .stats-box {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .stats-label {
        font-size: 1rem;
    }
    
    /* Testimonials */
    .carousel-inner .row {
        padding: 20px !important;
    }
    
    .testimonial-card {
        margin-bottom: 20px;
        padding: 1.5rem;
    }
    
    .google-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    /* FAQ Section */
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Terms Section */
    .term-item {
        padding: 1.2rem;
        margin-bottom: 15px;
    }
    
    .term-item .icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 12px;
    }
    
    /* About Section */
    #about .row > div {
        margin-bottom: 30px;
    }
    
    .map-container {
        height: 250px;
    }
    
    /* Contact Section */
    #contact .row > div {
        margin-bottom: 30px;
    }
    
    form {
        padding: 20px;
    }
    
    .form-control, .form-select {
        padding: 12px;
    }
    
    .contact-info p {
        font-size: 0.95rem;
    }
    
    /* Footer */
    footer {
        text-align: center;
    }
    
    /* Floating Elements */
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
        font-size: 20px;
    }
    
    .chat-box {
        width: calc(100% - 30px);
        max-width: 300px;
        bottom: 80px;
        left: 15px;
        padding: 20px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }
}

/* Very small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Body and General */
    body {
        padding-top: 65px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    /* Navigation */
    .navbar-brand img {
        transform: scale(1.8) !important;
        margin-left: 5px !important;
    }
    
    /* Hero Section */
    #home {
        min-height: 450px;
        padding: 30px 0;
    }
    
    #home h1 {
        font-size: 2rem;
    }
    
    #home .lead {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Services Section */
    #services .nav-pills .nav-link {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .service-card img {
        height: 140px;
    }
    
    /* Stats Section */
    .stats-heading {
        font-size: 1.8rem;
    }
    
    .stats-box {
        padding: 15px 10px;
    }
    
    .stats-number {
        font-size: 1.8rem;
    }
    
    .col-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Testimonials */
    .carousel-inner .row {
        padding: 10px !important;
        margin-bottom: 30px;
    }
    
    .testimonial-card {
        padding: 1.2rem;
    }
    
    /* Contact Form */
    form .row .col-6 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Footer */
    footer p {
        font-size: 0.9rem;
    }
}

/* Ultra-small devices (very small phones) */
@media (max-width: 375px) {
    #home h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem !important;
    }
    
    .hero-buttons .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .navbar-brand img {
        transform: scale(1.5) !important;
    }
    
    .stats-number {
        font-size: 1.6rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    #home {
        min-height: 100vh;
        height: auto;
    }
    
    .navbar {
        padding: 5px 0;
    }
    
    #home h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    #home .lead {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* High-resolution displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .navbar,
    .whatsapp-button,
    .chat-box,
    .back-to-top,
    .video-background,
    .overlay {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        color: #000;
        background: #fff;
    }
    
    section {
        padding: 40px 0;
        break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-card:hover,
    .step-box:hover,
    .stats-box:hover {
        transform: none !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
    .service-card {
        background: #2a2a2a;
        color: #fff;
    }
    
    .service-card-content {
        background: #2a2a2a;
    }
    
    .service-card:hover .service-card-content {
        background: transparent;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .step-box:hover,
    .stats-box:hover {
        transform: none;
    }
    
    .service-card::before,
    .step-box::before {
        display: none;
    }
    
    /* Increase tap target sizes */
    .btn, .nav-link, .form-control {
        min-height: 44px;
    }
}