@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
  --primary: #00f3ff;
  --secondary: #bc13fe;
  --bg-deep: #030014;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
  --text-main: #1f2937;
  --text-muted: #6b7280;
}

html.dark {
  --glass-bg: rgba(15, 15, 35, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  --text-main: #e2e8f0;
  --text-primary: #00f3ff;
  --text-muted: #9ca3af;
}

/* Light Mode Overrides */
html:not(.dark) {
  --primary: #0891b2;
  /* Cyan-600 */
  --secondary: #9333ea;
  /* Purple-600 */
  --bg-deep: #f8fafc;
  /* Slate-50 */
  --glass-bg: #ffffff;
  --glass-border: #e2e8f0;
  /* Slate-200 */
  --card-bg: #ffffff;
  --text-main: #0f172a;
  /* Slate-900 */
  --text-muted: #475569;
  /* Slate-600 */
  --text-primary: #0891b2;
}


body {
  /* background-color handled by Tailwind */
  color: var(--text-main);
  overflow-x: hidden;
  font-family: 'Inter', sans-serif;
  cursor: none;
}


/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: screen;
  /* Cool effect over dark backgrounds */
}

/* Fix cursor visibility in light mode */
html:not(.dark) .cursor-dot,
html:not(.dark) .cursor-outline {
  mix-blend-mode: normal;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  opacity: 0.5;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
  /* Dynamic sizing logic handled in JS, basic hover states via class */
}

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

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Glowing Border Hover Effect */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.1), transparent);
  transition: left 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 40px -10px rgba(0, 243, 255, 0.15);
}

html.dark .glass-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Light Mode Card Specifics */
html:not(.dark) .glass-card {
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #cbd5e1;
}

html:not(.dark) .glass-card:hover {
  background: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-5px);
  border-color: var(--primary);
}

html:not(.dark) .glass-card h3,
html:not(.dark) .glass-card .font-display {
  color: #0f172a;
}

html:not(.dark) .glass-card p {
  color: #475569;
}

/* Typography Utilities */
.font-display {
  font-family: 'Outfit', sans-serif;
}

.text-gradient {
  background: linear-gradient(to right, #00f3ff, #ffffff, #bc13fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
  /* Slightly more visible */
}