/* Speed Festival 2026 Custom High-Octane Styles */
:root {
  --sf-red: #e10600;
  --sf-red-dark: #b00500;
  --sf-red-glow: rgba(225, 6, 0, 0.4);
  --sf-silver: #c0c0c0;
  --sf-silver-dark: #8a8a8a;
  --sf-gold: #ffb703;
  --sf-dark: #000000;
  --sf-dark-card: #0a0a0a;
  --sf-dark-border: rgba(225, 6, 0, 0.2);
  --sf-cyan: #00e5ff;
}

body {
  background-color: var(--sf-dark);
  color: #e2e8f0;
}

.bg-dark-sf {
  background-color: var(--sf-dark-card) !important;
}

.text-cyan {
  color: var(--sf-red) !important;
}

.text-red {
  color: var(--sf-silver) !important;
}

.text-gold {
  color: var(--sf-gold) !important;
}

.border-cyan {
  border: 1px solid rgba(225, 6, 0, 0.3) !important;
}

.border-red {
  border: 1px solid rgba(192, 192, 192, 0.3) !important;
}

.glow-cyan {
  text-shadow: 0 0 15px rgba(225, 6, 0, 0.6);
}

.glow-red {
  text-shadow: 0 0 15px rgba(192, 192, 192, 0.6);
}

.tag-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  background: rgba(225, 6, 0, 0.1);
  color: var(--sf-red);
  border: 1px solid rgba(225, 6, 0, 0.3);
  margin-bottom: 15px;
}

.tag-badge.red {
  background: rgba(255, 23, 68, 0.1);
  color: var(--sf-red);
  border-color: rgba(255, 23, 68, 0.3);
}

.tag-badge.gold {
  background: rgba(255, 183, 3, 0.1);
  color: var(--sf-gold);
  border-color: rgba(255, 183, 3, 0.3);
}

/* Metric Counter Box */
.metric-box {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(0, 0, 0, 0.95));
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-box:hover {
  transform: translateY(-5px);
  border-color: var(--sf-red);
  box-shadow: 0 10px 30px rgba(225, 6, 0, 0.15);
}

.metric-box .metric-num {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-box .metric-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Visitor Journey Stepper */
.journey-steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  margin: 40px 0;
}

@media (min-width: 992px) {
  .journey-steps-container::before {
    content: '';
    position: absolute;
    top: 42px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(to right, var(--sf-red), var(--sf-silver), var(--sf-red));
    z-index: 1;
  }
}

.journey-step-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 10px;
}

.journey-step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #0a0a0a;
  border: 2px solid var(--sf-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--sf-red);
  box-shadow: 0 0 15px rgba(225, 6, 0, 0.3);
  transition: all 0.3s ease;
}

.journey-step-item:hover .journey-step-num {
  transform: scale(1.1);
  background: var(--sf-red);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(225, 6, 0, 0.8);
}

.journey-step-item.champion .journey-step-num {
  border-color: var(--sf-gold);
  color: var(--sf-gold);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.4);
}

.journey-step-item.champion:hover .journey-step-num {
  background: var(--sf-gold);
  color: #000000;
  box-shadow: 0 0 25px rgba(255, 183, 3, 0.8);
}

.journey-step-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: #fff;
}

.journey-step-desc {
  font-size: 13px;
  color: #94a3b8;
}

/* Feature cards */
.sf-feature-card {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px 25px;
  height: 100%;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
}

.sf-feature-card:hover {
  border-color: var(--sf-red);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(225, 6, 0, 0.12);
}

.sf-feature-card .sf-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(225, 6, 0, 0.1);
  border: 1px solid rgba(225, 6, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--sf-red);
  margin-bottom: 20px;
}

.sf-feature-card.red .sf-icon {
  background: rgba(192, 192, 192, 0.1);
  border-color: rgba(192, 192, 192, 0.3);
  color: var(--sf-silver);
}

.sf-feature-card.gold .sf-icon {
  background: rgba(255, 183, 3, 0.1);
  border-color: rgba(255, 183, 3, 0.3);
  color: var(--sf-gold);
}

/* Master Layout Zone Cards */
.layout-zone-card {
  background: #0a0a0a;
  border-left: 4px solid var(--sf-red);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.layout-zone-card:hover {
  background: #141414;
  transform: translateX(6px);
}

.layout-zone-card.red {
  border-left-color: var(--sf-red);
}

.layout-zone-card.gold {
  border-left-color: var(--sf-gold);
}

/* Tourism Pillar Cards */
.tourism-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
}

.tourism-card:hover {
  border-color: var(--sf-red);
  background: #141414;
  transform: translateX(5px);
}

.tourism-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--sf-red);
  min-width: 40px;
  line-height: 1;
}

.tourism-card.red .tourism-num {
  color: var(--sf-red);
}

/* Custom Hero Glow Banner */
.hero-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(225, 6, 0, 0.15) 0%, rgba(0, 0, 0, 0.8) 70%, #000000 100%);
  pointer-events: none;
}

/* Custom Navbar Brand */
.logo-speedfest {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Schedule funnel: 33 Sessions > 22 Finalists > Top 3 Winners */
.schedule-funnel {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px 0;
  flex-wrap: wrap;
}
.schedule-funnel .funnel-item {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 18px;
  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: 40px;
  background: rgba(225, 6, 0, 0.05);
}
.schedule-funnel .funnel-item strong {
  color: var(--sf-red);
  font-size: 20px;
  margin-right: 4px;
}
.schedule-funnel .funnel-arrow {
  color: var(--sf-silver);
  font-size: 22px;
  font-weight: 700;
}

/* Registration form styling */
#contact_form {
  border: 1px solid rgba(225, 6, 0, 0.3);
  border-radius: 12px;
  padding: 40px;
  background: var(--sf-dark-card);
}
#contact_form .form-control {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
}
#contact_form .form-control:focus {
  border-color: var(--sf-red);
  background: rgba(225, 6, 0, 0.05);
  box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.15);
  color: #fff;
}
#contact_form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Footer vertical alignment */
footer.style-2 .row.align-items-center {
  display: flex;
  align-items: center;
  min-height: 80px;
}
footer.style-2 .social-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}
footer.style-2 .social-icons a {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}
footer.style-2 .social-icons a:hover {
  color: var(--sf-red);
}

/* Custom TikTok icon for Font Awesome 4 */
.fa.fa-tiktok {
  font-family: inherit;
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: middle;
}
.fa.fa-tiktok.fa-lg {
  width: 18px;
  height: 18px;
}

@media (max-width: 767px) {
  footer.style-2 .row.align-items-center {
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 18px !important;
    padding: 25px 0 !important;
  }
  footer.style-2 .col-md-4 {
    width: 100% !important;
    text-align: center !important;
  }
  footer.style-2 .social-icons {
    justify-content: center !important;
  }
  footer.style-2 .logo-speedfest {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

.logo-speedfest span {
  color: var(--sf-red);
}

.logo-speedfest .sub-badge {
  font-size: 11px;
  background: var(--sf-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
  font-weight: 800;
}

/* Align Pre-Register button with menu items */
#mainmenu li.menu-btn-item {
  display: flex;
  align-items: center;
}

#mainmenu li.menu-btn-item > a.btn-custom:after {
  display: none;
}

/* Right-align the main menu */
#mainmenu {
  float: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Hero CTA buttons alignment & sizing */
.hero-btns-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
  flex-wrap: wrap;
}

#section-hero .btn-custom,
#section-hero .btn-line {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 52px !important;
  line-height: 52px !important;
  padding: 0 36px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  vertical-align: middle !important;
  text-decoration: none !important;
}

#section-hero .btn-custom {
  background: var(--sf-red) !important;
  border: 2px solid var(--sf-red) !important;
  min-width: 200px;
}

#section-hero .btn-line {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.7) !important;
  min-width: 180px;
}

#section-hero .btn-line:hover {
  border-color: var(--sf-red) !important;
  background: rgba(225, 6, 0, 0.1) !important;
  color: #fff !important;
}

/* Remove template arrow from hero btn-line */
#section-hero .btn-line:after,
#section-hero a.btn-line:after {
  display: none !important;
  content: "" !important;
}

@media (max-width: 575px) {
  .hero-btns-wrapper {
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    margin-top: 20px !important;
  }
  #section-hero .btn-custom,
  #section-hero .btn-line {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* F1-style hero title */

/* Dark overlay for parallax background sections */
.bg-overlay-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

#section-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 0.85 !important;
  margin-bottom: 25px;
}

@media (max-width: 575px) {
  #section-hero h1 {
    font-size: 16vw !important;
  }
}

/* F1-style countdown */
#defaultCountdown,
.countdown-s2 {
  font-family: 'Rajdhani', sans-serif;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  max-width: 100% !important;
}

#defaultCountdown .countdown-section,
.countdown-s2 .countdown-section {
  float: none !important;
  display: inline-block !important;
  text-align: center !important;
}

#defaultCountdown .countdown-amount {
  font-weight: 700;
  letter-spacing: 1px;
}
#defaultCountdown .countdown-period {
  letter-spacing: 2px;
  text-transform: uppercase;
}

@media (max-width: 575px) {
  #defaultCountdown,
  .countdown-s2 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 6px !important;
    margin: 15px auto !important;
  }
  #defaultCountdown .countdown-section,
  .countdown-s2 .countdown-section {
    width: auto !important;
    min-width: 60px !important;
    max-width: 75px !important;
    flex: 1 1 0 !important;
    margin: 0 !important;
    padding: 8px 2px !important;
    box-sizing: border-box !important;
  }
  #defaultCountdown .countdown-amount,
  .countdown-s2 .countdown-amount {
    font-size: 26px !important;
    line-height: 1 !important;
    display: block !important;
  }
  #defaultCountdown .countdown-period,
  .countdown-s2 .countdown-period {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    margin-top: 4px !important;
    display: block !important;
  }
}
