/* SolarDrone Pro - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.4rem; }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 70vh;
        padding: 60px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 20px;
    }
    
    /* Process steps mobile */
    .process-step {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    /* Contact form mobile */
    .contact-info {
        margin-top: 30px;
        padding: 20px;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        margin-bottom: 30px;
    }
    
    /* Gallery mobile - single column */
    #gallery .col-lg-2 {
        margin-bottom: 15px;
    }
    
    /* Services mobile adjustments */
    #services .card-img-top {
        height: 180px;
    }
    
    /* Team mobile adjustments */
    #team .card-img-top {
        height: 200px;
    }
    
    /* Disable animations on mobile for performance */
    .card:hover,
    .feature-card:hover,
    img:hover {
        transform: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    /* Services grid - 2 columns */
    #services .col-md-6.col-lg-4 {
        margin-bottom: 25px;
    }
    
    /* Gallery - 3 columns */
    #gallery .col-lg-2 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 85vh;
    }
    
    /* Navigation adjustments */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Services section - maintain 2 columns on tablet */
    #services .col-md-6.col-lg-4:nth-child(3n) {
        clear: none;
    }
    
    #services .col-md-6.col-lg-4:nth-child(2n+1) {
        clear: left;
    }
    
    /* Price plan section - stack cards */
    #priceplan .col-lg-4 {
        margin-bottom: 25px;
    }
    
    /* Team section - 2 columns */
    #team .col-md-6.col-lg-4:nth-child(3n) {
        clear: none;
    }
    
    #team .col-md-6.col-lg-4:nth-child(2n+1) {
        clear: left;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section {
        min-height: 90vh;
    }
    
    /* Container adjustments */
    .container {
        max-width: 960px;
    }
    
    /* Hero content spacing */
    .hero-section .col-lg-6:first-child {
        padding-right: 2rem;
    }
    
    .hero-section .col-lg-6:last-child {
        padding-left: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 100vh;
    }
    
    /* Enhanced spacing for large screens */
    .hero-section .col-lg-6:first-child {
        padding-right: 3rem;
    }
    
    .hero-section .col-lg-6:last-child {
        padding-left: 3rem;
    }
    
    /* Section padding adjustments */
    section {
        padding: 80px 0;
    }
    
    /* Card hover effects - only on large screens */
    .card:hover {
        transform: translateY(-8px);
    }
    
    .feature-card:hover i {
        transform: scale(1.15);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    padding-top: 275px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and non-essential elements */
    #header,
    #footer,
    .btn,
    .navbar {
        display: none;
    }
    
    /* Adjust colors for print */
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    /* Ensure text is readable */
    body {
        color: #000;
        background: #fff;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
}

/* Accessibility - High contrast mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-primary:hover {
        background-color: #333;
        border-color: #333;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable hover effects */
    .card:hover,
    .feature-card:hover,
    .btn:hover,
    img:hover {
        transform: none !important;
    }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices - remove hover effects */
    .card:hover,
    .feature-card:hover i,
    img:hover {
        transform: none;
    }
}

/* Container breakpoint overrides for better spacing */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Custom grid adjustments for specific sections */
@media (min-width: 768px) {
    /* About features - ensure 4 columns on tablet and up */
    #about .col-md-6.col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    /* Features section - 4 columns on tablet and up */
    #features .col-md-6.col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Additional page responsive adjustments */
@media (max-width: 767.98px) {
    /* Additional page elements mobile */
    .feature-item,
    .sensor-item,
    .certification-card,
    .automation-card,
    .integration-item,
    .processing-item,
    .support-card,
    .compliance-card {
        margin-bottom: 20px;
        padding: 15px;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        padding: 10px 0;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Ensure proper spacing between sections on all devices */
section {
    padding: 60px 0;
}

@media (max-width: 767.98px) {
    section {
        padding: 40px 0;
    }
} 