/* Responsive Styles */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
    /* Hero Section */
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* All Cards */
    .stat-card,
    .coach-card,
    .achievement-card,
    .feature-card,
    .testimonial-card {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    /* Coach Cards */
    .coach-img {
        height: 200px;
    }

    .coach-info h4 {
        font-size: 1.1rem;
    }

    /* Stats */
    .stat-card h3 {
        font-size: 1.8rem;
    }

    /* Sections Padding */
    .app-intro,
    .team-section,
    .achievements-section,
    .features-section,
    .faq-section,
    .testimonial-section,
    .download-section {
        padding: 2rem 0;
    }

    /* Container */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Download Button */
    .download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 90%;
        max-width: 280px;
    }

    /* Hide Elements */
    .floating-ball {
        display: none;
    }

    /* Accordion */
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Text Sizes */
    h2 {
        font-size: 1.5rem !important;
    }

    .lead {
        font-size: 0.9rem !important;
    }
}

/* Small devices (landscape phones, 576px to 768px) */
@media (min-width: 576px) and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .lead {
        font-size: 1.1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .coach-card {
        margin-bottom: 1.5rem;
    }

    .coach-img {
        height: 220px;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .download-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }
}

/* Medium devices (tablets, 768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .coach-card {
        margin-bottom: 2rem;
    }

    .achievement-card {
        margin-bottom: 1.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }
}

/* Large devices (desktops, 992px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .features-grid {
        gap: 1.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }
}

/* Height-based media queries */
@media (max-height: 700px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }
}

/* Landscape mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .coach-img {
        height: 180px;
    }
}

/* Print styles */
@media print {
    .hero-section {
        background: none !important;
        color: black !important;
    }

    .download-btn,
    .floating-ball,
    .accordion-button::after {
        display: none !important;
    }

    .coach-overlay {
        position: static;
        transform: none;
        background: none;
        color: black;
    }

    .achievement-card {
        break-inside: avoid;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
