/* Mobile First Responsive Design */

/* Extra small devices (phones, 576px and below) */
@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0 !important;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }
    
    .display-3 {
        font-size: 2rem !important;
    }
    
    .btn-lg {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .footer .col-6 {
        margin-bottom: 20px;
    }
    
    .chat-widget .btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .top-bar {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .top-bar .col-md-6 {
        text-align: center !important;
    }
    
    .service-areas .badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

/* Small devices (tablets, 577px to 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-section {
        padding: 60px 0 !important;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .display-3 {
        font-size: 2.5rem !important;
    }
    
    .btn-lg {
        padding: 10px 25px !important;
    }
    
    .navbar-brand img {
        height: 45px !important;
    }
}

/* Medium devices (desktops, 769px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem !important;
    }
    
    .display-3 {
        font-size: 3rem !important;
    }
}

/* Large devices (large desktops, 993px and up) */
@media (min-width: 993px) {
    /* Desktop specific styles */
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .chat-widget,
    .cta-section {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0 !important;
        min-height: auto !important;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* High DPI specific styles */
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background: #1a1a2e;
        color: #fff;
    }
    
    .dark-mode .card {
        background: #2d2d44;
        color: #fff;
    }
    
    .dark-mode .bg-light {
        background: #2d2d44 !important;
    }
    
    .dark-mode .text-muted {
        color: #aaa !important;
    }
}