/* assets/css/style.css */

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

::-webkit-scrollbar-track {
  background: #020617; /* Slate-950 */
}

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

::-webkit-scrollbar-thumb:hover {
  background: #10b981; /* Emerald-500 */
}

/* --- Base & Custom Utilities --- */
html {
  scroll-behavior: smooth;
  background-color: #020617;
  color: #f8fafc;
}

body {
  overflow-x: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Code & Monospace --- */
.font-mono {
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

/* --- Premium Refractions (Glassmorphism) --- */
.glass-panel {
  background: rgba(15, 23, 42, 0.45); /* Slate-900 with transparency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel:hover {
  border-color: rgba(16, 185, 129, 0.2); /* Emerald-500 low opacity */
}

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

.text-gradient-teal {
  background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-hybrid {
  background: linear-gradient(135deg, #34d399 0%, #2dd4bf 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Interactive Hover Glows --- */
.hover-glow {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.4), rgba(45, 212, 191, 0.1));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

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

/* --- Tactile Active Press --- */
.active-tactile:active {
  transform: scale(0.98) translateY(1px);
}

/* --- Custom Hardware-Accelerated Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSlow {
  0%, 100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-slow {
  animation: pulseSlow 8s ease-in-out infinite;
}

/* Delay Utilites for Load Sequences */
.animation-delay-100 {
  animation-delay: 100ms;
}
.animation-delay-200 {
  animation-delay: 200ms;
}
.animation-delay-300 {
  animation-delay: 300ms;
}

/* --- Monospace Grid Lines Background --- */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* --- Terminal Pulse Cursor --- */
.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #34d399;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {
  50% {
    background: transparent;
  }
}
