/* ============================================
   CODEVERSE - Main Stylesheet
   Designed & Developed by NARUTO ALYUTUBER
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #00f0ff;
    --primary-dark: #00c4d6;
    --primary-glow: rgba(0, 240, 255, 0.4);
    --secondary: #7c3aed;
    --secondary-glow: rgba(124, 58, 237, 0.4);
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --accent-green: #10b981;
    --html-color: #e44d26;
    --css-color: #264de4;
    --js-color: #f7df1e;
    --python-color: #3776ab;
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-tertiary: #151535;
    --bg-card: rgba(21, 21, 53, 0.8);
    --bg-card-hover: rgba(30, 30, 70, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #606090;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 240, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #00f0ff, #7c3aed);
    --gradient-dark: linear-gradient(180deg, #0a0a1a 0%, #0f0f2a 100%);
    --gradient-card: linear-gradient(135deg, rgba(21, 21, 53, 0.9), rgba(15, 15, 42, 0.95));
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-button: 0 0 20px rgba(0, 240, 255, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --z-particles: 0;
    --z-content: 10;
    --z-nav: 100;
    --z-loader: 1000;
    --z-cursor: 9999;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: transform 0.1s ease;
    box-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
}

.cursor-follower {
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: all 0.3s ease, width 0.3s ease, height 0.3s ease;
    opacity: 0.6;
}

.cursor.hover {
    transform: scale(2);
}

.cursor-follower.hover {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }

    body,
    a,
    button {
        cursor: auto !important;
    }
}

/* ==========================================
   LOADER - FULL WORKING VERSION
   ========================================== */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.cyber-circles {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.cyber-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cyber-circle:nth-child(1) {
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 20px rgba(0, 240, 255, 0.1);
}

.cyber-circle:nth-child(2) {
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-bottom-color: var(--secondary);
    border-left-color: var(--secondary);
    animation: spin 1.5s linear infinite reverse;
    box-shadow: 0 0 20px var(--secondary-glow), inset 0 0 20px rgba(124, 58, 237, 0.1);
}

.cyber-circle:nth-child(3) {
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-top-color: var(--accent-pink);
    border-bottom-color: var(--accent-pink);
    animation: spin 2s linear infinite;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3), inset 0 0 15px rgba(236, 72, 153, 0.1);
}

.cyber-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow);
    animation: core-pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes core-pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 30px var(--primary-glow), 0 0 60px var(--primary-glow);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        box-shadow: 0 0 50px var(--primary-glow), 0 0 80px var(--primary-glow);
    }
}

.loader-text {
    margin-bottom: 25px;
}

.glitch-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    display: inline-block;
    position: relative;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow);
    animation: text-flicker 2s ease-in-out infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--accent-pink);
    z-index: -1;
    animation: glitch-1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translate(-3px, -2px);
}

.glitch-text::after {
    color: var(--secondary);
    z-index: -1;
    animation: glitch-2 2s infinite reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translate(3px, 2px);
}

@keyframes glitch-1 {
    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-5px, 3px);
    }

    40% {
        transform: translate(5px, -3px);
    }

    60% {
        transform: translate(-3px, -2px);
    }

    80% {
        transform: translate(4px, 4px);
    }
}

@keyframes glitch-2 {
    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(4px, -2px);
    }

    40% {
        transform: translate(-4px, 4px);
    }

    60% {
        transform: translate(2px, -4px);
    }

    80% {
        transform: translate(-3px, -3px);
    }
}

@keyframes text-flicker {
    0%,
    100% {
        opacity: 1;
    }

    8% {
        opacity: 0.8;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 0.9;
    }

    33% {
        opacity: 1;
    }

    55% {
        opacity: 0.7;
    }

    58% {
        opacity: 1;
    }

    85% {
        opacity: 0.9;
    }

    88% {
        opacity: 1;
    }
}

.loading-bar-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.loading-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow);
    transition: width 0.3s ease;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: loading-shine 1.5s ease-in-out infinite;
}

.loading-percentage {
    display: block;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 12px;
    text-align: right;
    letter-spacing: 2px;
}

@keyframes loading-shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loader-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    pointer-events: none;
}

.loader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.loader-particle:nth-child(1) {
    animation: orbit 3s linear infinite;
}

.loader-particle:nth-child(2) {
    animation: orbit 3s linear 0.5s infinite;
}

.loader-particle:nth-child(3) {
    animation: orbit 3s linear 1s infinite;
}

.loader-particle:nth-child(4) {
    animation: orbit 3s linear 1.5s infinite;
}

.loader-particle:nth-child(5) {
    animation: orbit 3s linear 2s infinite;
}

.loader-particle:nth-child(6) {
    animation: orbit 3s linear 2.5s infinite;
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(80px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: rotate(360deg) translateX(80px) rotate(-360deg);
        opacity: 0;
    }
}

@media (max-width: 480px) {
    .cyber-circles {
        width: 90px;
        height: 90px;
        margin-bottom: 30px;
    }

    .loading-bar-wrapper {
        max-width: 240px;
    }

    .loader-particles {
        width: 150px;
        height: 150px;
    }

    @keyframes orbit {
        0% {
            transform: rotate(0deg) translateX(60px) rotate(0deg);
            opacity: 0;
        }

        10% {
            opacity: 1;
        }

        90% {
            opacity: 1;
        }

        100% {
            transform: rotate(360deg) translateX(60px) rotate(-360deg);
            opacity: 0;
        }
    }
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: var(--z-nav);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 0 5%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    background: rgba(15, 15, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.navbar.scrolled .nav-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
}

.logo-svg {
    width: 100%;
    height: 100%;
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%,
    100% {
        filter: drop-shadow(0 0 5px var(--primary-glow));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--primary-glow));
    }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo-highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.1);
}

.nav-link.active {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 15px;
        transition: all var(--transition-slow);
        border-left: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        font-size: var(--text-lg);
        padding: 15px 20px;
    }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-move {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(60px);
    }
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: var(--z-content);
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px 8px 15px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease forwards;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 0 15px transparent;
    }
}

.badge-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary);
}

.hero-title {
    margin-bottom: 25px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.title-line {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--text-xl);
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.title-main {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-top: 15px;
}

.typewriter {
    color: var(--primary);
    font-weight: 600;
}

.typewriter::after {
    content: '|';
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 35px;
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    overflow: hidden;
    transition: all var(--transition-base);
}

.btn .btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform var(--transition-base);
}

.btn-primary .btn-bg {
    background: var(--gradient-primary);
}

.btn-primary {
    color: var(--bg-primary);
}

.btn-primary:hover .btn-bg {
    transform: scale(1.05);
}

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

.btn-outline .btn-bg {
    border: 2px solid var(--primary);
    border-radius: 50px;
}

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

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--shadow-button);
    transform: translateY(-2px);
}

.btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-visual {
    flex: 0 0 auto;
    width: 500px;
    height: 500px;
    position: relative;
    z-index: var(--z-content);
}

.floating-shape {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(40px);
    opacity: 0.3;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: 10%;
    left: 10%;
    animation-name: float1;
    animation-duration: 8s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    top: 50%;
    right: 0%;
    animation-name: float2;
    animation-duration: 10s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-pink);
    bottom: 10%;
    left: 30%;
    animation-name: float3;
    animation-duration: 12s;
}

@keyframes float1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes float2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-40px, -20px) scale(1.15);
    }

    66% {
        transform: translate(20px, 30px) scale(0.85);
    }
}

@keyframes float3 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, 40px) scale(1.2);
    }

    66% {
        transform: translate(-30px, -10px) scale(0.8);
    }
}

.orb-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    animation: orb-pulse 3s ease-in-out infinite;
}

@keyframes orb-pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.orb-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.ring-1 {
    width: 200px;
    height: 200px;
    animation: ring-rotate 10s linear infinite;
}

.ring-2 {
    width: 250px;
    height: 250px;
    animation: ring-rotate 15s linear infinite reverse;
}

.ring-3 {
    width: 300px;
    height: 300px;
    animation: ring-rotate 20s linear infinite;
}

@keyframes ring-rotate {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: var(--z-content);
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 24px;
        opacity: 0;
    }
}

.scroll-indicator span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        width: 350px;
        height: 350px;
        margin-top: 40px;
    }

    .orb-container {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 15px;
    }

    .hero {
        padding: 100px 15px 40px;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat-item {
        flex: 1 1 40%;
    }
}

/* ==========================================
   SECTIONS
   ========================================== */
section {
    padding: 100px 20px;
    position: relative;
    z-index: var(--z-content);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--text-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--primary);
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--primary);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   COURSES GRID
   ========================================== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.course-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.course-card:hover .card-glow {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.html-icon {
    background: rgba(228, 77, 38, 0.2);
    color: #e44d26;
}

.css-icon {
    background: rgba(38, 77, 228, 0.2);
    color: #264de4;
}

.js-icon {
    background: rgba(247, 223, 30, 0.2);
    color: #f7df1e;
}

.python-icon {
    background: rgba(55, 118, 171, 0.2);
    color: #3776ab;
}

.card-badges {
    display: flex;
    gap: 8px;
}

.badge {
    font-size: var(--text-xs);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge.beginner {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.badge.intermediate {
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
}

.badge.advanced {
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent-pink);
}

.badge.free {
    background: rgba(0, 240, 255, 0.2);
    color: var(--primary);
}

.card-body h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: 12px;
}

.card-body p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: 20px;
}

.card-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.card-features span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-features span i {
    color: var(--accent-green);
    font-size: 0.7rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.lesson-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.arrow-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition-base);
}

.course-card:hover .arrow-icon {
    background: var(--primary);
    color: var(--bg-primary);
    transform: translateX(5px);
}

/* ==========================================
   FEATURES
   ========================================== */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0 auto 20px;
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.feature-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-slider {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonials-slider::-webkit-scrollbar {
    height: 4px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.testimonial-card {
    min-width: 380px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 35px;
    scroll-snap-align: start;
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--border-glow);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-card p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--bg-primary);
}

.testimonial-author strong {
    display: block;
    font-size: var(--text-base);
}

.testimonial-author span {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ==========================================
   CTA
   ========================================== */
.cta {
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--text-3xl);
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content h2 span {
    color: var(--primary);
}

.cta-content p {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: 30px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-primary);
    padding: 80px 20px 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--text-2xl);
    font-weight: 800;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: var(--text-lg);
    transition: all var(--transition-base);
}

.social-links a:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.link-group h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    padding: 8px 0;
    transition: all var(--transition-fast);
}

.link-group a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.developer-credit {
    margin-top: 10px;
}

.developer-credit span {
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================
   PARTICLES CONTAINER
   ========================================== */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-particles);
    pointer-events: none;
}

/* ==========================================
   RESPONSIVE FINAL
   ========================================== */
@media (max-width: 1200px) {
    .hero-visual {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 15px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-content {
        padding: 40px 20px;
    }

    .cta-content h2 {
        font-size: var(--text-2xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .testimonial-card {
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}
