/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Main Styles */
:root {
    --primary-color: #5E35B1;
    --secondary-color: #9575CD;
    --light-bg: #FFFFFF;
    --accent-color: #4527A0;
    --card-bg: #F8F6FE;
    --text-primary: #333333;
    --text-secondary: #666666;
    --transition-speed: 0.3s;
    --box-shadow: 0 5px 15px rgba(94, 53, 177, 0.1);
    --hover-shadow: 0 15px 30px rgba(94, 53, 177, 0.2);
}

/* Base Styles */
body {
    font-family: Vazir, sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}

section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(-45deg);
    top: -50%;
    left: -25%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0;
}

/* App Introduction Section */
.app-intro {
    background: var(--light-bg);
    padding: 5rem 0;
    overflow: hidden;
    width: 100%;
}

.app-intro h2 {
    color: var(--primary-color);
    font-weight: bold;
}

.app-intro .lead {
    color: var(--text-secondary);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

/* Stats Section */
.stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

/* Team Section */
.team-section {
    background: var(--light-bg);
    padding: 5rem 0;
    width: 100%;
}

.coach-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.coach-img {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.coach-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-info {
    padding: 1.5rem;
    text-align: center;
}

.coach-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(94, 53, 177, 0.9), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    transform: translateY(100%);
    transition: var(--transition-speed) ease;
}

/* Achievements Section */
.achievements-section {
    background: var(--light-bg);
    padding: 6rem 0;
    width: 100%;
}

.achievement-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    height: 100%;
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Features Section */
.features-section {
    background: var(--light-bg);
    padding: 5rem 0;
    width: 100%;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    height: 100%;
}

/* FAQ Section */
.faq-section {
    background: var(--light-bg);
    padding: 5rem 0;
    width: 100%;
}

.accordion-item {
    background: var(--card-bg);
    border: none;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--card-bg);
    color: var(--primary-color);
    font-weight: bold;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--light-bg);
}

/* Testimonials */
.testimonial-section {
    background: var(--light-bg);
    padding: 6rem 0;
    width: 100%;
}

.testimonial-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-speed) ease;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Download Section */
.download-section {
    background: var(--light-bg);
    padding: 5rem 0;
    text-align: center;
    width: 100%;
}

.download-btn {
    background: var(--primary-color);
    color: var(--light-bg);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

/* Floating Ball */
.floating-ball {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ball-img {
    width: 50px;
    height: 50px;
}

/* Hover Effects */
.feature-item:hover,
.stat-card:hover,
.coach-card:hover,
.achievement-card:hover,
.feature-card:hover,
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    background: var(--accent-color);
}

.coach-card:hover .coach-overlay {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 576px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* 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;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    /* 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;
    }
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
