/* Base Styles */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Theme (default) */
.dark body {
  background-color: #020617;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Light Theme */
body {
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}

.glass-panel {
  backdrop-filter: blur(16px);
  transition: background 0.3s ease, border 0.3s ease;
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.1);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

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

.glow-magenta {
  box-shadow: 0 0 20px rgba(192, 38, 211, 0.3);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.gradient-cyber {
  background: linear-gradient(135deg, #22d3ee 0%, #c026d3 100%);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}

.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-track {
  background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
  background: #22d3ee;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

.nav-blur {
  backdrop-filter: blur(12px);
  transition: background 0.3s ease;
}

.dark .nav-blur {
  background: rgba(2, 6, 23, 0.8);
}

.nav-blur {
  background: rgba(248, 250, 252, 0.8);
}

/* Light theme specific adjustments */
.dark .bg-slate-800\/50 {
  background-color: rgba(30, 41, 59, 0.5);
}

.bg-slate-800\/50 {
  background-color: rgba(226, 232, 240, 0.5);
}

.dark .border-slate-700\/50 {
  border-color: rgba(51, 65, 85, 0.5);
}

.border-slate-700\/50 {
  border-color: rgba(203, 213, 225, 0.5);
}

/* Navbar border adjustments */
.dark #navbar {
  border-bottom-color: rgba(30, 41, 59, 0.5);
}

#navbar {
  border-bottom-color: rgba(226, 232, 240, 0.5);
}

/* Theme toggle icon animation */
#theme-toggle {
  position: relative;
}

#theme-toggle i {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#theme-toggle .theme-icon-hidden {
  position: absolute;
  opacity: 0;
  transform: rotate(180deg);
}
