/* ===================================
   App Screenshot Showcase Styles
   Professional, Clean, Modern
   =================================== */

/* Hero Section App Visual */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.hero-visual {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-app-screenshot {
    max-width: 400px;
    max-height: 550px;
    width: auto;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-slow);
    object-fit: contain;
}



/* App Features Showcase Section */
.app-features-showcase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.app-features-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.app-features-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4xl);
    position: relative;
    z-index: 1;
}

.app-feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.app-feature-item:nth-child(even) {
    direction: rtl;
}

.app-feature-item:nth-child(even) > * {
    direction: ltr;
}

.app-feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-feature-content h3 {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.app-feature-content p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.app-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.app-feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--font-size-base);
}

.app-feature-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.app-feature-screenshot {
    max-width: 350px;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow);
}

.app-feature-screenshot:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
}

/* Single column layout for all feature items on smaller screens */
@media (max-width: 1024px) {
    .app-feature-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-feature-item:nth-child(even) {
        direction: ltr;
    }

    .app-feature-screenshot {
        margin: 0 auto;
        max-width: 400px;
    }

    .app-feature-content h3 {
        font-size: var(--font-size-2xl);
    }
}

/* Interactive Learning Section */
.interactive-learning {
    background: var(--color-bg-secondary);
    position: relative;
}

.learning-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.learning-screenshots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    position: relative;
}

.learning-screenshot-wrapper {
    position: relative;
    transition: all var(--transition-slow);
}

.learning-screenshot-wrapper:hover {
    transform: translateY(-10px);
    z-index: 10;
}

.learning-screenshot-wrapper:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0;
}

.learning-screenshot-wrapper:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    margin-top: var(--spacing-3xl);
}

.learning-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-slow);
}

.learning-screenshot-wrapper:hover .learning-screenshot {
    box-shadow: var(--shadow-2xl);
}

.learning-content h2 {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: var(--spacing-xl);
}

.learning-content p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.learning-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.learning-highlight {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.learning-highlight:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.learning-highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.learning-highlight h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.learning-highlight p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .learning-showcase {
        grid-template-columns: 1fr;
    }

    .learning-screenshots {
        order: 2;
    }

    .learning-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: auto;
        margin-top: var(--spacing-3xl);
    }

    .hero-app-screenshot {
        max-width: 100%;
    }

    .app-features-showcase {
        padding: var(--spacing-3xl) 0;
    }

    .app-feature-item {
        gap: var(--spacing-xl);
    }

    .app-feature-screenshot {
        max-width: 320px;
    }

    .app-feature-content h3 {
        font-size: var(--font-size-xl);
    }

    .app-feature-content p,
    .app-feature-list li {
        font-size: var(--font-size-base);
    }

    .learning-screenshots {
        grid-template-columns: 1fr;
    }

    .learning-screenshot-wrapper:nth-child(2) {
        margin-top: 0;
    }
}

/* Phone mockup effect (optional enhancement) */
.phone-frame {
    position: relative;
    padding: 16px 12px;
    background: #1a1a1a;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #000;
    border-radius: 0 0 20px 20px;
}

.phone-frame img {
    border-radius: 24px;
    display: block;
    width: 100%;
    height: auto;
}
