/* Base Styles */
body {
    background-color: #030303;
    color: #ededed;
}

/* Background Grids & Animations */
.bg-grid {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    position: absolute;
    inset: 0;
}

/* Dynamic Mesh Background */
.bg-mesh-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #080f1a, #020305);
}
.mesh-blob-1 {
    position: absolute;
    top: -20%; left: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    animation: blob-move-1 15s infinite alternate ease-in-out;
}
.mesh-blob-2 {
    position: absolute;
    bottom: -20%; right: -10%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 60%);
    filter: blur(80px);
    animation: blob-move-2 20s infinite alternate-reverse ease-in-out;
}
.mesh-blob-3 {
    position: absolute;
    top: 30%; left: 30%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
    filter: blur(60px);
    animation: blob-move-3 12s infinite alternate ease-in-out;
}

@keyframes blob-move-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 15%) scale(1.1); }
}
@keyframes blob-move-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10%, -15%) scale(1.1); }
}
@keyframes blob-move-3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20%, -20%) scale(1.2); }
}

.map-nodes-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.map-node {
    position: absolute;
    width: 14px;
    height: 6px;
    background: #06b6d4; /* Cyan glowing screen */
    border-top: 1px solid #f59e0b; /* Amber frame indication */
    border-radius: 1px;
    box-shadow: 0 0 12px 3px rgba(6, 182, 212, 0.5), inset 0 0 4px rgba(255,255,255,0.8);
    transform: translate(-50%, -50%);
    animation: nodePulse 3s infinite alternate;
}

@keyframes nodePulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.4; box-shadow: 0 0 8px 1px rgba(6, 182, 212, 0.3); }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; box-shadow: 0 0 15px 4px rgba(6, 182, 212, 0.8), 0 0 20px rgba(245, 158, 11, 0.4); }
}

.map-path {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
    height: 1px;
    transform-origin: left;
    animation: pathTravel 4s infinite linear;
}

@keyframes pathTravel {
    0% { transform: scaleX(0) translateX(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: scaleX(1) translateX(100px); opacity: 0; }
}

/* UI Elements */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

/* 3D Card Effects */
.card-3d-wrapper {
    perspective: 1200px;
    transform-style: preserve-3d;
}

.card-3d-inner {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.card-3d-wrapper:hover .card-3d-inner {
    transform: rotateX(8deg) rotateY(-8deg);
}

.card-layer-bg {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
    transform: translateZ(-30px);
    opacity: 0;
}

.card-3d-wrapper:hover .card-layer-bg {
    transform: translate3d(15px, -15px, -40px);
    opacity: 1;
}

.card-content {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.6s ease, border-color 0.6s ease;
    transform: translateZ(0);
}

.card-3d-wrapper:hover .card-content {
    transform: translateZ(20px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.1);
}

/* Glow effects */
.glow-text {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.accent-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030303;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
.anim-bar {
    animation: barPulse 2s ease-in-out infinite alternate;
}
@keyframes barPulse {
    0% { height: 30%; }
    100% { height: 90%; }
}

.shimmer-bg {
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
