/* Premium CSS Variables */
        :root {
            --primary: #5624d0;
            --primary-light: #cec0fc;
            --primary-gradient: linear-gradient(135deg, #5624d0 0%, #7e3ff2 100%);
            --accent: #a435f0;
            --accent-gradient: linear-gradient(135deg, #a435f0 0%, #c34cff 100%);
            --background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
            --card-bg: rgba(255, 255, 255, 0.8);
            --card-border: rgba(255, 255, 255, 0.9);
            --card-shadow: rgba(0, 0, 0, 0.05);
            --text-primary: #1c1d1f;
            --text-secondary: #6a6f73;
            --success: #0ca678;
            --glow: rgba(86, 36, 208, 0.15);
        }

        [data-theme="dark"] {
            --primary: #7c3aed;
            --primary-light: #a78bfa;
            --primary-gradient: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
            --accent: #c084fc;
            --accent-gradient: linear-gradient(135deg, #c084fc 0%, #d946ef 100%);
            --background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
            --card-bg: rgba(30, 30, 50, 0.8);
            --card-border: rgba(60, 60, 80, 0.6);
            --card-shadow: rgba(0, 0, 0, 0.3);
            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
            --success: #10b981;
            --glow: rgba(124, 58, 237, 0.25);
            --navbar-bg: rgba(15, 15, 35, 0.9);
            --footer-bg: rgba(15, 15, 35, 0.9);
            --btn-outline-bg: rgba(30, 30, 50, 0.85);
            --btn-outline-border: rgba(60, 60, 80, 0.6);
            --btn-outline-hover-bg: rgba(40, 40, 65, 0.95);
            --btn-outline-hover-border: rgba(80, 80, 100, 0.8);
            --backdrop-overlay-1: rgba(124, 58, 237, 0.15);
            --backdrop-overlay-2: rgba(167, 139, 250, 0.1);
        }

        /* Global Styles */
        body {
            font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--background);
            color: var(--text-primary);
            line-height: 1.6;
            margin: 0;
            padding: 0;
            min-height: 100vh;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 100vh;
            background: 
                radial-gradient(circle at 20% 30%, rgba(174, 136, 255, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(206, 192, 252, 0.15) 0%, transparent 40%);
            pointer-events: none;
            z-index: -1;
        }

        /* Header Styles */
        .navbar {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
            padding: 0.8rem 1rem;
        }

        /* Main Container */
        .main-container {
            padding: 2rem 0;
            min-height: calc(100vh - 120px);
        }

        /* Welcome Section */
        .welcome-section {
            text-align: center;
            margin-bottom: 3rem;
            padding: 2rem 0;
        }

        .welcome-title {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 1rem;
            letter-spacing: -0.5px;
        }

        .welcome-subtitle {
            font-size: 1.25rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            font-weight: 400;
        }

        /* Stats Cards */
        .stats-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 16px;
            padding: 1.8rem;
            text-align: center;
            backdrop-filter: blur(12px);
            box-shadow: 
                0 10px 35px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
        }

        .stats-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--primary-gradient);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .stats-card:hover {
            transform: translateY(-8px);
            box-shadow: 
                0 15px 45px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
        }

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

        .stats-number {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 0.5rem;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stats-label {
            font-size: 0.95rem;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 1.2px;
            font-weight: 600;
        }

        /* Quiz Grid */
        .quiz-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        /* Premium Glassmorphism Quiz Cards */
        .quiz-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            padding: 2rem;
            backdrop-filter: blur(15px);
            box-shadow: 
                0 10px 35px var(--card-shadow),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .quiz-card::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border: 2px solid transparent;
            border-radius: 22px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 240, 240, 0.6) 100%);
            opacity: 0;
            z-index: -1;
            transition: opacity 0.4s ease;
        }

        .quiz-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 
                0 20px 50px rgba(0, 0, 0, 0.12),
                0 0 0 1px rgba(255, 255, 255, 0.8),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
        }

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

        .quiz-title {
            font-size: 1.35rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1.2rem;
            display: flex;
            align-items: center;
        }

        .quiz-title i {
            color: var(--primary);
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-right: 0.8rem;
            font-size: 1.4rem;
        }

        .quiz-description {
            color: var(--text-secondary);
            margin-bottom: 2rem;
            flex-grow: 1;
            font-size: 1rem;
            line-height: 1.6;
        }

        /* Premium Quiz Button */
        .btn-quiz {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--primary-gradient);
            color: white;
            padding: 1rem 2rem;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            width: 100%;
            position: relative;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(86, 36, 208, 0.2);
            letter-spacing: 0.5px;
        }

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

        .btn-quiz:hover {
            background: var(--accent-gradient);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(162, 53, 240, 0.3);
        }

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

        .btn-quiz i {
            margin-right: 0.8rem;
            font-size: 1.1rem;
        }

        /* Back to Home Button */
.btn-outline-light {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--text-primary) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

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

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: var(--primary) !important;
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(86, 36, 208, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

.btn-outline-light i {
    transition: transform 0.3s ease;
}

.btn-outline-light:hover i {
    transform: translateX(-4px);
}

        /* Module Section */
        .module-section {
            padding: 2rem 0;
        }

        /* Text contrast improvements */
        h1, h2, h3, h4, h5, h6 {
            color: var(--text-primary);
        }

        /* Section title */
        .text-center.mb-4 {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 2.5rem !important;
            color: var(--text-primary);
            position: relative;
            display: inline-block;
            left: 50%;
            transform: translateX(-50%);
            padding-bottom: 0.5rem;
        }

        .text-center.mb-4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 25%;
            width: 50%;
            height: 4px;
            background: var(--primary-gradient);
            border-radius: 2px;
        }

        /* Responsive Adjustments */
        @media (max-width: 992px) {
            .quiz-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }

        @media (max-width: 768px) {
            .welcome-title {
                font-size: 2.2rem;
            }
            
            .quiz-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .stats-card {
                padding: 1.5rem;
            }
            
            .stats-number {
                font-size: 2.2rem;
            }
            
            .quiz-card {
                padding: 1.5rem;
            }
        }

        /* Animation for page load */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .quiz-card {
            animation: fadeIn 0.6s ease-out;
        }

        .quiz-card:nth-child(2) {
            animation-delay: 0.1s;
        }

        .quiz-card:nth-child(3) {
            animation-delay: 0.2s;
        }

        .quiz-card:nth-child(4) {
            animation-delay: 0.3s;
        }

        .quiz-card:nth-child(5) {
            animation-delay: 0.4s;
        }

        .quiz-card:nth-child(6) {
            animation-delay: 0.5s;
        }

        .quiz-card:nth-child(7) {
            animation-delay: 0.6s;
        }

        .quiz-card:nth-child(8) {
            animation-delay: 0.7s;
        }

        /* Footer */
        footer {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--card-border);
            padding: 1.5rem 0;
            margin-top: 3rem;
        }

        .module-title{
            color: var(--text-primary)
        }
        .module-description{
            color: var(--text-primary)
        }