/* assets/theme/hero.css - Homepage/Hero layout styles */

.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 !important;
  overflow-x: hidden;
}

.hero {
  width: 100%;
  max-width: 900px;
  padding: 20px;
  margin-top: -180px;
  z-index: 1;
}

.logo {
  width: 450px;
  height: 450px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible !important;
}

#siteLogo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.25s ease;
  flex-shrink: 0;

  /* Modularized filters using variables */
  filter:
    brightness(calc(1 + (var(--logo-glow, 0) / 50)))
    drop-shadow(0 0 calc(var(--logo-glow, 0) * 1px) white)
    drop-shadow(0 0 calc(var(--logo-glow, 0) * 4px) var(--accent));
}

@keyframes logoPulse {
  0% { filter: drop-shadow(0 0 calc(var(--logo-glow, 0.6) * 10px) var(--accent)); }
  50% { filter: drop-shadow(0 0 calc(var(--logo-glow, 0.6) * 25px) var(--accent)); }
  100% { filter: drop-shadow(0 0 calc(var(--logo-glow, 0.6) * 10px) var(--accent)); }
}

#siteLogo[data-pulse="on"] {
  animation: logoPulse 2.2s ease-in-out infinite;
}

.tagline {
  font-size: 1.35rem;
  max-width: 650px;
  margin: 0 auto 0px;
  color: var(--fg);
}

.subtagline {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent); /* Swapped from hardcoded #c3d0ff to var(--accent) for consistency */
  opacity: 0.8;
  margin-bottom: 24px;
}

/* Hero Navigation Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.btn {
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(var(--glass-color), 0.1);
  color: var(--fg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  transition: 0.2s ease;
}

.btn:hover {
  background: rgba(var(--glass-color), 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent);
  transform: translateY(-2px);
}

footer {
  position: fixed;
  bottom: 12px;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--footer-fg);
  pointer-events: none;
}

/* Visibility fix for hero elements */
.logo, .hero, main, html {
  overflow: visible !important;
}

/* --------------------------------------------------
   MOBILE ADAPTIVE (Hero Section)
-------------------------------------------------- */

@media (max-width: 768px) {
  .hero {
    margin-top: -60px; /* Bring hero up less on mobile */
    padding: 15px;
  }

  .logo {
    width: 280px; /* Smaller logo for mobile */
    height: 280px;
  }

  .tagline {
    font-size: 1.1rem;
    padding: 0 10px;
  }

  .subtagline {
    font-size: 0.8rem;
    margin-bottom: 24px;
  }

  .buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 12px;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 200px;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  footer {
    position: relative;
    padding: 40px 0 20px;
    bottom: auto;
  }
}
