/* AquaHarvest - Responsive Styles */
/* Mobile-first responsive design */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    h4, h5, h6 {
        font-size: 1.1rem;
    }
    
    p {
        font-size: 0.95rem;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    #hero .container {
        text-align: center;
    }
    
    /* Remove animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .card:hover {
        transform: none !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding: 2rem 0;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Team images */
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Process circles */
    .bg-primary.rounded-circle {
        width: 40px !important;
        height: 40px !important;
    }
    
    .bg-primary.rounded-circle .h4 {
        font-size: 1rem;
    }
    
    /* Grid adjustments */
    .col-lg-2.col-md-4.col-sm-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .py-5 {
        padding: 2.5rem 0;
    }
    
    /* Remove scroll animations on mobile */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Card hover effects disabled */
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .py-5 {
        padding: 3rem 0;
    }
    
    /* Tablet specific adjustments */
    .card-img-top {
        height: 180px;
    }
    
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Reduced animations on tablets */
    .card {
        transition: transform 0.2s ease;
    }
    
    .card:hover {
        transform: translateY(-2px);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .py-5 {
        padding: 3.5rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .py-5 {
        padding: 4rem 0;
    }
    
    /* Enhanced desktop experience */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }
}

/* Landscape orientation adjustments */
@media (max-width: 991.98px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
        padding: 4rem 0;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .rounded-circle,
    #gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    #contact,
    footer {
        display: none !important;
    }
    
    .py-5 {
        padding: 1rem 0;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }
    
    .text-primary,
    .text-secondary {
        color: #000 !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

/* Dark mode support */

/* Focus management for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(248, 250, 252, 0.98);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(107, 114, 128, 0.2);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Image optimization for different screen sizes */
@media (max-width: 575.98px) {
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Gallery responsive grid */
@media (max-width: 575.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    #gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Form responsive improvements */
@media (max-width: 767.98px) {
    #contact .col-lg-8 {
        order: 2;
    }
    
    #contact .col-lg-4 {
        order: 1;
        margin-bottom: 2rem;
    }
}

/* Team section responsive */
@media (max-width: 575.98px) {
    .col-lg-2.col-md-4.col-sm-6:nth-child(n+4) {
        display: none;
    }
}

/* Services grid responsive */
@media (max-width: 767.98px) {
    .services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Timeline responsive */
@media (max-width: 767.98px) {
    .timeline-item {
        padding-left: 1rem;
    }
    
    .timeline-item::before {
        width: 6px;
        height: 6px;
    }
} 