/* Import Fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Base Design System and Variables */
:root {
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Color Palette - Matching Logo */
  --color-primary: #4f46e5;       /* Indigo */
  --color-secondary: #c026d3;     /* Fuchsia */
  --color-accent: #db2777;        /* Pink */
  
  --gradient-brand: linear-gradient(135deg, #4f46e5, #c026d3, #db2777);
  --gradient-brand-hover: linear-gradient(135deg, #4338ca, #a21caf, #be185d);
  --gradient-dark: linear-gradient(180deg, #1e1b4b 0%, #0f0c29 100%);
  --gradient-glass: rgba(255, 255, 255, 0.08);

  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #09090b;
  --bg-secondary: #18181b;
  --bg-tertiary: #27272a;
  --border-color: #27272a;
  
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(192, 38, 211, 0.25);
}

/* Global CSS Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Button & Link Typography */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* Micro-Animations & Transitions */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(192, 38, 211, 0.2); }
  50% { box-shadow: 0 0 25px rgba(192, 38, 211, 0.5); }
}

/* Utility Animations */
.animate-fade {
  animation: fadeIn var(--transition-normal) forwards;
}

.animate-slide {
  animation: slideUp var(--transition-normal) forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Theme Toggle sliding switch */
.theme-switch {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  width: 56px;
  height: 30px;
  position: relative;
  cursor: pointer;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
}

[data-theme="light"] .theme-switch {
  background: rgba(226, 232, 240, 0.8);
  border-color: #cbd5e1;
}

.theme-switch-handle {
  background: linear-gradient(135deg, #4f46e5, #c026d3);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease;
  transform: translateX(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .theme-switch-handle {
  transform: translateX(26px);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
}

/* Ensure inside icons are centered and sized properly */
.theme-switch-handle svg,
.theme-switch-handle .switch-icon {
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo display rules based on theme */
.logo-light {
  display: inline-block !important;
}
.logo-dark {
  display: none !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}
[data-theme="dark"] .logo-dark {
  display: inline-block !important;
}
