/* ============================================================
   GUIDED BY — Cinematic Scroll Leadership Showcase
   Fully scoped to .gls-* namespace.
   ============================================================ */

.gls-outer {
  position: relative;
  height: 100vh;
  width: 100%;
  isolation: isolate;
  background-color: #0d0000;
}

.gls-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Cinematic Background with Deep Red */
.gls-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    radial-gradient(ellipse 75% 75% at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.7) 100%),
    #4b0000;
  pointer-events: none;
}

/* Subtle moving smoke overlay */
.gls-smoke {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: screen;
}

.gls-smoke::before,
.gls-smoke::after,
.gls-smoke-extra {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform, opacity;
}

.gls-smoke::before {
  width: 80vw;
  height: 80vh;
  background: radial-gradient(circle, rgba(255, 60, 60, 0.15) 0%, transparent 70%);
  top: -10%;
  left: -20%;
  animation: glsSmokeDrift1 30s ease-in-out infinite alternate;
}

.gls-smoke::after {
  width: 70vw;
  height: 70vh;
  background: radial-gradient(circle, rgba(180, 20, 20, 0.12) 0%, transparent 75%);
  bottom: -15%;
  right: -10%;
  animation: glsSmokeDrift2 35s ease-in-out infinite alternate;
}

.gls-smoke-extra {
  width: 60vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(230, 40, 40, 0.1) 0%, transparent 65%);
  top: 30%;
  left: 25%;
  animation: glsSmokeDrift3 25s ease-in-out infinite alternate;
}

@keyframes glsSmokeDrift1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(5vw, 5vh) scale(1.1); opacity: 0.8; }
  100% { transform: translate(-3vw, 8vh) scale(0.95); opacity: 0.4; }
}

@keyframes glsSmokeDrift2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(-4vw, -6vh) scale(1.15); opacity: 0.7; }
  100% { transform: translate(6vw, 4vh) scale(0.9); opacity: 0.3; }
}

@keyframes glsSmokeDrift3 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(6vw, -3vh) scale(1.08); opacity: 0.6; }
  100% { transform: translate(-4vw, 5vh) scale(0.92); opacity: 0.2; }
}

/* Header */
.gls-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 3rem 0;
  text-align: center;
  pointer-events: none;
}

.gls-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.gls-header-rule {
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a84c, transparent);
}

.gls-header-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.gls-header-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: #c9a84c;
  margin: 0.6rem auto 0;
  border-radius: 1px;
}

/* Layout Container */
.gls-container {
  position: relative;
  width: 95%;
  max-width: 1400px;
  height: 72vh;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10vh;
}

/* Leader Layer */
.gls-leader {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  will-change: transform, opacity;
}

.gls-leader-inner {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
}
/* Left Media Container */
.gls-left-media {
  flex: 1.3;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  will-change: transform, opacity;
}

.gls-portrait {
  height: 100%;
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 -5px 25px rgba(0, 0, 0, 0.4));
  user-select: none;
  pointer-events: none;
}

/* Red Gradient Bottom Fade */
.gls-img-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, #4b0000 0%, rgba(75, 0, 0, 0.85) 30%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

/* Right Content Container */
.gls-right-content {
  flex: 0.7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 5%;
  color: #ffffff;
  z-index: 4;
  will-change: transform, opacity;
}

.gls-designation {
  font-family: 'Lato', 'Roboto', sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #c9a84c;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.gls-name {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.gls-greeting {
  font-family: 'Raleway', 'Poppins', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-style: italic;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(201, 168, 76, 0.4);
}

/* UI Elements: Progress & Counter */
.gls-progress {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  pointer-events: none;
}

.gls-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(201, 168, 76, 0.4);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gls-dot.gls-dot-active {
  background: #c9a84c;
  transform: scale(1.4);
  border-color: #c9a84c;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
}

.gls-counter {
  position: absolute;
  top: 3.5rem;
  right: 3rem;
  z-index: 10;
  font-family: 'Lato', monospace, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
}

.gls-counter-current {
  color: #c9a84c;
  font-weight: 700;
}

.gls-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.gls-scroll-hint svg {
  width: 20px;
  height: 20px;
  animation: glsArrowBounce 2s infinite ease-in-out;
}

@keyframes glsArrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1024px) {
  .gls-scroll-hint {
    display: none;
  }

  .gls-container {
    height: 85vh;
  }
  
  .gls-leader-inner {
    flex-direction: column;
    justify-content: center;
  }

  .gls-left-media {
    flex: 1.1;
    width: 100%;
    align-items: flex-end;
  }

  .gls-portrait {
    max-height: 52vh;
  }

  .gls-right-content {
    flex: 0.9;
    width: 100%;
    padding-left: 0;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .gls-greeting {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(201, 168, 76, 0.3);
    padding-top: 1rem;
    max-width: 600px;
  }
}

@media (max-width: 600px) {
  .gls-header {
    padding: 2rem 0;
  }
  
  .gls-portrait {
    max-height: 45vh;
  }

  .gls-right-content {
    padding-top: 1rem;
  }

  .gls-name {
    margin-bottom: 0.75rem;
  }

  .gls-progress,
  .gls-counter {
    right: 1.5rem;
  }
  
  .gls-counter {
    top: 2rem;
  }
}
