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

:root {
  --primary-glow: rgba(6, 182, 212, 0.25);
  --teal-glow: rgba(20, 184, 166, 0.2);
  --glass-bg-dark: rgba(15, 23, 42, 0.7);
  --glass-border-dark: rgba(255, 255, 255, 0.08);
  --glass-bg-light: rgba(255, 255, 255, 0.75);
  --glass-border-light: rgba(226, 232, 240, 0.8);
}

body {
  font-family: 'Plus Jakarta Sans', 'Kanit', sans-serif;
  scroll-behavior: smooth;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-dark);
}

.light .glass-panel {
  background: var(--glass-bg-light);
  border: 1px solid var(--glass-border-light);
}

.glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.light .glass-nav {
  background: rgba(255, 255, 255, 0.85);
  border-right: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.2);
}

.light .glass-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(203, 213, 225, 0.6);
}

.light .glass-card:hover {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: 0 10px 30px -10px rgba(13, 148, 136, 0.15);
}

/* Ambient Background Glow */
.glow-orb-cyan {
  position: absolute;
  filter: blur(100px);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35) 0%, rgba(6, 182, 212, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: pulse-slow 8s ease-in-out infinite alternate;
}

.glow-orb-teal {
  position: absolute;
  filter: blur(110px);
  background: radial-gradient(circle, rgba(20, 184, 166, 0.3) 0%, rgba(20, 184, 166, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: pulse-slow 10s ease-in-out infinite alternate-reverse;
}

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

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

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

.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.7);
}

/* Modal animation */
.modal-enter {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

/* Active Nav Link Marker */
.nav-link.active {
  color: #06b6d4;
  background: rgba(6, 182, 212, 0.12);
  border-left: 3px solid #06b6d4;
}

.light .nav-link.active {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.1);
  border-left: 3px solid #0d9488;
}

/* Timeline line */
.timeline-stem {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, #06b6d4 0%, #14b8a6 50%, rgba(20, 184, 166, 0.1) 100%);
}

.light .timeline-stem {
  background: linear-gradient(180deg, #0d9488 0%, #06b6d4 50%, rgba(6, 182, 212, 0.15) 100%);
}
