/* ============================================
   APEX AUTOMATIONS — Hero Section
   Task 2 REDO
   ============================================ */

#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  margin-top: 360px;
  transition: opacity 0.3s, transform 0.3s;
}

/* ============================================
   Company Name
   ============================================ */
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  color: #d4a843;
  letter-spacing: 8px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease, transform 1s ease;
  margin: 0;
}

.hero-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Tagline
   ============================================ */
.hero-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: #a0a0a0;
  margin-top: 12px;
  min-height: 28px;
  opacity: 0;
  transition: opacity 0.6s ease;
  margin: 12px 0 0;
}

.hero-tagline.visible {
  opacity: 1;
}

/* ============================================
   Typing Cursor
   ============================================ */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: #d4a843;
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%,  50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   Scroll Indicator
   ============================================ */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-scroll.visible {
  opacity: 1;
}

.hero-scroll span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #444;
  display: block;
}

.scroll-arrow {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid #444;
  border-bottom: 1.5px solid #444;
  transform: rotate(45deg);
  margin: 8px auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0) rotate(45deg);
  }
  50% {
    opacity: 0.8;
    transform: translateY(5px) rotate(45deg);
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero-title   { font-size: 24px; letter-spacing: 4px; }
  .hero-tagline { font-size: 14px; }
  .hero-content { margin-top: 260px; }
}

@media (max-width: 480px) {
  .hero-title   { font-size: 20px; letter-spacing: 3px; }
  .hero-tagline { font-size: 12px; }
  .hero-content { margin-top: 240px; }
}

@media (max-width: 380px) {
  .hero-title   { font-size: 17px; letter-spacing: 2px; }
  .hero-tagline { font-size: 11px; }
  .hero-content { margin-top: 220px; }
}
