@charset "UTF-8";

/* ==========================================================================
   Phophiang Temchotchaya - Portfolio Stylesheet
   Modern Glassmorphism & Pastel Blue / Pastel Pink Theme
   ========================================================================== */

:root {
  --pastel-blue: #38bdf8;
  --pastel-blue-light: #bae6fd;
  --pastel-pink: #f472b6;
  --pastel-pink-light: #fbcfe8;
  --accent-glow-blue: rgba(56, 189, 248, 0.3);
  --accent-glow-pink: rgba(244, 114, 182, 0.3);
  --glass-bg-light: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(15, 23, 42, 0.75);
  --glass-border-light: rgba(255, 255, 255, 0.6);
  --glass-border-dark: rgba(255, 255, 255, 0.1);
}

/* Custom Scrollbar with Pastel Gradient Thumb */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #7dd3fc, #f472b6);
  border-radius: 9999px;
  transition: opacity 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #38bdf8, #ec4899);
}

/* Modern Glassmorphic Panels */
.glass-panel {
  background: var(--glass-bg-light);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border-light);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.08), 0 4px 15px -5px rgba(244, 114, 182, 0.05);
}

.dark .glass-panel {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(56, 189, 248, 0.05);
}

.glass-panel-hover {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 114, 182, 0.5);
  box-shadow: 0 20px 40px -12px rgba(56, 189, 248, 0.2), 0 10px 25px -8px rgba(244, 114, 182, 0.15);
}

.dark .glass-panel-hover:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px -12px rgba(56, 189, 248, 0.15), 0 10px 25px -8px rgba(244, 114, 182, 0.15);
}

.glass-input {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.dark .glass-input {
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.glass-input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25), 0 0 0 5px rgba(244, 114, 182, 0.15);
  outline: none;
}

/* Ambient Pastel Mesh Gradient */
.bg-mesh-gradient {
  background-image: 
    radial-gradient(at 5% 15%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
    radial-gradient(at 95% 10%, rgba(244, 114, 182, 0.18) 0px, transparent 50%),
    radial-gradient(at 20% 85%, rgba(244, 114, 182, 0.12) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(56, 189, 248, 0.15) 0px, transparent 50%);
}

.dark .bg-mesh-gradient {
  background-image: 
    radial-gradient(at 5% 15%, rgba(56, 189, 248, 0.18) 0px, transparent 50%),
    radial-gradient(at 95% 10%, rgba(244, 114, 182, 0.2) 0px, transparent 50%),
    radial-gradient(at 20% 85%, rgba(244, 114, 182, 0.15) 0px, transparent 50%),
    radial-gradient(at 85% 85%, rgba(56, 189, 248, 0.18) 0px, transparent 50%);
}

/* Sticky Top Navbar Active Link */
.nav-link.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(244, 114, 182, 0.18));
  color: #0284c7;
  font-weight: 600;
  box-shadow: inset 0 -2px 0 0 #38bdf8;
}

.dark .nav-link.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(244, 114, 182, 0.28));
  color: #7dd3fc;
  box-shadow: inset 0 -2px 0 0 #f472b6;
}

/* Timeline Custom Styles */
.timeline-stem {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, #38bdf8, #f472b6, rgba(56, 189, 248, 0.1));
}

/* Pulse Glow Animation */
@keyframes pastelPulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), 0 0 25px rgba(244, 114, 182, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(244, 114, 182, 0.5), 0 0 35px rgba(56, 189, 248, 0.3);
  }
}

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

/* Modal Animations */
.modal-overlay {
  transition: opacity 0.25s ease-out;
}

.modal-content {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-hidden .modal-content {
  transform: scale(0.95) translateY(10px);
}

/* Toast Notification Animation */
@keyframes slideInUp {
  from {
    transform: translateY(100%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes fadeOutDown {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(40px) scale(0.9);
    opacity: 0;
  }
}

.toast-enter {
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: fadeOutDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Print Optimization */
@media print {
  header, #theme-toggle-btn, #lang-toggle-btn, .action-buttons {
    display: none !important;
  }
  main {
    margin-top: 0 !important;
    width: 100% !important;
  }
}
