/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-color);
  overflow: hidden;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  transition: color 0.3s ease;
}

/* Background Video */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

/* Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.4) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: -1;
  transition: background 0.3s ease;
}

/* Dark Theme Overlay */
[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  gap: 20px;
  padding: 0 20px;
  animation: fadeInUp 1.2s ease-out;
  color: var(--text-color);
  transition: color 0.3s ease;
}

/* Heading */
/* Heading */
.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
  color: var(--accent-color); /* White in light mode */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Dark theme adjustments */
[data-theme="dark"] .hero-content h1 {
  color: var(--primary-color); /* Primary color (dark red) in dark mode */
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}




/* Typing Text Container */
.typing-container {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text-light);
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  max-width: 650px;
  min-height: 1.8rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Typing Text Element */
.typing-text {
  color: var(--highlight-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Cursor Animation */
.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--highlight-color);
  margin-left: 4px;
  animation: blink 1s infinite;
  transition: background-color 0.3s ease;
}

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

/* CTA Button */
.cta-button {
  padding: 1rem 2.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-top: 20px;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--highlight-color), var(--accent-color));
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.cta-button:active {
  transform: translateY(-1px);
}

/* Decorative Element */
.hero-decoration {
  position: absolute;
  bottom: 40px;
  width: 80px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 3px;
  opacity: 0.8;
  animation: subtlePulse 3s infinite;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 0.9; transform: scaleX(1); }
  50% { opacity: 0.6; transform: scaleX(1.05); }
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {
  .hero { padding: 30px 15px; }
  .hero-content { gap: 16px; }
  .cta-button { padding: 0.9rem 2rem; font-size: 1rem; margin-top: 15px; }
  .hero-decoration { width: 60px; height: 5px; bottom: 30px; }
}

@media (max-width: 480px) {
  .hero { padding: 20px 10px; }
  .hero-content { gap: 14px; }
  .cta-button { padding: 0.8rem 1.6rem; font-size: 0.95rem; margin-top: 10px; }
  .hero-decoration { width: 50px; height: 4px; bottom: 20px; }
}
