/* ==========================================================================
   PORTFOLIO STYLES - Modern Glassmorphism & Deep Navy Theme
   Author: สิรวัฒน์ วิลัยพัฒน์ (Sirawat Wilaiphat) - ICT Portfolio
   ========================================================================== */

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

:root {
  --font-main: 'Plus Jakarta Sans', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Deep Navy Light Palette */
  --color-bg-base: #F0F4F8;
  --color-bg-surface: rgba(255, 255, 255, 0.7);
  --color-bg-surface-elevated: rgba(255, 255, 255, 0.85);
  --color-border: rgba(255, 255, 255, 0.6);
  --color-border-subtle: rgba(14, 165, 233, 0.15);
  --color-text-primary: #0A192F;
  --color-text-secondary: #334155;
  --color-text-muted: #64748B;
  --color-accent-navy: #0B2545;
  --color-accent-blue: #1D4ED8;
  --color-accent-cyan: #0284C7;
  --color-accent-glow: rgba(56, 189, 248, 0.25);
  --card-shadow: 0 10px 30px -10px rgba(11, 37, 69, 0.08), 0 0 1px 1px rgba(255, 255, 255, 0.7) inset;
}

.dark {
  /* Deep Navy Dark Palette */
  --color-bg-base: #070D18;
  --color-bg-surface: rgba(11, 25, 44, 0.65);
  --color-bg-surface-elevated: rgba(15, 32, 57, 0.8);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-subtle: rgba(56, 189, 248, 0.15);
  --color-text-primary: #F8FAFC;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #94A3B8;
  --color-accent-navy: #1E3E62;
  --color-accent-blue: #3B82F6;
  --color-accent-cyan: #38BDF8;
  --color-accent-glow: rgba(56, 189, 248, 0.2);
  --card-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.1) inset;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 25, 47, 0.1);
}
.dark ::-webkit-scrollbar-track {
  background: #070d18;
}
::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Background Ambient Orbs */
.ambient-glow-1 {
  position: fixed;
  top: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.18) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 5%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(30, 58, 138, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  animation: floatOrb 28s infinite alternate-reverse ease-in-out;
}

.ambient-glow-3 {
  position: fixed;
  top: 45%;
  left: 30%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(14, 165, 233, 0.03) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
  100% { transform: translate(-40px, 70px) scale(0.95); }
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--color-bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  box-shadow: var(--card-shadow);
}

.glass-panel-elevated {
  background: var(--color-bg-surface-elevated);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  box-shadow: var(--card-shadow);
}

.glass-nav-item {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.glass-nav-item:hover, .glass-nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: #0284c7;
}

.dark .glass-nav-item:hover, .dark .glass-nav-item.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.glass-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3.5px;
  background: linear-gradient(to bottom, #38bdf8, #2563eb);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 10px #38bdf8;
}

/* Button & Badge Glows */
.btn-glow-primary {
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.btn-glow-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
  filter: brightness(1.08);
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.btn-glass-secondary:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

/* Card Hover Elevation */
.interactive-card {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.interactive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 35px -12px rgba(11, 25, 44, 0.25), 0 0 15px rgba(56, 189, 248, 0.15);
}

.dark .interactive-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.2);
}

/* Pulse animation for status indicator */
@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.status-indicator {
  animation: onlinePulse 2s infinite;
}

/* Modal Backdrop */
.modal-backdrop {
  background: rgba(7, 13, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Toast Animations */
@keyframes toastIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

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

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

/* Badge styles */
.badge-tech {
  background: rgba(14, 165, 233, 0.1);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.25);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dark .badge-tech {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
}

/* Timeline specific styles */
.timeline-dot::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  left: -6px;
  top: 6px;
  box-shadow: 0 0 10px #38bdf8;
}
