/* ==========================================================================
   ARTSTRO PORTFOLIO - FULL-SCREEN HERO GALLERY & SCROLLING BACKGROUND TYPOGRAPHY
   Aesthetic: Warm White Studio Canvas, Architectural Perspective & Kinetic Typography
   ========================================================================== */

.hero-scroll-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-color: var(--bg-surface, #FAFAF7);
}

.hero-sticky-viewport.full-screen-hero {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-surface, #FAFAF7);
}

/* --------------------------------------------------------------------------
   1. Animated Background Kinetic Typography Layer (Layered behind artwork)
   -------------------------------------------------------------------------- */
.hero-bg-typography-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 13vw, 14.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #202124;
  opacity: 0;
  white-space: nowrap;
  user-select: none;
  will-change: transform, opacity;
}

#bg-word-creativity span {
  background: linear-gradient(180deg, rgba(32, 33, 36, 0.16) 0%, rgba(32, 33, 36, 0.03) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#bg-word-ideas span {
  background: linear-gradient(180deg, rgba(32, 33, 36, 0.16) 0%, rgba(40, 120, 229, 0.06) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#bg-word-art span {
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.22) 0%, rgba(32, 33, 36, 0.05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   2. Pointed Artist Paintbrush & Dynamic Wet Paint Canvas Stage
   -------------------------------------------------------------------------- */
.hero-paintbrush-stage,
.hero-paint-canvas,
.artstro-active-brush,
.active-brush-img,
.brush-contact-glow,
.paintbrush-hint {
  display: none !important;
}

/* --------------------------------------------------------------------------
   3. Full-Screen Artwork Gallery Stage (Emerges from Paint Cup)
   -------------------------------------------------------------------------- */
.hero-fullscreen-gallery-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  z-index: 20;
  cursor: grab;
  overflow: visible;
}

.hero-fullscreen-gallery-stage:active {
  cursor: grabbing;
}

/* Seamless gallery background matching the entire website theme */
.hero-fullscreen-gallery-stage::before {
  display: none;
}

/* Top Subtle Gallery Tag (Removed) */
.hero-top-indicator {
  display: none !important;
}

.hero-top-indicator .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-red, #E53935);
  box-shadow: 0 0 8px rgba(229, 57, 53, 0.4);
}

/* Bottom Status Row */
.hero-bottom-status {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.5rem, 4vw, 3.5rem);
  right: clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.hero-bottom-status .hero-frame-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted, #80868B);
  letter-spacing: 0.12em;
}

.hero-bottom-status .hero-frame-counter #current-orbit-num {
  color: var(--color-accent-red, #E53935);
  font-weight: 700;
}

.hero-bottom-status .hero-scroll-hint {
  display: none !important;
}

.hero-mouse-icon {
  width: 14px;
  height: 22px;
  border: 1.5px solid var(--text-secondary, #62656B);
  border-radius: 9999px;
  position: relative;
}

.hero-mouse-icon::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5px;
  height: 4px;
  background: var(--color-accent-red, #E53935);
  border-radius: 9999px;
  animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 8px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   3. Action Buttons (Calm, cinematic entrance on page load, persistent layout position)
   -------------------------------------------------------------------------- */
@keyframes heroButtonsRiseEntrance {
  0% {
    opacity: 0;
    transform: translate(-50%, 24px);
    pointer-events: none;
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
}

.hero-finale-actions {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translate(-50%, 0);
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 1;
  pointer-events: auto;
  animation: heroButtonsRiseEntrance 1.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
  will-change: transform, opacity;
}

.hero-finale-actions.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-finale-actions {
    animation: none;
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
}

.hero-finale-actions .hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.05rem 2.25rem;
  background: var(--color-accent-red, #E53935);
  color: #FFFFFF;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  white-space: nowrap;
}

.hero-finale-actions .hero-btn-primary:hover {
  background: #D32F2F;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(229, 57, 53, 0.4);
}

.hero-finale-actions .hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 1.05rem 2rem;
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E8E8E8);
  color: var(--text-primary, #202124);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.hero-finale-actions .hero-btn-secondary:hover {
  background: var(--bg-surface, #FAFAF7);
  border-color: var(--color-accent-blue, #2878E5);
  color: var(--color-accent-blue, #2878E5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Desktop & PC Screens Only (min-width: 861px):
   Enhanced Button Brightness & Visibility for "Explore My Works" & "Contact the Artist"
   -------------------------------------------------------------------------- */
@media (min-width: 861px) {
  .hero-finale-actions .hero-btn-primary {
    background: #FF3B30;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 28px rgba(255, 59, 48, 0.45), 0 2px 8px rgba(0, 0, 0, 0.08);
    filter: brightness(1.08);
  }

  .hero-finale-actions .hero-btn-primary:hover {
    background: #E53935;
    filter: brightness(1.15);
    box-shadow: 0 14px 34px rgba(255, 59, 48, 0.55);
  }

  .hero-finale-actions .hero-btn-secondary {
    background: #FFFFFF;
    border: 1.5px solid #B8BDC2;
    color: #111214;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .hero-finale-actions .hero-btn-secondary:hover {
    background: #FFFFFF;
    border-color: var(--color-accent-blue, #2878E5);
    color: var(--color-accent-blue, #2878E5);
    box-shadow: 0 10px 28px rgba(40, 120, 229, 0.16);
  }
}

/* --------------------------------------------------------------------------
   4. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-scroll-section {
    height: clamp(500px, 75vh, 580px);
    min-height: 500px;
  }
  .hero-bg-word {
    font-size: clamp(3rem, 14vw, 6.5rem);
  }
  .hero-top-indicator {
    top: 5rem;
    font-size: 0.6875rem;
    padding: 0.35rem 0.9rem;
  }
  .hero-bottom-status {
    bottom: 1.25rem;
    left: 1.5rem;
    right: 1.5rem;
  }
  .hero-finale-actions {
    bottom: 1.25rem;
    width: calc(100% - 2rem);
    gap: 0.65rem;
  }
  .hero-finale-actions .hero-btn-primary,
  .hero-finale-actions .hero-btn-secondary {
    padding: 0.85rem 1.35rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 520px) {
  .hero-scroll-section {
    height: clamp(450px, 70vh, 510px);
    min-height: 450px;
  }
  .hero-finale-actions {
    flex-direction: column;
    width: calc(100% - 3rem);
    bottom: 1.25rem;
  }
  .hero-finale-actions .hero-btn-primary,
  .hero-finale-actions .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
