/* Global CSS Variables and Resets */
:root {
  --primary: #1e293b;
  --secondary: #f59e0b;
  --accent: #3b82f6;
  --dark: #0f172a;
  --light: #f8fafc;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--dark);
  background-color: var(--light);
}

/* Custom Global Scrollbar (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 6px; /* Thin vertical scrollbar */
  height: 6px; /* Thin horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: transparent; /* Clean track */
}

::-webkit-scrollbar-thumb {
  background-color: #cbd5e1; /* Soft gray thumb */
  border-radius: 100vh; /* Perfectly round pill shape */
  border: 2px solid transparent; /* Creates padding effect if background-clip is content-box, but here used for spacing if needed. Let's keep it simple. */
  background-clip: content-box; /* Optional: makes thumb look "floating" if we add border, but simple radius is cleaner */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8; /* Darker on hover */
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Helper Class for Specific Containers */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px; /* Even thinner for internal containers */
  height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mega Menu Enhancements */
.mega-menu-trigger:hover .mega-menu-content {
  display: flex;
  animation: fadeIn 0.2s ease-out forwards;
}

.mega-menu-content {
  display: none;
}
