/* ==========================================================================
   MECHA AI — Premium VisionOS & Glassmorphism Design System CSS
   Inspired by Apple, OpenAI, YC & Stripe
   ========================================================================== */

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

:root {
  --bg-dark-0: #05060A;
  --bg-dark-1: #090B12;
  --bg-dark-2: #0F131F;
  --bg-dark-3: #161C2E;
  
  --neon-cyan: #00F0FF;
  --neon-purple: #9D4EDD;
  --neon-blue: #3A86FF;
  --neon-rose: #FF007A;
  --neon-amber: #FFBE0B;
  --neon-emerald: #00F59B;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  --glass-bg: rgba(15, 20, 35, 0.55);
  --glass-bg-light: rgba(255, 255, 255, 0.03);
  --glass-blur: 20px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark-0);
  color: var(--text-primary);
  font-family: 'Inter', 'Cairo', sans-serif;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--neon-purple);
  selection-color: #ffffff;
}

::selection {
  background: rgba(157, 78, 221, 0.35);
  color: #fff;
  text-shadow: 0 0 8px rgba(157, 78, 221, 0.8);
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: 'Outfit', 'Cairo', sans-serif;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   Background Animated Mesh & Glow Blobs
   ========================================================================== */

.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
  animation: float-slow 22s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: 15%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, var(--neon-purple) 0%, rgba(58, 134, 255, 0) 70%);
}

.blob-2 {
  bottom: -10%;
  right: 10%;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, var(--neon-blue) 0%, rgba(0, 240, 255, 0) 70%);
  animation-delay: -5s;
}

.blob-3 {
  top: 45%;
  left: 60%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(circle, var(--neon-rose) 0%, rgba(157, 78, 221, 0) 70%);
  opacity: 0.22;
  animation-delay: -11s;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(60px, -40px) scale(1.12) rotate(4deg); }
  66% { transform: translate(-40px, 60px) scale(0.92) rotate(-3deg); }
  100% { transform: translate(30px, 20px) scale(1.05) rotate(2deg); }
}

/* ==========================================================================
   VisionOS & Glassmorphic Component Styles
   ========================================================================== */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 30px rgba(157, 78, 221, 0.15);
  transform: translateY(-4px);
}

.glass-nav {
  background: rgba(9, 11, 18, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-button-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-button-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.glass-button-primary:hover::before {
  left: 100%;
}

.glass-button-primary:hover {
  border-color: #FFFFFF;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-2px) scale(1.02);
}

.glass-button-gradient {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(157, 78, 221, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-button-gradient:hover {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: 0 15px 45px rgba(0, 240, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-3px) scale(1.03);
}

/* ==========================================================================
   Typography Gradients & Glowing Text
   ========================================================================== */

.gradient-text-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-neon {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 45%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 35px rgba(0, 240, 255, 0.3);
}

.gradient-text-gold {
  background: linear-gradient(135deg, #FFF 0%, var(--neon-amber) 70%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Material Symbols Icons Customization
   ========================================================================== */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease, font-variation-settings 0.3s ease;
}

.icon-hover:hover .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 500;
  transform: scale(1.15) rotate(5deg);
  color: var(--neon-cyan);
}

.glow-icon {
  filter: drop-shadow(0 0 12px currentColor);
}

/* ==========================================================================
   Micro-Animations & Floating FX
   ========================================================================== */

.floating-card {
  animation: floating 7s ease-in-out infinite;
}

.floating-card:nth-child(even) {
  animation-delay: -3.5s;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.pulse-glow {
  animation: pulse-light 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-light {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.8)); }
  50% { opacity: 0.6; filter: drop-shadow(0 0 2px rgba(0, 240, 255, 0.3)); }
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-0);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 5px;
  border: 2px solid var(--bg-dark-0);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-purple);
}

/* ==========================================================================
   Interactive Timeline & Modals
   ========================================================================== */

.modal-backdrop {
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.accordion-item {
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}
.accordion-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.accordion-item.active .accordion-content {
  max-height: 400px;
}
.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--neon-cyan);
}
