/* Modern Homepage Styles - Following home_page.md specifications */
/* Critical styles for above-the-fold content to improve LCP */

/* Color Palette as specified */
:root {
    --primary: #6366F1;
    --secondary: #8B5CF6;
    --accent: #F59E0B;
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #8B5CF6 100%);
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-black: 800;
    
    /* Spacing - 8px grid system */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-5: 2.5rem;   /* 40px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */
    --space-10: 5rem;    /* 80px */
    --space-12: 6rem;    /* 96px */
    --space-16: 8rem;    /* 128px */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    
    /* Animations */
    --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Global Overrides for Homepage Only */
.hero-modern,
.stats-modern,
.courses-modern,
.categories-modern,
.features-modern,
.cta-modern {
    font-family: var(--font-primary);
}

/* ===== HERO SECTION ===== */
.hero-modern {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--gradient-hero);
    color: var(--white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    will-change: transform;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    background: rgba(245, 158, 11, 0.15);
}

.shape-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation-delay: 4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
    background: rgba(139, 92, 246, 0.15);
}

.shape-5 {
    width: 150px;
    height: 150px;
    top: 10%;
    right: 5%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(0, -20px, 0);
        opacity: 1;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding: var(--space-6) 0;
}

.trust-badge {
    margin-bottom: var(--space-4);
}

.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--white);
}

.badge-glass i {
    color: var(--accent);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #FBBF24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animate-text {
    animation: slideInUp 0.8s var(--ease-out-cubic) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-text:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.3s var(--ease-out-cubic);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-2px);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.avatars-group {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid var(--white);
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-count {
    margin-left: var(--space-2);
    background: var(--accent);
    color: var(--gray-900);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
}

.proof-text {
    display: flex;
    flex-direction: column;
}

.proof-text strong {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 2px;
}

.proof-text span {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.visual-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.floating-card {
    animation: floatCard 3s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.course-preview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.course-thumb {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
}

.course-info h6 {
    margin: 0;
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
}

.course-info span {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    width: 70%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 70%; }
}

.stats-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-2) var(--space-3);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble-1 {
    top: 20%;
    right: -20px;
    animation-delay: 1s;
}

.bubble-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: 2.5s;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

.stats-bubble .number {
    display: block;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    font-size: 1.1rem;
}

.stats-bubble .label {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ===== STATISTICS SECTION ===== */
.stats-modern {
    padding: var(--space-16) 0;
    margin-top: calc(-1 * var(--space-12));
    position: relative;
    z-index: 3;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    max-width: 1000px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out-cubic);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.glass-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-2xl);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: transform 0.3s var(--ease-out-cubic);
    box-shadow: var(--shadow-md);
}

.glass-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-black);
    color: var(--primary);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-700);
    font-weight: var(--font-weight-medium);
}

/* ===== SECTIONS COMMON STYLES ===== */
.courses-modern,
.categories-modern,
.features-modern {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-black);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ===== COURSES SECTION ===== */
.courses-modern {
    background: var(--gray-50);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.course-card-modern {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out-cubic);
    border: 1px solid var(--gray-200);
    position: relative;
}

.course-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.course-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-out-cubic);
}

.course-card-modern:hover .course-image img {
    transform: scale(1.1);
}

.course-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-cubic);
}

.course-card-modern:hover .course-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transform: scale(0.8);
    transition: transform 0.3s var(--ease-out-cubic);
}

.course-card-modern:hover .play-button {
    transform: scale(1);
}

.course-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-badge.bestseller {
    background: var(--accent);
    color: var(--gray-900);
}

.course-content {
    padding: var(--space-5);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.course-category {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.stars {
    display: flex;
    color: var(--accent);
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
}

.course-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.course-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-name {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    border-top: 1px solid var(--gray-200);
    margin-bottom: var(--space-4);
}

.course-stats {
    display: flex;
    gap: var(--space-3);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.course-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.course-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.current-price {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary);
}

.original-price {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Loading Skeletons */
.course-skeleton {
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.skeleton-image {
    height: 220px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: var(--space-5);
}

.skeleton-title {
    height: 20px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-3);
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-2);
    width: 80%;
}

.skeleton-footer {
    height: 40px;
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    margin-top: var(--space-4);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.section-footer {
    text-align: center;
}

/* ===== CATEGORIES SECTION ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

.category-card-modern {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-out-cubic);
    position: relative;
    overflow: hidden;
}

.category-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--category-color, var(--primary));
    transform: scaleX(0);
    transition: transform 0.3s var(--ease-out-cubic);
}

.category-card-modern:hover::before {
    transform: scaleX(1);
}

.category-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--category-color, var(--primary));
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--category-color, var(--primary));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: transform 0.3s var(--ease-out-cubic);
}

.category-card-modern:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-name {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-2);
}

.category-count {
    color: var(--gray-600);
    margin-bottom: var(--space-4);
}

.category-link {
    color: var(--category-color, var(--primary));
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    transition: all 0.3s var(--ease-out-cubic);
}

.category-link:hover {
    color: var(--gray-900);
    gap: var(--space-2);
}

.category-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FEATURES SECTION ===== */
.features-modern {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-out-cubic);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: transform 0.3s var(--ease-out-cubic);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-modern {
    padding: var(--space-16) 0;
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-pattern {
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(60px) translateY(60px); }
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: var(--space-4) var(--space-6);
    font-size: 1.125rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: var(--space-5);
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--space-5);
    }
}

@media (max-width: 992px) {
    .hero-modern {
        min-height: 70vh;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--space-4);
    }
    
    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .floating-shapes {
        display: none;
    }
    
    .social-proof {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }
    
    /* Disable expensive animations on tablets */
    .floating-card,
    .stats-bubble {
        animation: none;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: var(--space-4) 0;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .courses-grid,
    .categories-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-visual {
        margin-top: var(--space-8);
        min-height: 300px;
    }
    
    .bubble-1,
    .bubble-2 {
        display: none;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-modern {
        margin-top: calc(-1 * var(--space-8));
        padding: var(--space-8) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

/* ===== NO COURSES MESSAGE ===== */
.no-courses-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-200);
}

.no-courses-message i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.no-courses-message p {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin: 0;
}