/* style.css - custom rules for Aganta Foundry */

:root {
  --bg-dark: #171717;
  --neon-green: #9cff00;
  --aganta-purple: #b700ff;
  --panel: #0f0f0f;
  --muted: #6b6b6b;
}

/* global body settings are handled via Tailwind classes; additional tweaks here */
body {
  background-color: var(--bg-dark);
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ensure Bricolage Grotesque usage */
*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Panels */
.bg-panel {
  background-color: var(--panel);
}

/* Headline color variations */
.text-neon-green {
  color: var(--neon-green);
}

.text-aganta-purple {
  color: var(--aganta-purple);
}

/* Card focus */
article:focus-within {
  outline: 3px solid rgba(156, 255, 0, 0.09);
  outline-offset: 2px;
}

/* Links */
a {
  transition: color .15s ease;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .max-w-[1200px] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Small visual polish for hero image */
section#hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Button component — add to css/style.css */

/* Base */
.btn {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, color .12s ease;
  border: 1px solid transparent;
  color: #ffffff;
  /* default text color */
  background: #000000;
  /* default background */
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Accessible focus ring */
.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(183, 0, 255, 0.12);
  transform: translateY(-1px);
}

/* Primary — purple hover */
.btn--primary {
  color: #ffffff;
  /* default visible on dark bg */
}

.btn--primary:hover,
.btn--primary:focus {
  background: #b700ff;
  /* aganta-purple */
  color: #ffffff;
  border-color: rgba(183, 0, 255, 0.18);
  box-shadow: 0 10px 30px rgba(183, 0, 255, 0.12);
  transform: translateY(-2px);
}

/* Accent — neon green hover */
.btn--accent {
  color: #ffffff;
}

.btn--accent:hover,
.btn--accent:focus {
  background: #9cff00;
  /* neon green */
  color: #000000;
  border-color: rgba(156, 255, 0, 0.12);
  box-shadow: 0 10px 30px rgba(156, 255, 0, 0.08);
  transform: translateY(-2px);
}

/* Outline variant (optional) */
.btn--outline {
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus {
  background: rgba(255, 255, 255, 0.04);
}

/* Small / responsive tweaks */
@media (max-width: 640px) {
  .btn {
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
  }
}

/* ----------------------------
   BlurText - unified styles
   ----------------------------*/

/* fallback defaults if JS hasn't injected vars */
:root {
  --bt-duration: 500ms;
  --bt-easing: ease-in-out;
}

/* Base shared rules for both segment types */
.bt-segment,
.bt-word {
  display: inline-block;
  vertical-align: top;
  line-height: 1;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px); /* default: animate up into place */
  transition:
    filter var(--bt-duration, 500ms) var(--bt-easing, ease-in-out),
    opacity var(--bt-duration, 500ms) var(--bt-easing, ease-in-out),
    transform var(--bt-duration, 500ms) var(--bt-easing, ease-in-out);
  will-change: transform, filter, opacity;
}

/* Visible state */
.bt-segment.bt-visible,
.bt-word.bt-visible {
  opacity: 1;
  filter: none;
  transform: translateY(0);
}

/* Top-direction variant: start above and drop in */
[data-blur-text].bt-direction-top .bt-segment,
[data-blur-text].bt-direction-top .bt-word {
  transform: translateY(-28px);
}
[data-blur-text].bt-direction-top .bt-segment.bt-visible,
[data-blur-text].bt-direction-top .bt-word.bt-visible {
  transform: translateY(0);
}

/* Reduced motion: reveal immediately */
@media (prefers-reduced-motion: reduce) {
  .bt-segment,
  .bt-word {
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* Ensure container wraps/word-break well */
[data-blur-text] {
  word-break: break-word;
  /* keep natural text wrapping while using inline-block children */
}
