/* ─────────────────────────────────────────────────────────────────────────────
   GLOBAL DESIGN SYSTEM — "Midnight Luxe" (Light Edition)
   Aarav Garg Cinematic Portfolio
   Architected by Gemini / UI-UX Pro Max
   ───────────────────────────────────────────────────────────────────────────── */

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --bg: #FAF8F5;
  --primary: #0D0D12;
  --accent: #2A2A35;
  --slate: #8F8F9B;
  --card-bg: rgba(255, 255, 255, 0.8);
  --border: rgba(13, 13, 18, 0.08);
}

* {
  cursor: none !important; /* Custom cursor implementation */
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Visual Texture (Noise Overlay) --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
}

.noise-overlay svg {
  width: 100%;
  height: 100%;
}

/* --- Container System --- */
.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

@media (max-width: 768px) {
  .container-wide {
    padding: 0 1.5rem;
  }
}

/* --- Typography (UI-UX Pro Max) --- */
.font-drama {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  letter-spacing: -0.02em;
}

.font-data {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* --- Micro-Interactions --- */
.magnetic-btn {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease, background-color 0.3s ease;
}

.magnetic-btn:hover {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(13, 13, 18, 0.3);
}

.lift-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lift-hover:hover {
  transform: translateY(-4px);
}

/* --- Section Radius Rule --- */
.rounded-cinematic {
  border-radius: 2rem;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
}

/* --- Apple-like Professional Components --- */
.glass-effect {
  backdrop-filter: blur(24px);
  background: rgba(250, 248, 245, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Navbar Transitions */
#navbar {
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1), padding 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.4s ease, border-color 0.4s ease !important;
}

#navbar.nav-scrolled {
  width: min(90%, 720px) !important;
  padding: 12px 24px !important;
  background: rgba(250, 248, 245, 0.85) !important;
  border-color: rgba(13, 13, 18, 0.1) !important;
}

/* --- Project UI Custom Animations --- */


/* 1. Radar Scan (FTC) */
@keyframes radar-pulse {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}

@keyframes radar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-sweep {
  animation: radar-rotate 4s linear infinite;
}

.radar-ring {
  animation: radar-pulse 3s cubic-bezier(0.21, 0.61, 0.35, 1) infinite;
}

/* 2. Spline Tracer (Pedro Pathing) */
.path-drawing {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

/* 3. Vitality Pulse (Virtual Pet) */
.heart-pulse {
  animation: heart-pulse 1.2s ease-in-out infinite;
}

@keyframes heart-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.stat-bar-fill {
  transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* 4. Minimax Grid */
.minimax-node {
  transition: all 0.4s ease;
}

.minimax-node:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}
/* 5. Terminal Simulation (Claude Quickstart) */
.terminal-progress {
  animation: progress-fill 3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 1s;
}

@keyframes progress-fill {
  from { width: 0%; }
  to { width: 100%; }
}

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

.terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: #4ade80;
  margin-left: 2px;
  animation: cursor-blink 1s infinite;
}
