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

:root {
  --brand-cyan: #00AEEF;
  --brand-dark: #0081B2;
  --brand-glow: rgba(0, 174, 239, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9; 
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-cyan); 
}

/* Advanced Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 40px -10px rgba(31, 38, 135, 0.08);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.glass-dark:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Premium Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, #00AEEF 0%, #00d2ff 50%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-text-move 4s ease infinite;
}

@keyframes gradient-text-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Micro-animations */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 50px -12px var(--brand-glow);
}

/* Floating Animation for Icons */
.float-anim {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Animated Backgrounds */
.animated-bg {
  background-size: 200% 200%;
  animation: gradient-move 8s ease infinite;
}

@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Glow Effect for Primary Buttons */
.btn-glow {
  position: relative;
}
.btn-glow::after {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--brand-cyan);
  z-index: -1;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}
.btn-glow:hover::after {
  opacity: 0.6;
}

/* Custom Input Styles */
.input-field {
  width: 100%;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid #cbd5e1;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: #0f172a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-field:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

.input-field:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.15);
  background: #ffffff;
  transform: translateY(-2px);
}

.label-text {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
  letter-spacing: 0.025em;
}

/* Toast Notification (Enhanced) */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 16px 28px;
  border-radius: 16px;
  background: #10b981;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.5);
  transform: translateY(150%) scale(0.9);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: white;
  color: #10b981;
  border-radius: 50%;
  font-size: 14px;
}

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

/* Selection */
::selection {
  background: var(--brand-cyan);
  color: white;
}

/* Modal and Banner animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
