/* ============================================================
   HERO V3 — In Thành Trung
   Premium hero with cinematic 3D factory showcase
   ============================================================ */

/* ---- SECTION ---- */
.hero-v3 {
  position: relative;
  /* Minimal gap from menu bar */
  padding: 12px 0 60px;
  min-height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

/* ---- BACKGROUND ---- */
.hero-v3-bg { position: absolute; inset: 0; z-index: 0; }
.hero-v3-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #f9f8f5 0%, #f0ede5 40%, #e8e4d9 100%);
}
.hero-v3-gradient::before {
  content: '';
  position: absolute;
  top: -20%; right: -5%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(200,150,62,0.1) 0%, transparent 60%);
  border-radius: 50%;
}
.hero-v3-gradient::after {
  content: '';
  position: absolute;
  bottom: -15%; left: -8%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(27,42,74,0.05) 0%, transparent 55%);
  border-radius: 50%;
}
.hero-v3-pattern {
  position: absolute; inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath d='M40 0l40 40-40 40L0 40z' stroke='%231B2A4A' stroke-width='.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---- GRID — Cinematic 2-column layout ---- */
.hero-v3-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}

/* ---- CONTENT (LEFT) ---- */
.hero-v3-content { position: relative; }

.hero-v3-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(200,150,62,0.2);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(200,150,62,0.08);
}
.badge-pulse {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: hero-pulse 2s ease infinite;
}
@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.hero-v3-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
.hero-v3-highlight {
  background: linear-gradient(135deg, #C8963E 0%, #e0a84a 40%, #d4a44c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-v3-desc {
  font-size: 1.02rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 26px;
  max-width: 500px;
}
.hero-v3-desc strong {
  color: var(--primary);
  font-weight: 600;
}

/* ---- BUTTONS ---- */
.hero-v3-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #C8963E, #e0a84a);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(200,150,62,0.35);
  transition: all 0.3s ease;
  overflow: hidden;
}
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(200,150,62,0.45);
}
.hero-btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: btn-shine 3s ease-in-out infinite;
}
@keyframes btn-shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.hero-btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(27,42,74,0.2);
}

/* ---- TRUST ---- */
.hero-v3-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-icon { font-size: 1rem; }

/* ============================================================
   VISUAL (RIGHT) — Cinematic 3D Factory Showcase
   ============================================================ */
.hero-v3-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Image container — wider + cinematic ---- */
.hero-img-showcase {
  position: relative;
  z-index: 3;
  width: 100%;
  /* Allow image to bleed outside the grid for cinematic effect */
  margin-right: -60px;
}

.hero-img-main {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 100px rgba(27,42,74,0.18),
    0 12px 40px rgba(200,150,62,0.12),
    0 0 0 1px rgba(200,150,62,0.08);
  border: 3px solid rgba(255,255,255,0.8);
  /* Subtle premium glow */
  animation: hero-img-glow 4s ease-in-out infinite alternate;
}

@keyframes hero-img-glow {
  0% {
    box-shadow:
      0 30px 100px rgba(27,42,74,0.18),
      0 12px 40px rgba(200,150,62,0.12),
      0 0 0 1px rgba(200,150,62,0.08);
  }
  100% {
    box-shadow:
      0 35px 110px rgba(27,42,74,0.22),
      0 16px 50px rgba(200,150,62,0.18),
      0 0 0 1px rgba(200,150,62,0.15),
      0 0 60px rgba(200,150,62,0.06);
  }
}

.hero-img-main img {
  width: 100%;
  height: 460px;
  /* Crop the sky aggressively, focus on the building */
  object-fit: cover;
  object-position: center 85%;
  display: block;
  transition: transform 8s ease;
}
.hero-img-showcase:hover .hero-img-main img {
  transform: scale(1.04);
}

/* Cinematic gradient overlays */
.hero-img-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      transparent 40%,
      rgba(27,42,74,0.03) 70%,
      rgba(27,42,74,0.12) 100%
    ),
    linear-gradient(
      to right,
      rgba(200,150,62,0.04) 0%,
      transparent 30%,
      transparent 70%,
      rgba(200,150,62,0.04) 100%
    );
  pointer-events: none;
}

/* ---- Gold accent line — enhanced ---- */
.img-accent-line {
  position: absolute;
  top: -10px; left: 20px; right: 20px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #C8963E, #e0a84a, #d4a44c, #C8963E, transparent);
  border-radius: 2px;
  z-index: 4;
  animation: accent-shimmer 3s ease-in-out infinite;
}
@keyframes accent-shimmer {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}
.img-accent-line::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(200,150,62,0.2), transparent);
}

/* Bottom accent line for cinematic framing */
.hero-img-main::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 20px; right: 20px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(200,150,62,0.5), rgba(200,150,62,0.7), rgba(200,150,62,0.5), transparent);
  border-radius: 2px;
  z-index: 4;
}

/* ---- Logo badge overlay ---- */
.hero-logo-badge {
  position: absolute;
  bottom: 16px; left: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  z-index: 5;
  transition: transform 0.3s ease;
}
.hero-logo-badge:hover {
  transform: translateY(-2px);
}
.hero-logo-badge img {
  width: 40px !important; height: 40px !important;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.logo-badge-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--primary);
  line-height: 1.2;
}
.logo-badge-est {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .hero-img-showcase {
    margin-right: -30px;
  }
}
@media (max-width: 1024px) {
  .hero-v3 { padding: 80px 0 40px; }
  .hero-v3-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; text-align: center; }
  .hero-v3-content { display: flex; flex-direction: column; align-items: center; min-width: 0; }
  .hero-v3-desc { max-width: 100%; }
  .hero-v3-trust { justify-content: center; }
  .hero-v3-visual { max-width: 100%; margin: 0 auto; width: 100%; min-width: 0; }
  .hero-img-showcase { margin-right: 0; }
}
@media (max-width: 768px) {
  .hero-v3 { padding: 72px 0 30px; }
  .hero-v3-title { font-size: 2.1rem; }
  .hero-v3-buttons { flex-direction: column; width: 100%; }
  .hero-btn-primary, .hero-btn-outline { width: 100%; justify-content: center; }
  .hero-img-showcase { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); max-width: none; }
  .hero-img-main { border-radius: 0 !important; border: none !important; }
  .hero-img-main img { height: 420px; object-position: center 80%; }
}
@media (max-width: 480px) {
  .hero-v3 { padding: 68px 0 20px; }
  .hero-v3-title { font-size: 1.85rem; }
  .hero-logo-badge { padding: 6px 10px; gap: 8px; bottom: 10px; left: 16px; }
  .hero-logo-badge img { width: 30px !important; height: 30px !important; }
  .logo-badge-name { font-size: 0.72rem; }
  .hero-img-main img { height: 360px; }
}
