@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #09090b;
  --bg-card: #111827;
  --bg-card-hover: #182234;
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --blue-glow: rgba(59, 130, 246, 0.15);
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: #f3f4f6;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Background grid with radial gradient mask */
.bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-radial-glow {
  background: radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.06) 35%, transparent 70%);
}

.section-radial-glow {
  background: radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

/* Glassmorphism */
.glass-nav {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(6, 182, 212, 0.18);
}

/* Glowing accent borders */
.glow-border {
  position: relative;
}
.glow-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #06b6d4 0%, transparent 50%, #3b82f6 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}
.glow-border:hover::after {
  opacity: 0.75;
}

/* Terminal component styling */
.terminal-window {
  background: #0d1117;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(6, 182, 212, 0.15);
}

.terminal-header {
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Blinking cursor */
.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background-color: #06b6d4;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Pulse animation for status badges */
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.status-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 2s infinite;
}

/* Language selector active state indicator */
.lang-btn.active {
  background: #06b6d4;
  color: #09090b;
  font-weight: 700;
}

/* Badges */
.badge-tech {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #38bdf8;
}

.badge-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
}

/* Toast message notification */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
