body {
  margin: 0;
  padding: 0;
  padding-top: 1px;
  background-color: #000;
}

.hero-section-winery {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background-color: #000;
  margin-top: -1px; 
}

.hero-winery-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
}

.hero-winery-bg video#heroVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-content h2.hero-text-overlay {
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Courier New', Courier, monospace;
  font-size: 2.5rem;
  font-weight: 700;
  padding: 18px 36px;
  border-radius: 1em;
  display: inline-block;
  margin-bottom: 5rem;
  line-height: 1.4;
}

/* 각 라인 span 기본 세팅 */
.hero-content h2.hero-text-overlay span {
  display: block;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid transparent;
}

/* ------ 1번째 줄 ------ */
.hero-content h2.hero-text-overlay span.line-1 {
  animation:
    typing-line-1 1.5s steps(20, end) forwards,
    blink-caret-line-1 1.5s step-end; /* 깜빡임 1.5초 */
}

/* 타이핑 애니메이션 */
@keyframes typing-line-1 {
  from { width: 0 }
  to { width: 100% }
}

/* 커서 깜빡임: 1.5초 동안만, 이후 투명 */
@keyframes blink-caret-line-1 {
  0%, 100% { border-color: rgba(255, 255, 255, 0.75); }
  50% { border-color: transparent; }
  100% { border-color: transparent; }
}

/* ------ 2번째 줄 ------ */
.hero-content h2.hero-text-overlay span.line-2 {
  /* 1.5초 delay 후 타이핑 1.5초(→3초),  
     타이핑 중 커서 1.5초,  
     3초부터 커서만 무한 깜빡임 */
  animation:
    typing-line-2 1.5s steps(20, end) 1.5s forwards,
    blink-caret-line-2 1.5s step-end 1.5s,
    blink-caret-final 0.75s step-end 3s infinite;
}

/* 2번째 줄 타이핑 */
@keyframes typing-line-2 {
  from { width: 0 }
  to { width: 100% }
}
/* 2번째 줄 타이핑 중 커서 (1.5초) */
@keyframes blink-caret-line-2 {
  0%, 100% { border-color: rgba(255,255,255,0.75); }
  50% { border-color: transparent; }
  100% { border-color: rgba(255,255,255,0.75); }
}
/* 타이핑 완료 후 최종 커서(무한) */
@keyframes blink-caret-final {
  0%, 100% { border-color: rgba(255,255,255,0.75); }
  50% { border-color: transparent; }
}

.hero-content h2.hero-text-overlay:hover {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9), 0 0 2px rgba(255, 255, 255, 0.9);
}

.scroll-down-btn {
  position: absolute;
  bottom: 40px;
  color: #fff;
  font-size: 2rem;
  z-index: 10;
  cursor: var(--cursor-grab2);
  animation: bounce 2s infinite;
  padding: 10px 14px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s;
  opacity: 1;
  visibility: visible;
}
.scroll-down-btn:hover {
  background-color: rgba(0, 0, 0, 0.4);
  cursor: var(--cursor-grab2);
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
@media screen and (max-width: 768px) {
  .hero-content h2.hero-text-overlay {
    font-size: 2rem;
    padding: 12px 24px;
  }
}
@media screen and (max-width: 480px) {
  .hero-content h2.hero-text-overlay {
    font-size: 1.5rem;
    padding: 8px 16px;
  }
}
