/* Hero Section Styles */
.hero-section {
  position: relative;
  margin-top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
}

/* Background overlay for amoeba color reveal */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #dbcac3;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-container {
  width: 100%;
  height: 100%;
  padding: 0;
}

.image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

/* Images */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
  /* GPU acceleration */
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Original image - base layer, always visible */
.hero-image.original {
  z-index: 1;
  opacity: 1;
}

/* Enhanced image - on top, masked to only show where blobs are */
.hero-image.enhanced {
  z-index: 2;
  opacity: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Start with no mask - completely hidden until JS applies blob mask */
  mask-image: radial-gradient(circle at -100% -100%, black 0%, transparent 0%);
  -webkit-mask-image: radial-gradient(circle at -100% -100%, black 0%, transparent 0%);
  /* GPU acceleration for mask animation */
  will-change: mask-image, -webkit-mask-image;
}

/* Responsive adjustments - Tablet */
@media (max-width: 1024px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Responsive adjustments - Mobile */
@media (max-width: 768px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
    background-color: #000;
  }
  
  .image-wrapper {
    height: 100vh;
    height: 100svh;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    padding: 0;
  }
  
  .hero-image.original {
    display: block !important;
    opacity: 1 !important;
  }
  
  /* Enhanced image should still be maskable on mobile */
  .hero-image.enhanced {
    opacity: 1;
  }
}

/* Touch hints for mobile circular reveal */
@media (hover: none) and (pointer: coarse) {
  /* Base hint style */
  .hero-section::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-family: 'Space Mono', monospace;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
  }
  
  /* Show "Tap to reveal" hint */
  .hero-section.show-tap-hint::after {
    content: 'Tap to reveal';
    opacity: 1;
  }
  
  /* Show "Tap to close" hint when revealed */
  .hero-section.show-exit-hint::after {
    content: 'Tap to close';
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
  }
  
  /* Reveal mode - allow interaction */
  .hero-section.reveal-mode {
    cursor: pointer;
  }
}

/* Responsive adjustments - Small Mobile */
@media (max-width: 480px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
  }
  
  .image-wrapper {
    height: 100vh;
    height: 100svh;
  }
  
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    padding: 0;
  }
}
