/* ========================================
   LETCUTE - Centralized Animation System
   Tập trung tất cả animations từ codebase
   ======================================== */

/* ====== CORE ANIMATIONS ====== */

/* Fade Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Blob Animation */
@keyframes blob {
    0%,
    100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Pulse Animations */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.4;
        box-shadow: 0 0 20px currentColor;
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 40px currentColor, 0 0 60px currentColor;
    }
}

@keyframes pulse-strong {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.5);
    }
}

/* Float Animations */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-slow {
    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-20px) rotate(180deg);
    }
    75% {
        transform: translateY(-40px) translateX(10px) rotate(270deg);
    }
}

@keyframes float-tech {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* ====== TECH/FUTURISTIC ANIMATIONS ====== */

/* Tech Orbital Animations */
@keyframes tech-orbital-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Orbit Animations */
@keyframes orbit {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(50px, -80px) scale(1.1) rotate(120deg);
    }
    66% {
        transform: translate(-40px, 40px) scale(0.9) rotate(240deg);
    }
    100% {
        transform: translate(0px, 0px) scale(1) rotate(360deg);
    }
}

@keyframes orbit-reverse {
    0% {
        transform: translate(0px, 0px) scale(1) rotate(360deg);
    }
    33% {
        transform: translate(-50px, 80px) scale(1.1) rotate(240deg);
    }
    66% {
        transform: translate(40px, -40px) scale(0.9) rotate(120deg);
    }
    100% {
        transform: translate(0px, 0px) scale(1) rotate(0deg);
    }
}

/* Data Node Animations */
@keyframes data-node-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes data-node-float {
    0%,
    100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.1);
    }
}

/* Matrix Rain Animation */
@keyframes matrix-rain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Digital Rain Animation */
@keyframes digital-rain {
    0% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Circuit Board Animations */
@keyframes circuit-pulse {
    0%,
    100% {
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
}

@keyframes circuit-flow {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Cyber Energy Lines */
@keyframes cyber-energy {
    0% {
        transform: scaleX(0);
        opacity: 1;
    }
    50% {
        transform: scaleX(1);
        opacity: 0.7;
    }
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

/* Quantum Particle Animations */
@keyframes quantum-float {
    0%,
    100% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(20px, -15px) scale(1.1);
    }
    66% {
        transform: translate(-15px, 10px) scale(0.9);
    }
}

/* Holographic Animations */
@keyframes hologram {
    0%,
    100% {
        opacity: 0.1;
        background-position: 0% 50%;
    }
    50% {
        opacity: 0.3;
        background-position: 100% 50%;
    }
}

@keyframes holo-grid {
    0% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: perspective(1000px) rotateX(2deg) rotateY(1deg);
    }
    50% {
        transform: perspective(1000px) rotateX(0deg) rotateY(2deg);
    }
    75% {
        transform: perspective(1000px) rotateX(-2deg) rotateY(1deg);
    }
    100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    }
}

/* Energy Wave Animation */
@keyframes energy-wave {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ====== GRADIENT ANIMATIONS ====== */

@keyframes gradient {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradient-flow-reverse {
    0% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* ====== INTERACTION ANIMATIONS ====== */

/* Bounce Animations */
@keyframes bounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateY(0);
    }
    40%,
    43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
}

@keyframes bounce-glow {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Shake Animation */
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Tech Pulse Animations */
@keyframes pulse-tech {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.8);
    }
}

/* ====== LOADING & UI ANIMATIONS ====== */

/* Loading Animation */
@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

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

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Success Animation */
@keyframes success {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Typewriter Animation */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Notification Slide */
@keyframes notificationSlide {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Slide Down/Up */
@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* ====== ANIMATION CLASSES ====== */

/* Basic Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 3s infinite ease-in-out;
}

.animate-pulse-strong {
    animation: pulse-strong 2s infinite ease-in-out;
}

.animate-pulse-tech {
    animation: pulse-tech 3s infinite ease-in-out;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-bounce-glow {
    animation: bounce-glow 3s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: float-slow 12s infinite ease-in-out;
}

.animate-float-tech {
    animation: float-tech 4s infinite ease-in-out;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

/* Tech Animation Classes */
.animate-orbit {
    animation: orbit 15s infinite ease-in-out;
}

.animate-orbit-reverse {
    animation: orbit-reverse 18s infinite ease-in-out;
}

.animate-digital-rain {
    animation: digital-rain 8s infinite linear;
}

.animate-matrix-rain {
    animation: matrix-rain 10s infinite linear;
}

.animate-circuit-flow {
    animation: circuit-flow 4s infinite linear;
}

.animate-hologram {
    animation: hologram 6s infinite ease-in-out;
}

.animate-energy-wave {
    animation: energy-wave 4s infinite ease-out;
}

/* Gradient Animation Classes */
.animate-gradient {
    background: linear-gradient(-45deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.animate-gradient-flow {
    background-size: 200% 200%;
    animation: gradient-flow 8s infinite ease-in-out;
}

.animate-gradient-flow-reverse {
    background-size: 200% 200%;
    animation: gradient-flow-reverse 10s infinite ease-in-out;
}

/* UI Animation Classes */
.animate-success {
    animation: success 0.5s ease-out;
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.animate-typewriter {
    overflow: hidden;
    border-right: 2px solid #22d3ee;
    animation: typewriter 2s steps(40, end);
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

/* ====== TECH ELEMENT CLASSES ====== */

/* Tech Orbital System */
.tech-orbital {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    border-top: 2px solid rgba(59, 130, 246, 0.4);
    border-right: 2px solid rgba(139, 92, 246, 0.4);
    animation: tech-orbital-spin linear infinite;
    will-change: transform;
}

.tech-orbital-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 25%;
    animation-duration: 25s;
    border-top: 2px solid rgba(59, 130, 246, 0.5);
    border-right: 2px solid rgba(139, 92, 246, 0.5);
}

.tech-orbital-2 {
    width: 240px;
    height: 240px;
    top: 50%;
    right: 20%;
    animation-duration: 30s;
    animation-direction: reverse;
    border-top: 2px solid rgba(139, 92, 246, 0.4);
    border-right: 2px solid rgba(236, 72, 153, 0.4);
}

.tech-orbital-3 {
    width: 300px;
    height: 300px;
    top: 30%;
    right: 35%;
    animation-duration: 35s;
    animation-direction: reverse;
    border-top: 2px solid rgba(16, 185, 129, 0.4);
    border-right: 2px solid rgba(59, 130, 246, 0.4);
}

.tech-orbital-4 {
    width: 120px;
    height: 120px;
    bottom: 25%;
    left: 35%;
    animation-duration: 20s;
    border-top: 2px solid rgba(245, 158, 11, 0.4);
    border-right: 2px solid rgba(239, 68, 68, 0.4);
}

/* Data Nodes */
.data-node {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.8),
        rgba(139, 92, 246, 0.4)
    );
    animation: data-node-pulse 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    will-change: transform;
}

.node-1 {
    top: 20%;
    left: 20%;
    animation-duration: 3s;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.8),
        rgba(16, 185, 129, 0.4)
    );
}

.node-2 {
    top: 35%;
    right: 25%;
    animation-duration: 4s;
    animation-name: data-node-float;
    background: radial-gradient(
        circle,
        rgba(139, 92, 246, 0.8),
        rgba(236, 72, 153, 0.4)
    );
}

.node-3 {
    top: 65%;
    left: 30%;
    animation-duration: 5s;
    background: radial-gradient(
        circle,
        rgba(245, 158, 11, 0.8),
        rgba(239, 68, 68, 0.4)
    );
}

.node-4 {
    top: 50%;
    right: 40%;
    animation-duration: 3.5s;
    animation-name: data-node-float;
    background: radial-gradient(
        circle,
        rgba(16, 185, 129, 0.8),
        rgba(59, 130, 246, 0.4)
    );
}

.node-5 {
    top: 80%;
    left: 60%;
    animation-duration: 4.5s;
    background: radial-gradient(
        circle,
        rgba(236, 72, 153, 0.8),
        rgba(245, 158, 11, 0.4)
    );
}

.node-6 {
    top: 25%;
    left: 70%;
    animation-duration: 3.8s;
    animation-name: data-node-float;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.8),
        rgba(139, 92, 246, 0.4)
    );
}

/* Quantum Particles */
.quantum-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent);
    border-radius: 50%;
    animation: quantum-float 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    will-change: transform;
}

.particle-1 {
    top: 15%;
    left: 35%;
    animation-duration: 7s;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8), transparent);
}

.particle-2 {
    top: 45%;
    right: 25%;
    animation-duration: 9s;
    animation-delay: 2s;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.8), transparent);
}

.particle-3 {
    top: 70%;
    left: 50%;
    animation-duration: 6s;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.8), transparent);
}

.particle-4 {
    top: 25%;
    right: 45%;
    animation-duration: 8s;
    animation-delay: 1s;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
}

.particle-5 {
    top: 85%;
    left: 25%;
    animation-duration: 10s;
    animation-delay: 3s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent);
}

/* Circuit Board Elements */
.circuit-board {
    position: absolute;
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.4),
        rgba(139, 92, 246, 0.4)
    );
    animation: circuit-pulse 4s ease-in-out infinite;
}

.circuit-h-1 {
    top: 30%;
    left: 15%;
    width: 200px;
    height: 1px;
}

.circuit-h-2 {
    top: 65%;
    right: 15%;
    width: 180px;
    height: 1px;
    animation-delay: 2s;
    background: linear-gradient(
        90deg,
        rgba(16, 185, 129, 0.4),
        rgba(245, 158, 11, 0.4)
    );
}

.circuit-v-1 {
    top: 20%;
    left: 45%;
    width: 1px;
    height: 120px;
    background: linear-gradient(
        0deg,
        rgba(59, 130, 246, 0.4),
        rgba(139, 92, 246, 0.4)
    );
    animation-delay: 1s;
}

.circuit-v-2 {
    top: 50%;
    right: 30%;
    width: 1px;
    height: 100px;
    background: linear-gradient(
        0deg,
        rgba(236, 72, 153, 0.4),
        rgba(245, 158, 11, 0.4)
    );
    animation-delay: 3s;
}

.circuit-connection {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.9),
        rgba(139, 92, 246, 0.5)
    );
    border-radius: 50%;
    animation: circuit-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.conn-1 {
    top: 30%;
    left: 25%;
}

.conn-2 {
    top: 65%;
    right: 20%;
    animation-delay: 1s;
}

.conn-3 {
    top: 32%;
    left: 45%;
    animation-delay: 2s;
}

.conn-4 {
    top: 60%;
    right: 30%;
    animation-delay: 0.5s;
}

/* Cyber Lines */
.cyber-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.8),
        rgba(139, 92, 246, 0.8),
        transparent
    );
    animation: cyber-energy 6s ease-in-out infinite;
    transform-origin: left;
}

.line-1 {
    top: 25%;
    left: 0;
    width: 50%;
    animation-delay: 0s;
}

.line-2 {
    top: 55%;
    right: 0;
    width: 60%;
    animation-delay: 3s;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(236, 72, 153, 0.8),
        rgba(245, 158, 11, 0.8),
        transparent
    );
    transform-origin: right;
}

.line-3 {
    top: 75%;
    left: 20%;
    width: 40%;
    animation-delay: 1.5s;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(16, 185, 129, 0.8),
        rgba(59, 130, 246, 0.8),
        transparent
    );
}

.line-4 {
    top: 35%;
    right: 10%;
    width: 45%;
    animation-delay: 4.5s;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.8),
        rgba(236, 72, 153, 0.8),
        transparent
    );
    transform-origin: right;
}

/* Matrix Rain Elements */
.matrix-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(59, 130, 246, 0.15) 50%,
        transparent 100%
    );
    animation: matrix-rain 10s linear infinite;
}

.matrix-rain::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(139, 92, 246, 0.6) 50%,
        transparent 100%
    );
    animation: matrix-rain 15s linear infinite;
}

.matrix-rain::after {
    content: "";
    position: absolute;
    top: 0;
    right: 35%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        0deg,
        transparent 0%,
        rgba(16, 185, 129, 0.6) 50%,
        transparent 100%
    );
    animation: matrix-rain 12s linear infinite;
}

/* Holographic Grid */
.holo-tech-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(
            rgba(59, 130, 246, 0.15) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: holo-grid 12s ease-in-out infinite;
}

/* ====== ANIMATION DELAYS ====== */

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}

.animation-delay-1500 {
    animation-delay: 1.5s;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-2500 {
    animation-delay: 2.5s;
}

.animation-delay-3000 {
    animation-delay: 3s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ====== HOVER EFFECTS ====== */

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    transition: transform 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    transition: box-shadow 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
    transition: transform 0.3s ease;
}

/* ====== RIPPLE EFFECT ====== */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

/* ====== LOADING STATES ====== */

.loading {
    position: relative;
    overflow: hidden;
}

.loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

.pulse-effect {
    animation: pulse 2s infinite;
}

/* ====== CUSTOM SCROLLBAR ====== */

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2563eb, #7c3aed);
}

/* Dark mode scrollbar */
.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #1f2937;
}

/* ====== UTILITY CLASSES ====== */

.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.backdrop-blur-sm {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Line Clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom Shadows */
.shadow-3xl {
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

.drop-shadow-glow {
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.3));
}

.drop-shadow-neon {
    filter: drop-shadow(0 0 10px currentColor);
}

/* Background Patterns */
.bg-cyber-grid {
    background-image: linear-gradient(
            rgba(34, 211, 238, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(34, 211, 238, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}

.bg-tech-mesh {
    background-image: radial-gradient(
            circle at 20% 20%,
            rgba(59, 130, 246, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(168, 85, 247, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 60%,
            rgba(236, 72, 153, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 60% 40%,
            rgba(34, 197, 94, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 25% 75%,
            rgba(34, 197, 94, 0.1) 0%,
            transparent 50%
        );
}

/* ====== RESPONSIVE DESIGN ====== */

@media (max-width: 768px) {
    .tech-orbital {
        width: 60% !important;
        height: 60% !important;
    }

    .data-node {
        width: 12px;
        height: 12px;
    }

    .quantum-particle {
        width: 4px;
        height: 4px;
    }

    .circuit-board {
        display: none;
    }

    .cyber-line {
        display: none;
    }
}

/* ====== DARK MODE SUPPORT ====== */

@media (prefers-color-scheme: dark) {
    .tech-orbital {
        border-top-color: rgba(96, 165, 250, 0.6);
        border-right-color: rgba(167, 139, 250, 0.6);
    }

    .data-node {
        background: linear-gradient(45deg, #60a5fa, #a78bfa);
        box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    }

    .quantum-particle {
        background: radial-gradient(circle, #38bdf8, #c084fc);
    }
}

.dark .tech-orbital {
    border-top-color: rgba(96, 165, 250, 0.6) !important;
    border-right-color: rgba(167, 139, 250, 0.6) !important;
}

.dark .data-node {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
}

.dark .circuit-connection {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.7);
}

.dark .quantum-particle {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
}

/* ====== PERFORMANCE OPTIMIZATIONS ====== */

.tech-orbital,
.data-node,
.quantum-particle,
.circuit-board,
.circuit-connection {
    will-change: transform;
    backface-visibility: hidden;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
