/* ==========================================================================
   Deep Navy Minimalist Modern Portfolio Styles
   ========================================================================== */

:root {
  --font-thai: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-latin: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --navy-950: #060b18;
  --navy-900: #0a1329;
  --navy-800: #0f1e42;
  --navy-700: #162c60;
  --navy-600: #1d3b84;
  --navy-500: #2563eb;
  --navy-400: #38bdf8;
  --navy-300: #7dd3fc;
}

body {
  font-family: var(--font-thai);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

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

.dark ::-webkit-scrollbar-track {
  background: rgba(15, 30, 66, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 138, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.7);
}

/* Glassmorphism Classes */
.glass-nav {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Modal Backdrop */
.modal-backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Timeline Custom Connectors */
.timeline-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, #2563eb 0%, #38bdf8 50%, rgba(56, 189, 248, 0.1) 100%);
}

@media (min-width: 768px) {
  .timeline-line::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Animation utilities */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slideDown 0.25s ease-out forwards;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
  }
}

.glow-pulse {
  animation: pulseGlow 3s infinite;
}

/* Badge hover transitions */
.tech-pill {
  transition: all 0.2s ease;
}
.tech-pill:hover {
  transform: translateY(-1px);
}

/* Hide scrollbar for category filter bar while maintaining scrollability */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
