/* ===== HERO SLIDER ===== */
#hero {
  position: relative;
  height: 95vh; 
  overflow: hidden;
  perspective: 1200px; 
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%) rotateY(25deg) scale(0.9);
  transform-origin: center;
  transition: all 1.2s cubic-bezier(0.65, 0, 0.35, 1);
  transform-style: preserve-3d;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) rotateY(0deg) scale(1);
  z-index: 2;
}

.hero-slide.prev {
  transform: translateX(-100%) rotateY(-25deg) scale(0.9);
  opacity: 0;
  visibility: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.4);
  transition: transform 8s ease-out;
  will-change: transform;
}

.hero-slide.active .hero-bg img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.8) 0%,
    rgba(10,10,10,0.8) 50%,
    rgba(10,10,10,0.7) 100%
  );
  z-index: 1;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(212,175,55,0.06) 0%,
    transparent 70%
  );
}

.hero-content {
  position: relative;
  z-index: 2;  
  width: 100%; 
  text-align: center;
  transform: translateY(30px);
  opacity: 0; 
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.3s;
  padding: 0 1em;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.5em;
  flex-direction: column;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  animation: expandLine 0.6s ease-out 0.5s backwards;
  margin-bottom: 1em;
}

@keyframes expandLine {
  from {
    width: 0;
  }
}

.hero-eyebrow span {
  font-size: clamp(0.6em, 2.5vw, 0.75em);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(212,175,55,0.3);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(4.2em, 10vw, 5.5em); 
  text-align: left;
  letter-spacing: 0.01em;
  margin-bottom: 0;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  background: linear-gradient(135deg, #d4af37 0%, #f4e5c3 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 15px rgba(212,175,55,0.4));
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.85em, 3vw, 1.3em);
  padding-top: clamp(1em, 3vw, 1.8em);
  color: rgba(250,247,242,0.75);
  max-width: 90%;
  text-align: left; 
  line-height: 1.7;
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-actions a {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 1em 2em;
  font-size: 1em;
  min-height: 52px;
  display: flex;
  align-items: center;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 2.5em; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6em;
  align-items: center;
  padding: 0.5em;
}

.dot {
  width: 35px;
  height: 3px;
  background: rgba(250,247,242,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  border-radius: 2px;
}

.dot:active {
  transform: scale(0.95);
}

.dot.active {
  background: rgba(212,175,55,0.4);
}

.dot.active::before {
  transform: scaleX(1);
  animation: progressBar 9s linear;
}

@keyframes progressBar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: rgba(250,247,242,0.15);
  border: 1px solid rgba(250,247,242,0.25);
  backdrop-filter: blur(10px);
  color: var(--cream);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
  background: rgba(212,175,55,0.3);
}

.slider-arrow-prev {
  left: 1em;
}

.slider-arrow-next {
  right: 1em;
}

.slider-arrow svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.hero-scroll {
  display: none;
}

/* ===== MOBILE OPTIMIZATIONS ===== */

/* Improve touch responsiveness */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.hero-slide {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  #hero {
    min-height: 95vh;
    perspective: 1200px;
  }
  
  .hero-slide {
    padding: 2% 0%; 
    /* Simplified transform for better performance on mobile */
    transform: translateX(100%) scale(0.95);
  }
  .hero-content{ 
  	padding-top: 13%;
  }
  .hero-slide.active {
    transform: translateX(0) scale(1);
  }
  
  .hero-slide.prev {
    transform: translateX(-100%) scale(0.95);
  }
  
  .hero-eyebrow::before {
    width: 50px;
    margin-bottom: 0.8em;
  }
  
  .hero-eyebrow {
    margin-bottom: 1.2em;
  }
  
  .hero-title {
    font-size: clamp(2em, 11vw, 3em);
    line-height: 1.15;

  }
  
  .hero-subtitle {
    max-width: 95%;
    padding-top: 1.2em;
    font-size: 18px;
    text-align: left;
    margin-bottom: 1.8em;
  }
  
  .hero-actions {
    max-width: 100%;
    padding: 0 0.5em;
    letter-spacing: 0px;
      font-size:14px;
  }
  
  .slider-dots {
    bottom: 1em;
    gap: 0.5em;
  }
  
  .dot {
    width: 28px;
    height: 2.5px;
  }
  
  .slider-arrow {
    width: 44px;
    height: 44px;
  }
  
  .slider-arrow svg {
    width: 20px;
    height: 20px;
  }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  .hero-slide {
    padding: 0 3%;
  }
  
  .hero-eyebrow span {
    font-size: 0.55em;
    letter-spacing: 0.2em;
  }
  
  .hero-title {
    font-size: clamp(1.8em, 10vw, 2.5em);
  }
  
  .hero-subtitle {
    font-size: 0.82em;
    line-height: 1.6;
    text-align: left;
  }
  
  .hero-actions a {
    padding: 0.9em 1.5em;
    font-size: 0.82em;
    min-height: 48px;
  }
  
  .slider-dots {
    bottom: 1.5em;
    gap: 0.4em;
  }
  
  .dot {
    width: 24px;
    height: 2px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
  }
  
  .slider-arrow-prev {
    left: 0.75em;
  }
  
  .slider-arrow-next {
    right: 0.75em;
  }
}

/* iPhone SE and smaller */
@media (max-width: 320px) {
  .hero-eyebrow::before {
    width: 40px;
  }
  
  .hero-title {
    font-size: 1.75em;
  }
  
  .hero-subtitle {
    font-size: 0.78em;
    text-align: left;
  }
  
  .hero-actions {
    gap: 0.8em;
  }
  
  .dot {
    width: 20px;
  }
  
  .slider-arrow {
    width: 38px;
    height: 38px;
  }
}

/* Tablets Portrait */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-slide {
    padding: 0 6%;
  }
  
  .hero-content {
    padding: 0 2em;
  }
  
  .hero-title {
    font-size: clamp(2.8em, 8vw, 4.5em);
  }
  
  .hero-subtitle {
    max-width: 100%;
    text-align: left;
    font-size: 1em;
  }
  
  .hero-actions {
    max-width: 450px;
    flex-direction: row;
  }
  
  .hero-actions a {
    width: auto;
    flex: 1;
  }
  
  .slider-dots {
    bottom: 2.5em;
  }
  
  .dot {
    width: 32px;
  }
  
  .slider-arrow {
    width: 46px;
    height: 46px;
  }
}

/* Tablets Landscape & Desktop */
@media (min-width: 769px) {
  .hero-slide {
    align-items: flex-end;
    padding: 0 8% 8% 8%;
  }
  
  .hero-content {
    text-align: left; 
    margin: 0;
  }
  
  .hero-eyebrow {
    justify-content: flex-start;
    flex-direction: row;
    gap: 1em;
  }
  
  .hero-eyebrow::before {
    margin-bottom: 0;
  }
  
  .hero-title {
    line-height: 0.95;
  }
  
  .hero-title em {
    display: inline;
  }
  
  .hero-subtitle {
    text-align: left;
    margin: 0;
    margin-bottom: 2.5em;
    max-width: 720px;
  }
  
  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
    max-width: none;
    margin: 0;
  }
  
  .hero-actions a {
    width: auto;
  }
  
  .slider-dots {
    bottom: 3em;
  }
  
  .dot {
    width: 40px;
  }
  
  .slider-arrow {
    width: 50px;
    height: 50px;
  }
  
  .slider-arrow:hover {
    background: rgba(212,175,55,0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-50%) scale(1.05);
  }
  
  .slider-arrow-prev {
    left: 2em;
  }
  
  .slider-arrow-next {
    right: 2em;
  }
  
  .hero-scroll {
    display: flex;
    position: absolute;
    bottom: 6.5em;
    right: 3em;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    opacity: 0.5;
    transition: opacity 0.3s;
  }
  
  .hero-scroll:hover {
    opacity: 1;
  }
  
  .hero-scroll span {
    font-size: 0.55em;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    color: var(--cream);
  }
  
  .hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--gold));
    animation: scrollPulse 2s ease-in-out infinite;
  }
  
  @keyframes scrollPulse {
    0%,100% {
      transform: scaleY(1);
      opacity: 0.5;
    }
    50% {
      transform: scaleY(1.2);
      opacity: 1;
    }
  }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg img {
    image-rendering: -webkit-optimize-contrast;
  }
}