@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
.op {
  font-size: 2rem;
  opacity: 0.06;
}
.spectrum-title {
  color: #ac20ee;
  transition: color 0.3s, text-shadow 0.3s;
  cursor: pointer;
}
.spectrum-title:hover {
  color: #fff;
  text-shadow: 0 0 8px #ac20ee;
}
body {
  background: linear-gradient(120deg, #ac20ee, #05060a, #00bfff);
  background-size: 200% 200%;
  animation: gradientMove 8s ease-in-out infinite alternate;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: white;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #ac20ee;
}
h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.5rem;
}
p, .card-inner p, .sponsor-row .card-inner p {
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #cfc6e6;
  margin: 0 0 8px 0;
}
.card-inner, .sponsor-row .card-inner {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  color: #ac20ee;
}
.card-inner h2, .sponsor-row .card-inner h2 {
  font-size: 1.5rem;
  color: #ac20ee;
}
.countdown-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #ac20ee;
}
.btn, .cube .text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #05060a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading svg polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading svg polyline#back {
  fill: none;
  stroke: #ac20ee33;
}

.loading svg polyline#front {
  fill: none;
  stroke: #ac20ee;
  stroke-dasharray: 48, 144;
  stroke-dashoffset: 192;
  animation: dash_682 1.4s linear infinite;
}

@keyframes dash_682 {
  72.5% {
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
  }
}

.outer {
  width: 300px;
  height: 250px;
  border-radius: 10px;
  padding: 1px;
  background: radial-gradient(circle 230px at 0% 0%, #ac20ee 0%, #05060a 100%);
  position: relative;
}

.dot {
  width: 5px;
  aspect-ratio: 1;
  position: absolute;
  background-color: #ac20ee;
  box-shadow: 0 0 10px #ac20ee;
  border-radius: 100px;
  z-index: 2;
  right: 10%;
  top: 10%;
  animation: moveDot 6s linear infinite;
}


@keyframes moveDot {
  0%,
  100% {
    top: 10%;
    right: 10%;
  }
  25% {
    top: 10%;
    right: calc(100% - 35px);
  }
  50% {
    top: calc(100% - 30px);
    right: calc(100% - 35px);
  }
  75% {
    top: calc(100% - 30px);
    right: 10%;
  }
}

/* From Uiverse.io by LilaRest - color theme updated to match site */
.card {
  --bg: #05060a;
  --contrast: #1a0826;
  --grey: #ac20ee44;
  position: relative;
  padding: 9px;
  background-color: var(--bg);
  border-radius: 35px;
  box-shadow: 0 8px 32px 0 rgba(172,32,238,0.15), 0 2px 8px 0 rgba(80,0,120,0.10) inset;
  border: 2.5px solid #ac20ee;
}

.card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-conic-gradient(var(--bg) 0.0000001%, var(--grey) 0.000104%) 60% 60%/600% 600%;
  filter: opacity(18%) contrast(110%);
  border-radius: 35px;
}

.card-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  width: 190px;
  min-height: 254px;
  height: auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--contrast);
  border-radius: 30px;
  font-size: 30px;
  font-weight: 900;
  color: #ac20ee;
  text-align: center;
  font-family: 'Montserrat', monospace, sans-serif;
  box-shadow: 0 2px 8px 0 rgba(172,32,238,0.10) inset;
}
.card-inner a, .card-inner a:visited {
  color: #ac20ee;
  text-decoration: none;
  font-weight: 900;
}
.card-inner a:hover {
  color: #fff;
  text-shadow: 0 0 8px #ac20ee;
}
.card:hover {
  box-shadow: 0 12px 40px 0 rgba(172,32,238,0.25);
  border-color: #fff;
  transform: scale(1.05) rotate(-1deg);
  transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s;
}

.ray {
  width: 220px;
  height: 45px;
  border-radius: 100px;
  position: absolute;
  background-color: #ac20ee;
  opacity: 0.15;
  box-shadow: 0 0 50px #ac20ee;
  filter: blur(10px);
  transform-origin: 10%;
  top: 0%;
  left: 0;
  transform: rotate(40deg);
}

.card .text {
  font-weight: bolder;
  font-size: 4rem;
  background: linear-gradient(45deg, #ac20ee 20%, #fff 50%, #ac20ee 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.line {
  width: 100%;
  height: 1px;
  position: absolute;
  background-color: #ac20ee;
}
.topl {
  top: 10%;
  background: linear-gradient(90deg, #ac20ee 30%, #05060a 70%);
}
.bottoml {
  bottom: 10%;
  background: linear-gradient(90deg, #05060a 30%, #ac20ee 70%);
}
.leftl {
  left: 10%;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(180deg, #ac20ee 30%, #05060a 70%);
}
.rightl {
  right: 10%;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(180deg, #05060a 30%, #ac20ee 70%);
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    padding: 20px;
    align-items: self-end;

    max-width: 650px;
    margin: 0 auto;
}

.sponsor-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 20px;
    align-items: start;

    max-width: 900px;
    /* more space for 3 items */
    margin: 40px auto;
    border-radius: 10px;
}
a {
    color: #ac20ee;
    text-decoration: none;
}

.learn-more-btn a,
.learn-more-btn a:visited,
.learn-more-btn a:hover,
.learn-more-btn a:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: transparent !important;
}
.grid-item {
    background-color: #05060a;
    padding: 20px;
    border: 2.5px solid rgba(172,32,238,0.5);
    width: 250px;
    height: 250px;
    margin: 0 auto;
    border-radius: 18px;
    transition: background-color 0.5s cubic-bezier(0.4,0,0.2,1), border-color 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.grid-item:hover {
    transform: scale(1.07);
    background-color: #ac20ee;
    border-color: #ac20ee;
    a {
        color: white;
    }
}
.slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px auto;
    max-width: 90vw;
    width: 100%;
    box-sizing: border-box;
}

.slide {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 18px;
    border: 2.5px solid rgba(172,32,238,0.5);
    box-shadow: 0 8px 32px 0 rgba(172,32,238,0.15);
    transition: all 0.3s ease-in-out;
    object-fit: contain;
    background: rgba(5,6,10,0.1);
}

.slide:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(172,32,238,0.25);
    border-color: #ac20ee;
}
.sponsor-item {
    color: #ac20ee;
    background-color: #05060a;
    padding: 20px;
    border: 2px solid #ac20ee;
    height: 70px;
    text-align: center;
    margin: 0 auto;
    border-radius: 8px;
}

.sponsor-item:hover {
    transform: scale(1.07);
    background-color: #ac20ee;
    color: white;
}

/* From Uiverse.io by gagan-gv - color theme updated to match site */
.btn {
  display: inline-block;
  padding: 0.7em 1em;
  background: transparent;
  outline: none;
  border: 0;
  color: #ac20ee;
  letter-spacing: 0.1em;
  font-family: monospace;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
}

.button-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px; /* Adjust spacing as needed */
  margin-top: 16px;
  margin-bottom: 16px;
}

.cube {
  position: relative;
  transition: all 0.5s;
}

.cube .bg-top {
  position: absolute;
  height: 10px;
  background: #ac20ee;
  bottom: 100%;
  left: 5px;
  right: -5px;
  transform: skew(-45deg, 0);
  margin: 0;
  transition: all 0.4s;
}

.cube .bg-top .bg-inner {
  bottom: 0;
}

.cube .bg {
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  right: 0;
  background: #ac20ee;
  transition: all 0.4s;
}

.cube .bg-right {
  position: absolute;
  background: #ac20ee;
  top: -5px;
  z-index: 0;
  bottom: 5px;
  width: 10px;
  left: 100%;
  transform: skew(0, -45deg);
  transition: all 0.4s;
}

.cube .bg-right .bg-inner {
  left: 0;
}

.cube .bg-inner {
  background: #05060a;
  position: absolute;
  left: 2px;
  right: 2px;
  top: 2px;
  bottom: 2px;
}

.cube .text {
  position: relative;
  transition: all 0.4s;
}

.cube:hover .bg-inner {
  background: #ac20ee;
  transition: all 0.4s;
}

.cube:hover .text {
  color: #05060a;
  transition: all 0.4s;
}

.cube:hover .bg-right,
.cube:hover .bg,
.cube:hover .bg-top {
  background: #05060a;
}

.cube:active {
  z-index: 9999;
  animation: bounce 0.1s linear;
}

@keyframes bounce {
  50% {
    transform: scale(0.9);
  }
}

/* Register button styling */
.register-buttons-top {
  position: fixed;
  top: 35px;
  right: 25px;
  z-index: 1000;
  margin: 0;
  text-align: center;
  transition: all 0.3s ease;
}

.register-buttons-top.scrolled {
  transform: scale(0.8);
  top: 30px;
  right: 20px;
}

.register-buttons-events,
.register-buttons-bottom {
  margin: 25px auto;
  text-align: center;
}

.register-btn {
  display: inline-block;
  padding: 0.7em 1em;
  background: transparent;
  outline: none;
  border: 0;
  color: #ac20ee;
  letter-spacing: 0.1em;
  font-family: monospace;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1;
  text-decoration: none;
  position: relative;
  transition: all 0.5s;
}

.register-btn .bg-top {
  position: absolute;
  height: 10px;
  background: #ac20ee;
  bottom: 100%;
  left: 5px;
  right: -5px;
  transform: skew(-45deg, 0);
  margin: 0;
  transition: all 0.4s;
}

.register-btn .bg-top .bg-inner {
  bottom: 0;
}

.register-btn .bg {
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  right: 0;
  background: #ac20ee;
  transition: all 0.4s;
}

.register-btn .bg-right {
  position: absolute;
  background: #ac20ee;
  top: -5px;
  z-index: 0;
  bottom: 5px;
  width: 10px;
  left: 100%;
  transform: skew(0, -45deg);
  transition: all 0.4s;
}

.register-btn .bg-right .bg-inner {
  left: 0;
}

.register-btn .bg-inner {
  background: #05060a;
  position: absolute;
  left: 2px;
  right: 2px;
  top: 2px;
  bottom: 2px;
}

.register-btn .text {
  position: relative;
  transition: all 0.4s;
}

.register-btn:hover .bg-inner {
  background: #ac20ee;
  transition: all 0.4s;
}

.register-btn:hover .text {
  color: #05060a;
  transition: all 0.4s;
}

.register-btn:hover .bg-right,
.register-btn:hover .bg,
.register-btn:hover .bg-top {
  background: #05060a;
}

.register-btn:active {
  z-index: 9999;
  animation: bounce 0.1s linear;
}

/* Animated button styling */
.animated-btn {
  padding: 24px 60px;
  font-size: 38px;
  border-radius: 16px;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  --primary-color: #ac20ee;
  --hovered-color: #00bfff;
  position: relative;
  display: inline-block;
  font-weight: 700;
  font-size: 28px;
  align-items: center;
  font-family: 'Arial', sans-serif;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.animated-btn p {
  margin: 0;
  position: relative;
  font-size: 38px;
  color: var(--primary-color);
  font-weight: 700;
}

.animated-btn::after {
  position: absolute;
  content: "";
  width: 0;
  left: 0;
  bottom: -7px;
  background: var(--hovered-color);
  height: 2px;
  transition: 0.3s ease-out;
}

.animated-btn p::before {
  position: absolute;
  content: "Register!";
  width: 0%;
  inset: 0;
  color: var(--hovered-color);
  overflow: hidden;
  transition: 0.3s ease-out;
}

.animated-btn:hover::after {
  width: 100%;
}

.animated-btn:hover p::before {
  width: 100%;
}

.animated-btn:hover svg {
  transform: translateY(-50%) translateX(4px);
  color: var(--hovered-color);
}

.animated-btn svg {
  color: var(--primary-color);
  transition: 0.2s;
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  transition-delay: 0.2s;
}

.center-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 0 16px #ac20ee) drop-shadow(0 0 32px #ac20ee88);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), filter 0.3s cubic-bezier(0.4,0,0.2,1);
  animation: logo-pulse 2.5s infinite alternate;
}
.center-img:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 0 32px #ac20ee) drop-shadow(0 0 48px #ac20ee);
}
@keyframes logo-pulse {
  0% { filter: drop-shadow(0 0 16px #ac20ee) drop-shadow(0 0 32px #ac20ee88); }
  100% { filter: drop-shadow(0 0 32px #ac20ee) drop-shadow(0 0 64px #ac20ee); }
}

.grid-item, .sponsor-item, .btn {
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1), box-shadow 0.5s cubic-bezier(0.4,0,0.2,1), background-color 0.5s cubic-bezier(0.4,0,0.2,1);
}

#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0.5; /* Adjust for desired darkness */
  pointer-events: none; /* So it doesn't block clicks */
  filter: blur(2px) brightness(0.7);
}

.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(172,32,238,0.3) 0%, rgba(0,191,255,0.2) 100%);
  animation: gradientMove 8s ease-in-out infinite alternate;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 16px; height: 16px;
  background: radial-gradient(circle, #ac20ee 0%, #00bfff 100%);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 12s linear infinite;
}

.particle:nth-child(1) { left: 10vw; top: 80vh; animation-delay: 0s; }
.particle:nth-child(2) { left: 30vw; top: 60vh; animation-delay: 2s; }
.particle:nth-child(3) { left: 60vw; top: 90vh; animation-delay: 4s; }
.particle:nth-child(4) { left: 80vw; top: 70vh; animation-delay: 6s; }
.particle:nth-child(5) { left: 50vw; top: 85vh; animation-delay: 8s; }

@keyframes float {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { opacity: 1; }
  100% { transform: translateY(-90vh) scale(1.3); opacity: 0; }
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px 40px;
  margin: 32px auto;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
}

.card-row .card-container {
  flex: 0 0 auto;
  margin: 0;
  width: 280px;
  max-width: 280px;
  min-width: 280px;
  align-items: center;
}
.card-row, .sponsor-row, .countdown-outer {
  background: none;
  border-radius: 0;
  padding: 32px 0 0 0;
}
.card-row, .sponsor-row {
  justify-content: center;
  align-items: flex-start;
  gap: 40px 40px;
  margin: 32px auto;
  width: 100%;
  max-width: 1200px;
}
.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px 40px;
  margin: 32px auto;
  max-width: 1000px;
  width: 100%;
}
.sponsor-row .card {
  width: 220px;
  height: 280px;
  margin: 0;
  flex: 0 0 220px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.sponsor-row .card-inner {
  box-sizing: border-box; /* Add this line */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  font-size: 1.1rem;
  color: #ac20ee;
  text-align: center;
}
.sponsor-row .card-inner h2 {
  font-size: 1.5rem;
  color: #ac20ee;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-align: center;
  transition: color 0.2s, text-shadow 0.2s;
}
.sponsor-row .card-inner p {
  font-size: 1rem;
  color: #cfc6e6;
  margin: 0;
  text-align: center;
  font-weight: 600;
  transition: color 0.2s, text-shadow 0.2s;
}
.sponsor-row .card-inner h2:hover,
.sponsor-row .card-inner p:hover {
  color: #fff;
  text-shadow: 0 0 8px #ac20ee;
}
@media (max-width: 1000px) {
  .sponsor-row {
    max-width: 700px;
    gap: 24px 24px;
  }
  .sponsor-row .card {
    width: 45vw;
    max-width: 220px;
    flex: 1 1 45vw;
  }
}
@media (max-width: 700px) {
  .sponsor-row {
    max-width: 95vw;
    gap: 16px 16px;
  }
  .sponsor-row .card {
    width: 90vw;
    max-width: 100%;
    flex: 1 1 90vw;
  }
  
  /* Medium mobile improvements */
  .spectrum-title {
    font-size: 2rem;
  }
  
  .center-img {
    width: 85px;
    height: 85px;
  }
  
  .countdown-outer {
    width: 300px;
    height: 150px;
  }
  
  .countdown-text {
    font-size: 2.5rem;
  }
  
  .register-buttons-top {
    top: 25px;
    right: 18px;
    transform: scale(0.9);
  }
  
  .register-buttons-top.scrolled {
    transform: scale(0.8);
    top: 20px;
    right: 12px;
  }
  
  .button-row {
    gap: 24px;
  }
  
  .btn {
    padding: 0.65em 0.9em;
    font-size: 16px;
  }
  
  .learn-more-btn {
    padding: 0.65em 0.9em;
    font-size: 16px;
  }
}
@media (max-width: 600px) {

  /* Set a single column layout for all card and sponsor rows */
  .card-row,
  .sponsor-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px; /* A consistent horizontal padding */
  }

  /* Make sure card containers and the cards themselves are full width */
  .card-container,
  .card-row .card,
  .sponsor-row .card {
    width: 100%;
    max-width: 100%;
    height: auto; /* Let the height be determined by content */
  }

  /* Adjust fonts and padding inside the cards for mobile */
  .card-inner,
  .sponsor-row .card-inner {
    padding: 16px; /* Use a single, consistent padding value */
    font-size: 1rem;
  }

  .card-inner h2,
  .sponsor-row .card-inner h2 {
    font-size: 1.2rem;
  }

  .card-inner p,
  .sponsor-row .card-inner p {
    font-size: 0.95rem;
  }

  /* Adjust other elements for small screens */
  .countdown-outer {
    width: 100%;
    height: auto;
  }

  .register-buttons-top {
    position: static;
    transform: none;
    margin: 16px auto; /* Center the button below the countdown */
  }
  .card-container{
    height: 50px;
  }
}
  
  .register-buttons-top.scrolled {
    transform: scale(0.85);
    top: 25px;
    right: 15px;
  }
  
  .btn {
    padding: 0.65em 0.9em;
    font-size: 16px;
  }
  
  .learn-more-btn {
    padding: 0.65em 0.9em;
    font-size: 16px;
  }
  .card {
    padding: 5px; 
    min-height: 240px; /* Was previously a fixed height */
    /* Other styles remain the same */
  }
@media (max-width: 600px) {
  .sponsor-row, .card-row {
    max-width: 99vw;
    gap: 12px 12px;
  }
  /* Reduce outer holder padding on mobile to remove unusual gap */
  .card {
    padding: 4px;
  }
  .sponsor-row .card, .card-row .card {
    width: 80vw;
    max-width: 90vw;
    flex: 1 1 90vw;
    height: 180px; /* Reduced holder height */
  }
  .card-inner, .sponsor-row .card-inner {
    font-size: 0.95rem;
    padding: 10px 8px;
    width: 100%;
    height: 150px; /* Adjusted inner height to fit holder */
    box-sizing: border-box;
  }
  .card-inner h2, .sponsor-row .card-inner h2 {
    font-size: 1rem;
  }
  .card-inner p, .sponsor-row .card-inner p {
    font-size: 0.85rem;
  }
  /* Keep Learn More button close to the card and centered */
  .card-container .learn-more-btn {
    margin: 8px auto 0 auto;
    display: inline-block;
  }
  .card {
    padding: 5px;
  }
}

/* Disable hover transform only on devices without hover (most touch devices) */
@media (hover: none) {
  .card:hover {
    transform: none;
  }
}
.section-divider {
  border: none;
  border-top: 1.5px solid #ac20ee;
  margin: 32px auto;
  width: 70%;
  border-radius: 2px;
  opacity: 0.4;
}
.wm {
  opacity: 0;
}
html, body {
  overflow-x: hidden;
}
.card-row, .sponsor-row {
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
.sponsor-row .card, .card-row .card {
  max-width: 96vw;
  width: 96vw;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 601px) {
  .sponsor-row .card, .card-row .card {
    width: 220px;
    max-width: 220px;
  }
}
.center-img {
  max-width: 90vw;
  height: auto;
  margin-top: 16px;
  margin-bottom: 16px;
}
/* Restore original countdown style */
.countdown-outer {
  width: 560px;
  height: 260px;
  border-radius: 10px;
  padding: 1px;
  background: none;
  position: relative;
  margin: 0 auto 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.countdown-dot {
  width: 5px;
  aspect-ratio: 1;
  position: absolute;
  background-color: #ac20ee;
  box-shadow: 0 0 10px #ac20ee;
  border-radius: 100px;
  z-index: 2;
  right: 10%;
  top: 10%;
  animation: countdown-moveDot 6s linear infinite;
}
@keyframes countdown-moveDot {
  0%,
  100% {
    top: 30px;
    right: -50px; /* Increased negative value to start further left, making the revolution wider */
  }
  25% {
    top: 30px;
    right: calc(100% + 50px); /* Increased positive offset to end further right, making the revolution wider */
  }
  50% {
    top: calc(100% + 15px);
    right: calc(100% + 50px); /* Keep consistent with 25% for the rightmost point */
  }
  75% {
    top: calc(100% + 15px);
    right: -50px; /* Keep consistent with 0%/100% for the leftmost point */
  }
}
.countdown-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 10rem;
  font-weight: bolder;
  background: linear-gradient(45deg, #ac20ee 20%, #fff 50%, #ac20ee 80%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
.countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #ac20ee;
  text-align: center;
  letter-spacing: 0.15em;
  font-weight: bold;
}

/* Allow large text to render beyond the fixed box if needed */
.countdown-outer { overflow: visible; }

/* Desktop: scale countdown responsively without relying on rem only */
@media (min-width: 1024px) {
  .countdown-text {
    font-size: clamp(6rem, 12vw, 18rem);
    line-height: 1;
    white-space: nowrap;
  }
  .countdown-label {
    font-size: clamp(1.6rem, 2vw, 3rem);
  }
}


/* Fix card/sponsor row layout */
.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 32px auto;
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
  justify-items: center;
}
.sponsor-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 32px auto;
  max-width: 740px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 8px;
  padding-right: 8px;
  justify-items: center;
}
.card-row .card, .sponsor-row .card {
  width: 220px;
  height: 280px;
  margin: 0 0 16px 0; /* add breathing room under the card */
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
}
@media (max-width: 1000px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    gap: 24px;
  }
  .sponsor-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 480px;
    gap: 24px;
  }
  .card-row .card, .sponsor-row .card {
    width: 45vw;
    max-width: 300px;
  }
}
@media (max-width: 600px) {
  /* Set a single column layout for all card and sponsor rows */
  .card-row,
  .sponsor-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px; /* A consistent horizontal padding */
  }

  /* Make sure card containers and the cards themselves are full width */
  .card-container,
  .card-row .card,
  .sponsor-row .card {
    width: 100%;
    max-width: 100%;
    height: auto; /* Let the height be determined by content */
  }

  /* Adjust fonts and padding inside the cards for mobile */
.card-inner, .sponsor-row .card-inner {
  font-size: 0.95rem;
  padding: 10px 8px;
  width: 100%;
  height: auto; /* Remove this line */
  box-sizing: border-box;
}

  .card-inner h2,
  .sponsor-row .card-inner h2 {
    font-size: 1.2rem;
  }

  .card-inner p,
  .sponsor-row .card-inner p {
    font-size: 0.95rem;
  }

  /* Adjust other elements for small screens */
  .countdown-outer {
    width: 100%;
    height: auto;
  }

  .register-buttons-top {
    position: static;
    transform: none;
    margin: 16px auto; /* Center the button below the countdown */
  }
  .sponsor-row .card, .card-row .card {
  width: 80vw;
  max-width: 90vw;
  flex: 1 1 90vw;
  min-height: 180px;
  height: auto;
}
}
  .countdown-outer {
    width: 320px;
    max-width: 320px;
    height: 160px;
    padding: 1px;
  }
  .countdown-text {
    font-size: 2.2rem;
  }
  .slideshow-container {
    max-width: 95vw;
    margin: 16px auto;
  }
  .slide {
    max-height: 60vh;
    border-radius: 12px;
  }
  
  /* Mobile-specific improvements */
  .register-buttons-top {
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1000;
    transform: scale(0.8);
  }
  
  .register-buttons-top.scrolled {
    transform: scale(0.7);
    top: 15px;
    right: 10px;
  }
  
  .spectrum-title {
    font-size: 1.8rem;
    margin-top: 8px;
    margin-bottom: 0;
  }
  
  .center-img {
    width: 80px;
    height: 80px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  
  .button-row {
    gap: 20px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  
  .btn {
    padding: 0.6em 0.8em;
    font-size: 15px;
  }
  
  .learn-more-btn {
    padding: 0.6em 0.8em;
    font-size: 15px;
  }
  
  .animated-btn {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .animated-btn p {
    font-size: 16px;
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }

  /* When the top-right button is relocated below the countdown on mobile */
  .register-buttons-top.moved-mobile {
    position: static;
    transform: none;
    margin: 12px auto 0 auto;
  }
  
  .countdown-dot {
    width: 4px;
    right: 8%;
    top: 8%;
  }
  
  .section-divider {
    margin: 24px auto;
    width: 80%;
  }
  
  h6 {
    font-size: 0.8rem;
    margin: 8px 0;
  }
  
  /* Extra small mobile improvements */
  @media (max-width: 400px) {
    .spectrum-title {
      font-size: 1.6rem;
    }
    
    .center-img {
      width: 70px;
      height: 70px;
    }
    
    .countdown-outer {
      width: 280px;
      height: 140px;
    }
    
    .countdown-text {
      font-size: 2rem;
    }
    
    .countdown-label {
      font-size: 0.7rem;
    }
    
    .register-buttons-top {
      top: 15px;
      right: 10px;
      transform: scale(0.7);
    }
    
    .register-buttons-top.scrolled {
      transform: scale(0.6);
      top: 10px;
      right: 8px;
    }
    
    .button-row {
      gap: 16px;
    }
    
    .btn {
      padding: 0.5em 0.7em;
      font-size: 14px;
    }
    
    .learn-more-btn {
      padding: 0.5em 0.7em;
      font-size: 14px;
    }
    
    .animated-btn {
      padding: 10px 16px;
      font-size: 14px;
    }
    
    .animated-btn p {
      font-size: 14px;
    }
    
    .card-inner h2 {
      font-size: 1.1rem;
    }
    
    .card-inner p {
      font-size: 0.9rem;
    }
  }
.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px; /* extra space so hover scaling doesn't overlap button */
  margin-bottom: 20px;
  width: 100%;
  max-width: 280px;
  justify-content: flex-start;
}

.learn-more-btn {
  margin-top: 8px;
  display: inline-block;
  text-align: center;
  padding: 0.7em 1em;
  font-size: 17px;
  font-weight: bold;
}
.learn-more-btn,
.learn-more-btn:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: transparent !important;
}
.btn.cube,
.btn.cube:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: transparent !important;
}
.btn,
.btn:visited,
.btn:hover,
.btn:active,
.cube,
.cube:visited,
.cube:hover,
.cube:active,
.register-btn,
.register-btn:visited,
.register-btn:hover,
.register-btn:active,
.learn-more-btn,
.learn-more-btn:visited,
.learn-more-btn:hover,
.learn-more-btn:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
  text-decoration-style: none !important;
  text-decoration-color: transparent !important;
}
/* Card container: height is now auto to shrink-wrap the content */
.card {
  height: auto;
  min-height: 250px; /* Ensures a consistent minimum size */
  /* Other styles remain the same */
}

/* Inner content area: content is now aligned to the top */
.card-inner {
  justify-content: flex-start;
  /* Other styles remain the same */
}
@media (max-width: 768px) {
  .card-inner {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    font-size: 24px;
  }
  
  .card-inner h2 {
    font-size: 1.3rem;
  }
  
  .card-inner p {
    font-size: 0.95rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .card-inner {
    min-height: 180px;
    padding: 14px;
    font-size: 20px;
  }
  
  .card-inner h2 {
    font-size: 1.2rem;
  }
  
  .card-inner p {
    font-size: 0.9rem;
  }
}
@media (max-width: 600px) {
  .card-inner {
    padding: 10px 8px 8px 8px; /* Reduced bottom padding from 10px to 8px */
  }
}

@media (max-width: 480px) {
  .card-inner {
    padding: 14px 8px 8px 8px; /* Reduced bottom padding */
  }
}