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

:root {
  --font-primary: 'Plus Jakarta Sans', 'Prompt', sans-serif;
  --color-navy-darkest: #060b17;
  --color-navy-dark: #0b1329;
  --color-navy-card: rgba(15, 23, 42, 0.75);
  --color-cyan-glow: rgba(6, 182, 212, 0.4);
  --color-indigo-glow: rgba(99, 102, 241, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
  border: 2px solid #090d16;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Light mode scrollbar */
html:not(.dark) ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html:not(.dark) ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid #f1f5f9;
}
html:not(.dark) ::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Glassmorphism Classes */
.glass-nav {
  background: rgba(11, 19, 41, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html:not(.dark) .glass-nav {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

html:not(.dark) .glass-panel {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 8px 30px 0 rgba(148, 163, 184, 0.2);
}

.glass-card {
  background: rgba(17, 27, 49, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: rgba(22, 36, 66, 0.75);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -10px rgba(6, 182, 212, 0.2);
}

html:not(.dark) .glass-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -2px rgba(148, 163, 184, 0.15);
}

html:not(.dark) .glass-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(14, 165, 233, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -10px rgba(14, 165, 233, 0.2);
}

.glass-modal {
  background: rgba(11, 19, 41, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

html:not(.dark) .glass-modal {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2);
}

/* Glow & Ambient Lighting */
.ambient-glow-cyan {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-indigo {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(55px);
  pointer-events: none;
  z-index: 0;
}

/* Glowing text and borders */
.text-glow-cyan {
  text-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
}

.glow-button {
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.glow-button:hover {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.55);
  transform: translateY(-2px);
}

/* Active Nav Indicator */
.nav-link.active {
  color: #38bdf8 !important;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 15%;
  width: 70%;
  height: 2px;
  background: linear-gradient(90deg, #06b6d4, #6366f1);
  border-radius: 2px;
}

/* Animations */
@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Toast container positioning & animations */
#toast-container {
  position: fixed;
  top: 85px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast-item {
  pointer-events: auto;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(80px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.toast-item.removing {
  opacity: 0;
  transform: translateX(80px) scale(0.95);
}

/* Modal Transitions */
.modal-overlay {
  transition: opacity 0.3s ease;
}

.modal-box {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-hidden .modal-box {
  transform: scale(0.95) translateY(20px);
}

/* Image preview container */
.img-preview-box {
  background-size: cover;
  background-position: center;
}
