/* ============================================
   FIT Competition 2026 - Custom Stylesheet
   Theme: Digital Impact for Humanitarian Response
   Colors inspired by FIT 2026 Logo
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary-dark: #0a0e27;
  --primary-mid: #111640;
  --secondary: #1a1f4e;
  --accent-purple: #16c598;
  --accent-cyan: #00d4ff;
  --accent-light-purple: #8b5cf6;
  --accent-pink: #e040fb;
  --gradient-main: linear-gradient(135deg, #16c598 0%, #00d4ff 100%);
  --gradient-hero: linear-gradient(
    160deg,
    #0a0e27 0%,
    #1a1048 40%,
    #0d1a3a 70%,
    #0a0e27 100%
  );
  --gradient-card: linear-gradient(
    135deg,
    rgba(108, 34, 237, 0.15) 0%,
    rgba(0, 212, 255, 0.08) 100%
  );
  --glass-bg: rgba(26, 31, 78, 0.55);
  --glass-border: rgba(108, 34, 237, 0.3);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.5);
  --font-primary: "Inter", "Sansation", sans-serif;
  --font-display: "Sansation", "Inter", sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- Base & Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: var(--primary-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Animated Background ---------- */
.page-bg {
  position: relative;
  min-height: 100vh;
}

.page-bg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: -3;
}

.page-bg::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      ellipse 600px 600px at 20% 20%,
      rgba(108, 34, 237, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 500px 500px at 80% 60%,
      rgba(0, 212, 255, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 400px 400px at 50% 90%,
      rgba(139, 92, 246, 0.1) 0%,
      transparent 70%
    );
  z-index: -2;
  animation: bgPulse 12s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Floating geometric shapes */
.geo-shapes {
  position: fixed;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  top: 0;
  left: 0;
}

.geo-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  animation: floatShape 20s ease-in-out infinite;
}

.geo-shapes .shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--accent-purple);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.geo-shapes .shape:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--accent-cyan);
  top: 60%;
  right: -3%;
  animation-delay: -5s;
  animation-duration: 20s;
}

.geo-shapes .shape:nth-child(3) {
  width: 150px;
  height: 150px;
  background: var(--accent-light-purple);
  bottom: 20%;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 22s;
}

.geo-shapes .shape:nth-child(4) {
  width: 250px;
  height: 250px;
  background: var(--accent-pink);
  top: 30%;
  right: 20%;
  animation-delay: -7s;
  animation-duration: 28s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -40px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(40px, 30px) rotate(270deg);
  }
}

/* ---------- Glassmorphism Utility ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
}

.glass-light {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

/* ---------- Glow Button ---------- */
.btn-glow {
  display: inline-block;
  padding: 0.65rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-mid);
  font-weight: bold;
  background: var(--gradient-main);
  border: none;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-glow:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 8px 30px rgba(108, 34, 237, 0.4),
    0 0 20px rgba(0, 212, 255, 0.2);
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-outline-glow {
  display: inline-block;
  padding: 0.6rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: transparent;
  border: 2px solid rgba(108, 34, 237, 0.6);
  border-radius: 50px;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-outline-glow:hover {
  color: #fff;
  background: var(--gradient-main);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 34, 237, 0.4);
}

/* ---------- Navbar ---------- */
.navbar-fit {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 34, 237, 0.15);
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

.navbar-fit.scrolled {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-fit .navbar-brand img {
  height: 42px;
  width: auto;
  transition: var(--transition-smooth);
}

.navbar-fit .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
  transition: var(--transition-smooth);
  position: relative;
}

.navbar-fit .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-fit .nav-link:hover,
.navbar-fit .nav-link.active {
  color: #fff !important;
}

.navbar-fit .nav-link:hover::after,
.navbar-fit .nav-link.active::after {
  width: 70%;
}

.navbar-fit .dropdown-menu {
  background: rgba(17, 22, 64, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.navbar-fit .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
}

.navbar-fit .dropdown-item:hover,
.navbar-fit .dropdown-item:focus {
  color: #fff;
  background: rgba(108, 34, 237, 0.2);
}

.navbar-toggler {
  border: none !important;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.85)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Offcanvas mobile menu */
.offcanvas-fit {
  background: rgba(10, 14, 39, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border) !important;
  max-width: 280px;
}

.offcanvas-fit .offcanvas-header {
  border-bottom: 1px solid rgba(108, 34, 237, 0.15);
}

.offcanvas-fit .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-fit .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.offcanvas-fit .nav-link:hover {
  color: var(--accent-cyan) !important;
  background: rgba(108, 34, 237, 0.1);
}

/* ---------- Section Titles ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title .gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.title-line {
  width: 80px;
  height: 3px;
  background: var(--gradient-main);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ---------- Hero Section ---------- */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 6rem 0 4rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(108, 34, 237, 0.2);
  border: 1px solid rgba(108, 34, 237, 0.4);
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-logo {
  max-width: 380px;
  width: 100%;
  animation: heroFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(108, 34, 237, 0.3));
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* ---------- Category Carousel ---------- */
.category-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: var(--transition-smooth);
  height: 100%;
}

.category-card:hover {
  box-shadow: 0 16px 50px rgba(108, 34, 237, 0.25);
}

.category-card .card-body {
  padding: 2rem;
}

.category-card .category-icon {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(108, 34, 237, 0.3));
}

.category-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.25rem;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Bootstrap Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.carousel-control-prev {
  left: -25px;
}
.carousel-control-next {
  right: -25px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(108, 34, 237, 0.4);
}

.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  margin: 0 5px;
  transition: var(--transition-smooth);
}

.carousel-indicators .active {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

/* ---------- About Section ---------- */
.about-card {
  border-radius: 1.25rem;
  padding: 2.5rem;
}

.about-card p {
  color: var(--text-secondary);
  text-align: justify;
  font-size: 0.95rem;
  line-height: 1.9;
}

/* ---------- Prize Pool Section ---------- */
.prizepool-section {
  padding: 5rem 0;
  position: relative;
}

.prizepool-total {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.prizepool-label {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 3rem;
}

.prize-card {
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.prize-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition-smooth);
}

.prize-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 34, 237, 0.5);
  box-shadow: 0 16px 40px rgba(108, 34, 237, 0.2);
}

.prize-card:hover::before {
  opacity: 1;
}

.prize-card.gold {
  border-color: rgba(255, 215, 0, 0.3);
}

.prize-card.gold:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 16px 40px rgba(255, 215, 0, 0.15);
}

.prize-card.gold::before {
  background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.prize-card.silver {
  border-color: rgba(192, 192, 192, 0.3);
}

.prize-card.silver::before {
  background: linear-gradient(90deg, #c0c0c0, #e8e8e8);
}

.prize-card.bronze {
  border-color: rgba(205, 127, 50, 0.3);
}

.prize-card.bronze::before {
  background: linear-gradient(90deg, #cd7f32, #e8a862);
}

.prize-rank {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: 700;
  font-size: 1.2rem;
}

.prize-rank.gold-rank {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.prize-rank.silver-rank {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
}

.prize-rank.bronze-rank {
  background: linear-gradient(135deg, #cd7f32, #e8a862);
  color: #1a1a1a;
  box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
}

.prize-place {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.prize-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* ---------- Timeline Section ---------- */
.timeline-section {
  padding: 5rem 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--accent-purple),
    var(--accent-cyan)
  );
  top: 0;
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  width: 50%;
  padding-right: 40px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 40px;
  transform: translateX(30px);
}

.timeline-item:nth-child(even).visible {
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  right: -10px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: 3px solid var(--primary-dark);
  z-index: 2;
  transition: var(--transition-smooth);
  box-shadow: 0 0 0 4px rgba(108, 34, 237, 0.2);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
  right: auto;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow:
    0 0 0 8px rgba(108, 34, 237, 0.2),
    0 0 20px rgba(0, 212, 255, 0.3);
}

.timeline-content {
  border-radius: 1rem;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 34, 237, 0.5);
  box-shadow: 0 8px 30px rgba(108, 34, 237, 0.15);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.timeline-location {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.timeline-number {
  position: absolute;
  top: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-purple);
  opacity: 0.5;
}

.timeline-item:nth-child(odd) .timeline-number {
  right: 30px;
}

.timeline-item:nth-child(even) .timeline-number {
  left: 30px;
}

/* Mobile timeline */
@media (max-width: 767.98px) {
  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 55px;
    padding-right: 0;
    transform: translateY(20px);
  }

  .timeline-item.visible,
  .timeline-item:nth-child(even).visible {
    transform: translateY(0);
  }

  .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 11px;
    right: auto;
  }

  .timeline-number {
    display: none;
  }
}

/* ---------- Category Page Hero ---------- */
.category-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.category-hero-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 12px 30px rgba(108, 34, 237, 0.3));
  animation: heroFloat 6s ease-in-out infinite;
}

.category-hero h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.category-hero h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.category-hero p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Countdown Section ---------- */
.countdown-section {
  padding: 4rem 0;
}

.countdown-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.countdown-box {
  border-radius: 1rem;
  padding: 1.5rem 1.2rem;
  min-width: 100px;
  text-align: center;
  transition: var(--transition-smooth);
}

.countdown-box:hover {
  transform: translateY(-4px);
  border-color: rgba(108, 34, 237, 0.5);
}

.countdown-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ---------- Guidebook Section ---------- */
.guidebook-section {
  padding: 4rem 0;
}

.guidebook-card {
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.guidebook-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ---------- Sponsors Section ---------- */
.sponsors-section {
  padding: 5rem 0;
}

.sponsor-logo {
  max-height: 100px;
  width: auto;
  filter: brightness(1);
  transition: var(--transition-smooth);
  padding: 1rem;
}

.sponsor-logo:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

.sponsor-card-bg {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Winner Section ---------- */
.winner-section {
  padding: 5rem 0;
  text-align: center;
}

.tba-text {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  margin-top: 2rem;
}

/* ---------- Footer ---------- */
.footer-fit {
  background: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0) 0%,
    rgba(17, 22, 64, 0.8) 20%,
    rgba(17, 22, 64, 0.95) 100%
  );
  border-top: 1px solid rgba(108, 34, 237, 0.1);
  padding: 4rem 0 1.5rem;
  margin-top: 5rem;
}

.footer-fit h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-fit a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-fit a:hover {
  color: var(--accent-cyan);
}

.footer-fit .social-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.footer-fit .social-icon:hover {
  background: rgba(108, 34, 237, 0.3);
  border-color: var(--accent-purple);
  transform: translateY(-3px);
}

.footer-fit .social-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

.footer-logo {
  max-width: 160px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(108, 34, 237, 0.2));
}

/* ---------- Fade-in Animation ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-section {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
  .hero-logo {
    max-width: 260px;
    margin: 2rem auto 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .prizepool-total {
    font-size: 2.5rem;
  }
  .category-hero h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-section {
    padding: 7rem 0 2rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .prizepool-total {
    font-size: 2rem;
  }
  .countdown-box {
    min-width: 75px;
    padding: 1rem 0.8rem;
  }
  .countdown-value {
    font-size: 1.8rem;
  }
  .prize-amount {
    font-size: 1.2rem;
  }
  .about-card {
    padding: 1.5rem;
  }
  .category-hero h2 {
    font-size: 1.8rem;
  }
  .category-hero-icon {
    width: 150px;
    height: 150px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.65rem;
  }
  .countdown-wrapper {
    gap: 0.5rem;
  }
  .countdown-box {
    min-width: 65px;
    padding: 0.8rem 0.5rem;
  }
  .countdown-value {
    font-size: 1.5rem;
  }
}

/* ---------- Footer Grid (flex column, no Bootstrap row) ---------- */
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Di layar >= md (768px): susun horizontal dalam satu baris */
@media (min-width: 768px) {
  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .footer-col-brand {
    flex: 0 0 220px;
  }

  .footer-col {
    flex: 1;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Mobile: center semua konten */
@media (max-width: 767.98px) {
  .footer-col {
    align-items: start;
    text-align: center;
  }

  .footer-col .list-unstyled {
    text-align: center;
  }
}

.footer-contact-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  line-height: 1.4;
}

.footer-contact-link:hover {
  color: var(--accent-cyan);
}

.footer-wa-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}
