/* Mobile First Responsive Design */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .phone-mockup {
        order: -1;
    }
    
    .phone-screen {
        width: 250px;
        height: 450px;
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mockups-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .floating-fish,
    .floating-bubble {
        display: none;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .phone-screen {
        width: 280px;
        height: 480px;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mockups-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content {
        gap: 3rem;
    }
    
    .phone-screen {
        width: 300px;
        height: 520px;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mockups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content {
        gap: 4rem;
    }
    
    .phone-screen {
        width: 320px;
        height: 540px;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mockups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content {
        gap: 5rem;
    }
    
    .phone-screen {
        width: 350px;
        height: 580px;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mockups-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        transform: scale(0.8);
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .floating-fish,
    .floating-bubble {
        transform: scale(0.5);
    }
}

/* Print styles */
@media print {
    .header,
    .nav,
    .floating-fish,
    .floating-bubble,
    .btn-primary,
    .btn-secondary,
    .btn-download {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero,
    .how-it-works,
    .features,
    .mockups,
    .testimonials,
    .cta,
    .footer {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc;
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .section-title,
    .hero-title {
        color: black !important;
    }
    
    .section-subtitle,
    .hero-description {
        color: #333 !important;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    .btn-primary,
    .btn-secondary,
    .btn-download {
        border: 2px solid currentColor;
    }
    
    .feature-card,
    .testimonial-card,
    .step-card {
        border: 2px solid #E0D9ED;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, no changes needed */
}

/* Light mode support (if needed) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as per design requirements */
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .floating-fish,
    .floating-bubble,
    .phone-mockup {
        animation: none;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-download:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .testimonial-card:hover,
    .step-card:hover {
        transform: none;
    }
}

/* Focus visible for keyboard navigation */
@media (any-hover: none) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-download:hover {
        transform: none;
        box-shadow: none;
    }
    
    .feature-card:hover,
    .testimonial-card:hover,
    .step-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-primary,
    .btn-secondary,
    .btn-download {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-menu a {
        padding: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}
