@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600&family=Fira+Code:wght@400;500&display=swap');

:root {
    --primary-orange: #ff6b2b;
    --secondary-purple: #9d4edd;
    --light-blue: #4ea8de;
    --white: #ffffff;
    --black: #1a1a1a;
    --dark-gray: #2a2a2a;
    --light-gray: #f5f5f5;
    --bg-white: #FFFFFF;
    --bg-secondary: #F5F3FF;
    --bg-tertiary: #EDE9FE;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --accent: #8B5CF6;
    --shadow: 0 4px 6px -1px rgba(107, 33, 168, 0.1), 0 2px 4px -1px rgba(107, 33, 168, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(107, 33, 168, 0.1), 0 4px 6px -2px rgba(107, 33, 168, 0.05);
    --border-color: #E5E7EB;
    --card-bg: #FFFFFF;
    --navbar-bg: #FFFFFF;
    --input-bg: #FFFFFF;
    --code-bg: #1e1e1e;
    --code-text: #d4d4d4;
    --transition: all 0.3s ease;
}

.mountain-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 50%, #B0E0E6 100%);
    overflow: hidden;
}


.mountain {
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 150px solid #2c5e2e;
    opacity: 0.6;
    z-index: -1;
}

.mountain-1 {
    left: -20px;
    border-left-width: 200px;
    border-right-width: 200px;
    border-bottom-width: 250px;
    border-bottom-color: #1e4a1e;
}

.mountain-2 {
    left: 150px;
    border-left-width: 250px;
    border-right-width: 250px;
    border-bottom-width: 300px;
    border-bottom-color: #2c5e2e;
}

.mountain-3 {
    left: 400px;
    border-left-width: 180px;
    border-right-width: 180px;
    border-bottom-width: 220px;
    border-bottom-color: #166534;
}

.mountain-4 {
    right: -50px;
    border-left-width: 300px;
    border-right-width: 300px;
    border-bottom-width: 350px;
    border-bottom-color: #14532d;
}


.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1000px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: floatCloud 60s linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.cloud::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 10px;
}

.cloud::after {
    width: 80px;
    height: 80px;
    top: -40px;
    left: 30px;
}

.cloud-1 {
    width: 200px;
    height: 60px;
    top: 10%;
    left: -200px;
    animation-duration: 80s;
}

.cloud-2 {
    width: 300px;
    height: 70px;
    top: 30%;
    left: -300px;
    animation-duration: 100s;
    animation-delay: -20s;
}

.cloud-3 {
    width: 250px;
    height: 65px;
    top: 60%;
    left: -250px;
    animation-duration: 90s;
    animation-delay: -40s;
}

@keyframes floatCloud {
    from { transform: translateX(-100%); }
    to { transform: translateX(calc(100vw + 100%)); }
}


.sun {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 100px;
    height: 100px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 50px #ffb347;
    animation: sunGlow 5s ease-in-out infinite;
    z-index: -1;
}

@keyframes sunGlow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}


.grass {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(transparent, #2e7d32);
    z-index: -1;
}

[data-theme="dark"] {
    --primary-orange: #ff8533;
    --secondary-purple: #b185db;
    --light-blue: #7ac7f5;
    --white: #1a1a1a;
    --black: #e0e0e0;
    --dark-gray: #3a3a3a;
    --bg-white: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent: #b185db;
    --border-color: #3a3a3a;
    --card-bg: #2a2a2a;
    --navbar-bg: #1a1a1a;
    --input-bg: #2a2a2a;
    --code-bg: #0D1117;
    --code-text: #C9D1D9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}


.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.1;
    pointer-events: none;
}

.code-line {
    position: absolute;
    color: var(--primary-orange);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    white-space: nowrap;
    animation: floatCode 20s linear infinite;
    opacity: 0;
    text-shadow: 0 0 5px var(--secondary-purple);
}

@keyframes floatCode {
    0% {
        transform: translateY(100vh) translateX(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100%);
        opacity: 0;
    }
}


.hamburger-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hamburger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 43, 0.4);
}


.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-right: 3px solid var(--primary-orange);
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(157, 78, 221, 0.2);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    transition: left 0.3s ease;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-purple);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    transition: var(--transition);
}

.logo:hover::after {
    width: 100%;
}

.close-sidebar {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--primary-orange);
    font-size: 24px;
    cursor: pointer;
    display: none;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-item i {
    font-size: 1.3rem;
    width: 24px;
    color: var(--secondary-purple);
    transition: var(--transition);
}

.nav-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-purple));
    opacity: 0.1;
    transition: var(--transition);
    z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 100%;
}

.nav-item:hover i,
.nav-item.active i {
    color: var(--primary-orange);
    transform: scale(1.1);
}

.nav-item:hover,
.nav-item.active {
    transform: translateX(5px);
}

.nav-item.active {
    color: var(--primary-orange);
    font-weight: 600;
}

.nav-item.active i {
    color: var(--primary-orange);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 2px solid var(--secondary-purple);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.theme-toggle-side {
    background: var(--bg-secondary);
    border: 2px solid var(--secondary-purple);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.theme-toggle-side:hover {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    color: var(--white);
}

.theme-toggle-side .sun { display: none; }
.theme-toggle-side .moon { display: block; }

[data-theme="dark"] .theme-toggle-side .sun { display: block; }
[data-theme="dark"] .theme-toggle-side .moon { display: none; }

.login-btn-side {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.login-btn-side:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 43, 0.4);
}


.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}


.main-content {
    margin-left: 0;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}


.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    color: white;
}

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

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

.btn-outline:hover {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    color: white;
}


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    border: 2px solid var(--primary-orange);
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.3);
    animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--primary-orange);
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.close-modal:hover {
    color: var(--secondary-purple);
    transform: scale(1.2);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--secondary-purple);
    padding-bottom: 1rem;
}

.auth-tab {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: var(--transition);
}

.auth-tab.active::after {
    width: 100%;
}

.auth-tab.active {
    color: var(--primary-orange);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--secondary-purple);
    background: var(--input-bg);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 107, 43, 0.3);
}

.role-selector {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.role-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border: 2px solid var(--secondary-purple);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.role-option:hover {
    background: var(--bg-secondary);
}

.role-option input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

.auth-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(157, 78, 221, 0.4);
}


.hero-section {
    text-align: center;
    max-width: 900px;
}

.hero-section h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: titleAnimation 1.5s ease-out;
}

@keyframes titleAnimation {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}


.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.9s forwards;
    opacity: 0;
}

.category-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 107, 43, 0.2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-purple);
}

.category-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}


@media (min-width: 769px) {
    .hamburger-btn {
        display: flex;
    }
    
    .close-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger-btn {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
        z-index: 1002;
    }
    
    .sidebar {
        width: 100%;
        left: -100%;
        z-index: 1001;
    }
    
    .close-sidebar {
        display: block;
        z-index: 1002;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1rem;
        margin-top: 60px;
    }
}


.error-message {
    color: #ff3333;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: block;
}

.success-message {
    color: #00cc66;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: block;
}


.user-panel {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
}

.user-panel.active {
    display: flex;
}

.user-panel .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-panel .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.user-panel .user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-panel .user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-panel .progress-badge {
    background: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--primary-orange);
    font-weight: 600;
    text-align: center;
}

.user-panel .btn-group {
    display: flex;
    gap: 0.5rem;
}

.user-panel .edit-profile-btn {
    background: var(--primary-orange);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    flex: 1;
    transition: all 0.3s ease;
}

.user-panel .edit-profile-btn:hover {
    background: var(--secondary-purple);
}

.user-panel .btn-outline {
    padding: 0.5rem;
    flex: 1;
}
.magic-nav-container {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    perspective: 1000px;
}

.magic-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 60px;
    border: 1px solid rgba(255, 107, 43, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
                0 0 0 2px rgba(157, 78, 221, 0.2),
                0 0 20px rgba(255, 107, 43, 0.3);
    animation: magicNavFloat 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes magicNavFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(5deg); }
}

.magic-nav-item {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--bg-secondary), var(--card-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
}

.magic-nav-item::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple), var(--light-blue));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(3px);
}

.magic-nav-item:hover {
    transform: translateX(10px) scale(1.1) rotateY(5deg);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 30px rgba(255, 107, 43, 0.4);
}

.magic-nav-item:hover::before {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

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

.magic-nav-item i {
    font-size: 24px;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s;
}

.magic-nav-item:hover i {
    transform: scale(1.2);
    -webkit-text-fill-color: white;
    background: white;
    -webkit-background-clip: unset;
}


.magic-nav-tooltip {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-purple));
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10000;
}

.magic-nav-tooltip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--secondary-purple);
    rotate: 45deg;
}

.magic-nav-item:hover .magic-nav-tooltip {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    left: 90px;
}


.magic-nav-item.active {
    background: linear-gradient(145deg, var(--primary-orange), var(--secondary-purple));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 43, 0.6);
}

.magic-nav-item.active i {
    -webkit-text-fill-color: white;
    background: white;
}


.magic-nav-item.locked {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.magic-nav-item.locked i {
    background: linear-gradient(45deg, #888, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.magic-nav-item.locked:hover {
    transform: translateX(10px) scale(1.1);
    opacity: 1;
    filter: grayscale(0);
}


.magic-nav-item:active {
    transform: scale(0.95) translateZ(-10px);
}


.settings-container {
    max-width: 600px;
    margin: 100px auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 30px;
    border: 3px solid var(--primary-orange);
    box-shadow: 0 20px 40px rgba(255, 107, 43, 0.2);
    position: relative;
    overflow: hidden;
}

.settings-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,43,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.settings-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.settings-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.settings-section h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-purple);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section h3 i {
    color: var(--primary-orange);
}

.settings-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.settings-option:last-child {
    border-bottom: none;
}

.settings-label {
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-label i {
    color: var(--primary-orange);
    width: 20px;
}

.settings-value {
    color: var(--text-secondary);
    background: var(--input-bg);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 2px solid var(--secondary-purple);
    transition: all 0.3s;
}

.settings-value:hover {
    border-color: var(--primary-orange);
    transform: scale(1.02);
}

.settings-input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--secondary-purple);
    border-radius: 10px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    width: 200px;
    transition: all 0.3s;
}

.settings-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 107, 43, 0.3);
}


.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
}

input:checked + .slider:before {
    transform: translateX(26px);
}


.settings-save {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.settings-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 43, 0.4);
}

.settings-save:active {
    transform: translateY(0);
}

.settings-save i {
    margin-right: 0.5rem;
}


.login-required-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.login-required-overlay.active {
    display: flex;
}

.login-required-card {
    background: var(--card-bg);
    border: 3px solid var(--primary-orange);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(255, 107, 43, 0.3);
    animation: cardPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cardPop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.login-required-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: iconShake 0.5s ease infinite;
}

@keyframes iconShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

.login-required-card h2 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.login-required-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.login-required-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.login-required-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.login-required-btn.primary {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    color: white;
}

.login-required-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 43, 0.4);
}

.login-required-btn.secondary {
    background: transparent;
    border: 2px solid var(--secondary-purple);
    color: var(--text-primary);
}

.login-required-btn.secondary:hover {
    background: var(--secondary-purple);
    color: white;
}


@media (max-width: 768px) {
    .magic-nav-container {
        left: 10px;
    }
    
    .magic-nav {
        gap: 8px;
        padding: 15px 8px;
    }
    
    .magic-nav-item {
        width: 45px;
        height: 45px;
    }
    
    .magic-nav-item i {
        font-size: 18px;
    }
    
    .magic-nav-tooltip {
        display: none;
    }
    
    .settings-container {
        margin: 80px 1rem 1rem 1rem;
        padding: 1.5rem;
    }
    
    .settings-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .settings-input {
        width: 100%;
    }
    
    .login-required-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .login-required-buttons {
        flex-direction: column;
    }
}


@keyframes spark {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.spark {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
    pointer-events: none;
    animation: spark 0.5s ease-out forwards;
    z-index: 10001;
}

        .color-theme-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            z-index: 10000;
            box-shadow: 0 10px 30px rgba(255, 107, 43, 0.3);
            transition: all 0.3s;
            animation: rotate 10s linear infinite;
        }
        
        .color-theme-btn:hover {
            transform: scale(1.1) rotate(180deg);
            box-shadow: 0 15px 40px rgba(255, 107, 43, 0.5);
        }
        
        .welcome-container {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        
        .animated-gradient {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(-45deg, var(--primary-orange), var(--secondary-purple), var(--light-blue), #ff6b2b);
            background-size: 400% 400%;
            animation: gradientShift 15s ease infinite;
            opacity: 0.1;
            z-index: -1;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        
        .floating-circles {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
        }
        
        .circle {
            position: absolute;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
            opacity: 0.1;
            animation: float 20s infinite;
        }
        
        .circle:nth-child(1) {
            width: 300px;
            height: 300px;
            top: -150px;
            left: -150px;
            animation-delay: 0s;
        }
        
        .circle:nth-child(2) {
            width: 400px;
            height: 400px;
            bottom: -200px;
            right: -200px;
            animation-delay: -5s;
            background: linear-gradient(45deg, var(--secondary-purple), var(--light-blue));
        }
        
        .circle:nth-child(3) {
            width: 200px;
            height: 200px;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            animation-delay: -10s;
            background: linear-gradient(45deg, var(--light-blue), var(--primary-orange));
        }
        
        @keyframes float {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            25% { transform: translate(50px, 50px) rotate(90deg); }
            50% { transform: translate(100px, -50px) rotate(180deg); }
            75% { transform: translate(-50px, 100px) rotate(270deg); }
        }
        
        
        .welcome-content {
            position: relative;
            z-index: 10;
            animation: fadeInUp 1.5s ease;
        }
        
        .welcome-title {
            font-family: 'Poppins', sans-serif;
            font-size: 5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple), var(--light-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: titleGlow 3s ease-in-out infinite;
            text-shadow: 0 0 30px rgba(255,107,43,0.3);
        }
        
        @keyframes titleGlow {
            0%, 100% { filter: brightness(1); transform: scale(1); }
            50% { filter: brightness(1.2); transform: scale(1.02); }
        }
        
        .welcome-subtitle {
            font-size: 1.5rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            animation: slideIn 1s ease 0.3s both;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        
        .enter-btn {
            position: relative;
            padding: 1.5rem 4rem;
            font-size: 1.5rem;
            font-weight: 600;
            color: white;
            background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
            border: none;
            border-radius: 60px;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.3s;
            box-shadow: 0 10px 30px rgba(255, 107, 43, 0.3);
            animation: pulse 2s infinite;
            margin-top: 2rem;
        }
        
        @keyframes pulse {
            0% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 107, 43, 0.3); }
            50% { transform: scale(1.05); box-shadow: 0 20px 40px rgba(255, 107, 43, 0.5); }
            100% { transform: scale(1); box-shadow: 0 10px 30px rgba(255, 107, 43, 0.3); }
        }
        
        .enter-btn::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;
        }
        
        .enter-btn:hover::before {
            left: 100%;
        }
        
        .enter-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(255, 107, 43, 0.5);
        }
        
        .enter-btn i {
            margin-left: 10px;
            animation: arrowMove 1s infinite;
        }
        
        @keyframes arrowMove {
            0%, 100% { transform: translateX(0); }
            50% { transform: translateX(10px); }
        }
        
        
        .welcome-stats {
            display: flex;
            gap: 3rem;
            margin-top: 4rem;
            animation: fadeInUp 1s ease 0.6s both;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-orange);
            animation: countUp 2s ease-out;
        }
        
        .stat-label {
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        @keyframes countUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        
        .floating-code {
            position: absolute;
            font-family: 'Fira Code', monospace;
            font-size: 14px;
            color: rgba(255, 255, 255, 0.03);
            white-space: nowrap;
            animation: codeFloat 20s linear infinite;
            z-index: 0;
            pointer-events: none;
        }
        
        @keyframes codeFloat {
            from {
                transform: translateY(100vh) rotate(0deg);
            }
            to {
                transform: translateY(-100vh) rotate(360deg);
            }
        }
        
        
        @media (max-width: 768px) {
            .welcome-title {
                font-size: 3rem;
            }
            
            .welcome-subtitle {
                font-size: 1.2rem;
            }
            
            .enter-btn {
                padding: 1.2rem 3rem;
                font-size: 1.2rem;
            }
            
            .welcome-stats {
                flex-direction: column;
                gap: 1rem;
            }
        }
        
        
        .color-theme-btn {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            z-index: 10000;
            box-shadow: 0 10px 30px rgba(255, 107, 43, 0.3);
            transition: all 0.3s;
            animation: rotate 10s linear infinite;
        }
        
        .color-theme-btn:hover {
            transform: scale(1.1) rotate(180deg);
            box-shadow: 0 15px 40px rgba(255, 107, 43, 0.5);
        }
        
        
        .page-transition {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--primary-orange), var(--secondary-purple));
            z-index: 20000;
            transform: translateY(100%);
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }
        
        .page-transition.active {
            transform: translateY(0);
        }