/* ==========================================================================
   IEEE JSSATEB Leadership Badges Pinning Ceremony — Stage Backdrop
   Official Badge-Identical Design System (Clean White & Flowing Blue Ribbon Waves)
   ========================================================================== */

:root {
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --text-navy-primary: #0a192f;
  --text-navy-secondary: #1e3a5f;
  --text-muted: #64748b;
  --ieee-blue: #006699;
  --ieee-light-blue: #0080ff;
  --ieee-navy: #002855;
  --wave-navy-dark: #001f3f;
  --wave-navy-deep: #053b6f;
  --wave-blue: #006699;
  --wave-cyan: #1c72c2;
  --wave-light: #5ba4e5;
  --gold-accent: #c59b27;
  --gold-light: #dfb746;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-white);
  font-family: var(--font-family);
  color: var(--text-navy-primary);
}

/* ==========================================================================
   Background Ribbon Waves & Corner Halftone Dot Pattern (Badge Identical)
   ========================================================================== */

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

/* Top-Left & Right Halftone Dots Grid */
.halftone-dots {
  position: absolute;
  width: 320px;
  height: 320px;
  background-image: radial-gradient(#006699 1.4px, transparent 1.4px);
  background-size: 16px 16px;
  opacity: 0.22;
}

.halftone-dots.top-left {
  top: 0;
  left: 0;
  mask-image: radial-gradient(circle at 0% 0%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 0% 0%, black 40%, transparent 80%);
}

.halftone-dots.right-mid {
  top: 35%;
  right: 0;
  width: 280px;
  height: 380px;
  mask-image: radial-gradient(circle at 100% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 100% 50%, black 30%, transparent 75%);
}

/* Subtle Top Wave Swoosh */
.wave-top-svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 55vw;
  max-width: 900px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 4px 15px rgba(0, 33, 71, 0.08));
}

/* Grand Bottom Sweeping Multi-Layer Waves */
.wave-bottom-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: auto;
  min-height: 220px;
  max-height: 360px;
  filter: drop-shadow(0 -8px 25px rgba(0, 33, 71, 0.15));
}

/* ==========================================================================
   Minimalist Stage Header Bar (Dual Logo Lockup from Badge)
   ========================================================================== */

.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 20;
}

.header-logo-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-ieee-wrap img {
  height: 52px;
  object-fit: contain;
  display: block;
}

.logo-divider {
  width: 1.5px;
  height: 48px;
  background: #cbd5e1;
}

.logo-jss-wrap img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  background: #ffffff;
  padding: 1px;
}

.header-right-title {
  text-align: right;
}

.header-branch-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ieee-navy);
}

.header-ceremony-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ieee-blue);
  margin-top: 2px;
}

/* ==========================================================================
   Presentation Viewport & Slide Deck
   ========================================================================== */

#presentation-viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 100px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
  will-change: opacity, transform;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

/* Instant Mode */
body.no-transitions *,
body.no-transitions .slide {
  transition: none !important;
  animation: none !important;
}

/* ==========================================================================
   Slide 0: Standby / Welcome Screen
   ========================================================================== */

.welcome-box {
  text-align: center;
  max-width: 1000px;
  padding: 40px 50px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 40, 85, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
}

.welcome-dual-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
}

.welcome-dual-logos img.ieee-main {
  height: 72px;
  object-fit: contain;
}

.welcome-dual-logos .vertical-bar {
  width: 2px;
  height: 60px;
  background: #cbd5e1;
}

.welcome-dual-logos img.jss-main {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
}

.welcome-inst-sub {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ieee-blue);
  margin-bottom: 12px;
}

.welcome-grand-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-navy-primary);
  margin-bottom: 14px;
}

/* Signature Diamond Divider from Badge */
.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 18px auto 22px;
  max-width: 520px;
}

.diamond-divider .line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #002855 30%, #002855 70%, transparent);
}

.diamond-divider .diamond {
  width: 10px;
  height: 10px;
  background: var(--gold-accent);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(197, 155, 39, 0.6);
}

.welcome-role-tag {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-navy-secondary);
  margin-bottom: 0;
}

.welcome-cue-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #002855 0%, #005696 100%);
  color: #ffffff;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 8px 25px rgba(0, 40, 85, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-cue-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 40, 85, 0.4);
}

.welcome-cue-btn .kbd-hint {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Slides 1..4: Individual Spotlight Reveal (Badge-Identical Design)
   ========================================================================== */

.spotlight-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
  max-width: 1300px;
  width: 90%;
  padding: 20px 40px;
}

/* Badge Showcase */
.badge-frame-wrap {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-pin-graphic {
  position: relative;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 25px 60px rgba(0, 33, 71, 0.25), 0 8px 20px rgba(0, 33, 71, 0.15);
  animation: badgeFloating 6s ease-in-out infinite;
}

@keyframes badgeFloating {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.badge-pin-graphic img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Spotlight Leader Details */
.spotlight-text-content {
  flex: 1;
  max-width: 680px;
}

.spotlight-org-tag {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ieee-blue);
  margin-bottom: 10px;
}

.spotlight-leader-name {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--text-navy-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* The signature diamond divider beneath the name */
.spotlight-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 16px;
  max-width: 480px;
}

.spotlight-divider .line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, #002855 0%, #002855 70%, transparent);
}

.spotlight-divider .diamond {
  width: 10px;
  height: 10px;
  background: var(--gold-accent);
  transform: rotate(45deg);
}

.spotlight-role-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ieee-navy);
  margin-bottom: 0;
}

.spotlight-cue-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-navy-secondary);
  background: rgba(0, 40, 85, 0.05);
  border: 1px solid rgba(0, 40, 85, 0.12);
  padding: 8px 22px;
  border-radius: 30px;
}

.spotlight-cue-pill .star {
  color: var(--gold-accent);
}

/* ==========================================================================
   Slide 5: Executive Committee Panoramic Grid (Photo Session Backdrop)
   ========================================================================== */

.grid-wrapper {
  width: 95%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-header-section {
  text-align: center;
  margin-bottom: 28px;
}

.grid-main-heading {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-navy-primary);
  margin-bottom: 8px;
}

.grid-four-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.execom-white-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(0, 40, 85, 0.12);
  border-radius: 24px;
  padding: 26px 18px 22px;
  box-shadow: 0 12px 35px rgba(0, 33, 71, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.execom-white-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(0, 33, 71, 0.15);
}

.card-badge-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  padding: 3px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 33, 71, 0.18);
  margin-bottom: 18px;
}

.card-badge-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.card-leader-name {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text-navy-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 70%;
  margin: 0 auto 10px;
}

.card-diamond-divider .line {
  flex: 1;
  height: 1px;
  background: #cbd5e1;
}

.card-diamond-divider .diamond {
  width: 7px;
  height: 7px;
  background: var(--gold-accent);
  transform: rotate(45deg);
}

.card-role-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ieee-blue);
}

/* ==========================================================================
   Responsive Projector Optimizations (4:3, 16:10, 16:9)
   ========================================================================== */

@media (max-width: 1200px) {
  .spotlight-layout {
    gap: 40px;
  }
  .badge-frame-wrap {
    width: 330px;
    height: 330px;
  }
  .badge-pin-graphic {
    width: 300px;
    height: 300px;
  }
  .spotlight-leader-name {
    font-size: 2.8rem;
  }
  .welcome-grand-title {
    font-size: 2.5rem;
  }
  .card-badge-circle {
    width: 130px;
    height: 130px;
  }
  .card-leader-name {
    font-size: 1.1rem;
  }
}
