/* styles.css */
:root {
  --bg-deep: #050210;
  --bg-card: rgba(13, 13, 36, 0.85);
  --bg-card-strong: rgba(25, 27, 63, 0.85);
  --text-primary: #f8f6ff;
  --text-muted: #c2c4ff;
  --accent: #ff6c63;
  --accent-2: #7c5dff;
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-optical-sizing: auto;
  color: var(--text-primary);
  background: radial-gradient(circle at top, rgba(124, 93, 255, 0.3), transparent 40%),
    radial-gradient(circle at 30% 20%, rgba(255, 108, 99, 0.25), transparent 35%),
    var(--bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/pattern4.webp');
  background-size: 320px;
  opacity: 0.05;
  pointer-events: none;
  z-index: -2;
}

.hero-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  z-index: -1;
  animation: floatGlow 12s ease-in-out infinite alternate;
}

.hero-glow-one {
  background: rgba(255, 108, 99, 0.8);
  top: 10%;
  left: 5%;
}

.hero-glow-two {
  background: rgba(124, 93, 255, 0.8);
  bottom: 15%;
  right: 10%;
}

@keyframes floatGlow {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-40px) scale(1.1);
  }
}

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap');

main#home .welcome-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

main#home {
  padding-top: 5rem;
}

main#home .welcome-section h1 {
  font-family: 'Courier Prime', monospace;
  font-size: 5rem;
  margin: 0;
  font-weight: 500;
  color: var(--text-primary);
  text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.35);
  border-right: 4px solid #f4f4f8;
  animation: cursor 1s infinite step-end, typing 15s infinite steps(16);
  overflow: hidden;
}
@media screen and (max-width: 600px) {
  main#home .welcome-section h1 {
    font-size: 3rem;
  }
}
@keyframes cursor {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: #f4f4f8;
  }
}

@keyframes typing {
  0% {
    width: 0ch;
  } /*Text is hidden*/
  10% {
    width: 12ch;
  } /*The entire header will be typed out*/
  80% {
    width: 12ch;
  } /*Text stays visible*/
  90% {
    width: 0ch;
  } /*Text is deleted*/
  100% {
    width: 0ch;
  } /*Text stays hidden*/
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0.75rem 0;
  z-index: 10;
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0;
  position: relative;
  background: rgba(5, 3, 22, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  backdrop-filter: blur(12px);
  transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled {
  transform: translateY(-8px);
  background: rgba(5, 3, 22, 0.9);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}

.logo {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 0 auto;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

#nav-links li a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
}

#nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: transform 0.3s ease;
}

#nav-links li a:hover::after {
  transform: scaleX(1);
}

@media screen and (max-width: 768px) {
  #navbar {
    border-radius: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  #nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    background: rgba(5, 3, 22, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    flex-direction: column;
    width: min(240px, 80vw);
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  #nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.welcome-section {
  text-align: center;
  padding: 7rem 1.5rem 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(21, 20, 46, 0.95), rgba(8, 5, 25, 0.9));
  border-radius: 32px;
  margin: 0 auto;
  max-width: 1100px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.event-info {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
}

#flipdown {
  margin: 0 auto;
  padding: 2rem;
}

.schedule {
  text-align: left;
  background-color: #1f1f3c;
  padding: 1rem;
  border-radius: 10px;
}

.schedule ul {
  list-style: none;
  padding: 0;
}

.schedule li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.navigation-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.cta-card button[disabled] {
  opacity: 0.55;
  pointer-events: none;
  filter: saturate(0.4);
}

.cta-status {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.navigate-link {
  display: flex;
  margin-top: 2rem;
  padding: 1rem;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  align-items: center;
}

.whatsapp-link {
  background-color: rgb(85, 71, 204);
}
.register-link {
  background-color: #027f6d;
}

.zebra-info {
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
  background: var(--bg-card);
  border-radius: 32px;
  margin: 3rem auto 0 auto;
  max-width: 1100px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.zebra-info h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

.zebra-info img {
  max-width: 300px;
  filter: saturate(1.2) drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.rules-section,
.get-started-section {
  padding: 1.5rem;
  background-color: var(--bg-card-strong);
  margin-top: 2rem;
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

footer {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(9, 6, 28, 0.85), rgba(5, 3, 22, 1));
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: white;
  text-decoration: underline;
}

.accordion-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.handorgel {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--glass-border);
  max-width: 70vw;
}

@media screen and (max-width: 600px) {
  .handorgel {
    max-width: 100vw;
  }
}

.handorgel__header {
  background: rgba(12, 16, 44, 0.85);
  cursor: pointer;
  padding: 15px;
  color: var(--text-primary);
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.handorgel__header button {
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
}

.handorgel__header:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.handorgel__trigger {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.handorgel__content {
  background-color: rgba(244, 244, 248, 0.95);
  color: #333;
  transition: height 0.3s ease;
}

.handorgel__content-inner {
  padding: 10px;
}

.handorgel__header.is-open {
  background: linear-gradient(135deg, rgba(255, 108, 99, 0.8), rgba(124, 93, 255, 0.8));
}

/* General styling for markdown content */
.markdown-content {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  color: var(--text-primary);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-bottom: 1rem;
}

.markdown-content p {
  margin-bottom: 1rem;
}

/* Improved link styling */
.markdown-content a {
  color: #c0bdfe;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.markdown-content a:hover {
  color: #ff6c63;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Lists */
.markdown-content ul,
.markdown-content ol {
  margin-left: 1rem;
  margin-bottom: 1rem;
  padding-inline-start: 20px;
}

.markdown-content ul li,
.markdown-content ol li {
  margin-bottom: 0.5rem;
}

/* Code blocks */
.markdown-content pre,
.markdown-content code {
  background-color: #2b2b3b;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  font-family: 'Courier Prime', monospace;
  white-space: pre-wrap;
}

/* Blockquotes */
.markdown-content blockquote {
  border-left: 4px solid #6c63ff;
  padding-left: 1rem;
  color: #e0e0e0;
  font-style: italic;
}

/* Styling for headings */
.markdown-content h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.markdown-content h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.markdown-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.markdown-content > div {
  max-width: 120ch;
}

/* Schedule container styling */
.schedule-container {
  background: rgba(9, 6, 28, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  max-width: 600px;
  margin: 20px auto;
  font-family: 'Roboto', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  padding: 1.25rem 1.5rem 1.5rem 1.5rem;
}

.schedule-container > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Schedule header styling */
.schedule-container h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: left;
  margin: 0 0 1rem 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Schedule item container */
.schedule-item {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: background-color 0.3s ease;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
}

/* Styling for event title */
.schedule-item .event-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 5px;
}

/* Styling for event time */
.schedule-item .event-time {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Add hover effect to make the items interactive */
.schedule-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transition: background-color 0.3s ease;
}

/* Highlight the current schedule item */
.schedule-item.current {
  background-color: rgba(255, 235, 153, 0.25);
  border: 1px solid rgba(255, 235, 153, 0.6);
  box-shadow: 0 10px 25px rgba(255, 235, 153, 0.15);
}

/* Progress bar container */
.progress-container {
  margin-top: 10px;
}

/* Progress bar styling */
.progress {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  height: 20px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  height: 100%;
  border-radius: 5px;
  text-align: center;
  line-height: 20px;
  color: #00004f;
  font-weight: bold;
}

.progress-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

:root {
  --shiny-cta-bg: #000000;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-fg: #ffffff;
  --shiny-cta-highlight: blue;
  --shiny-cta-highlight-subtle: #8484ff;
}

.register {
  --shiny-cta-bg: rgb(0 0 114);
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-highlight: #25c5ff;
  --shiny-cta-highlight-subtle: #ffcc00;
}

.whatsapp {
  --shiny-cta-bg: #075e54;
  --shiny-cta-bg-subtle: #1a1818;
  --shiny-cta-highlight: #25d366;
  --shiny-cta-highlight-subtle: #34b7f1;
  background: var(--shiny-cta-bg) !important;
  box-shadow: none;
}

.whatsapp::before {
  display: none !important;
}

@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-angle-offset {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --gradient-percent {
  syntax: '<percentage>';
  initial-value: 5%;
  inherits: false;
}

@property --gradient-shine {
  syntax: '<color>';
  initial-value: white;
  inherits: false;
}

.shiny-cta {
  --animation: gradient-angle linear infinite;
  --duration: 3s;
  --shadow-size: 2px;
  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1.125rem;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-cta-fg);
  background: linear-gradient(var(--shiny-cta-bg), var(--shiny-cta-bg)) padding-box,
    conic-gradient(
        from calc(var(--gradient-angle) - var(--gradient-angle-offset)),
        transparent,
        var(--shiny-cta-highlight) var(--gradient-percent),
        var(--gradient-shine) calc(var(--gradient-percent) * 2),
        var(--shiny-cta-highlight) calc(var(--gradient-percent) * 3),
        transparent calc(var(--gradient-percent) * 4)
      )
      border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-cta-bg-subtle);

  &::before,
  &::after,
  a::before {
    content: '';
    pointer-events: none;
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    translate: -50% -50%;
    z-index: -1;
  }

  &:active {
    translate: 0 1px;
  }
}

/* Dots pattern */
.shiny-cta::before {
  --size: calc(100% - var(--shadow-size) * 3);
  --position: 2px;
  --space: calc(var(--position) * 2);
  width: var(--size);
  height: var(--size);
  background: radial-gradient(circle at var(--position) var(--position), white calc(var(--position) / 4), transparent 0)
    padding-box;
  background-size: var(--space) var(--space);
  background-repeat: space;
  mask-image: conic-gradient(from calc(var(--gradient-angle) + 45deg), black, transparent 10% 90%, black);
  border-radius: inherit;
  opacity: 0.4;
  z-index: -1;
}

/* Inner shimmer */
.shiny-cta::after {
  --animation: shimmer linear infinite;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(-50deg, transparent, var(--shiny-cta-highlight), transparent);
  mask-image: radial-gradient(circle at bottom, transparent 40%, black);
  opacity: 0.6;
}

.shiny-cta span {
  z-index: 1;
  display: flex;
  white-space: nowrap;

  &::before {
    --size: calc(100% + 1rem);
    width: var(--size);
    height: var(--size);
    box-shadow: inset 0 -1ex 2rem 4px var(--shiny-cta-highlight);
    opacity: 0;
  }
}

/* Animate */
.shiny-cta-animation {
  --transition: 800ms cubic-bezier(0.25, 1, 0.5, 1);
  transition: var(--transition);
  transition-property: --gradient-angle-offset, --gradient-percent, --gradient-shine;

  &,
  &::before,
  &::after {
    animation: var(--animation) var(--duration), var(--animation) calc(var(--duration) / 0.4) reverse paused;
    animation-composition: add;
  }

  span::before {
    transition: opacity var(--transition);
    animation: calc(var(--duration) * 1.5) breathe linear infinite;
  }
}

.shiny-cta-animation:is(:hover, :focus-visible) {
  --gradient-percent: 20%;
  --gradient-angle-offset: 95deg;
  --gradient-shine: var(--shiny-cta-highlight-subtle);

  &,
  &::before,
  &::after {
    animation-play-state: running;
  }

  span::before {
    opacity: 1;
  }
}

@keyframes gradient-angle {
  to {
    --gradient-angle: 360deg;
  }
}

@keyframes shimmer {
  to {
    rotate: 360deg;
  }
}

@keyframes breathe {
  from,
  to {
    scale: 1;
  }
  50% {
    scale: 1.2;
  }
}

/* Sponsors Section */
.sponsors-section {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-primary);
  background: rgba(10, 12, 38, 0.9);
  border-radius: 32px;
  max-width: 1100px;
  margin: 3rem auto 0 auto;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.sponsors-section h2 {
  font-size: 2.1rem;
  margin-bottom: 2rem;
  color: var(--accent);
  font-weight: 700;
}

.sponsors-section.coming-soon .sponsor-logos,
.sponsors-section.coming-soon .sponsor-subtitle {
  filter: blur(2px);
  opacity: 0.5;
}

.coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(10, 12, 38, 0.65), rgba(5, 3, 22, 0.92));
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  font-size: 1rem;
  z-index: 3;
  pointer-events: all;
}

.coming-soon-overlay strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: 0.25em;
  color: var(--accent);
}

.coming-soon-overlay p {
  margin: 0 0 0.5rem 0;
  color: var(--text-muted);
}

.sponsor-subtitle {
  color: var(--text-muted);
  margin: 0 auto 2rem auto;
  max-width: 520px;
}

.sponsor-featured {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
}

.sponsor {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  padding: 1.4rem;
  min-height: 220px;
  border-radius: 26px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sponsor-logos .sponsor {
  flex: 1 1 230px;
  max-width: 280px;
}

.sponsor:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

.sponsor--featured {
  min-height: 260px;
  padding: 1.75rem;
  width: min(100%, 960px);
}

.sponsor--wide {
  min-height: 230px;
}

.sponsor--tall {
  min-height: 260px;
}

.sponsor-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(245, 245, 255, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.75rem;
  width: clamp(140px, 60%, 220px);
  height: 110px;
}

.sponsor-frame--landscape {
  width: 170px;
  height: 90px;
}

.sponsor-frame--wide {
  width: 200px;
  height: 110px;
}

.sponsor-frame--tall {
  width: 150px;
  height: 190px;
}

.sponsor-frame--panoramic {
  width: min(640px, 100%);
  padding: 0;
}

.sponsor-frame--panoramic img {
  width: 100%;
  height: auto;
}
.sponsor img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.35));
}

.sponsor-name {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sponsor--featured .sponsor-name {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
}

@media (max-width: 700px) {
  .sponsor {
    min-height: 200px;
  }

  .sponsor--featured {
    width: 100%;
  }
}

.sponsor[data-tier='platinum'] {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03));
}

.sponsor[data-tier='gold'] .sponsor-frame {
  border-style: solid;
  border-color: rgba(255, 215, 0, 0.5);
}

.sponsor[data-tier='silver'] .sponsor-frame {
  border-style: solid;
  border-color: rgba(192, 192, 192, 0.4);
}

/* Challenges Section */
.challenges-section {
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(8, 6, 28, 0.9);
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.challenges-section h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.challenges-section.coming-soon .challenge-cards {
  filter: blur(2px);
  opacity: 0.6;
  pointer-events: none;
}

.challenges-section .coming-soon-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 6, 28, 0.7), rgba(5, 3, 22, 0.92));
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  font-size: 0.95rem;
  z-index: 2;
  pointer-events: all;
}

.challenges-section .coming-soon-overlay strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 1.2rem;
}

.challenges-section .coming-soon-overlay p {
  margin: 0;
  color: var(--text-muted);
}

.challenge-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.challenge-card {
  perspective: 1000px;
  width: 200px;
  height: 250px;
  cursor: pointer;
  animation: floatCard 6s ease-in-out infinite;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.challenge-card:hover .card-inner {
  transform: rotateY(180deg);
}

.challenge-card:nth-child(even) {
  animation-delay: 1.2s;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.card-front {
  background-color: #1f1f3c;
  color: #f4f4f8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.card-front h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0;
}

.card-back {
  background-color: #ff6c63;
  color: #ffffff;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0;
}

.card-back h4 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.card-back p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Number Style */
.card-back small {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 8px;
  border-radius: 5px;
  z-index: 2;
}

/* Responsive Styling */
@media screen and (max-width: 600px) {
  .challenge-cards {
    flex-direction: column;
    align-items: center;
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floatCard {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
