/* =========================
   RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  background-color: #000;
  color: white;
  padding-top: 72px;
  overscroll-behavior: none;
  font-family: 'Raleway', sans-serif;
}

/* =========================
   HERO SECTION
   ========================= */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-fixed {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.hero-logo {
  display: none;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  animation: fadeIn 6s ease forwards;
  text-shadow: 0 0 12px rgba(0,0,0,0.6), 0 0 30px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-family: 'Times New Roman', Times, serif;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: -0.5rem;
}

.hero-title {
  font-size: 150px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

/* =========================
   COUNTDOWN
   ========================= */
.countdown {
  display: flex;
  gap: 2rem;
  font-family: 'Raleway', sans-serif;
  margin-bottom: 1.5rem;
}

.countdown .time {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown span {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.countdown small {
  font-size: 0.65rem;
  text-transform: uppercase;
  opacity: 0.7;
  letter-spacing: 0.2em;
}

/* =========================
   NAVBAR
   ========================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;
  z-index: 10;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  animation: fadeIn 3s ease forwards;
}

.navbar-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 36px;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.navbar-logo img:hover {
  opacity: 1;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
}

.navbar-nav a {
  color: white;
  font-family: 'Times New Roman', Times, serif;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity 0.2s ease, text-shadow 0.2s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.navbar-nav a:hover {
  opacity: 1;
  text-shadow: 0 1px 4px rgba(255,255,255,0.3);
}

/* =========================
   SCROLL INDICATOR
   ========================= */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 25px;
  height: 25px;
  border-left: 5px solid rgba(255,255,255,0.8);
  border-bottom: 5px solid rgba(255,255,255,0.8);
  transform: rotate(-45deg);
  animation: swipeUp 2s infinite;
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.6));
}

/* =========================
   ABOUT SECTION
   ========================= */
.about {
  padding: 8rem 2rem;
  background-color: #000;
  position: relative;
  z-index: 1;
  box-shadow: 0 -15px 30px rgba(0,0,0,0.45);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: rgb(75,126,237);
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(75,126,237,0.7);
}

.about-text p {
  font-family: serif;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 55ch;
  margin-bottom: 1.5rem;
  color: #eaeaea;
  text-align: justify;
}

.about-collage {
  position: relative;
  height: 420px;
}

.collage-img {
  position: absolute;
  width: 65%;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  opacity: 0.95;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}

.collage-img:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6);
}

/* Image positions */
.img-1 { top: 0; left: 0; z-index: 1; }
.img-2 { top: 60px; left: 25%; z-index: 2; }
.img-3 { top: 140px; left: 10%; z-index: 0; }

/* =========================
   WINNERS SECTION
   ========================= */
.winners {
  background-color: rgb(16,55,138);
  padding: 3rem;
  box-shadow: 0 0 50px 5px rgba(83,137,255,0.43);
  position: relative;
  z-index: 5;
}

.winners-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.winners-title {
  font-family: serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

.winners-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}

.winner {
  text-align: center;
  color: #fff;
  transition: transform 0.35s ease;
}

.winner img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: 0.6rem;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.winner h3 {
  font-size: 1rem;
  font-weight: 600;
}

.winner span {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.3rem;
}

.winner:hover {
  transform: translateY(-4px);
}

.winner:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* =========================
   CONTESTS SECTION
   ========================= */
.contests {
  background-color: rgb(1,12,34);
  position: relative;
  padding: 8rem 2rem;
  color: #fff;
}

.contests-inner { max-width: 1200px; margin: 0 auto; }

.contests-title {
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5rem;
  text-shadow: 0 1px 5px rgba(255,255,255,0.6);
}

.contests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.contest {
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s ease;
}

.contest img {
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.contest h3 {
  font-family: serif;
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

.contest:hover { transform: translateY(5px); }
.contest:hover img { transform: scale(1.01); opacity: 0.8; }

/* =========================
   MODAL
   ========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.modal.active .modal-overlay {
  opacity: 1;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.modal-content-inner {
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active .modal-content img[src] {
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.modal-close:hover {
  opacity: 1;
}

/* Hide modal image when no src is set */
.modal-content img:not([src]),
.modal-content img[src=""] {
  display: none;
}

/* =========================
   QUOTE SECTION
   ========================= */
.quote-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  background-image: url("img/quote-bg.webp");
  background-size: cover;
  background-position: center;
}

.quote-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

.quote-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #fff;
}

.quote-text {
  font-family: serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  margin-bottom: 1rem;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

.quote-author {
  color: rgb(75,126,237);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* =========================
   FOOTER
   ========================= */
.footer {
  background-color: #000;
  position: relative;
  padding: 2rem;
  bottom: 0;
  box-shadow: 0 0 30px 10px rgba(0,0,0,0.41);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.footer p {
  font-size: 0.8rem;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.socialmedia {
  display: flex;
  gap: 1.5rem;
}

.socialmedia a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  text-decoration: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.socialmedia a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes swipeUp {
  0% { transform: rotate(-45deg) translate(0,0); opacity:0; }
  30% { opacity:1; }
  60% { transform: rotate(-45deg) translate(-6px,6px); opacity:1; }
  100% { transform: rotate(-45deg) translate(-12px,12px); opacity:0; }
}


/* =========================
    Mobile design responsive
    ====================== */

/* =========================
   RESPONSIVE (MOBILE FIRST)
   ========================= */

/* Tablets */
@media (max-width: 1024px) {

  /* HERO */
  .hero-title {
    font-size: 90px;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }

  /* ABOUT */
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-collage {
    height: 320px;
  }

  /* WINNERS */
  .winners-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* CONTESTS */
  .contests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Mobile */
@media (max-width: 768px) {

  html, body {
    padding-top: 0;
    overflow-x: clip;
  }

  /* NAVBAR */


  

  /* HERO */
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
  }
  
  .hero-logo {
    width: 160px;
    margin-bottom: 1.2rem;
  }

  .hero-title {
    font-size: 80px;
  }

  .hero-subtitle {
    display: none;
  }

  .countdown span {
    font-size: 2rem;
  }

  .countdown {
    gap: 1rem;
  }
  
  .scroll-indicator{
      bottom: 10rem;
  }

  /* ABOUT */
  .about {
    padding: 5rem 1.5rem;
  }

  /* Center text */
  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text p {
    text-align: justify;
    margin-left: auto;
    margin-right: auto;
  }

  /* Carousel container */
  .about-collage {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Track */
  .collage-track {
    display: flex;
    gap: 1rem;
  }

  /* Images */
  .collage-img {
    position: relative;
    flex: 0 0 85%;
    scroll-snap-align: center;
    border-radius: 8px;
  }
  .img-1,
  .img-2,
  .img-3 {
    top: auto;
    left: auto;
    z-index: auto;
  }

  .about-text h2 {
    text-align: center;
  }
  .about-collage::-webkit-scrollbar {
    display: none;
  }
  .about-collage {
    scrollbar-width: none;
  }

  /* WINNERS */
  .winners {
    padding: 2rem 1rem;
  }

  .winners-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* CONTESTS */
  .contests {
    padding: 5rem 1.5rem;
  }

  .contests-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .contests-grid {
    grid-template-columns: 1fr;
  }

  /* QUOTE */
  .quote-section {
    padding: 3rem 1.5rem;
  }

  /* FOOTER */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .socialmedia {
    justify-content: center;
  }

  /* MODAL */
  .modal-content {
    max-width: 95vw;
    max-height: 80vh;
  }
}


/* Small phones */
@media (max-width: 480px) {

  .hero-logo {
    width: 160px;
    margin-bottom: 1.2rem;
  }

  .hero-title {
    font-size: 80px;
  }

  .hero-subtitle {
    display: none;
  }

  .countdown span {
    font-size: 2rem;
  }

  .navbar-nav {
    display: none;
  }

  .navbar-inner {
    justify-content: center;
  }
  .navbar-logo img {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero-fixed {
    position: relative;
  }
}