/* ==========================================================================
   AXEL GOMEZ - KINETIC OBSIDIAN DESIGN SYSTEM
   Modern, Precision-Engineered Dark Mode Portfolio
   ========================================================================== */

:root {
  /* Color Palette - Kinetic Obsidian */
  --bg-void: #070a0f;
  --surface-base: #0b0f17;
  --surface-card: #111827;
  --surface-hover: #1a2234;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-hover: rgba(6, 182, 212, 0.4);

  /* Energy Conduits */
  --primary-cyan: #06b6d4;
  --primary-cyan-glow: rgba(6, 182, 212, 0.35);
  --secondary-blue: #3b82f6;
  --tertiary-violet: #8b5cf6;
  --status-emerald: #10b981;

  /* Typography Colors */
  --text-white: #f8fafc;
  --text-slate: #94a3b8;
  --text-muted: #64748b;

  /* Fonts */
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & Typography */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--surface-base);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::selection {
  background: rgba(6, 182, 212, 0.35);
  color: #cffafe;
}

/* Custom Minimal Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-cyan);
}

/* Spotlights & Card Hover Glow */
.spotlight-card {
  position: relative;
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), rgba(139, 92, 246, 0.5), transparent);
  opacity: 0.3;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.spotlight-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 
              0 0 25px -5px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Spotlight cursor follower */
.spotlight-card .mouse-glow {
  position: absolute;
  top: var(--mouse-y, 0);
  left: var(--mouse-x, 0);
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover .mouse-glow {
  opacity: 1;
}

/* Browser Frame & Embed Container */
.browser-frame {
  display: flex;
  flex-direction: column;
  background-color: #0c1017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #090d14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-url-bar {
  flex: 1;
  max-width: 380px;
  margin: 0 12px;
  background: #131924;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-slate);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-viewport {
  position: relative;
  width: 100%;
  height: 380px;
  background: #070a0f;
  overflow: hidden;
}

.embed-viewport iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Filter Tag Buttons */
.filter-btn {
  transition: var(--transition);
  cursor: pointer;
}

/* Project Cards Animation */
.project-card {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Interactive Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--surface-base);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 
              0 0 40px rgba(6, 182, 212, 0.25);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--text-white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.25);
  font-family: var(--font-mono);
  font-size: 13px;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}
