/* Hero Slideshow Styles */
.hero-section {
  width: 100%;
  height: calc(1080 * (100vw / 1920));
  max-height: 100vh;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(1);
  transform-origin: center center;
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.hero-section.loaded {
  opacity: 1;
  transform: scale(1);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.02);
  transform-origin: center center;
  transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 aspect ratio */
  transform: translate(-50%, -50%);
}

.hero-content {
  position: absolute;
  bottom: 50px;
  left: 1rem;
  right: 0;
  padding: var(--space-5);
  color: var(--color-text);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.3s;
}

.hero-title {
  font-size: 3.5rem; /* reduced for less dominance */
  font-weight: 800;
  text-transform: uppercase; /* make title all caps */
  letter-spacing: 0.02em;
  margin: 0 0 var(--space-4); /* increased gap to subtitle */
  line-height: 0.9;
  max-width: 1200px;
  background: linear-gradient(to bottom right, var(--grad-new-start), var(--grad-new-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.hero-description {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 var(--space-4);
  max-width: 1000px;
  line-height: 1.25;
  background: linear-gradient(to bottom right, var(--grad-new-start), var(--grad-new-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.hero-cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--grad-dark-start) 0%, var(--grad-dark-end) 50%, var(--grad-dark-end) 50%, var(--grad-dark-start) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.hero-cta-button span {
  background: linear-gradient(135deg, var(--grad-new-start) 0%, var(--grad-new-end) 50%, var(--grad-new-end) 50%, var(--grad-new-start) 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  transition: all 0.4s ease;
}

.hero-cta-button:hover {
  transform: translateY(-2px);
  border-color: var(--grad-new-end);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  background-position: 100% 0%;
}

.hero-cta-button:hover span {
  background-position: 100% 0%;
}

/* Slide Navigation */
.hero-nav {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-4);
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(var(--color-white-rgb), 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  padding: 0;
}

.hero-dot.active {
  background: var(--color-text);
}

/* Arrow Navigation */
.hero-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-4);
  pointer-events: none;
}

.hero-arrow {
  width: 100px;
  height: 100px;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  pointer-events: auto;
  opacity: 0.8;
  background: transparent;
  padding: 0;
}

.hero-arrow:hover {
  opacity: 1;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 5rem;
    line-height: 0.9;
  }

  .hero-description {
    font-size: 1.35rem;
    max-width: 600px;
  }

  .hero-content {
    bottom: 80px;
    padding: var(--space-4);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero-section {
    height: 100vh;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-video {
    min-height: 85vh;
    min-width: 151.11vh;
    transform: translate(-50%, -50%);
  }

  .hero-content {
    bottom: 60px;
    padding: var(--space-3);
    left: var(--space-3);
    right: var(--space-3);
  }

  .hero-title {
    font-size: 2.25rem;
    margin-bottom: var(--space-2);
    line-height: 1;
  }

  .hero-description {
    font-size: 0.95rem;
    max-width: 100%;
    margin-bottom: var(--space-3);
    line-height: 1.3;
  }

  .hero-cta-button {
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
  }

  .hero-arrows {
    display: none;
  }

  .hero-nav {
    bottom: var(--space-3);
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .hero-video {
    min-height: 80vh;
    min-width: 142.22vh;
    transform: translate(-50%, -50%);
  }

  .hero-content {
    bottom: 50px;
    padding: var(--space-2);
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .hero-cta-button {
    padding: 0.625rem 1.5rem;
    font-size: 0.8rem;
  }
}