/* ===== Root variables ===== */
:root {
  --background-color: #000;
  --text-color: #fff;
  --primary-color: #ffba52;
  --highlight-gold: #E6B964;
  --highlight-orange: #E58A00;
  --gray-text: #B3B3B3;
  --footer-text: #282A37;
}

/* ===== Base styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Plus Jakarta Sans', sans-serif;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #02022b 80%, rgb(224, 192, 6));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
  opacity: 1;
  visibility: visible;
}

.preloader-img {
  width: 240px;
  height: 150px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

.preloader-logo {
  font-family: 'Marcellus', serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: gold;
  text-align: center;
}

.glow {
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 
               0 0 20px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

/* ===== Header & Navigation ===== */
.header {
  width: 100%;
  height: 80px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--background-color);
  z-index: 1;
  padding: 0 20px;
  border-bottom: 1px solid #ECEDF2;
}

.header-container {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 0 20px;
}

.logo-container {
  flex-shrink: 0;
}

.logo {
  height: 60px;
  width: 100px;
}

.logo:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Desktop Navigation */
.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-item a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-item a:hover {
  color: var(--primary-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
  flex-shrink: 0;
}

.login-button {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.login-button:hover {
  color: var(--primary-color);
}

.season {
  height: 30px;
  width: auto;
}

/* Mobile Navigation */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 4;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  position:absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--background-color);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 6;
  overflow-y: auto;
  padding: 30px 20px;
  border-top: 1px solid rgba(236, 237, 242, 0.2);
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin-bottom: 30px;
  padding: 0;
}

.mobile-nav-item a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-item a:hover {
  color: var(--primary-color);
}

.mobile-menu-extra {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(236, 237, 242, 0.2);
}

.mobile-login-button {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-login-button:hover {
  color: var(--primary-color);
}

.mobile-season {
  height: 30px;
  width: auto;
}

/* ===== Hero Section ===== */
.hero-section {
  width: 100%;
  height: 1050px;
  position: relative;
  background-image: url('images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 10px;
  margin-bottom: 30px;
}

.hero-content {
  width: 100%;
  max-width: 900px;
  position: absolute;
  top: 76%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 0 20px;
  z-index: 1;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0;
  margin-bottom: 15px;
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 2;
  letter-spacing: 0.05em;
  max-width: 800px;
  margin: 0;
  margin-bottom: 18px;
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

.highlight {
  font-weight: 500;
  font-style: italic;
  color: var(--highlight-gold);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 
               0 0 20px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

.register-button {
  display: inline-block;
  background: var(--primary-color);
  color: #000;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.6s forwards;
  opacity: 0;
}

.register-button:hover {
  background-color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeInUp 1s ease-out 0.9s forwards;
  opacity: 0;
  margin-bottom: 0;
  padding-bottom: 5rem;
}

/* ===== Contestants Section ===== */
.contestants-section {
  width: 100%;
  padding: 0;
  padding-top: 0;
  margin-top: 1.9rem;
  background-color: var(--background-color);
  position: relative;
}

.contestants-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  animation: fadeIn 1s ease-out;
}

.contestants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
  justify-items: center;
}

.contestant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  max-width: 350px;
  width: 100%;
}

.contestant-card:nth-child(1) { animation-delay: 0.1s; }
.contestant-card:nth-child(2) { animation-delay: 0.2s; }
.contestant-card:nth-child(3) { animation-delay: 0.3s; }
.contestant-card:nth-child(4) { animation-delay: 0.4s; }
.contestant-card:nth-child(5) { animation-delay: 0.5s; }
.contestant-card:nth-child(6) { animation-delay: 0.6s; }
.contestant-card:nth-child(7) { animation-delay: 0.7s; }
.contestant-card:nth-child(8) { animation-delay: 0.8s; }
.contestant-card:nth-child(9) { animation-delay: 0.9s; }

.contestant-card:hover {
  transform: translateY(-5px);
}

.contestant-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.contestant-card:hover .contestant-image {
  transform: scale(1.05);
}

.contestant-name {
  font-size: 16px;
  text-align: center;
  margin-top: 12px;
  font-weight: 500;
}

.view-more-btn {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--primary-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans';
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.view-more-btn:hover {
  background: rgba(255, 186, 82, 0.1);
  transform: translateY(-2px);
}

.view-more-btn svg {
  width: 24px;
  height: 24px;
  background: var(--text-color);
  border-radius: 50%;
  padding: 4px;
  transform: rotate(90deg);
  stroke: #000;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.view-more-btn:hover svg {
  transform: rotate(90deg) translateX(4px);
  background: var(--primary-color);
  stroke: var(--text-color);
}

/* ===== Judges Section ===== */
.judges-section {
  width: 100%;
  padding: 90px 0 30px;
  background-color: var(--background-color);
  position: relative;
}

.judges-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}

.judges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  width: 100%;
  justify-items: center;
}

.judge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
  max-width: 250px;
  width: 100%;
}

.judge-card:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s forwards; }
.judge-card:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s forwards; }
.judge-card:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s forwards; }
.judge-card:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s forwards; }

.judge-image-container {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.judge-image-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 186, 82, 0.3);
}

.judge-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.judge-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.judge-role {
  color: var(--gray-text);
  font-size: 14px;
  margin: 0;
  font-weight: 400;
}

.judges-description {
  font-size: 14.5px;
  line-height: 1.6;
  text-align: justify;
  text-align-last: center;
  max-width: 800px;
  margin: 0 auto;
  font-weight: 400;
  animation: fadeIn 1s ease-out 0.5s forwards;
  opacity: 0;
  padding: 0 20px;
}

.judge-highlight {
  color: var(--highlight-orange);
  font-style: italic;
  margin: 0 4px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 
               0 0 20px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

/* ===== Footer Section ===== */
.footer-section {
  position: relative;
  width: 100%;
  background-color: #fff;
  padding: 18px 0;
  border-top: 1px solid black;
}

.footer-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.02em;
  color: var(--footer-text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link:hover {
  color: #d48206;
  transform: scale(1.05);
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #d48206;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7), 
                 0 0 20px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.9), 
                 0 0 25px rgba(255, 215, 0, 0.7),
                 0 0 35px rgba(255, 215, 0, 0.5);
  }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Responsivity ===== */
@media (min-width: 769px) {
  .logo-container {
    margin-left: 40px;
  }
  
  .header-right {
    margin-right: 40px;
    gap: 40px;
  }
}

@media (max-width: 992px) {
    .nav-list {
    gap: 15px;
    margin-right: 60px;
}

  .hero-content {
    gap: 15px;
    top: 75%;
  }

  .judges-grid,
  .contestants-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header {
    height: 80px;
    padding: 0 10px;
  }

  .header-container {
    justify-content: center;
  }

  .logo-container {
    position: absolute;
    left: 17%;
    transform: translateX(-50%);
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 15px;
  }

  .nav-menu,
  .header-right > .login-button,
  .header-right > .season {
    display: none;
  }

 .hero-content {
  width: 100%;
  top: 67%;
  left: 50%;
  gap: 20px;
  padding: 0 20px;
}

.hero-section {
    height: 80vh;
    margin-top: 80px;
  }

  .hero-content {
    top: 90%;
    padding-bottom: 70px;
    margin-bottom: 50px;
  }

  .hero-title {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0;
  margin-bottom: 15px;
}

.hero-subtitle {
  line-height: 1.4;
  max-width: 800px;
  margin: 0;
  margin-bottom: 10px;
  opacity: 0;
}

.contestants-section {
  padding-top: 1rem;
}

.contestants-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 15px;
    padding: 0 10px;
  }

.contestant-image {
    height: 160px;
  }

.contestant-name {
    font-size: 14px;
  }

  .view-more-btn {
  margin-top: 10px;
}

  .judge-image-container {
    width: 150px;
    height: 150px;
  }

  .judges-description {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 500px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .contestants-section {
    padding-top: 2rem;
  }

  .view-more-btn {
  margin-top: 8px;
  }
  
  .judge-image-container {
    width: 150px;
    height: 150px;
  }
  
  .preloader-logo {
    font-size: 1.5rem;
  }

  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .footer-link {
    font-size: 12px;
  }
}