/* ==========================================================================
   Modern Glassmorphism & Custom Amber/Orange Theme Styles
   Sripatum University ICT Student Portfolio - Sukan Saeliang
   ========================================================================== */

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

:root {
  --font-sans: 'Plus Jakarta Sans', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
  --amber-primary: #f59e0b;
  --amber-secondary: #d97706;
  --orange-primary: #ea580c;
  --orange-glow: rgba(245, 158, 11, 0.15);
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}

.light ::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #f59e0b, #ea580c);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #d97706, #c2410c);
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(245, 158, 11, 0.05);
}

.light .glass-panel {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 158, 11, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px -10px rgba(245, 158, 11, 0.15);
}

.light .glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
}

.light .glass-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -5px rgba(245, 158, 11, 0.12);
}

.glass-sidebar {
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(245, 158, 11, 0.12);
}

.light .glass-sidebar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.light .glass-badge {
  background: rgba(254, 243, 199, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #b45309;
}

.glass-input {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  transition: all 0.2s ease;
}

.glass-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  outline: none;
}

.light .glass-input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 213, 225, 0.9);
  color: #0f172a;
}

.light .glass-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Ambient Glow Orbs */
.ambient-glow-1 {
  position: fixed;
  top: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(234, 88, 12, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 10%;
  right: 10%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.1) 0%, rgba(245, 158, 11, 0.04) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 12s ease-in-out infinite alternate-reverse;
}

.light .ambient-glow-1 {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(249, 115, 22, 0.08) 50%, transparent 70%);
}

.light .ambient-glow-2 {
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(251, 191, 36, 0.06) 50%, transparent 70%);
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  50% { transform: scale(1.1) translate(20px, -20px); opacity: 0.9; }
  100% { transform: scale(0.95) translate(-15px, 15px); opacity: 0.7; }
}

/* Active Nav Indicator */
.nav-link.active {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.2) 0%, rgba(234, 88, 12, 0.08) 100%);
  color: #f59e0b;
  border-left: 3px solid #f59e0b;
  font-weight: 600;
}

.light .nav-link.active {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.8) 0%, rgba(254, 215, 170, 0.4) 100%);
  color: #b45309;
  border-left: 3px solid #d97706;
}

/* Timeline Styling */
.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 1.5rem;
  bottom: -1rem;
  width: 2px;
  background: linear-gradient(to bottom, #f59e0b, rgba(245, 158, 11, 0.2));
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0.15rem;
  top: 0.4rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 9999px;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  border: 2px solid #0f172a;
}

.light .timeline-dot {
  border-color: #ffffff;
}

/* Modal Transitions */
.modal-backdrop {
  opacity: 0;
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  color: #f8fafc;
  animation: slideToast 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.3s ease;
}

.light .toast-item {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.15);
  color: #0f172a;
}

@keyframes slideToast {
  from {
    transform: translateX(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* Gradient Text */
.text-gradient-amber {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light .text-gradient-amber {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
