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

:root {
  /* Dark Mode Variables (Default) */
  --primary: #06b6d4; /* cyan-500 */
  --secondary: #8b5cf6; /* violet-500 */
  --bg-color: #0f172a; /* slate-900 */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-nav: rgba(15, 23, 42, 0.8);
  --glass-input: rgba(0, 0, 0, 0.2);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --hover-bg: rgba(255, 255, 255, 0.1);
}

.light-mode {
  /* Light Mode Variables */
  --bg-color: #f8fafc; /* slate-50 */
  --text-main: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-nav: rgba(248, 250, 252, 0.8);
  --glass-input: rgba(255, 255, 255, 0.9);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  --hover-bg: rgba(0, 0, 0, 0.05);
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.glass-nav {
  background: var(--glass-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.glass-input {
  background: var(--glass-input);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  transition: all 0.3s ease;
}

.glass-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* Typography & Neon */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted {
  color: var(--text-muted);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: none;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.animate-float { animation: float 6s ease-in-out infinite; }

/* Background Shapes */
.bg-shapes {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  filter: blur(100px);
  opacity: 0.4;
  border-radius: 50%;
  transition: opacity 0.5s ease;
}

.light-mode .shape { opacity: 0.2; } /* Softer in light mode */

.shape-1 {
  background: var(--primary);
  width: 400px; height: 400px;
  top: -100px; left: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  background: var(--secondary);
  width: 500px; height: 500px;
  bottom: -150px; right: -100px;
  animation: float 10s ease-in-out infinite reverse;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modal / Popup */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Typing Effect Cursor */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
