/* Weather API Pro - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    h1, .display-4 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    h4 {
        font-size: 1.1rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 80px;
        min-height: 90vh;
    }
    
    .hero-content {
        text-align: center;
    }
    
    /* Section Padding */
    section {
        padding: 60px 0;
    }
    
    /* Cards */
    .feature-card,
    .service-card,
    .price-card {
        margin-bottom: 20px;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 25px 20px;
        margin: 20px 0;
    }
    
    /* Team Member Images */
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    /* Timeline */
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-content {
        margin-left: 10px;
        padding: 15px;
    }
    
    /* Process Steps */
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    /* Decorative Shapes */
    .weather-shape-1,
    .weather-shape-2 {
        display: none;
    }
    
    /* Gallery */
    #gallery .col-lg-4 {
        margin-bottom: 15px;
    }
    
    /* Footer */
    footer .col-lg-4 {
        margin-bottom: 30px;
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 90px;
    }
    
    /* Section Padding */
    section {
        padding: 70px 0;
    }
    
    /* Team Member Images */
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    /* Process Steps */
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 30px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1, .display-4 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    /* Hero Section */
    #hero {
        padding-top: 100px;
    }
    
    /* Services Grid */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team Section */
    .team-member {
        margin-bottom: 30px;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    /* Timeline */
    .timeline-content {
        padding: 25px;
    }
    
    /* Blog Cards */
    .blog-card .card-img-top {
        height: 180px;
    }
    
    /* Gallery */
    #gallery .col-md-6 {
        margin-bottom: 20px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Default styles apply */
    
    /* Fine-tune some elements */
    .service-card .card-img-top {
        height: 220px;
    }
    
    .blog-card .card-img-top {
        height: 200px;
    }
    
    /* Team Images */
    .team-member img {
        width: 150px;
        height: 150px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max-width adjustments */
    .container {
        max-width: 1140px;
    }
    
    /* Typography scaling for larger screens */
    h1, .display-4 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 100vh;
    }
    
    /* Service Cards */
    .service-card .card-img-top {
        height: 240px;
    }
    
    /* Blog Cards */
    .blog-card .card-img-top {
        height: 220px;
    }
    
    /* Team Images */
    .team-member img {
        width: 160px;
        height: 160px;
    }
    
    /* Enhanced shadows for larger screens */
    .card:hover {
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Decorative shapes for ultra-wide */
    .weather-shape-1 {
        width: 250px;
        height: 250px;
    }
    
    .weather-shape-2 {
        width: 200px;
        height: 200px;
    }
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.3rem 0.8rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .team-member img,
    .blog-card .card-img-top,
    .service-card .card-img-top {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    * {
        background: white;
        color: black;
        box-shadow: none;
    }
    
    .navbar,
    footer,
    .btn,
    #gallery,
    .weather-shape-1,
    .weather-shape-2 {
        display: none;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .weather-shape-1,
    .weather-shape-2 {
        animation: none;
    }
    
    .card:hover,
    .btn:hover,
    .team-member:hover img,
    .feature-card:hover {
        transform: none;
    }
    
    * {
        transition: none;
    }
}

/* Dark mode support (system preference) */

/* Contrast mode support */
@media (prefers-contrast: high) {
    .btn-outline-primary {
        border-width: 3px;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* Custom breakpoint for very small mobile devices */
@media (max-width: 360px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    h1, .display-4 {
        font-size: 1.6rem;
    }
    
    .btn {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
}

/* Navigation improvements for mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        border-radius: 8px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Ensure proper spacing on all screen sizes */
.row > * {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .row > * {
        margin-bottom: 0;
    }
}

/* Form responsiveness */
@media (max-width: 767.98px) {
    .contact-form .row .col-md-6 {
        margin-bottom: 15px;
    }
}

/* Gallery responsiveness */
@media (max-width: 767.98px) {
    #gallery .col-lg-4 {
        margin-bottom: 15px;
    }
}

/* FAQ responsiveness */
@media (max-width: 991.98px) {
    .faq-card {
        margin-bottom: 20px;
    }
}

/* Blog grid responsiveness */
@media (max-width: 991.98px) {
    .blog-card {
        margin-bottom: 30px;
    }
} 