/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .mockup {
        width: 260px;
        height: 480px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .phone-mockup {
        width: 260px;
        height: 520px;
    }
    
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .mockup-group {
        gap: 1.5rem;
    }
    
    .mockup {
        width: 240px;
        height: 460px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    /* Hide some background elements on mobile for better performance */
    .basketball-court-lines,
    .basketball-scoreboard,
    .basketball-trophy,
    .floating-basketball-3,
    .floating-basketball-4,
    .floating-basketball-5 {
        display: none;
    }
    
    .hero {
        padding-top: 100px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.25rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .stat {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .phone-mockup {
        width: 240px;
        height: 480px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .how-it-works {
        padding: 4rem 0;
    }
    
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .how-step {
        padding: 1.5rem;
    }
    
    .features {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .app-mockups {
        padding: 4rem 0;
    }
    
    .app-screens {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .screen {
        width: 260px;
        height: 480px;
    }
    
    .mockup-group {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .mockup {
        width: 260px;
        height: 480px;
    }
    
    .testimonials {
        padding: 4rem 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .cta {
        padding: 4rem 0;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 80px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 15px;
        gap: 2rem;
    }
    
    .phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .how-it-works,
    .features,
    .app-mockups,
    .testimonials,
    .cta {
        padding: 3rem 0;
    }
    
    .how-step,
    .feature-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .screen,
    .mockup {
        width: 240px;
        height: 460px;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .how-step h3,
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .how-step p,
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .screen,
    .mockup {
        width: 220px;
        height: 420px;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .phone-mockup {
        width: 180px;
        height: 360px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .phone-mockup,
    .screen,
    .mockup {
        border-radius: 25px;
    }
    
    .btn {
        border-radius: 10px;
    }
    
    .how-step,
    .feature-card,
    .testimonial-card {
        border-radius: 20px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .floating-basketball,
    .btn {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .phone-mockup {
        display: none;
    }
    
    .how-it-works,
    .features,
    .app-mockups,
    .testimonials,
    .cta {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .how-it-works-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .section-title,
    .hero-title {
        color: #000;
    }
    
    .section-subtitle,
    .hero-subtitle {
        color: #666;
    }
}

/* Accessibility */
@media (prefers-contrast: high) {
    :root {
        --text-grey: #000000;
        --border-light: #000000;
    }
    
    .btn-primary {
        border: 2px solid #000;
    }
    
    .btn-secondary {
        border: 2px solid #000;
        color: #000;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #0f172a;
        --content-bg: #1e293b;
        --inner-bg: #334155;
        --text-grey: #cbd5e1;
        --border-light: #475569;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-menu a:focus,
.footer-section a:focus {
    outline: 2px solid var(--button-primary);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--button-primary);
    color: var(--text-white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}

