/* =================================
   Homepage Hero Section - Eternal Roam
   Modern Redesign with 3D Elements - Mobile Optimized
   ================================= */

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  max-height: 900px;
  overflow: hidden;
  background-color: rgba(31, 32, 35, 0.9); /* Darker background */
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* Modern Particle Background */
.hero-starry-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(42, 63, 63, 0.7) 0%, rgba(20, 25, 31, 0.98) 70%);
  background-size: 50px 50px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

/* Animated particles */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

.particle {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(0) translateX(0);
  will-change: transform, opacity;
}

/* Floating 3D objects */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  opacity: 0.1;
  will-change: transform;
}

.floating-circle {
  border: 1px solid rgba(201, 160, 83, 0.3); /* Using tertiary color */
  border-radius: 50%;
}

.floating-ring {
  border: 2px solid rgba(201, 160, 83, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(201, 160, 83, 0.1);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.hero-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: subtle-zoom 25s infinite alternate ease-in-out;
  filter: brightness(0.85) contrast(1.1); /* Enhanced image processing */
}

/* Modern gradient overlay with depth */
.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(20, 22, 28, 0.75) 0%,
    rgba(20, 22, 28, 0.6) 40%,
    rgba(20, 22, 28, 0.75) 100%
  );
  z-index: 4;
}

/* Additional light overlay for depth */
.hero-light-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 30%, 
    rgba(201, 160, 83, 0.1) 0%, 
    transparent 60%
  );
  z-index: 5;
  pointer-events: none;
}

/* Main Content Container with 3D effect */
.hero-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  perspective: 1000px;
}

.hero-content {
  max-width: 800px;
  text-align: left;
  animation: fade-in-up 1.2s ease-out;
  transform-style: preserve-3d;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: 1px;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transform: translateZ(20px);
  color: var(--text-light);
}

.hero-description {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-light);
  opacity: 0.9;
  transform: translateZ(10px);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.title-category {
  position: relative;
  overflow: hidden;
}

.title-category::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  animation: shine 4s infinite;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.2s;
  transform: translateZ(5px);
}

/* Modern scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 60px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.4s;
  cursor: pointer;
  z-index: 10;
}

.chevron {
  position: absolute;
  width: 24px;
  height: 8px;
  opacity: 0;
  transform: scale(0.3);
  animation: move 3s ease-out infinite;
}

.chevron:first-child {
  animation: move 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
  animation: move 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 51%;
  background: var(--text-light);
  box-shadow: 0 0 5px rgba(201, 160, 83, 0.5);
}

.chevron:before {
  left: 0;
  transform: skew(0deg, 30deg);
}

.chevron:after {
  right: 0;
  width: 50%;
  transform: skew(0deg, -30deg);
}

/* Custom Animations */
@keyframes subtle-zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08);
  }
}

@keyframes floating {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes float-horizontal {
  0% {
    transform: translateX(0px);
  }
  50% {
    transform: translateX(15px);
  }
  100% {
    transform: translateX(0px);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

@keyframes shine {
  0% {
    left: -100%;
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  20% {
    left: 100%;
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes move {
  25% {
    opacity: 1;
  }
  33.3% {
    opacity: 1;
    transform: translateY(30px);
  }
  66.6% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 0;
    transform: translateY(60px) scale(0.3);
  }
}

/* Mobile Optimizations */
@media (max-width: 992px) {
  .hero-section {
    min-height: 600px;
  }
  
  .hero-container {
    padding: 0 1.5rem;
    align-items: center;
    justify-content: center;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-description {
    font-size: var(--er-fs-deck);
    padding: 0 1rem;
  }
  
  .floating-elements {
    display: none; /* Hide on mobile for better performance */
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 550px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-description {
    font-size: var(--er-fs-deck);
  }
  
  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  /* Remove 3D transforms on smaller screens for better performance */
  .hero-title,
  .hero-description,
  .hero-actions {
    transform: none !important;
  }
  
  .scroll-down {
    bottom: 100px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 500px;
  }
  
  .hero-container {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-description {
    font-size: var(--er-fs-deck);
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .scroll-down {
    bottom: 80px;
  }
  
  /* Simplify animations on small screens */
  .hero-image-container img {
    animation: none;
    filter: brightness(0.8);
  }
  
  .hero-gradient-overlay {
    background: linear-gradient(
      to bottom,
      rgba(20, 22, 28, 0.8) 0%,
      rgba(20, 22, 28, 0.7) 100%
    );
  }
}

/* Accessibility Improvements */
.scroll-indicator {
  cursor: pointer;
}

.scroll-indicator:focus {
  outline: 2px dashed rgba(255, 255, 255, 0.5);
  outline-offset: 5px;
}

.scroll-indicator:focus:not(:focus-visible) {
  outline: none;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-image-container img,
  .floating-element,
  .particle,
  .chevron,
  .hero-content,
  .hero-actions,
  .scroll-down,
  .title-category::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}