/* Custom Styles for egova.my.id Portfolio */
:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --border-subtle: rgba(148, 163, 184, 0.14);
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Subtle Grid Background */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

html.light .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

/* Ambient Glow */
.hero-glow {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.08) 35%, transparent 70%);
}

/* Glass Card */
.glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 25px -5px rgba(16, 185, 129, 0.12);
}

/* Light Mode Overrides */
html.light body {
  background-color: #f8fafc;
  color: #0f172a;
}

html.light .glass-card {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

html.light .glass-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 0 20px -5px rgba(16, 185, 129, 0.12);
}

html.light .nav-blur {
  background: rgba(248, 250, 252, 0.85);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html.light .text-slate-100,
html.light .text-white {
  color: #0f172a !important;
}

html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-400 {
  color: #475569 !important;
}

html.light .bg-slate-900\/80,
html.light .bg-slate-900\/60,
html.light .bg-slate-800\/60,
html.light .bg-slate-800\/50 {
  background-color: rgba(241, 245, 249, 0.9) !important;
}

html.light .border-slate-800,
html.light .border-slate-700\/60 {
  border-color: rgba(203, 213, 225, 0.8) !important;
}

/* Keep Terminal Dark in Both Modes for Authenticity */
.terminal-window {
  background: #0b1120 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.terminal-window .text-white {
  color: #f8fafc !important;
}

.terminal-window .text-slate-400 {
  color: #94a3b8 !important;
}

/* Status Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.status-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #10b981;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

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

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Filter Pill Active State */
.filter-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border-color: rgba(16, 185, 129, 0.6);
  color: #34d399;
}

html.light .filter-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border-color: #059669;
  color: #047857;
  font-weight: 600;
}
