/* =========================================================
   Masterbid – Hero Section
   ========================================================= */

:root {
  --blue: #2a70de;
  --white: #ffffff;
  --font: 'Roboto', sans-serif;
}

/* --------------------------------------------------------
   Section + background
   -------------------------------------------------------- */
.hero_section {
  position: relative;
  top: 2rem;
  width: 100%;
  height: 800px;
  background-image: url('/assets/imgs/heroSectionImage.png');
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 10, 25, 0.85) 0%,
    rgba(5, 10, 25, 0.70) 50%,
    rgba(5, 10, 25, 0.45) 100%
  );
  z-index: 1;
}

/* --------------------------------------------------------
   Container: two-column layout
   -------------------------------------------------------- */
.hero_container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 4rem 6rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

/* --------------------------------------------------------
   Fade-in animation
   -------------------------------------------------------- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(2.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------
   Left column: text
   -------------------------------------------------------- */
.hero_content {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.hero_title {
  font-family: var(--font);
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.02em;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.hero_subtitle {
  font-family: var(--font);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  font-weight: 600;
  color: var(--white);
  margin: 0;
  line-height: 1.4;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.25s;
}

.hero_desc {
  font-family: var(--font);
  font-size: clamp(0.85rem, 0.9vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.4s;
}

/* --------------------------------------------------------
   Feature badges
   -------------------------------------------------------- */
.hero_features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.4rem;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.55s;
}

.hero_feature {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  backdrop-filter: blur(4px);
}

.hero_feature_icon {
  width: 1rem;
  height: 1rem;
  color: #4ade80;
  flex-shrink: 0;
}

/* --------------------------------------------------------
   CTA buttons
   -------------------------------------------------------- */
.hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.8rem;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.7s;
}

.hero_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.hero_btn--primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

.hero_btn--primary:hover {
  background: #1a5fcc;
  border-color: #1a5fcc;
  transform: translateY(-1px);
}

.hero_btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.hero_btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* --------------------------------------------------------
   Right column: phone visual
   -------------------------------------------------------- */
.hero_visual {
  flex: 1 1 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero_img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6));
}

/* Bidding history card overlay */
.hero_bid_card {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(10, 16, 35, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.2rem 1.6rem;
  min-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 3;
}

.hero_bid_header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.6rem;
  margin-bottom: 0.2rem;
}

.hero_bid_row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
}

/* --------------------------------------------------------
   Scroll indicator
   -------------------------------------------------------- */
.hero_scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero_scroll_mouse {
  width: 2.4rem;
  height: 3.8rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.2rem;
  display: flex;
  justify-content: center;
  padding-top: 0.6rem;
}

.hero_scroll_dot {
  width: 0.4rem;
  height: 0.8rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.2rem;
  animation: hero_scroll_anim 1.8s ease-in-out infinite;
}

@keyframes hero_scroll_anim {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(1.4rem); opacity: 0; }
}

/* =========================================================
   Responsive – Tablet (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .hero_section {
    height: auto;
    min-height: 60vh;
  }

  .hero_container {
    flex-direction: column;
    padding: 6.5rem 2rem 3.5rem;
    text-align: center;
  }

  .hero_content {
    align-items: center;
  }

  .hero_title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
  }

  .hero_subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

  .hero_desc {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
  }

  .hero_actions {
    justify-content: center;
  }

  .hero_features {
    justify-content: center;
  }

  .hero_visual {
    width: 100%;
    max-width: 42rem;
  }

  .hero_bid_card {
    display: none;
  }

  .hero_scroll {
    display: none;
  }
}

/* =========================================================
   Responsive – Mobile (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {
  .hero_section {
    height: auto;
    min-height: 100svh;
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
  }

  .hero_container {
    padding: 6rem 1.4rem 3rem;
    align-items: flex-start;
    text-align: left;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .hero_content {
    align-items: flex-start;
    gap: 1.2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero_title {
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    word-break: break-word;
  }

  .hero_subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
  }

  .hero_desc {
    font-size: 0.85rem;
    word-break: break-word;
  }

  .hero_features {
    gap: 0.6rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero_feature {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    white-space: normal;
  }

  .hero_feature_icon {
    width: 0.8rem;
    height: 0.8rem;
  }

  .hero_actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
  }

  .hero_btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.4rem;
    width: 100%;
    justify-content: center;
    white-space: normal;
    box-sizing: border-box;
  }
}
