@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Pan-African Colors */
  --vof-red: #D22B2B;
  --vof-green: #008000;
  --vof-gold: #FFD700;
  --vof-dark: #121212;
  --vof-darker: #0A0A0A;
  --vof-light: #F5F5F5;
  --vof-white: #FFFFFF;

  /* Neutrals & Gradients */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-red: linear-gradient(135deg, #D22B2B 0%, #8B0000 100%);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: #f9f9fb;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--vof-gold);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--vof-white);
}

/* Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2000;
}

.hamburger {
  display: block;
  position: relative;
  width: 25px;
  height: 2px;
  background: var(--vof-white);
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--vof-white);
  transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.mobile-nav-toggle.active .hamburger {
  background: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.mobile-nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-links {
  width: 90%;
  max-width: 1350px;
  margin: 0 auto;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1350px;
  margin: 0 auto;
}

/* Offset for fixed header on internal pages */
main.container {
  padding-top: 160px !important;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 215, 0, 0.3);
  /* gold hint */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 15px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #FFE45C 0%, #FFD700 45%, #FFC400 100%);
  color: var(--vof-darker);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35),
    0 2px 5px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 130%;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5),
    0 3px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: var(--vof-darker);
}

.btn-dark {
  background: var(--vof-dark);
  color: var(--vof-white);
  border: 2px solid var(--vof-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-dark:hover {
  transform: scale(1.05);
  border-color: var(--vof-gold);
  color: var(--vof-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--vof-white);
  border: 2px solid var(--vof-gold);
}

.btn-outline:hover {
  background: var(--vof-gold);
  color: var(--vof-darker);
}

.nav-links li a.nav-contact-btn {
  border-color: var(--vof-gold);
  color: var(--vof-white);
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.nav-links li a.nav-contact-btn:hover {
  background: var(--vof-gold);
  color: var(--vof-black);
}

/* Header */
header {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--vof-green);
  padding-bottom: 3px;
}

header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -200px;
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  animation: border-glimmer 4s infinite linear;
}

@keyframes border-glimmer {
  0% {
    left: -200px;
  }

  100% {
    left: 100%;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--vof-white);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo img {
  position: relative;
  z-index: 1001;
}

.logo-accent {
  color: var(--vof-gold);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--vof-light);
  font-size: 1rem;
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--vof-gold);
}

.nav-links a.btn-outline:hover {
  background: var(--vof-darker);
  color: var(--vof-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--vof-gold);
  transition: width 0.3s ease;
}

.nav-links a.btn-outline::after {
  display: none;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  /* Offset header */
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.45),
      rgba(0, 0, 0, 0.22) 30%,
      rgba(0, 0, 0, 0.22) 65%,
      rgba(0, 0, 0, 0.42));
  z-index: 1;
}

.mobile-hero-flyer {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  min-height: auto;
}

.hero-text-slider {
  position: relative;
  margin-bottom: 0;
  min-height: 230px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease, visibility 0.5s;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hero-slide.exit {
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  line-height: 1.7;
  font-weight: 800;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 10px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.85;
}

.bg-black-text {
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 7px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
}

.hero-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  position: relative;
}

.hero-buttons .btn::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 11px;
  /* perfectly parallel to the desktop 15px outer radius */
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.hero-buttons .btn-primary::after {
  border: 1px solid rgba(10, 10, 10, 0.9);
}

.hero-buttons .btn-outline::after {
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-buttons .btn-outline:hover::after {
  border-color: rgba(10, 10, 10, 0.9);
}

.festival-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.preview-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.preview-buttons .btn-outline {
  color: #313131;
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-input {
  flex: 1;
  padding: 12px;
  border-radius: 6px;
  border: none;
  outline: none;
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}

.subscribe-btn {
  background: var(--vof-darker);
  color: var(--vof-white);
}

/* Footer */
footer {
  background: var(--vof-darker);
  color: var(--vof-light);
  padding: 60px 0 20px;
  border-top: 1px solid rgba(0, 128, 0, 0.5);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-col h3 {
  margin-bottom: 20px;
  color: var(--vof-gold);
}

.footer-col.logo,
.footer-col .logo {
  white-space: normal;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--vof-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: var(--vof-green);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Premium Visual Effects */
.premium-card-shimmer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.premium-card-shimmer:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15);
  border-color: var(--vof-gold);
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 20%,
      rgba(255, 255, 255, 0.1) 45%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.1) 55%,
      transparent 80%);
  transform: rotate(-45deg);
  animation: shimmer-glimmer 4s infinite;
  pointer-events: none;
}

@keyframes shimmer-glimmer {
  0% {
    transform: translateX(-150%) rotate(-45deg);
  }

  100% {
    transform: translateX(150%) rotate(-45deg);
  }
}

.ornamental-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
}

.ornamental-divider::before,
.ornamental-divider::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: linear-gradient(to right, transparent, rgba(255, 215, 0, 0.4), transparent);
}

.ornamental-divider .dot {
  width: 8px;
  height: 8px;
  background: var(--vof-gold);
  transform: rotate(45deg);
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--vof-gold);
  border-radius: 16px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 9px;
  margin-left: -2px;
  background: var(--vof-gold);
  border-radius: 2px;
  animation: scroll-wheel 1.8s ease-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }

  70% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 0;
    transform: translateY(15px);
  }
}

/* Sponsors Marquee */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Dropdown Menu */
.nav-links li.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-top: 3px solid var(--vof-gold);
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  border-radius: 0 0 20px 20px;
  z-index: 1000;
  min-width: 320px;
}

/* Invisible bridge to prevent menu from closing when moving mouse to it */
.nav-links li.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

.nav-links li.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-column {
  flex: 1;
}

.dropdown-column h3 {
  color: var(--vof-gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  font-weight: 800;
}

.dropdown-column a {
  display: block;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.dropdown-column a:hover {
  color: var(--vof-white) !important;
  transform: translateX(8px);
}

.dropdown-column a::after {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    visibility: visible;
    opacity: 1;
    display: none;
    min-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 15px 0 0 20px;
    gap: 15px;
    flex-direction: column;
    text-align: left;
  }

  .nav-links li.dropdown.active .dropdown-menu {
    display: flex;
  }

  .dropdown-column {
    text-align: left;
  }

  .dropdown-column h3 {
    margin-bottom: 5px;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    text-align: left;
  }

  .dropdown-column a {
    padding: 10px 0;
    font-size: 1.1rem !important;
    text-align: left;
  }

  .dropdown-column a:hover {
    transform: none !important;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    min-height: 80vh;
    align-items: flex-end;
    padding-bottom: 50px;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1999;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links li a {
    font-size: 1.2rem;
    display: block;
    padding: 10px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .mobile-hero-flyer {
    display: block;
    position: absolute;
    top: 22%;
    left: 50%;
    width: 95%;
    max-width: 500px;
    z-index: 2;
    transform: translateX(100%);
    animation: flyInRightCenter 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    pointer-events: none;
  }

  .mobile-hero-flyer img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.4));
  }

  @keyframes flyInRightCenter {
    0% {
      transform: translateX(100%);
      opacity: 0;
    }

    100% {
      transform: translateX(-50%);
      opacity: 1;
    }
  }

  .hero-text-slider {
    display: none;
    min-height: 260px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 0;
  }

  .hero-buttons .btn::after {
    border-radius: 11px;
    /* perfectly parallel to the mobile 15px outer radius */
  }

  .hero-buttons .btn:last-child {
    margin-bottom: 0;
  }

  .festival-preview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .festival-preview-content {
    text-align: center;
  }

  .preview-buttons {
    flex-direction: column;
    align-items: center;
  }

  .preview-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
  }



  .preview-buttons .btn:last-child {
    margin-bottom: 0;
  }

  .subscribe-form {
    flex-direction: column;
    gap: 15px;
  }

  .subscribe-btn {
    width: 100%;
    border-radius: 15px;
  }
}

/* ===== Horizontal Countdown Bar (docked to the bottom of the hero section) ===== */
/* The bar is taken out of flow with position:absolute relative to .hero, so it sits over the
   bottom of the hero image and adds no vertical space to the page. */
.countdown-bar {
  position: absolute;
  left: 50%;
  bottom: 10px;
  /* Pinned just above the baseline of the hero */
  transform: translateX(-50%);
  z-index: 3;
  width: calc(100% - 40px);
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  /* Matches the .btn corner radius (e.g. the hero "Become a Sponsor" button) */
  border-radius: 15px;
  padding: 16px 34px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  /* Experiment: render the whole bar at 90% opacity */
  opacity: 0.9;
}

.countdown-bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 0.95rem;
  white-space: nowrap;
}

.countdown-bar-sep {
  opacity: 0.45;
}

.countdown-bar-units {
  display: flex;
  align-items: center;
  gap: 20px;
}

.countdown-bar-unit {
  text-align: center;
  min-width: 44px;
}

.countdown-bar-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--vof-gold);
}

.countdown-bar-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

@media (max-width: 768px) {
  /* Reserve room at the bottom of the hero so the docked bar clears the stacked buttons.
     align-items:flex-end + extra bottom padding lifts the buttons above the bar; the hero
     keeps its min-height, so no page height is added. */
  .hero {
    padding-bottom: 120px;
  }

  .countdown-bar {
    transform: translateX(-50%);
    bottom: 8px;
    flex-direction: column;
    gap: 5px;
    width: calc(100% - 24px);
    padding: 9px 16px;
    border-radius: 16px;
  }

  .countdown-bar-label {
    font-size: 0.72rem;
    gap: 6px;
  }

  .countdown-bar-units {
    gap: 22px;
  }

  .countdown-bar-unit {
    min-width: 38px;
  }

  .countdown-bar-num {
    font-size: 1.25rem;
  }

  .countdown-bar-tag {
    font-size: 0.55rem;
    margin-top: 2px;
  }
}