/* ============================================================
   FestiFox Marketing Site — Custom Styles
   Supplements Tailwind CSS with specific effects
   ============================================================ */

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: #0A0A12;
  color: #e5e7eb;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---- Typography weight helpers (Exo 2) ---- */
.font-800 { font-weight: 800; }
.font-700 { font-weight: 700; }
.font-900 { font-weight: 900; }

/* ---- Gradient text ---- */
.text-gradient {
  background: linear-gradient(135deg, #AC0808 0%, #FF6B35 50%, #FF6B35 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Hero background gradient ---- */
.hero-bg-gradient {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(172, 8, 8, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(43, 11, 152, 0.25) 0%, transparent 60%),
    #0A0A12;
}

/* ---- Hero grid overlay ---- */
.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---- Ticker animation ---- */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#ticker-inner {
  animation: ticker 35s linear infinite;
  width: max-content;
}

#ticker-inner:hover {
  animation-play-state: paused;
}

/* ---- Float animation ---- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: float 9s ease-in-out infinite;
}

/* ---- Glow effect ---- */
@keyframes glow {
  0%   { box-shadow: 0 0 15px rgba(172,8,8,0.4), 0 0 30px rgba(172,8,8,0.2); }
  100% { box-shadow: 0 0 25px rgba(255,107,53,0.5), 0 0 50px rgba(255,107,53,0.2); }
}

.glow-red {
  animation: glow 2s ease-in-out infinite alternate;
}

/* ---- Pulse slow ---- */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.animate-pulse-slow {
  animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ---- Phone mockup shell ---- */
.phone-shell {
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 25px 60px rgba(0,0,0,0.7),
    0 0 80px rgba(172,8,8,0.15);
}

.phone-shell::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  z-index: 10;
}

/* ---- Feature card hover glow ---- */
.feature-card {
  transition: all 0.25s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(172,8,8,0), rgba(43,11,152,0));
  transition: all 0.3s ease;
  z-index: -1;
}

.feature-card:hover::before {
  background: linear-gradient(135deg, rgba(172,8,8,0.15), rgba(43,11,152,0.1));
}

/* ---- Activity card ---- */
.activity-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.activity-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

/* ---- Scrollbar styling ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0A0A12; }
::-webkit-scrollbar-thumb { background: #2A2A4A; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3D1AC4; }

/* ---- Navbar scroll state ---- */
#navbar.scrolled {
  border-bottom-color: rgba(42,42,74,0.8);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ---- Nav link active indicator ---- */
.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #AC0808, #FF6B35);
  border-radius: 1px;
  margin-top: 2px;
}

/* ---- Section fade-in on scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Countdown digits ---- */
.cd-digit {
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  display: inline-block;
  text-align: center;
}

/* ---- Gradient border cards ---- */
.gradient-border {
  position: relative;
  border: none !important;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #AC0808, #2B0B98, #FF6B35);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ---- Mobile menu transition ---- */
#mobile-menu {
  transition: all 0.3s ease;
}

/* ---- Selection color ---- */
::selection {
  background: rgba(172, 8, 8, 0.4);
  color: #fff;
}

/* ---- Focus ring ---- */
:focus-visible {
  outline: 2px solid #AC0808;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Smooth image load ---- */
img {
  transition: opacity 0.3s ease;
}

/* ---- Badge pulse ---- */
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}

.badge-live {
  animation: badge-pulse 2s ease-in-out infinite;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 640px) {
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
}
