/* ===============================================
   The Savage Saints – Home Page Styles
   File: /static/index.css
   Scope: Hero + Buttons
   Theme: Warm Amber Glow / Sacred Strength
   =============================================== */

/* ======================
   GENERAL PAGE SETTINGS
   ====================== */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background-color: #0f0f0f;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* ======================
   HERO SECTION
   ====================== */
#hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(to bottom, #18181b, #27272a, #18181b);
  color: white;
}

#hero img {
  opacity: 0.4;
}

#hero h1 {
  font-family: "Cinzel", serif;
  font-weight: 800;
  background: linear-gradient(to right, #fcd34d, #f9a8d4, #fbcfe8);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;

  /* ✅ NEW: better readability */
  text-shadow:
    0 0 10px rgba(0, 0, 0, 0.25),  /* soft glow around letters */
    0 2px 15px rgba(0, 0, 0, 0.4); /* deeper drop for contrast */
  filter: brightness(1.1) contrast(1.1); /* slight color punch */
  letter-spacing: 0.03em;
  animation: fadeIn 1s ease-out forwards;
}


#hero p {
  margin-top: 1rem;
  color: #fde68a;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  animation: fadeIn 2s ease-out forwards;
}

#hero .button-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  animation: fadeInUp 2s ease-out forwards;
}

/* ======================
   ANIMATIONS
   ====================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowing {
  0% { background-position: 0 0; }
  50% { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* ======================
   HOVER GLOW BUTTON
   ====================== */
.glow-on-hover {
  width: 220px;
  height: 50px;
  border: none;
  outline: none;
  color: #000;
  background: #fbbf24;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.glow-on-hover:hover {
  transform: scale(1.03);
}

.glow-on-hover:before {
  content: '';
  background: linear-gradient(45deg, #f59e0b, #fbbf24, #facc15, #fcd34d, #fde68a);
  position: absolute;
  top: -2px;
  left: -2px;
  background-size: 400%;
  z-index: -1;
  filter: blur(4px);
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  animation: glowing 8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  border-radius: 10px;
}

.glow-on-hover:hover:before {
  opacity: 1;
}

.glow-on-hover:after {
  z-index: -1;
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #fbbf24;
  left: 0;
  top: 0;
  border-radius: 10px;
}

/* ======================
   LEARN OUR STORY BUTTON
   ====================== */
.btn {
  width: 220px;
  height: 50px;
  position: relative;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff; /* ✅ changed from #111 to white */
  background: none;
  border: 2px solid #f59e0b;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.liquid {
  background: linear-gradient(#f59e0b 0 0) no-repeat calc(200% - var(--p, 0%))
    100% / 200% var(--p, 0.2em);
  transition: 0.3s var(--t, 0s),
    background-position 0.3s calc(0.3s - var(--t, 0s));
  color: #fff; /* ✅ stay white before and during hover */
}

.liquid:hover {
  --p: 100%;
  --t: 0.3s;
  color: #111; /* ✅ contrast swap when filled */
  border-color: #fbbf24;
}


/* ======================
   HERO BACKGROUND ZOOM + BLUR
   ====================== */
.feature {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.feature-bg {
  background: url("/static/view.png") center center / cover no-repeat;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  transform: scale(1);
  filter: blur(0px);
  transition: transform 0.2s ease-out, filter 0.2s ease-out, opacity 0.2s ease-out;
  will-change: transform, filter, opacity; /* ✅ Prevent rendering seams */
  backface-visibility: hidden; /* ✅ Smooth GPU edge compositing */
}

/* HERO FADE FIX */
.feature::after {
  content: "";
  position: absolute;
  bottom: -1px; /* ✅ overlap slightly */
  left: 0;
  width: 100%;
  height: 550px;
  background: linear-gradient(
    to bottom,
    rgba(24,24,27,0) 0%,
    rgba(17,24,39,0.9) 70%,
    rgba(17,24,39,1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* MATCHING MISSION SECTION */
#mission {
  position: relative;
  background: linear-gradient(
    to bottom,
    rgba(17,24,39,1) 0%,   /* exact match */
    rgba(15,23,42,1) 40%,
    rgba(30,27,75,1) 100%
  );
}



/* ======================
   RESPONSIVE TWEAKS
   ====================== */
@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  .glow-on-hover,
  .btn {
    width: 180px;
    height: 45px;
    font-size: 0.9rem;
  }
}

/* ==============================
   AMBER GLOW FRAME BUTTON
   ============================== */
.glow-frame-btn {
  position: relative;
  display: inline-block;
  padding: 18px 36px;
  margin: 40px 0;
  color: #fbbf24;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  font-family: "Raleway", sans-serif;
  transition: 0.5s;
  overflow: hidden;
  border-radius: 8px;
}

.glow-frame-btn:hover {
  background: #fbbf24;
  color: #111;
  box-shadow:
    0 0 5px #fbbf24,
    0 0 25px #fbbf24,
    0 0 50px #fbbf24,
    0 0 200px #fbbf24;
  -webkit-box-reflect: below 1px linear-gradient(transparent, rgba(0, 0, 0, 0.4));
}

.glow-frame-btn span {
  position: absolute;
  display: block;
}

/* top border */
.glow-frame-btn span:nth-child(1) {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fbbf24);
  animation: animateTop 1s linear infinite;
}
@keyframes animateTop {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* right border */
.glow-frame-btn span:nth-child(2) {
  top: -100%;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, #fbbf24);
  animation: animateRight 1s linear infinite;
  animation-delay: 0.25s;
}
@keyframes animateRight {
  0% { top: -100%; }
  50%, 100% { top: 100%; }
}

/* bottom border */
.glow-frame-btn span:nth-child(3) {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(270deg, transparent, #fbbf24);
  animation: animateBottom 1s linear infinite;
  animation-delay: 0.5s;
}
@keyframes animateBottom {
  0% { right: -100%; }
  50%, 100% { right: 100%; }
}

/* left border */
.glow-frame-btn span:nth-child(4) {
  bottom: -100%;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(360deg, transparent, #fbbf24);
  animation: animateLeft 1s linear infinite;
  animation-delay: 0.75s;
}
@keyframes animateLeft {
  0% { bottom: -100%; }
  50%, 100% { bottom: 100%; }
}

