/* Responsive Styles */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 2rem;
    }
    
    /* Navigation */
    .nav {
        padding: 1rem 0;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: #333;
    }
    
    .nav-item {
        padding: 0.75rem 2rem;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .feature-card {
        text-align: center;
    }
    
    /* Screenshots */
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Use Cases */
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .use-case {
        flex-direction: column;
        text-align: center;
    }
    
    .use-case-content {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    /* Download Section */
    .download-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .download-info {
        margin-right: 0;
    }
    
    .download-buttons {
        justify-content: center;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1.5rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Features */
    .features {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    /* Screenshots */
    .screenshots {
        padding: 4rem 0;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .screenshot-item {
        max-width: 100%;
    }
    
    /* Support Section */
    .support {
        padding: 4rem 0;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 1rem 2.5rem;
        font-size: 1.125rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 90vh;
    }
    
    /* Navigation */
    .nav-brand {
        font-size: 1.25rem;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 1rem;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Sections */
    .section {
        padding: 3rem 0;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Download Section */
    .download {
        padding: 3rem 0;
    }
    
    .download-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .download-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
    }
    
    /* Form Elements */
    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 0.9rem;
    }
    
    /* Navigation */
    .nav {
        padding: 0.75rem 0;
    }
    
    .nav-brand {
        font-size: 1.125rem;
    }
    
    /* Accordion */
    .accordion-header,
    .accordion-content.active {
        padding: 1rem;
    }
    
    /* Tabs */
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Image Gallery */
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image {
        height: 150px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .feature-card {
        padding: 1rem 0.75rem;
    }
    
    .modal-content {
        margin: 0.25rem;
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .nav,
    .hero-buttons,
    .download,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 1rem 0;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .feature-card,
    .screenshot-item {
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 {
        font-size: 24pt;
    }
    
    h2 {
        font-size: 20pt;
    }
    
    h3 {
        font-size: 16pt;
    }
}

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

/* Reduced Motion */
@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;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e5e5e5;
        --card-bg: #2d2d2d;
        --border-color: #404040;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .nav {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: var(--border-color);
    }
    
    .feature-card,
    .card {
        background: var(--card-bg);
        border-color: var(--border-color);
    }
    
    .btn-outline {
        border-color: var(--text-color);
        color: var(--text-color);
    }
    
    .btn-outline:hover {
        background: var(--text-color);
        color: var(--bg-color);
    }
    
    .form-input,
    .form-textarea,
    .form-select {
        background: var(--card-bg);
        border-color: var(--border-color);
        color: var(--text-color);
    }
    
    .modal-content {
        background: var(--card-bg);
        color: var(--text-color);
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .nav {
        padding: 0.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .feature-card:hover,
    .screenshot-item:hover {
        transform: none;
    }
    
    .tooltip:hover .tooltip-text {
        visibility: hidden;
        opacity: 0;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .nav-link:focus,
    .form-input:focus,
    .form-textarea:focus,
    .form-select:focus {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }
}

/* Container Queries (Future-proofing) */
@container (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes for Responsive Design */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
    .d-sm-inline { display: inline !important; }
    .d-sm-inline-block { display: inline-block !important; }
}

@media (min-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
    .d-md-inline { display: inline !important; }
    .d-md-inline-block { display: inline-block !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
    .d-lg-inline { display: inline !important; }
    .d-lg-inline-block { display: inline-block !important; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
    .d-xl-inline { display: inline !important; }
    .d-xl-inline-block { display: inline-block !important; }
}