/* ============================================
   COREMETAL — Hero Slider (Redesigned)
   Matches metal-india.com hero layout
   ============================================ */

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* ---------- Slides ---------- */
.hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slider);
  z-index: 1;
}

.hero__slide.active {
  opacity: 1;
  z-index: 2;
}

.hero__slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 8s ease;
}

.hero__slide.active .hero__slide-bg {
  transform: scale(1.08);
}

/* Dark Overlay */
.hero__slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

/* ---------- Slide Content (Centered Title) ---------- */
.hero__content {
  position: absolute;
  top: 50%;
  left: 15%;
  transform: translateY(-50%);
  z-index: 10;
  text-align: left;
  width: 80%;
  max-width: 900px;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-light);
  color: var(--clr-white);
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.3s;
  letter-spacing: 1px;
}

.hero__slide.active .hero__title {
  opacity: 1;
  transform: translateY(0);
}

.hero__title strong {
  display: block;
  font-weight: var(--fw-bold);
}

/* Dash under title */
.hero__title-dash {
  display: block;
  width: 50px;
  height: 2px;
  background: var(--clr-white);
  margin-top: var(--space-xl);
  opacity: 0;
  transition: opacity 0.6s ease 0.6s;
}

.hero__slide.active .hero__title-dash {
  opacity: 1;
}

/* ---------- Slide Counter (Left Side) ---------- */
.hero__counter {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: var(--clr-white);
}

.hero__counter-current {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  line-height: 1;
}

.hero__counter-separator {
  font-size: var(--fs-sm);
  color: var(--clr-gray-500);
  margin: 0 4px;
}

.hero__counter-total {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-light);
  line-height: 0.8;
}

/* ---------- Bottom Slide Navigation ---------- */
.hero__slide-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  gap: 0;
}

.hero__slide-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 32px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  background: transparent;
  text-align: left;
  min-width: 180px;
  position: relative;
  color: var(--clr-gray-500);
}

.hero__slide-nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background var(--transition-base);
}

.hero__slide-nav-item.active {
  color: var(--clr-white);
}

.hero__slide-nav-item.active::after {
  background: var(--clr-white);
}

.hero__slide-nav-item:hover {
  color: var(--clr-gray-300);
}

.hero__slide-nav-number {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 1px;
}

.hero__slide-nav-title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

/* ---------- Vertical Social Links (Right Side) ---------- */
.hero__social {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  z-index: 20;
}

.hero__social-link {
  writing-mode: vertical-rl;
  font-size: 11px;
  font-weight: var(--fw-medium);
  color: var(--clr-gray-300);
  text-transform: capitalize;
  letter-spacing: 2px;
  transition: color var(--transition-base);
  text-decoration: none;
}

.hero__social-link:hover {
  color: var(--clr-copper);
}

/* ---------- Scroll Indicator (Bottom Right) ---------- */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.hero__scroll-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: capitalize;
  color: var(--clr-gray-300);
  writing-mode: vertical-rl;
  margin-bottom: var(--space-sm);
}

.hero__scroll-circle {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollBounce 2s infinite;
  transition: border-color var(--transition-base);
}

.hero__scroll-circle:hover {
  border-color: var(--clr-copper);
}

.hero__scroll-circle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--clr-white);
  stroke-width: 2;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__counter {
    left: 24px;
  }

  .hero__slide-nav-item {
    min-width: 150px;
    padding: 20px 20px;
  }

  .hero__social {
    right: 16px;
  }

  .hero__scroll {
    right: 16px;
    bottom: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    height: 85vh;
  }

  .hero__content {
    width: 90%;
  }

  .hero__title {
    font-size: var(--fs-4xl);
  }

  .hero__counter {
    display: none;
  }

  .hero__social {
    display: none;
  }

  .hero__slide-nav {
    display: none;
  }

  .hero__scroll {
    bottom: 16px;
    right: 20px;
  }

  /* Show simple dots on mobile instead */
  .hero__dots-mobile {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 400px;
    height: 75vh;
  }

  .hero__title {
    font-size: var(--fs-2xl);
  }

  .hero__scroll {
    display: none;
  }
}

/* ---------- Mobile dots (hidden on desktop) ---------- */
.hero__dots-mobile {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: var(--space-md);
  z-index: 20;
}

.hero__dot-mobile {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-white);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero__dot-mobile.active {
  background: var(--clr-copper);
  border-color: var(--clr-copper);
}

@media (max-width: 768px) {
  .hero__dots-mobile {
    display: flex;
  }
}
