/* Custom Styles & Glassmorphism Effects for ICT Web Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --font-thai: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Prompt', sans-serif;
}

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

h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(6, 182, 212, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light .glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 165, 233, 0.25);
  box-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.08);
}

.glass-card-interactive:hover {
  border-color: rgba(6, 182, 212, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px 0 rgba(6, 182, 212, 0.16);
}

.light .glass-card-interactive:hover {
  border-color: rgba(14, 165, 233, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px 0 rgba(14, 165, 233, 0.2);
}

.glass-sidebar {
  background: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(6, 182, 212, 0.15);
}

.light .glass-sidebar {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(203, 213, 225, 0.8);
}

.glass-pill {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  backdrop-filter: blur(8px);
}

/* Neon Glow Accents */
.glow-cyan {
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.5);
}

.glow-text-cyan {
  text-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.4);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(6, 182, 212, 0.8);
}

/* Modal Animations */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal-in {
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Active Nav Indicator */
.nav-link.active {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.2) 0%, rgba(20, 184, 166, 0.08) 100%);
  border-left: 3px solid #06b6d4;
  color: #22d3ee;
  font-weight: 600;
}

.light .nav-link.active {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, rgba(20, 184, 166, 0.05) 100%);
  border-left: 3px solid #0891b2;
  color: #0891b2;
  font-weight: 600;
}

/* Pulse animation for status */
@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.08);
  }
}

.pulse-status {
  animation: pulseGlow 2.5s infinite ease-in-out;
}
