html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #050510;
  --bg-card: rgba(15, 15, 30, 0.6);
  --blue-neon: #00f3ff;
  --purple-neon: #9d00ff;
  --cyan-neon: #00ffff;
  --text-main: #e0e0fd;
  --text-muted: #8b8ba7;
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden; /* Fix horizontal scroll overlap */
  width: 100%;
}

/* ================= LOADER ================= */
.loader-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 1s ease-out;
}
.glow-brain-loader {
  font-size: 5rem;
  color: var(--blue-neon);
  text-shadow: 0 0 20px var(--blue-neon), 0 0 50px var(--purple-neon);
  animation: pulseBrain 1.5s infinite alternate;
  margin-bottom: 2rem;
}
.loader-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--cyan-neon);
}
.progress-bar {
  width: 300px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
}
.progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-neon), var(--purple-neon));
  box-shadow: 0 0 10px var(--blue-neon);
}

@keyframes pulseBrain {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 40px var(--blue-neon), 0 0 80px var(--cyan-neon); }
}

/* ================= BACKGROUND ================= */
#tsparticles {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh; /* changed height to viewport to avoid stretching horizontally */
  z-index: -1;
  pointer-events: none;
}

/* ================= GLOBAL UI ================= */
.global-ui {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(5,5,16,1) 0%, rgba(5,5,16,0) 100%); /* Fix overlapping navbar visually */
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-shadow: 0 0 10px var(--blue-neon);
}
.controls {
  display: flex;
  gap: 1rem;
}
.icon-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  width: 45px; height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; justify-content: center; align-items: center;
  font-size: 1.2rem;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}
.icon-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.icon-btn.active {
  color: #fff;
  border-color: var(--purple-neon);
  box-shadow: 0 0 15px rgba(157, 0, 255, 0.4);
}

/* ================= SLIDES LAYOUT ================= */
.presentation-wrapper {
  width: 100%;
  z-index: 10;
}
.slides-container {
  width: 100%; 
  display: flex;
  flex-direction: column;
}
.slide {
  position: relative; /* Change from absolute to relative for scroll */
  width: 100%; 
  min-height: 100vh; /* Ensure sections naturally fill height but can grow */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem; /* Add padding to prevent navbar clipping content */
}

.slide-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2; /* Make sure above particles */
}

/* Typography & Neon Utilities */
.neon-text {
  background: linear-gradient(90deg, #fff, var(--blue-neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}
.cyan-accent { color: var(--cyan-neon); text-shadow: 0 0 10px rgba(0,255,255,0.5); }
.purple-accent { color: var(--purple-neon); text-shadow: 0 0 10px rgba(157,0,255,0.5); }

.slide-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.slide-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* Buttons */
.btn-glow {
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 2px solid var(--blue-neon);
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2), inset 0 0 15px rgba(0, 243, 255, 0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-glow::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,255,255,0.3), transparent);
  transition: all 0.5s;
}
.btn-glow:hover {
  background: var(--blue-neon);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
  color: #000;
}
.btn-glow:hover::before { left: 100%; }

.btn-glow.lg-btn { font-size: 1.5rem; padding: 1.2rem 3rem; }

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  color: var(--text-main);
  text-align: center;
}
.glass-card:hover { border-color: rgba(0, 243, 255, 0.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.glass-card h3 { font-family: var(--font-heading); margin: 1rem 0 0.5rem; font-size: 1.3rem; }
.glass-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.card-icon { font-size: 2.5rem; background: linear-gradient(135deg, var(--blue-neon), var(--purple-neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Grid Layouts */
.cards-grid { display: grid; gap: 2rem; width: 100%; margin-top: 2rem; }
.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 1100px; }
.cols-5 { grid-template-columns: repeat(5, 1fr); max-width: 1200px; gap: 1.5rem; }

/* ================= SLIDE SPECIFIC ================= */
/* Slide 1: Hero */
.hero-title { font-family: var(--font-heading); font-size: 6rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 4rem; }
.glow-brain-container { position: relative; margin-bottom: 3rem; width: 250px; height: 250px; display: flex; justify-content: center; align-items: center; }
.brain-icon { font-size: 8rem; color: #fff; filter: drop-shadow(0 0 30px var(--purple-neon)); }
.float-paper { position: absolute; font-size: 2rem; color: rgba(255,255,255,0.7); filter: drop-shadow(0 0 10px var(--blue-neon)); }

/* Slide 3: Timeline */
.timeline { display: flex; flex-direction: column; gap: 2.5rem; width: 100%; max-width: 700px; position: relative; text-align: left; }
.timeline::before { content: ''; position: absolute; left: 35px; top: 0; height: 100%; width: 2px; background: linear-gradient(to bottom, var(--blue-neon), var(--purple-neon)); }
.timeline-step { display: flex; gap: 2rem; align-items: center; position: relative; }
.step-icon { flex-shrink: 0; width: 70px; height: 70px; border-radius: 50%; background: var(--bg-card); display: flex; justify-content: center; align-items: center; font-size: 1.8rem; border: 2px solid var(--blue-neon); color: var(--cyan-neon); z-index: 2; backdrop-filter: blur(5px); box-shadow: 0 0 15px rgba(0, 243, 255, 0.2); }
.step-content h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.step-content p { color: var(--text-muted); }

/* Slide 4: Features */
.features-grid .glass-card { padding: 3rem 1.5rem; }
.hover-anim { font-size: 3rem; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.glass-card:hover .hover-anim { transform: scale(1.2) translateY(-10px); }
.icon-blue { color: var(--blue-neon); text-shadow: 0 0 15px var(--blue-neon); }
.icon-purple { color: var(--purple-neon); text-shadow: 0 0 15px var(--purple-neon); }
.icon-cyan { color: var(--cyan-neon); text-shadow: 0 0 15px var(--cyan-neon); }

/* Slide 5: Benefits */
.chart-container { width: 100%; max-width: 800px; height: 400px; margin-bottom: 2rem; }
.benefits-stats { display: flex; gap: 4rem; }
.stat { font-size: 1.5rem; font-weight: 700; font-family: var(--font-heading); text-align: center;}
.stat span { font-size: 3rem; display: block; }

/* Slide 6: Use Cases */
.use-case { padding: 2rem 1rem; }
.use-case i { font-size: 3rem; margin-bottom: 1rem; color: #fff; }

/* Slide 7: Future Globe */
.globe-container { position: relative; width: 400px; height: 400px; display: flex; justify-content: center; align-items: center; margin-top: 3rem; }
.globe-core { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--cyan-neon) 0%, transparent 70%); box-shadow: 0 0 50px var(--cyan-neon); }
.globe-ring { position: absolute; border: 2px solid rgba(0, 243, 255, 0.3); border-radius: 50%; }
.r1 { width: 300px; height: 300px; animation: spin1 15s linear infinite; }
.r2 { width: 400px; height: 400px; border-style: dashed; animation: spin2 20s linear infinite; }
.floating-data { position: absolute; background: rgba(0,0,0,0.6); padding: 0.5rem 1rem; border-radius: 8px; border: 1px solid var(--purple-neon); font-size: 0.9rem; backdrop-filter: blur(5px); }
.d1 { top: 10%; right: 10%; }
.d2 { bottom: 20%; left: 5%; }
.d3 { top: 40%; left: -10%; }

@keyframes spin1 { 100% { transform: rotate(360deg); } }
@keyframes spin2 { 100% { transform: rotate(-360deg); } }

/* Slide 8: Conclusion */
.conclusion-text { font-size: 4rem; max-width: 900px; margin-bottom: 4rem; line-height: 1.2; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .slide-title { font-size: 3rem; }
  .hero-title { font-size: 4.5rem; }
  .cols-3, .cols-5 { grid-template-columns: repeat(3, 1fr); }
  .conclusion-text { font-size: 3rem; }
}

@media (max-width: 768px) {
  .global-ui { padding: 1rem; }
  .hero-title { font-size: 3rem; }
  .slide-title { font-size: 2.2rem; }
  .cols-2, .cols-3, .cols-5 { grid-template-columns: 1fr; }
  .timeline::before { left: 25px; }
  .step-icon { width: 50px; height: 50px; font-size: 1.2rem; }
  .chart-container { height: 250px; }
  .benefits-stats { flex-direction: column; gap: 1rem; }
  .conclusion-text { font-size: 2rem; }
  .slide { min-height: auto; padding: 5rem 1.5rem; } /* better vertical spacing on mobile */
  .globe-container { width: 300px; height: 300px; }
  .r2 { width: 300px; height: 300px; }
  .r1 { width: 220px; height: 220px; }
}
