@charset "UTF-8";

/* ==========================================================================
   Sethawut Tongpath - Portfolio Stylesheet
   Modern Tech Glassmorphism & Cyber Black-Green Theme
   ========================================================================== */

:root {
  --neon-green: #10b981;
  --neon-green-bright: #34d399;
  --neon-green-glow: rgba(16, 185, 129, 0.35);
  --emerald-dark: #064e3b;
  --emerald-deep: #022c22;
  --bg-dark-base: #060a08;
  --bg-dark-surface: #0c1410;
  --glass-bg-dark: rgba(12, 20, 16, 0.75);
  --glass-border-dark: rgba(52, 211, 153, 0.18);
  --text-main-dark: #f0fdf4;
  --text-muted-dark: #94a3b8;
  
  /* Light Mode Variables */
  --bg-light-base: #f7faf8;
  --bg-light-surface: #ffffff;
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-border-light: rgba(16, 185, 129, 0.2);
  --text-main-light: #0f172a;
  --text-muted-light: #64748b;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
}

/* 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);
}

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

.glass-nav {
  background: rgba(6, 10, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(52, 211, 153, 0.15);
}

html:not(.dark) .glass-nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(16, 185, 129, 0.18);
}

/* Cyber Glow Borders & Accents */
.cyber-glow-box {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cyber-glow-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.4), transparent 60%, rgba(16, 185, 129, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.cyber-glow-box:hover::after {
  opacity: 1;
}

.glow-green-sm {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.glow-green-md {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
}

.glow-green-lg {
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.45);
}

/* Background Matrix Grid Pattern */
.cyber-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

html:not(.dark) .cyber-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(16, 185, 129, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.07) 1px, transparent 1px);
}

/* Text Gradient */
.text-gradient-green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

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

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

/* Toast Animations */
.toast-enter {
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: toastOut 0.25s ease-in forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Print Stylesheet for Resume/Portfolio export */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, header, nav, #toast-container, .ambient-orbs, button {
    display: none !important;
  }
  .glass-panel {
    background: transparent !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
  }
  .text-gradient-green {
    -webkit-text-fill-color: #059669 !important;
  }
}/* Utilities */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Music Equalizer Wave Animation */
@keyframes wave-bar {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.wave-playing span:nth-child(1) { animation: wave-bar 0.9s ease-in-out infinite; }
.wave-playing span:nth-child(2) { animation: wave-bar 0.7s ease-in-out infinite 0.2s; }
.wave-playing span:nth-child(3) { animation: wave-bar 1.1s ease-in-out infinite 0.4s; }
.wave-playing span:nth-child(4) { animation: wave-bar 0.8s ease-in-out infinite 0.1s; }

/* Music Player Mini Screen */
#music-screen-container {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#music-screen-container.minimized {
  opacity: 0.001 !important;
  pointer-events: none !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 200px !important;
  height: 200px !important;
  z-index: -999 !important;
}
#music-screen-container.expanded {
  opacity: 1 !important;
  pointer-events: auto !important;
  position: relative !important;
  width: 260px !important;
  height: 146px !important;
  margin-bottom: 8px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.7) !important;
  border: 1.5px solid rgba(16, 185, 129, 0.5) !important;
  background: #000 !important;
}

/* Sleek Micro Player & Mini Badge */
#music-main-capsule {
  max-width: 230px;
}
@media (min-width: 640px) {
  #music-main-capsule {
    max-width: 260px;
  }
}
#music-mini-badge:hover {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

