@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Quicksand:wght@300..700&family=Russo+One&family=Syncopate:wght@400;700&display=swap");
:root {
  --header-height: 70px;
  --accent-glow: #00f0ff;
  --color-primary-hover: #00a8cc;
  --color-background: #0d0d0d;
  --color-card-bg: #1e1e1e;
  --color-text: #ffffff;
  --color-border: #444444;
  --border-radius: 12px;
  --transition-speed: 0.3s;
  --sustainability-highlight: #2ecc71;
  --sustainability-shadow: rgba(46, 204, 113, 0.3);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background-color: black;
  height: 100%;
  width: 100%;
  background-color: black;
  color: white;
  overflow-x: hidden;
  font-family: "Quicksand", sans-serif;
}

/* ============================================= */
/* == Preloader style                 == */
/* ============================================= */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--accent-glow);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================= */
/* ==        HEADER COMPONENT STYLES          == */
/* ============================================= */

.site-header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(10, 10, 10, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: normal;
  font-family: "Russo One", sans-serif;
  color: #fff;
  position: relative;
}

.header-logo a {
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.hopper-text {
  color: #00f0ff;
}

#logo {
  position: relative;
  height: 45px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  bottom: 4px;
  filter: contrast(100) brightness(100);
}

.main-nav {
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #00f0ff;
}
.nav-btn {
  position: relative;
  padding: 0.5rem 1rem;
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.sustainability-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 48px 10px 20px;
  border-radius: 50px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a8a77, #015c61);
  color: #ffffff !important;
  font-family: "Quicksand", sans-serif;
  font-weight: 700 !important;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2),
              inset 0 2px 2px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sustainability-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.sustainability-btn:hover::before {
  left: 100%;
}

.sustainability-text,
.leaf-icon {
  position: relative;
  z-index: 1;
  transform: translateZ(25px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sustainability-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.leaf-icon {
  position: absolute;
  right: 6px;
  width: 33px;
  height: 33px;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  /* padding: 5px; */
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: pulse 3s infinite ease-in-out;
}

.sustainability-btn:hover {
  transform: translateY(-2px) scale(1.02) translateZ(-5px);
  box-shadow: 0 8px 25px rgba(26, 188, 156, 0.4),
              inset 0 2px 2px rgba(255, 255, 255, 0.2);
}

.sustainability-btn:hover .leaf-icon {
  transform: scale(1.3) rotate(15deg) translateX(-5px);
}

.sustainability-btn:hover .sustainability-text {
  transform: translateZ(10px);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@media (max-width: 768px) {
  .sustainability-btn {
    padding: 10px 20px 10px 16px;
    font-size: 0.9rem;
  }

  .leaf-icon {
    width: 28px;
    height: 28px;
    padding: 4px;
  }
}

.header-actions-desktop {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.searchbar-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.searchbar-container {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 300px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

.searchbar-container:hover {
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.searchbar-container i {
  color: #ccc;
  position: absolute;
  left: 16px;
  font-size: 1rem;
  pointer-events: none;
}

.searchbar {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  border-radius: 12px;
  color: white;
}

.searchbar:focus {
  outline: none;
}

.searchbar::placeholder {
  color: #bbb;
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: -100px;
  right: 20px;
  background: rgba(17, 17, 25, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 240, 255, 0.1);
  backdrop-filter: blur(14px);
  z-index: 999;
  display: none;
  overflow-y: scroll;
  max-height: 320px;
}

.search-results-list {
  list-style: none;
  padding: 0.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  /* overflow-y: scroll; */
}

.result-item {
  list-style: none;
}

.result-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #e0e0e0;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  border-left: 3px solid transparent;
}

.result-link:hover,
.result-link:focus {
  background-color: rgba(0, 240, 255, 0.1);
  color: #fff;
  transform: translateX(5px);
  border-left-color: var(--accent-glow);
}

.result-image {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.result-title {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-results {
  padding: 1.5rem 1rem;
  text-align: center;
  color: #aaa;
}

.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb {
  background: var(--accent-glow);
  border-radius: 4px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #00d0ff;
}

.signin-btn {
  border: 1px solid #dcdce0;
  border-radius: 12px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.signin-btn:hover {
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.signin-btn a {
  display: block;
  padding: 0.5rem 1rem;
  color: #e1e0e0;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.signin-btn:hover a {
  color: #00f0ff;
}

.hamburger {
  display: none;
}

/* ----- 2. MOBILE NAVIGATION OVERLAY DESIGN ----- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* background: rgba(10, 10, 10, 0.9); */
  backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  opacity: 0;
  transform: translateX(-100%);
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.mobile-nav-overlay.active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  /* justify-content: space-between; */
  justify-content: flex-end;
  align-items: center;
  padding: 0.5rem 0.5rem 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  font-family: "Russo One", sans-serif;
}

.close-nav {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

.mobile-search-section {
  padding: 1.1rem 0;
}

.mobile-search-input {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.mobile-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  transform: translateX(10px);
}

.mobile-signin {
  margin-top: 1rem;
}

.mobile-signin .signin-btn {
  width: 100%;
}

.mobile-signin .signin-btn a {
  padding: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

/* ----- 3. RESPONSIVE LOGIC (The Switch) ----- */
@media (max-width: 1024px) {
  .main-nav,
  .header-actions-desktop {
    display: none;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }

  .site-header {
    padding: 0 1.5rem;
    justify-content: space-between;
  }

  .mobile-search-section {
    width: 80%;
    margin: 0 auto;
  }

  .mobile-nav-links {
    width: 50%;
    margin: 0 auto;
    text-align: center;
    /* flex-grow: 0; */
  }

  .mobile-nav-links a {
    background: none;
    width: 100%;
  }

  .header-logo {
    margin-right: 0;
  }

  .mobile-signin {
    width: 30%;
    margin: 0 auto;
  }
}

/* On smaller mobile phones */
@media (max-width: 480px) {
  .site-header {
    padding: 0 0.8rem;
    height: 60px;
    justify-content: space-between;
  }

  .header-logo {
    font-size: 1rem;
    gap: 0px;
  }
  #logo {
    height: 30px;
  }

  .hopper-text {
    font-size: 1.2rem;
  }
  .mobile-nav-links {
    flex-grow: 0;
  }

  .mobile-signin {
    margin-top: 50px;
  }
}

/* main section */
main {
  width: 100%;
  height: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  /* min-height: 85vh; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--header-height) 2rem 2rem;
  overflow: hidden;
}

/* Hero Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background-image 0.8s ease-in-out;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  aspect-ratio: 16/9;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  gap: 2rem;
}

/* Hero Text */
.hero-text {
  position: absolute;
  top: 60px;
  left: -30px;
  flex: 1;
  max-width: 500px;
  padding: 0.9rem 0.5rem;
  background: url("mask.png");
  background-size: cover;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s ease-in-out;
}

.is-fading {
  opacity: 0 !important;
}
.hero-background img,
.hero-text {
  transition: opacity 0.4s ease-in-out;
}

.pagination-dots {
  display: none;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: black;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: white;
}

.contest-title {
  font-family: "syncopate", sans-serif;
  font-size: clamp(3rem, 8vw, 3.8rem);
  font-weight: 500;
  line-height: 1.1;
}

.contest-subtitle {
  font-family: "quicksand", sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  margin-top: 1rem;
  opacity: 0.9;
}

.hero-text .hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(0, 240, 255, 0.1);
  color: var(--accent-glow);
  border: 1px solid var(--accent-glow);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 10px;
  transition: all 0.3s ease;
}

.hero-text .hero-button:hover {
  background-color: var(--accent-glow);
  color: #0d0d0d;
  /* box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2); */
  transform: translateY(-2px);
}

.hero-text .hero-button:hover i {
  transform: translateX(4px);
}

.hero-text .hero-button i {
  transition: transform 0.3s ease;
}

/* ============================================= */
/* HERO SLIDER */
/* ============================================= */
.hero-slider-container {
  flex: 1;
  max-width: 560px;
  padding: 10px 15px;
  position: absolute;
  /* bottom: -300px; */
  top: 60px;
  right: 20px;
  display: flex;
  flex-direction: column-reverse;
}

.slider-controls {
  display: flex;
  justify-content: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
  margin-left: 20px;
}

.slider-btn {
  /* background: rgba(255, 255, 255, 0.8);
  color: black; */
  background: transparent;
  color: white;
  border: 1px solid white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.slider-btn i {
  font-size: 0.8rem;
}

.slider-btn:hover {
  /* background: white; */
  transform: scale(1.1);
}

.hero-pagination {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

/* Slider Window */
.slider-viewport {
  overflow: hidden;
  width: 100%;
  padding: 10px 15px;
  margin-left: 10px;
}

/* Slider Wrapper */
.slider-wrapper {
  touch-action: pan-y;
  display: flex;
  gap: 15px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mini-card {
  flex: 0 0 160px;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mini-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-card-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0.5rem;
  color: white;
  font-family: "Syncopate", sans-serif;
  font-weight: 800;
  font-size: 0.83rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.mini-card.active {
  border: 2px solid #00f0ff;
  transform: scale(1.04) translateY(-5px);
}

/* === RESPONSIVE DESIGN === */

/* On tablets or smaller screens (max-width: 900px) */
@media (max-width: 900px) {
  .hero-section {
    padding: var(--header-height) 1rem 1rem;
  }

  .hero-content {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }

  .hero-text {
    top: 10px;
    left: 10px;
    max-width: 80%;
  }

  .contest-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .contest-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

  .hero-slider-container {
    position: relative;
    bottom: 0;
    top: 200px;
    right: 0;
    max-width: 510px;
    padding: 1rem;
    margin-left: auto;
    /* left: 100px; */
    /* margin-right: auto; */
  }

  .slider-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .mini-card {
    flex: 0 0 140px;
    height: 180px;
  }
}

/* @media (max-width: 768px) {
  .hero-pagination {
    bottom: 20px;
  }
} */

/* On mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .hero-section {
    padding: var(--header-height) 1rem 1rem;
    min-height: 90vh;
  }

  .hero-text {
    max-width: 90%;
    text-align: center;
  }

  .contest-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .contest-subtitle {
    font-size: clamp(1rem, 3vw, 1.1rem);
  }

  .pagination-dots {
    display: flex;
    position: absolute;
    top: 110px;
    right: 140px;
  }

  .slider-controls .slider-btn {
    display: none;
  }

  .hero-slider-container {
    max-width: 100%;
    padding: 0.5rem;
    position: relative;
    bottom: -180px;
  }

  .slider-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: scroll;
    scroll-behavior: smooth;
    padding: 0.7rem 0.2rem;
    visibility: hidden;
  }

  .mini-card {
    flex: 0 0 120px;
    height: 160px;
    opacity: 0;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mini-card img {
    visibility: hidden;
  }

  ::-webkit-scrollbar {
    display: none;
  }
}

/* === TOP TRENDING SECTION === */
.subcontests-section {
  padding: 6rem 2rem;
  height: auto;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.top-trending-contests-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default 2 columns layout */
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
}

/* Cards Container */
.cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default 2 columns layout */
  gap: 1rem;
}

.card {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.mask-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("mask.png");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.card-title-mask {
  position: absolute;
  bottom: 100px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 1.8rem;
  font-family: "syncopate", sans-serif;
  font-weight: 500;
  z-index: 2;
  padding: 0 10px;
}

/* Content Container */
.content-container {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.content-container .contest-title {
  font-family: "Syncopate", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.content-container p {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-glow), #0099cc);
  color: #141617;
  transition: all 0.3s ease;
}

.explore-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.explore-btn i {
  color: #dcdce0;
  transition: transform 0.3s ease;
}

.explore-btn:hover i {
  transform: translateX(4px);
}

/* === RESPONSIVE DESIGN === */

/* On tablets or smaller screens */
@media (max-width: 900px) {
  .top-trending-contests-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    width: 100%;
    height: 200px;
  }

  .content-container {
    padding: 1rem;
  }

  .content-container .contest-title {
    font-size: 2rem;
  }

  .content-container p {
    font-size: 1rem;
  }

  .explore-btn {
    /* padding: 10px 20px; */
    font-size: 0.9rem;
  }
}

/* On mobile devices */
@media (max-width: 480px) {
  .subcontests-section {
    padding: 4rem 1rem 2rem 1rem;
  }

  .top-trending-contests-container {
    padding: 0.5rem;
    /* background: rgba(191, 124, 124, 0.686); */
  }

  .cards-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px 15px;
  }

  .card {
    width: 150px;
    height: 150px;
  }

  .card-title-mask {
    bottom: 50px;
    font-size: 1rem;
  }

  .content-container .contest-title {
    font-size: 1.6rem;
  }

  .content-container p {
    font-size: 0.95rem;
  }

  .explore-btn {
    /* padding: 8px 16px; */
    font-size: 0.85rem;
  }
}

/* ======================================================== */
/* ==   CONTEST EXPLAINER (SCROLLYTELLING) STYLES        == */
/* ======================================================== */
.contest-explainer-section {
  background-color: #0d0d0d; /* Dark background for the section */
  color: #fff;
  position: relative; /* Needed for child positioning */
}

/* Part 1: The full-screen intro */
.explainer-intro {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 2rem;
}

.intro-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Use a nice, abstract background image */
  /* background-image: url("../assets/Images/Miniature/105a9273-f629-4eb1-bd89-c15fadc0d964.jpeg"); */
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.intro-content h1 {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.intro-content p {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  line-height: 1.6;
  color: #e0e0e0;
}

/* Part 2: The scrolling grid */
.explainer-content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* The left column with text */
.explainer-text-column {
  grid-column: 1 / 2; /* Place in the first column */
}

.text-step {
  /* This is CRITICAL: give each step enough height to ensure scrolling */
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  padding-left: 2rem;
  opacity: 0.5; /* We'll make the active one fully opaque with JS */
  transition: opacity 0.4s ease, border-color 0.4s ease;
}

.text-step.active-step {
  opacity: 1;
  border-left-color: var(--accent-glow);
}

.text-step h3 {
  font-family: "Lato", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.text-step p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ccc;
  max-width: 500px;
}

/* The right column with the sticky image */
.explainer-image-column {
  grid-column: 2 / 3; /* Place in the second column */
}

.sticky-image-wrapper {
  position: sticky;
  top: 15vh; /* How far from the top it should stick */
  height: 70vh; /* Set a fixed height for the sticky container */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#stickyContestImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* This transition makes the image change feel smooth */
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* A class to manage the fade transition */
#stickyContestImage.changing {
  opacity: 0;
  transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .explainer-content-grid {
    grid-template-columns: 1fr; /* Stack columns on mobile */
  }
  .explainer-image-column {
    /* On mobile, the image becomes a normal element in the flow */
    grid-row: 1; /* Move image to the top */
    position: relative;
    top: 0;
    height: 50vh;
    margin-bottom: 3rem;
  }
  .sticky-image-wrapper {
    position: relative;
    top: 0;
    height: 100%;
  }
  .text-step {
    min-height: auto;
    padding-bottom: 4rem;
  }
}

/* ============================================= */
/* == ALL CONTESTS SECTION (FINAL DESIGN)     == */
/* ============================================= */

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3rem;
}

.section-title {
  font-family: "Lato", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #b0b0b0;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.contests-section {
  /* padding: 6rem 2rem; */
  padding: 1rem 2rem;
}

.filters-container {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 1320px; /* Match your main layout width */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem; /* Add some padding */
}

.secondary-filter-controls {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-label {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  color: #a0a0a0;
  font-size: 0.9rem;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  background-color: black;
  border: 1px solid #444;
  border-radius: 50px; /* Fully rounded for the "pill" shape */
  padding: 5px; /* A little space inside */
  overflow: hidden;
}

/* Styling for each button inside the control */
.segmented-control__button {
  background-color: transparent;
  border: none; /* We use the container's border */
  color: #a0a0a0;
  padding: 0.5rem 1.25rem;
  border-radius: 50px; /* Also fully rounded */
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap; /* Prevent text wrapping */
}

/* Hover state for non-active buttons */
.segmented-control__button:not(.active):hover {
  color: var(--accent-glow);
  background-color: rgba(0, 240, 255, 0.05);
}

/* The active button style */
.segmented-control__button.active {
  background: linear-gradient(135deg, var(--accent-glow), #0099cc);
  color: var(--color-background); /* Use your dark background color for text */
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  transform: scale(1.02); /* Slight pop effect */
}

.primary-filters {
  display: flex;
  gap: 1rem;
  padding: 8px 0px;
  flex-wrap: wrap;
  /* overflow-x: scroll; */
  /* justify-content: center; */
}

/* ============================================= */
/* == TAG FILTERS                             == */
/* ============================================= */
.tag-filters-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}

.tag-filter-button {
  background-color: transparent;
  border: 1px solid #333;
  color: #a0a0a0;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tag-filter-button:hover {
  color: var(--accent-glow);
  border-color: var(--accent-glow);
}

.tag-filter-button.active {
  color: #fff;
  border-color: var(--accent-glow);
  background-color: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.filter-button {
  background-color: transparent;
  border: 1px solid #444;
  color: #e0e0e0;
  padding: 0.7rem 1.75rem;
  border-radius: 50px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.filter-button:hover {
  color: var(--accent-glow);
  border: 1px solid var(--accent-glow);
  transform: translateY(-2px);
}

.filter-button.active {
  /* background-color: var(--accent-glow); */
  background: linear-gradient(135deg, var(--accent-glow), #0099cc);
  border-color: var(--accent-glow);
  color: var(--color-background);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.container-layout {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  max-width: 1320px;
  margin-left: 1.5rem;
}

.category-filter-container {
  flex: 0 0 280px;
  border-radius: 12px;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  overflow: hidden;
  /* padding: 1.5rem;
  background-color: #1a1a1a;
  border: 1px solid #333;
  height: 600px;
  overflow-y: scroll; */
}

/* checkbox filters */
.filter-group-wrapper {
  margin-bottom: 2rem;
  font-family: "quicksand", sans-serif;
  font-weight: 700;
}

.filter-group-wrapper .category-filter-title {
  text-align: left;
  font-size: 1.1rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.checkbox-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: flex-start;
}

.checkbox-item {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
  color: #ccc;
}

.checkbox-item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-item label {
  cursor: pointer;
  transition: color 0.3s ease;
}

.checkbox-item label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0px;
  height: 15px;
  width: 15px;
  background-color: transparent;
  border: 2px solid #555;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.checkbox-item:hover label {
  color: var(--accent-glow);
}
.checkbox-item:hover label::before {
  border-color: var(--accent-glow);
}

.checkbox-item input:checked + label::after {
  content: "✓";
  position: absolute;
  left: 2px;
  /* top: -1px; */
  bottom: 0px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #0d0d0d;
}

.checkbox-item input:checked + label::before {
  background: var(--accent-glow);
  border-color: var(--accent-glow);
}

.checkbox-item input:checked + label {
  color: #fff;
  font-weight: 600;
}

.category-filter-container::-webkit-scrollbar {
  width: 6px;
}

.category-filter-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.category-filter-container::-webkit-scrollbar-thumb {
  background: #0cb3b9;
  border-radius: 4px;
}

.category-filter-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.category-filter-title {
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  color: #fff;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.category-filters {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #ccc;
}

.filter-item:hover {
  color: var(--accent-glow);
  background-color: rgba(0, 240, 255, 0.05);
}

.filter-item.active {
  color: #0d0d0d;
  /* background-color: var(--accent-glow); */
  background: linear-gradient(135deg, var(--accent-glow), #0099cc);
  font-weight: 700;
}

/* --- Contest Cards  --- */

.contest-cards-list-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* height: 100vh; */
  /* height: 1100px; */
  /* overflow-y:scroll; */
  padding: 0rem 2.1rem;
  padding-bottom: 1rem;
  overflow-x: hidden;
}

.contest-cards-list-container::-webkit-scrollbar {
  width: 6px;
}

.contest-cards-list-container::-webkit-scrollbar-track {
  /* border: 0.5px solid #f1f1f1; */
  background: #1a1a1a;
  border-radius: 4px;
}

.contest-cards-list-container::-webkit-scrollbar-thumb {
  /* background: #df6908; */
  background: var(--accent-glow);
  border-radius: 4px;
}

.load-more-container {
  text-align: center;
  padding: 2rem 0;
}

.load-more-btn {
  background-color: transparent;
  border: 2px solid var(--accent-glow);
  color: var(--accent-glow);
  padding: 1rem 3rem;
  border-radius: 50px;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background-color: var(--accent-glow);
  color: var(--color-background);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  transform: translateY(-3px);
}

.contest-item {
  display: flex;
  gap: 2.5rem;
  background-color: transparent;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1rem;
  height: 280px;
  transition: background-color 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
  position: relative;
}

.contest-item:hover {
  background-color: rgba(30, 30, 30, 0.5);
  border-color: #555;
}

.contest-item__image-wrapper {
  flex-basis: 28%;
  flex-shrink: 0;
  /* height: 250px; */
  position: relative;
}

.contest-item__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.image-tag {
  position: absolute;
  bottom: 1rem;
  /* left: 1rem; */
  left: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  backdrop-filter: blur(5px);
}

.status-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 0.5rem;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 9px;
  backdrop-filter: blur(5px);
}

/* Base style for the dots */
.contest-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #26f406;
  transition: background-color 0.3s ease;
}

.open .contest-dot {
  animation: pulseGlow 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
  background-color: #26f406;
}

.upcoming .contest-dot {
  background-color: orange;
  animation: none;
}

.closed .contest-dot {
  background-color: gray;
  animation: none;
}

.contest-item:has(.closed) {
  /* filter: grayscale(80%); */
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(38, 244, 6, 0.6);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 10px 10px rgba(38, 244, 6, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(38, 244, 6, 0);
  }
}

.contest-item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contest-item .item-title {
  font-family: "Lato", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 0.75rem;
}

.contest-item .item-meta {
  font-family: "Quicksand", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.contest-item .meta__location {
  color: var(--accent-glow);
  font-weight: 700;
}

.contest-item {
  position: relative;
  overflow: hidden;
  color: white;
}

.platinum-shine {
  position: relative;
  background: linear-gradient(
    90deg,
    #8a8a8a 0%,
    #b8b8b8 20%,
    #ffffff 40%,
    #ffffff 60%,
    #b8b8b8 80%,
    #8a8a8a 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: platinumShine 4s linear infinite;
  font-weight: bold;
  display: inline-block;
}

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

.contest-item .apply-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(0, 240, 255, 0.1);
  color: var(--accent-glow);
  border: 1px solid var(--accent-glow);
  /* padding: 0.8rem 1.5rem; */
  padding: 12px 10px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  align-self: flex-start;
  margin-top: auto;
  transition: all 0.3s ease;
}

.contest-item .apply-button:hover {
  /* background-color: var(--accent-glow); */
  background: linear-gradient(135deg, var(--accent-glow), #0099cc);
  color: #0d0d0d;
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.contest-item--detailed {
  min-height: 330px;
}

.contest-item--detailed .item-title {
  font-size: 1.2rem;
}

.contest-item--detailed .item-description {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.contest-item--detailed .item-meta {
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.contest-item--detailed .item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.contest-item--detailed .item-meta strong {
  color: #ffffff;
  font-weight: 700;
}

.contest-item--detailed .apply-button {
  margin-top: 1rem;
}

.apply-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(100%);
}

.days-left-box {
  display: flex;
  flex-direction: column-reverse;
  position: absolute;
  bottom: 6rem;
  right: 1rem;
  /* background: linear-gradient(145deg, #1f1f1f, #2e2e2e); */
  /* border: 1px solid var(--accent-glow); */
  /* color: #00ffaa; */
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-family: "Quicksand", sans-serif;
  text-align: center;
  min-width: 90px;
  box-shadow: 0 0 12px rgba(0, 255, 170, 0.2);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 5;
}

.days-left-box .days-left-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #cccccc;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.days-left-box .days-left-count {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent-glow);
  transition: color 0.3s ease, transform 0.2s ease;
}

.days-left-box .days-left-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-glow);
}

.days-left-box:hover {
  background: linear-gradient(135deg, var(--accent-glow), #0099cc);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.4);
}

.days-left-box:hover .days-left-label,
.days-left-box:hover .days-left-count {
  color: #1a1a1a;
  transform: scale(1.1);
}

/* == RESPONSIVE ADJUSTMENTS FOR ALL CONTESTS == */
@media (max-width: 992px) {
  .container-layout {
    flex-direction: column;
  }

  .category-filter-container {
    position: static;
    width: 100%;
    background-color: transparent;
    margin-bottom: 1.5rem;
    flex: 0 0 50px;
    border: none;
    padding: 0;
  }

  .category-filters {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    scrollbar-width: none;
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .category-filter-title {
    display: none;
  }

  .filter-item {
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #444;
  }

  .contest-item {
    flex-direction: column;
    height: auto;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .contest-item__image-wrapper {
    width: 100%;
    height: 200px;
    flex-basis: auto;
  }

  .contest-item .item-title {
    font-size: 1.3rem;
  }

  .contest-item .item-description {
    font-size: 0.95rem;
  }

  .contest-item .apply-button {
    padding: 0.6rem 1.2rem;
  }
  .days-left-box {
    position: absolute;
    /* margin-top: 1rem; */
    align-self: flex-end;
    right: 6rem;
    bottom: 5.5rem;
    padding: 0.4rem 0.75rem;
    min-width: 90px;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.1);
  }

  .days-left-box .days-left-label {
    font-size: 0.7rem;
  }

  .days-left-box .days-left-count {
    font-size: 1rem;
  }
}
/* Mobiles */
@media (max-width: 480px) {
  .section-header {
    margin-bottom: 0 auto 2rem;
  }

  .primary-filters {
    flex-wrap: nowrap;
    overflow-x: scroll;
    justify-content: none;
  }

  .contests-section {
    padding: 2rem 1rem;
  }

  .contest-item {
    padding: 1rem;
  }

  .contest-item .item-title {
    font-size: 1.1rem;
  }

  .contest-item .image-tag {
    font-size: 0.75rem;
  }

  .contest-item--detailed .item-meta {
    font-size: 0.8rem;
  }

  .days-left-box {
    right: 1rem;
    bottom: 1rem;
    padding: 0.35rem 0.65rem;
    min-width: 80px;
    font-size: 0.9rem;
    text-align: center;
    border-radius: 6px;
  }

  .days-left-box .days-left-label {
    font-size: 0.65rem;
  }

  .days-left-box .days-left-count {
    font-size: 0.85rem;
  }
}

/* Footer */
.site-footer {
  margin-top: 20px;
  background: url("footerimg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #dcdce0;
  padding: 3rem 1rem 1rem;
  background-attachment: fixed;
}

/* Footer Container */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-title,
.footer-subtitle {
  font-family: "Quicksand", sans-serif;
}

.footer-title {
  font-size: 1.5rem;
  color: #00f0ff;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
  font-family: "Outfit", sans-serif;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
  font-family: "Outfit", sans-serif;
}
.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #00f0ff;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.3rem;
  margin-top: 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  outline: none;
  border: none;
  border-radius: 5px;
}
.newsletter-form input::placeholder {
  color: var(--button-glow-end);
  font-family: "quicksand", sans-serif;
  font-weight: bolder;
  opacity: 1;
}
.newsletter-form input:focus {
  border: 2px solid transparent;
  border-image: linear-gradient(90deg, #00f0ff, #0059ff);
  border-image-slice: 1;
  animation: borderFade 1s linear infinite;
}
@keyframes borderFade {
  0% {
    border-image: linear-gradient(white, white),
      linear-gradient(90deg, #00f0ff, #ff00ff);
  }
  50% {
    border-image: linear-gradient(white, white),
      linear-gradient(90deg, #ff00ff, #00f0ff);
  }
  100% {
    border-image: linear-gradient(white, white),
      linear-gradient(90deg, #00f0ff, #ff00ff);
  }
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(0, 238, 255, 0.686), #0099cc);
  color: white;
  font-family: "quicksand", sans-serif;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* Back to Top Button */
.back-to-top-with-text {
  color: white;
  cursor: pointer;
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: rgba(14, 11, 11, 0.905);
  border-radius: 25px;
  padding: 12px 18px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.back-to-top-with-text i {
  transition: transform 0.3s ease;
  transform: rotate(45deg);
  font-size: 1rem;
}
.back-to-top-with-text:hover i {
  transform: rotate(0deg);
}
.back-to-top-with-text:hover {
  background-color: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
}

/* Social Icons */
.social-icons {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}
.social-icons a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}
.social-icons a:hover {
  color: #00f0ff;
}

/* Footer Copy */
.footer-copy {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #333;
  color: #999;
  font-family: "syncopate", sans-serif;
  font-size: 1rem;
}

/* Responsive design */

@media (max-width: 480px) {
  .newsletter-form button {
    padding: 0.7rem 1rem;
  }
  .back-to-top-with-text {
    padding: 8px 12px;
    border-radius: 15px;
  }
}

/* scroll to top button */
.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  color: white;
  border: 0.8px solid;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.07),
    0 4px 6px -4px rgb(0 0 0 / 0.07);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.scroll-top-btn.visible {
  transform: scale(1);
  opacity: 1;
}

.scroll-top-btn:hover {
  transform: scale(1.1) !important;
}

.bubbles-container {
  position: absolute;
  /* bottom: 60px; */
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.bubble {
  width: 8px;
  height: 8px;
  border: 1px solid #00ffaa;
  border-radius: 50%;
}

.bubble.active {
  background-color: #00ffaa;
}
