
/* ===== MODERN ABEDU THEME - Premium Design System ===== */
:root {
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --secondary: #a855f7;
    --accent-pink: #ec4899;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --success: #10b981;
    --warning: #f59e0b;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-glow: 0 8px 30px rgba(99, 102, 241, 0.25);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --glass: rgba(18, 18, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;

    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
.modern-container {
    position: relative;
}

/* ===== HERO SECTION - Premium ===== */
.modern-hero {
    position: relative;
    padding: 160px 0 120px;
    text-align: center;
    overflow: hidden;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
}

.hero-glow {
    position: absolute;

    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: conic-gradient(from 180deg, var(--primary), var(--secondary), var(--accent-pink), var(--primary));
    filter: blur(180px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    animation: heroGlowRotate 20s linear infinite;
}

@keyframes heroGlowRotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* Floating decorative shapes */
.modern-hero::before,
.modern-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}


.modern-hero::before {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -5%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
    animation: floatShape 8s ease-in-out infinite;
}

.modern-hero::after {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: -3%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(99, 102, 241, 0.04));
    animation: floatShape 10s ease-in-out infinite reverse;
}

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

/* Badge Pill */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.badge-icon {
    color: #fbbf24;

    font-size: 16px;
}

/* Hero Title */
.hero-title {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;

    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 40%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 18px;

    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 44px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;

    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ===== BUTTONS - Premium ===== */
.btn-modern {
    padding: 14px 34px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-modern:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.section-subtitle {
    text-align: center;

    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;

    font-size: 16px;
    line-height: 1.6;
}

/* ===== STATS COUNTER SECTION ===== */
.stats-section {
    padding: 60px 0;
    margin: -40px 0 20px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 28px; }
}

/* ===== FEATURE CARDS - Glassmorphism ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--bg-card);

    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);

    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.feature-name {
    font-size: 20px;

    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    color: var(--text-main);
}

.feature-content {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ===== CTA SECTION - Premium ===== */
.modern-cta {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #a855f7 100%);
    border-radius: var(--radius-xl);
    padding: 90px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 80px 0;

    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.3);
}

/* Decorative circles on CTA */
.modern-cta::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -100px;
    right: -100px;
    animation: ctaPulse 6s ease-in-out infinite;
}

.modern-cta::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    bottom: -80px;
    left: -80px;
    animation: ctaPulse 8s ease-in-out infinite reverse;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

.cta-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.cta-desc {
    font-size: 18px;

    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;

    line-height: 1.7;
    position: relative;
    z-index: 1;
}

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

    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

/* ===== COURSE CARDS - Premium ===== */
.courses-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.course-card-modern {
    background: var(--bg-card);

    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.course-card-modern:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.course-img-wrapper {
    height: 200px;
    position: relative;

    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    overflow: hidden;
}

.course-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    z-index: 1;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.course-badge {
    position: absolute;
    top: 16px;
    left: 16px;

    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    z-index: 2;
}

.course-content {
    padding: 24px;
}

.course-title-modern {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;

    color: var(--text-main);
}

.course-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    line-height: 1.6;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.course-price {
    font-size: 18px;

    font-weight: 800;
    color: var(--primary);
}

/* ===== LOCATION / MAP SECTION ===== */
.location-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.location-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.2);
}

.location-card .loc-icon {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.location-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.location-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== FOOTER MODERN ===== */
.footer {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--glass-border) !important;
    padding: 80px 0 40px !important;
}

.footer h5 {

    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 17px;
}

.footer p,
.footer a {

    color: var(--text-muted) !important;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--primary) !important;
}

/* ===== REVEAL ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children reveal */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .modern-hero {
        padding: 120px 0 80px;
    }

    .hero-desc {
        font-size: 16px;

        padding: 0 10px;
    }

    .modern-cta {
        padding: 50px 24px;
        border-radius: var(--radius-lg);
        margin: 40px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns .btn-modern {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .modern-hero::before,
    .modern-hero::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .cta-title {
        font-size: 24px;
    }
}