/* ============================================================
   GLOBAL STYLES — Avon Protection Presentation
   ============================================================ */

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-white);
  background: var(--color-primary);
  overflow: hidden; /* Controlled by slide engine */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--color-accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: var(--z-progress);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  transition: width var(--duration-normal) var(--ease-out);
}

/* ============================================================
   GLOBAL SLIDE NUMBER & BRAND SYMBOL
   ============================================================ */
.global-footer {
  position: fixed;
  bottom: 24px;
  left: 0;
  width: 100%;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: var(--z-nav);
  pointer-events: none;
}

.global-slide-number {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  pointer-events: auto;
}

.global-brand-symbol {
  pointer-events: auto;
  display: flex;
  align-items: center;
}

.global-brand-symbol img {
  height: 20px;
  width: auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  display: flex;
  pointer-events: auto;
  align-items: center;
  gap: var(--space-md);
  padding: 8px 16px 8px 24px;
  
  /* Premium Glassmorphic Pill */
  background: rgba(15, 15, 18, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  
  z-index: var(--z-nav);
  transition: opacity var(--duration-normal) var(--ease-out), transform 0.4s var(--ease-out);
}

.main-nav:hover {
  background: rgba(15, 15, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255,255,255,0.03);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo .logo {
  height: 24px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--duration-fast);
}

.nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 var(--space-xs);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Slide Counter */
.slide-counter {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gray-400);
  min-width: 4em;
  text-align: center;
  padding: 4px 12px;
  letter-spacing: 0.1em;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 20px;
  transition: all var(--duration-fast) var(--ease-out);
}

.slide-counter:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* Custom Slide Menu Popup */
.slide-menu {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  background: rgba(15, 15, 18, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 8px;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  z-index: calc(var(--z-nav) + 1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

/* Custom scrollbar for menu */
.slide-menu::-webkit-scrollbar {
  width: 6px;
}
.slide-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.slide-menu-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--color-gray-300);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  padding-left: 20px;
}

.slide-menu-item.active-item {
  color: var(--color-accent);
  background: rgba(11, 132, 87, 0.1);
}

/* Navigation Buttons */
.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-gray-300);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-btn svg {
  transition: stroke var(--duration-fast) var(--ease-out);
}

.nav-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.nav-btn:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   SLIDE CONTAINER
   ============================================================ */
.slide-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-primary    { color: var(--color-primary); }
.text-accent     { color: var(--color-accent); }
.text-secondary  { color: var(--color-secondary); }
.text-muted      { color: var(--color-gray-400); }
.text-center     { text-align: center; }
.text-left       { text-align: left; }

.bg-primary      { background: var(--color-primary); }
.bg-dark         { background: var(--color-black); }
.bg-gradient     { background: var(--gradient-hero); }
.bg-white        { background: var(--color-white); color: var(--color-gray-800); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-center{ justify-content: center; }
.gap-sm        { gap: var(--space-sm); }
.gap-md        { gap: var(--space-md); }
.gap-lg        { gap: var(--space-lg); }
.gap-xl        { gap: var(--space-xl); }

.text-danger     { color: var(--color-danger); }
.text-warning    { color: var(--color-warning); }
.text-success    { color: var(--color-success); }
.mb-sm           { margin-bottom: var(--space-sm); }
.mb-md           { margin-bottom: var(--space-md); }
.mb-lg           { margin-bottom: var(--space-lg); }
.mb-xl           { margin-bottom: var(--space-xl); }
.mb-2xl          { margin-bottom: var(--space-2xl); }
.mt-md           { margin-top: var(--space-md); }
.fw-bold         { font-weight: var(--fw-bold); }
.text-uppercase  { text-transform: uppercase; letter-spacing: 0.15em; }

.text-tier-best { color: var(--color-tier-best); }
.text-tier-better { color: var(--color-tier-better); }
.text-tier-good { color: var(--color-tier-good); }
