:root {
    --bg-primary: #070910;
    --bg-secondary: #0D1220;
    --bg-card: #111827;
    --cyan: #00E5FF;
    --purple: #8B5CF6;
    --blue: #3B82F6;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border: rgba(255, 255, 255, 0.10);
    --glow-cyan: 0 0 15px rgba(0, 229, 255, 0.4);
    --glow-purple: 0 0 15px rgba(139, 92, 246, 0.4);
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--purple); text-shadow: var(--glow-purple); }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

#app { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
#main-content { flex: 1; padding: 2rem 1rem; max-width: 1200px; margin: 0 auto; width: 100%; }

/* Background Effects */
#particles-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: -1; overflow: hidden;
}
.particle {
    position: absolute; background: var(--cyan); border-radius: 50%;
    opacity: 0.3; animation: float 20s infinite linear;
}
@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Utilities */
.hidden { display: none !important; }
.glass {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

/* --- CUSTOM CURSOR --- */
@media (hover: hover) and (pointer: fine) {
    html, body, *, a, button, input, select, textarea {
        cursor: none !important;
    }
}

#custom-cursor {
    width: 24px;
    height: 24px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.3s ease, background 0.2s ease, border-color 0.2s ease;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#custom-cursor::after {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background 0.2s ease;
}

@media (hover: none), (pointer: coarse) {
    #custom-cursor {
        display: none !important;
    }
}

#custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.8);
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--purple);
}

#custom-cursor.hover::after {
    background: var(--purple);
}

#custom-cursor.clicking {
    transform: translate(-50%, -50%) scale(0.7);
}

#custom-cursor.fullscreen-mode {
    position: fixed;
    z-index: 2147483647;
}