:root {
    --primary: #6c5ce7;
    --secondary: #a29bfe;
    --accent: #00cec9;
    --bg-light: #f9f9ff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --neon-blue: #0984e3;
    --neon-purple: #6c5ce7;
    --success: #00b894;
    --error: #d63031;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Floating Background Particles */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite alternate;
}

.blob:nth-child(2) {
    top: 60%;
    left: 70%;
    background: linear-gradient(135deg, var(--accent), var(--neon-blue));
    width: 400px;
    height: 400px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Glassmorphism Common Styles */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Navbar */
nav {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(249, 249, 255, 0.8);
    backdrop-filter: blur(5px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.4s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

/* Landing Page */
.hero {
    padding: 5rem 5% 10rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 1s;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s 0.2s both;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s 0.4s both;
}

/* Sections */
.features {
    padding: 5rem 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    text-align: center;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    animation: scaleIn 0.5s;
}

.auth-card h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 2rem;
    border-right: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.sidebar .logo {
    margin-bottom: 3rem;
    display: block;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 1rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-radius: 12px;
    transition: 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--primary);
    color: white;
}

.main-content {
    flex: 1;
    padding: 3rem 5%;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Quiz UI */
.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-card {
    padding: 3rem;
    margin-top: 2rem;
}

.progress-bar-wrap {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

#progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: 0.5s;
}

.question-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-item {
    padding: 1.2rem;
    border: 2px solid #eee;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
}

.option-item:hover {
    border-color: var(--secondary);
    background: rgba(162, 155, 254, 0.1);
}

.option-item.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

/* Result UI */
.result-header {
    text-align: center;
    margin-bottom: 3rem;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.2);
}

.feedback-box {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(108, 92, 231, 0.05);
    margin-bottom: 2rem;
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .sidebar { position: fixed; left: -280px; z-index: 2000; }
    .sidebar.open { left: 0; }
    .hero h1 { font-size: 2.5rem; }
    .dashboard-wrapper { flex-direction: column; }
    .main-content { padding: 2rem 1rem; }
}
