/* ---------------- FF Unit Pro ---------------- */
@font-face {
  font-family: 'FF Unit Pro';
  src: url('fonts/FFUnitPro-Light.woff2') format('woff2'),
       url('fonts/FFUnitPro-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FF Unit Pro';
  src: url('fonts/FFUnitPro-Regular.woff2') format('woff2'),
       url('fonts/FFUnitPro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FF Unit Pro';
  src: url('fonts/FFUnitPro-Medium.woff2') format('woff2'),
       url('fonts/FFUnitPro-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FF Unit Pro';
  src: url('fonts/FFUnitPro-Bold.woff2') format('woff2'),
       url('fonts/FFUnitPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------- Refrigerator Deluxe ---------------- */
@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe-Light.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe-Bold.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe-ExtraBold.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Refrigerator Deluxe';
  src: url('fonts/RefrigeratorDeluxe-Heavy.woff2') format('woff2'),
       url('fonts/RefrigeratorDeluxe-Heavy.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------------- COLORS ---------------- */
:root {
  --red: #FF2D4F;
  --white: #FFF;
  --black: #151515;
  --grey: #818181;
  --red-rgb: 255, 45, 79;
  --white-rgb: 255, 255, 255;
  --black-rgb: 21, 21, 21;
  --grey-rgb: 129, 129, 129;
}

/* ---------------- RESET ---------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'FF Unit Pro', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.4;
}
body.menu-open {
  overflow: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ---------------- LAYOUT ---------------- */
.bodyWrapper {
  position: relative; /* not fixed */
  width: 100%;
}


body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/noise.png') repeat;
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

.pageWrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Make anchor links align correctly below fixed navbar */
#competitions {
  scroll-margin-top: 100px; /* adjust based on your navbar height */
}

#competitions {
  scroll-margin-top: 90px; /* desktop */
}

@media (max-width: 768px) {
  #competitions {
    scroll-margin-top: 70px; /* mobile/tablet */
  }
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  width: 100%;
  padding: 1rem 2rem;
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
}
.nav-wrapper {
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: inline-block;
  line-height: 0;
  display: flex;
  align-items: center;
}
.links {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.navbar-link a {
  position: relative;
  font-size: 1.25rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white);
  transition: opacity 0.3s ease;
}
.navbar-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.navbar-link a:hover {
  opacity: 1;
}
.navbar-link a:hover::after,
.navbar-link a.active::after {
  transform: scaleX(1);
}
.navbar-cta {
  display: flex;
  align-items: center;
}

/* ---------------- HAMBURGER ---------------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.hamburger div {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: background 0.3s ease;
}
@media (max-width: 1200px) {
  .links,
  .navbar-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ---------------- MOBILE MENU ---------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0rem 2rem 2rem;
  z-index: 2000;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
}
.mobile-menu-header .logo svg {
  height: 50px;
  width: auto;
}
.close-menu {
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.close-menu svg {
  width: 36px;
  height: 36px;
  stroke: var(--white);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.close-menu:hover {
  transform: rotate(90deg);
  opacity: 0.7;
}

/* ---------------- MOBILE LINKS ---------------- */
.mobile-menu-links ul {
  list-style: none;
  width: 100%;
}
.mobile-menu-links li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 2px dashed rgba(var(--white-rgb), 0.2);
  border-image: repeating-linear-gradient(
    to right,
    rgba(var(--white-rgb), 0.6) 0,
    rgba(var(--white-rgb), 0.6) 16px,
    transparent 16px,
    transparent 28px
  ) 1;
}
.mobile-menu-links a {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s ease;
}
.mobile-menu-links a:hover {
  color: var(--red);
}
.mobile-menu-links .svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  margin-left: 10px;
  margin-right: 12px;
}
.mobile-menu-links .svg svg path {
  stroke: var(--red);
  transition: transform 0.3s ease;
}
.mobile-menu-links li:hover .svg svg path {
  transform: translateX(6px);
}

/* ---------------- MOBILE CTA (fixed) ---------------- */
.mobile-menu-cta-fixed {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 2100;
  display: none;
  max-width: calc(100% - 40px);
}
.mobile-menu-cta-fixed .btn-icon.btn-wrapper {
  width: auto;
  max-width: 260px;
}

/* ---------------- MOBILE SOCIALS ---------------- */
.mobile-menu-socials {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  gap: 1.5rem;
  font-size: 1.8rem;
}
.mobile-menu-socials a {
  color: var(--white);
  transition: color 0.3s ease;
}
.mobile-menu-socials a:hover {
  color: var(--red);
}

/* ---------- Small screen adjustments ---------- */

/* Tablet vertical (portrait) */
@media (max-width: 1024px) and (min-width: 769px) {
  .mobile-menu-cta-fixed,
  .mobile-menu-socials {
    bottom: 60px; /* safe spacing in portrait */
  }
}

/* Tablet horizontal (landscape, short height) */
@media (max-height: 820px) {
  .mobile-menu-cta-fixed,
  .mobile-menu-socials {
    bottom: 60px; /* also raise them when screen is short */
  }
}

@media (max-width: 480px) {
  .mobile-menu-cta-fixed {
    position: static;
    margin: 1rem 0 0;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }
  .mobile-menu-socials {
    position: static;
    margin: 1rem 0;
    justify-content: center;
  }
  .mobile-menu {
    padding-bottom: 6rem;
  }
  .mobile-menu-links {
    flex: 1;
  }
  .mobile-menu-cta-fixed .btn-icon.btn-wrapper {
    max-width: 100%;
  }
}

/* ---------------- BUTTONS ---------------- */
.btn-primary.btn-wrapper,
.btn-secondary.btn-wrapper,
.btn-icon.btn-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Shared styles */
.btn-primary.btn-wrapper button,
.btn-primary.btn-wrapper a,
.btn-secondary.btn-wrapper button,
.btn-secondary.btn-wrapper a {
  font-family: 'FF Unit Pro', sans-serif;
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(0.8em + 1px) 1.6em;
  background: transparent;
  border: none;
  color: var(--white);
  z-index: 2;
  cursor: pointer;
  transition: color 0.5s ease;
  text-decoration: none;
}

/* Primary */
.btn-primary.btn-wrapper {
  background: var(--red);
}
.btn-primary .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}
.btn-primary.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}
.btn-primary.btn-wrapper:hover button,
.btn-primary.btn-wrapper:hover a {
  color: var(--black);
}

/* ---------------- Secondary Button ---------------- */
.btn-secondary.btn-wrapper {
  background: transparent;
  border: 1px solid var(--white);
}
.btn-secondary .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}
.btn-secondary.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}
.btn-secondary.btn-wrapper:hover button,
.btn-secondary.btn-wrapper:hover a {
  color: var(--black);
}

/* ---------------- Secondary Button with Right Icon ---------------- */
.btn-secondary-icon.btn-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--white);
}

.btn-secondary-icon .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}

.btn-secondary-icon a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.6em 1.4em;
  font-family: 'FF Unit Pro', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  color: var(--white);
  z-index: 2;
  transition: color 0.5s ease;
}

.btn-secondary-icon.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}

.btn-secondary-icon.btn-wrapper:hover a {
  color: var(--black);
}

.btn-secondary-icon .iconArea {
  position: relative;
  width: 0.9em;
  height: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.btn-secondary-icon .icon,
.btn-secondary-icon .icon__hidden {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.btn-secondary-icon .icon {
  transform: translate(-50%, -50%) translate(0, 0);
}
.btn-secondary-icon .icon__hidden {
  transform: translate(-50%, -50%) translate(-20px, 20px);
}

.btn-secondary-icon.btn-wrapper:hover .icon {
  transform: translate(-50%, -50%) translate(20px, -20px);
}
.btn-secondary-icon.btn-wrapper:hover .icon__hidden {
  transform: translate(-50%, -50%) translate(0, 0);
}

.btn-secondary-icon .icon svg path,
.btn-secondary-icon .icon__hidden svg path {
  fill: var(--white);
  transition: fill 0.3s ease;
}
.btn-secondary-icon.btn-wrapper:hover .icon svg path,
.btn-secondary-icon.btn-wrapper:hover .icon__hidden svg path {
  fill: var(--black);
}

/* Icon button (Register/Login) */
.btn-icon.btn-wrapper {
  background: var(--red);
  border: none;
}
.btn-icon.btn-wrapper a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4em 1em;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 300;
  text-transform: uppercase;
  transition: color 0.5s ease;
  z-index: 2;
}
.btn-icon .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}
.btn-icon.btn-wrapper:hover .fillElement {
  transform: translateX(0);
}
.btn-icon.btn-wrapper:hover a {
  color: var(--black);
}
.btn-icon .iconArea {
  position: relative;
  width: 0.9em;
  height: 0.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.btn-icon .icon,
.btn-icon .icon__hidden {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.btn-icon .icon {
  transform: translate(-50%, -50%) translate(0, 0);
}
.btn-icon .icon__hidden {
  transform: translate(-50%, -50%) translate(-20px, 20px);
}
.btn-icon.btn-wrapper:hover .icon {
  transform: translate(-50%, -50%) translate(20px, -20px);
}
.btn-icon.btn-wrapper:hover .icon__hidden {
  transform: translate(-50%, -50%) translate(0, 0);
}
.btn-icon .icon svg,
.btn-icon .icon__hidden svg {
  width: 100%;
  height: 100%;
  display: block;
}
.btn-icon .icon svg path,
.btn-icon .icon__hidden svg path {
  fill: var(--white);
  transition: fill 0.3s ease;
}
.btn-icon.btn-wrapper:hover .icon svg path,
.btn-icon.btn-wrapper:hover .icon__hidden svg path {
  fill: var(--black);
}

/* ---------------- HERO ---------------- */

#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 5vw 4vw;
  background: var(--black);
  overflow: hidden;
}

.hero-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 90%;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Refrigerator Deluxe', sans-serif;
  font-size: clamp(2.5rem, 10vw, 12.75rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: 'FF Unit Pro', sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  max-width: 55ch;
  margin: 0 auto 0.75rem;
  padding: 0 1rem;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    gap: 1rem;
  }

  .hero-buttons .btn-wrapper {
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
  }
}

/* ---------------- VIDEOS ---------------- */

.videos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.video {
  position: absolute;
  z-index: 10;
}

.video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  border-radius: 6px;
}

.videos__mobile {
  display: none;
}

.videos__desktop .video--0 {
  left: 50%;
  top: -6rem;
  transform: translateX(-50%);
  width: 16vw;
}

.videos__desktop .video--1 {
  left: 12%;
  top: 20%;
  width: 16.5vw;
}

.videos__desktop .video--2 {
  left: 62%;
  top: 40%;
  width: 23vw;
}

.videos__desktop .video--3 {
  right: -5%;
  top: 10%;
  width: 16.5vw;
}

.videos__desktop .video--4 {
  left: -17%;
  bottom: 20%;
  width: 23vw;
}

.videos__desktop .video--5 {
  right: -8%;
  bottom: 10%;
  width: 12vw;
}

.videos__desktop .video--6 {
  right: 55%;
  bottom: 0%;
  width: 18vw;
}

/* ---------------- MOBILE VIDEOS ---------------- */

@media (max-width: 768px) {
  .videos__desktop {
    display: none;
  }

  .videos__mobile {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }

  .videos__mobile .video {
    position: absolute;
    z-index: 5;
  }

  .videos__mobile video {
    width: 42vw;
    height: auto;
    object-fit: cover;
    opacity: 0.35;
    border-radius: 6px;
  }

  .videos__mobile .video--0 {
    top: -4%;
    left: 5%;
    width: 46vw;
  }

  .videos__mobile .video--1 {
    top: 25%;
    left: 55%;
    width: 38vw;
  }

  .videos__mobile .video--2 {
    bottom: 20%;
    left: 0;
    width: 44vw;
  }

  .videos__mobile .video--3 {
    bottom: -6%;
    right: 2%;
    width: 50vw;
  }
}

/* ---------------- COMPETITIONS SECTION ---------------- */
.competitions {
  padding: 8rem 2rem;
  background: var(--red);
  color: var(--white);
  text-align: center;
  position: relative;
  line-height: 1;
}

/* ---------------- SECTION HEADER ---------------- */
.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.section-label {
  font-family: 'FF Unit Pro', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* pulsing circle for "Meet the Squad" */
.section-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* solid center dot */
.section-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  z-index: 2;
}

/* soft glowing pulse */
.section-label::after {
  content: "";
  position: absolute;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.6;
  z-index: 1;
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  70% {
    transform: scale(3);
    opacity: 0;
    box-shadow: 0 0 20px 10px rgba(255, 255, 255, 0.2);
  }
  100% {
    transform: scale(1);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Section title styling */
.section-title {
  font-family: 'Refrigerator Deluxe', sans-serif;
  font-size: clamp(2.5rem, 10vw, 9rem);
  margin-bottom: 2rem;
  text-transform: uppercase;
}



/* ---------------- CAROUSEL ---------------- */
.competitions-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  padding: 2rem;
  margin: 0 -1rem;

  height: 65vh;
  align-items: center;
  cursor: grab;

  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.competitions-carousel:active {
  cursor: grabbing;
}

.competitions-carousel::-webkit-scrollbar {
  display: none;
}

.competitions-carousel * {
  -webkit-user-drag: none;
  user-select: none;
}

/* ---------------- CARD ---------------- */
.competition-card {
  flex: 0 0 auto;
  background: var(--black);
  min-width: 30%;
  height: 100%;
  position: relative;
  border-radius: 0;
  cursor: grab;
  transform-origin: center;
  transition: transform 0.4s ease;
  margin: 1rem;
}

.competition-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed transparent;
  border-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.25) 0 12px,
    transparent 12px 24px
  ) 1;
  pointer-events: none;
  z-index: 3;
}

.card-border {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: inherit;
}

.competition-card:hover {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1;
  transition: background 0.4s ease;
}

.card-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.competition-card h3 {
  font-family: 'Refrigerator Deluxe', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1rem;
  z-index: 2;
  pointer-events: none;
}

/* ---------------- CARD BUTTON ---------------- */
.card-btn-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
}

.card-btn-wrapper a {
  font-family: 'FF Unit Pro', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.6em 1.2em;
  background: transparent;
  color: var(--white);
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: color 0.5s ease;
  text-decoration: none;
  user-select: auto;
  pointer-events: auto;
}

.card-btn-wrapper .fillElement {
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
  z-index: 1;
}

.card-btn-wrapper:hover .fillElement {
  transform: translateX(0);
}
.card-btn-wrapper:hover a {
  color: var(--black);
}

/* Hide the mobile-only button by default */
.btn-mobile-involved {
  display: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .btn-mobile-involved {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
  }
}

/* Tablet (768px–1024px): flickable carousel */
@media (max-width: 1024px) and (min-width: 769px) {
  .competitions-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* native iOS flick */
    scroll-snap-type: x proximity;      /* smoother than mandatory */
    gap: 1rem;
    height: auto;
    padding: 1rem;
  }

  .competition-card {
    flex: 0 0 75%;       /* bigger = easier to flick */
    scroll-snap-align: center;
    scroll-snap-stop: always; /* prevents overscrolling past cards */
  }
}

/* Mobile (<=768px): stacked grid */
@media (max-width: 768px) {
  .section-top { 
    display: none; 
  }

  .competitions-carousel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow-x: hidden; /* grid = vertical stack */
    height: auto;
    padding: 1rem;
    margin: 0;
  }

  .competition-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    transform: none !important;
  }

  /* fallback if aspect-ratio isn’t supported */
  .competition-card::before {
    content: "";
    display: block;
    padding-top: 100%;
  }

  .competition-card .card-border,
  .competition-card .card-content {
    position: absolute;
    inset: 0;
  }

  .btn-mobile-involved {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
  }
}

/* ---------------- DRAG CURSOR ---------------- */
.drag-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  background: white;
  color: var(--black);
  font-family: 'FF Unit Pro', sans-serif;
  font-size: 0.85rem;
  padding: 6px 12px;
  text-transform: uppercase;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.drag-cursor.visible {
  opacity: 1;
  transform: scale(1);
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 2rem 4vw;
  border-top: 2px dashed rgba(255, 255, 255, 0.25);
  border-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.25) 0 12px,
    transparent 12px 24px
  ) 1;
}
.footer-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-left .footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.9;
}
.footer-right {
  flex: 2;
  display: flex;
  justify-content: flex-end;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1rem 3rem;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.3s ease;
}
.footer-nav a:hover {
  color: var(--red);
}
.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}
.footer-bottom p {
  margin: 0;
}
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    justify-content: center;
  }
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}
