@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #060714;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.07);
    --neon-blue: #00d2ff;
    --neon-purple: #9d50bb;
    --neon-cyan: #00f2fe;
    --neon-pink: #ff00c1;
    --text-white: #ffffff;
    --text-muted: #a0a0c0;
    --border-glass: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.2s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: move 25s infinite alternate ease-in-out;
}

.shape-1 { width: 500px; height: 500px; background: var(--neon-blue); top: -10%; left: -10%; }
.shape-2 { width: 600px; height: 600px; background: var(--neon-purple); bottom: -10%; right: -10%; animation-delay: -5s; }
.shape-3 { width: 400px; height: 400px; background: var(--neon-cyan); top: 40%; left: 50%; animation-delay: -10s; }

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 150px) scale(1.1); }
    66% { transform: translate(-80px, 80px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-glass); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-blue); }

/* Typography */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.5px; }
.neon-text {
    background: linear-gradient(to right, var(--neon-blue), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(6, 7, 20, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.menu-toggle {
    display: none;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block !important;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(6, 7, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        border-bottom: 1px solid var(--border-glass);
        display: none !important;
    }
    
    .nav-links.active {
        display: flex !important;
    }
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: white;
    box-shadow: 0 8px 20px rgba(157, 80, 187, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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: 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(157, 80, 187, 0.5);
}

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

.btn-outline:hover {
    background: var(--neon-blue);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 90px);
    margin-bottom: 25px;
    line-height: 1;
    animation: fadeInUp 0.8s ease backwards;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 25px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition-slow);
}

.glass-card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 210, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 255, 0.1);
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    animation: zoomIn 0.6s ease;
}

.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--text-muted); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 15px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* Dashboard Layout */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 280px;
    background: rgba(6, 7, 20, 0.95);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--border-glass);
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    z-index: 1000;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 60px 6%;
}

.sidebar-menu { list-style: none; margin-top: 60px; }
.sidebar-menu li { margin-bottom: 12px; }
.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 16px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: var(--bg-glass);
    color: var(--neon-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-menu a.active { border-left: 4px solid var(--neon-blue); }
.sidebar-menu i { margin-right: 18px; font-size: 1.3rem; }

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

.widget { position: relative; overflow: hidden; }
.widget-val { font-size: 3.5rem; font-weight: 800; line-height: 1; margin: 15px 0; }

/* Quiz Styles */
.quiz-container { max-width: 900px; margin: 60px auto; padding: 0 20px; }
.progress-wrapper { margin-bottom: 40px; }
.progress-bar { height: 12px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden; position: relative; }
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px var(--neon-blue);
}

.question-box h3 { font-size: 1.8rem; margin-bottom: 40px; color: var(--text-white); }
.options-grid { display: grid; gap: 20px; }
.option-btn {
    text-align: left;
    padding: 24px 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.option-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--neon-blue);
    transform: translateX(10px);
}

.option-btn.selected {
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.1), transparent);
    border-color: var(--neon-blue);
    box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.1);
}

/* Result Circular Chart */
.result-chart {
    width: 240px;
    height: 240px;
    margin: 40px auto;
    position: relative;
}

.circular-progress {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--neon-blue) 0%, rgba(255,255,255,0.05) 0%);
    display: flex; justify-content: center; align-items: center;
    transition: background 1s ease-out;
}

.circular-progress::before {
    content: '';
    position: absolute;
    width: 190px; height: 190px;
    border-radius: 50%;
    background: var(--bg-dark);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.chart-value { position: relative; font-size: 4rem; font-weight: 800; color: var(--neon-blue); text-shadow: 0 0 20px rgba(0,210,255,0.4); }

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

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

.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(0, 210, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

/* Responsive Fixes */
@media (max-width: 1200px) {
    .main-content { padding: 40px 4%; }
}

@media (max-width: 992px) {
    .sidebar { width: 80px; padding: 40px 10px; }
    .sidebar .logo, .sidebar .link-text { display: none; }
    .main-content { margin-left: 80px; }
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-btns { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .main-content { padding: 30px 20px; }
    .glass-card { padding: 25px; }
}
