body {
font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: #0f172a;
color: #e2e8f0;
overflow-x: hidden;
}

#canvas-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.6;
}

.blob-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: -2;
pointer-events: none;
}

@keyframes blob {
0% { transform: translate(0px, 0px) scale(1); }
33% { transform: translate(30px, -50px) scale(1.1); }
66% { transform: translate(-20px, 20px) scale(0.9); }
100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-6px); }
100% { transform: translateY(0px); }
}

.blob {
position: absolute;
border-radius: 50%;
mix-blend-mode: multiply;
filter: blur(48px);
opacity: 0.3;
animation: blob 7s infinite;
}

.blob.blob1 {
top: 0;
left: 25%;
width: 384px;
height: 384px;
background: rgba(99, 102, 241, 0.2);
}

.blob.blob2 {
top: 0;
right: 25%;
width: 384px;
height: 384px;
background: rgba(168, 85, 247, 0.2);
animation-delay: 2s;
}

.blob.blob3 {
bottom: -128px;
left: 33%;
width: 384px;
height: 384px;
background: rgba(236, 72, 153, 0.2);
animation-delay: 4s;
}


.glass {
backdrop-filter: blur(18px);
background: rgba(15, 23, 42, 0.65);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.card-hover {
transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.45s;
}
.card-hover:hover {
transform: translateY(-6px);
box-shadow: 0 25px 45px rgba(15, 23, 42, 0.35);
}
.tag-active {
background: rgba(99,102,241,0.6);
color: white;
border-color: transparent;
}

::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: rgba(15,23,42,0.5);
}
::-webkit-scrollbar-thumb {
background: rgba(99,102,241,0.6);
border-radius: 999px;
}

@keyframes arrowBounce {
    0% { transform: translateX(0); }
    50% { transform: translateX(6px); }
    100% { transform: translateX(0); }
    }
    .arrow-animate {
    animation: arrowBounce 1.3s infinite ease-in-out;
}


/* Style the dropdown options when the menu is open */
#sortSelect option {
background-color: rgba(0, 0, 0, 0.7); /* Darker background for options */
color: white; /* White text for better contrast */
}

/* Highlighted option on hover */
#sortSelect option:hover {
background-color: rgba(0, 0, 0, 0.5); /* Lighter dark background on hover */
}

/* Focused select dropdown */
#sortSelect:focus {
background-color: rgba(0, 150, 255, 0.1);  /* Light cyan when focused */
border-color: rgba(0, 150, 255, 0.7); /* Cyan border on focus */
}
.scrollbar-custom {
scrollbar-width: thin;
scrollbar-color: rgba(34, 197, 230, 0.5) transparent;
}

.scrollbar-custom::-webkit-scrollbar {
height: 6px;
}

.scrollbar-custom::-webkit-scrollbar-track {
background: transparent;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
background: rgba(34, 197, 230, 0.5);
border-radius: 3px;
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
background: rgba(34, 197, 230, 0.8);
}

.bookmark-btn {
  transition: all 0.2s;
}
.bookmark-btn:hover {
  transform: scale(1.1);
}
.bookmark-btn.bookmarked {
  color: #fbbf24;
}

.navbar {
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: #e2e8f0 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #667eea !important;
}

.error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    background: linear-gradient(120deg, #06b6d4, #3b82f6, #ec4899);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite, gradientShift 3s ease infinite;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.error-icon {
    animation: float 3s ease-in-out infinite;
}






