/* Responsive Design */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-content {
        gap: 3rem;
    }
    
    .app-icon-large {
        width: 250px;
        height: 250px;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .download-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .overview-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .screenshot-placeholder {
        height: 300px;
    }
    
    .overview-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .download-info {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .app-icon-large {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .screenshot-placeholder {
        height: 250px;
        padding: 1rem;
    }
    
    .screenshot-placeholder span {
        font-size: 1.2rem;
    }
    
    .screenshot-placeholder p {
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
}

/* Navigation Mobile Menu */
@media (max-width: 767px) {
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-list li {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .app-icon-large {
        width: 150px;
        height: 150px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .footer-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover,
    .feature-card:hover,
    .screenshot-item:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --background-white: #1a1a1a;
        --background-light: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #cccccc;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--background-white);
        color: var(--text-dark);
    }
    
    .feature-card {
        background-color: var(--background-light);
    }
    
    .contact-item {
        background-color: var(--background-light);
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-buttons,
    .download-buttons,
    .contact-links {
        display: none;
    }
    
    .hero {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .download {
        background: none !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .screenshots {
        background: none !important;
    }
    
    .feature-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .screenshot-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .screenshot-placeholder {
        background: #f0f0f0 !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid #ccc;
        background: none !important;
        color: black !important;
    }
}

/* Accessibility Improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #2d4a1f;
        --text-light: #000000;
        --border-color: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .feature-card,
    .screenshot-item {
        border: 2px solid var(--border-color);
    }
}

/* Focus Visible */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus-visible,
    .nav-list a:focus-visible,
    .link:focus-visible {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}
