@font-face {
  font-family: 'Inconsolata';
  src: url('../fonts/Inconsolata.ttf') format('truetype'); /* corrected format */
  font-weight: normal;
  font-style: normal;
}

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

/* hide scrollbar */
body::-webkit-scrollbar {
  display: none;
}

/* cursor */
.star {
  position: fixed;
  pointer-events: none;
  z-index: 11000; /* above modal z-index 10000 */
  color: white;
  font-size: 24px;
  user-select: none;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

/* translation is hidden by default */
.en, .zh {
  display: none;
}

.en-mode .en {
  display: inline-block; /* or block depending on your layout */
}

.zh-mode .zh {
  display: inline-block;
}

/* Optional: style active button */
button.active {
  font-weight: bold;
  /* add button highlight styles as needed */
}

/* Body and html */
html, body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Inconsolata', monospace;
  color: white;
  text-align: center; /* center content container horizontally */
  line-height: 1.6;
  cursor: none;
}

.home-page{
  overflow: hidden;
}


/* for info and apply page containers */
.page-container {
  max-width: 800px;
  margin: 7.5vh auto 40px auto; /* original vertical spacing */
  text-align: left;
  padding: 0 20px;
}

.page-container h1,
.page-container h2,
.page-container h3 {
  text-align: center;
}

.page-container p {
  margin-bottom: 1.2em;
}




/* Content container for index page only */
.content-container {
  max-width: 800px;
  margin: 0 auto;
  position: absolute;
  bottom: 5vh;        /* pushes it into bottom half */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  
}

.content-container p {
  font-size: 0.85rem;
  line-height: 1.4;
}


.content-container p,
.content-container .subtitle.zh,
.content-container .subtitle.en {
  text-align: left;
}


/* Typography */
h1, h2 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
}

h1 {
  font-size: 1.8rem;
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.3rem;
  margin-top: 20px;
}

p {
  font-size: 1.1rem;
  color: #c4c4c4;
}

li {
  margin-bottom: 20px;
}

.note {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
  margin-top: 10px;
}


.sponsor-heading {
  font-size: 0.9rem;
  color: white;
  text-align: center;
  margin-top: 40px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  font-weight: 600;
  letter-spacing: 1px;
}


.sponsors {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;     /* align vertically if heights differ */
  gap: 40px;               /* space between logos */
  margin-top: 5px;        /* space above sponsors section */
}

.sponsor-logo-left {
  max-height: 40px; /* smaller size for left logo */
  opacity: 50%;
  transition: opacity 0.3s ease;
}

.sponsor-logo-right {
  max-height: 80px; /* larger size for right logo */
  opacity: 50%;
  transition: opacity 0.3s ease;
}


.sponsor-logo:hover {
  opacity: 1; /* fully opaque on hover */
  cursor: pointer;
}



/* Background shader container */
#background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #0b0220;
}

/* Shader Canvas */
#skyCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
}

/* Foreground overlay */
#overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

 /* Subtle top black vignette overlay */
    #top-vignette {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100px; /* Adjust height to cover navbar + some fade */
        pointer-events: none; /* So clicks pass through */
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
        z-index: 19; /* Just below navbar z-index (20) */
    }

/* Navbar styles */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-around;
  gap: 0;
  z-index: 20;
  font-size: 1.1rem;
  letter-spacing: 1px;
  align-items: center;
  padding-left: 180px;
  box-sizing: border-box;
}

.nav-logo {
  position: fixed;
  left: 40px;
  top: 20px;
  display: flex;
  align-items: center;
  height: 60px;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}
.nav-logo img:hover {
  filter: drop-shadow(0 0 8px yellow);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  /* margin-left: 40px; */
  list-style: none;
  padding: 0;
}

.nav-links a.nav-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.3s ease;
  font-weight: 500;
  position: relative;
  padding: 0 10px;
}

.nav-links a:hover:not(.apply-btn) {
  color: white;
  cursor: none;
  text-shadow:
    0 0 5px white,
    0 0 10px white,
    0 0 15px white;
}

/* #btn-en #btn-zh #btn-en-mobile #btn-zh-mobile {
  color: white !important;
} */

#btn-en {
  color: white;
  opacity: 50%;
}

#btn-zh {
  color: white;
  opacity: 50%;
}

#btn-en:hover {
  color: white;
  opacity: 100%;
}

#btn-zh:hover {
  color: white;
  opacity: 100%;
}

#btn-en-mobile {
  color: white;
  opacity: 50%;
}

#btn-zh-mobile {
  color: white;
  opacity: 50%;
}





/* #btn-en.active #btn-zh.active #btn-en-mobile.active #btn-zh-mobile.active {
  text-decoration: underline;
} */

#btn-en.active {
   color: rgb(255, 223, 70);
   opacity: 100%;
}

#btn-zh.active {
   color: rgb(255, 223, 70);
   opacity: 100%;
}

#btn-en-mobile.active {
   color: rgb(255, 223, 70);
   opacity: 100%;
}

#btn-zh-mobile.active {
   color: rgb(255, 223, 70);
   opacity: 100%;
}




/* Apply button in navbar and main */
.apply-btn {
  display: inline-block;
  background: white;
  color: black;
  padding: 14px 34px;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  will-change: transform, box-shadow, color;
  margin-left: 10px;
}

.apply-btn:hover {
  transform: scale(1.05); 
  box-shadow:
    0 0 2px 2px #fff94d,
    0 0 4px 2px #ffe14d,
    0 0 10px 3px #ce7c17;
  color: black;
  cursor: pointer;
}
.nav-links a.apply-btn {
  display: inline-block;
  background: white;
  color: black;
  padding: 10px 28px; /* slightly smaller padding for navbar */
  border-radius: 25px;
  font-size: 1rem; /* adjust font size to fit navbar */
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  will-change: transform, box-shadow;
  margin-left: 10px; /* spacing from other links */
}

.nav-links a.apply-btn:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 2px 2px #fff94d,
    0 0 4px 2px #ffe14d,
    0 0 10px 3px #ce7c17;
  color: black;
  cursor: pointer;
}






/* Center container */
.center-container {
  display: flex;
  flex-direction: column; /* stack children vertically */
  justify-content: center; /* center vertically */
  align-items: center; /* center horizontally */
  max-width: 600px;
  margin: 0 auto; /* horizontally center container */
  padding: 20px;
  box-sizing: border-box;
  text-align: center; /* center text */
}

.full-viewport {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centers vertically */
  align-items: center;       /* centers horizontally */
  padding-top: 60px;         /* keeps it clear of navbar */
  box-sizing: border-box;
}

/* Title image */
.title-image {
  display: block;
  margin: 0 auto;
  /* max-width: 75%; */
  max-width: 100%;

  height: auto;
  margin-bottom: 3%;
  /* margin-right: 10%; */
}

/* Subtitle and location styles */
.subtitle {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.location {
  font-size: 1.4rem;
  color: #ffd84d;
  margin-bottom: 30px;
}

/* Apply deadline text */
.apply-deadline {
  font-size: 0.75rem;
  color: white;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: 0.3;
}

.description {
  padding-top: 5%;
  font-size: 1rem;
  margin-left: 5%;
  margin-right: 5%;
  text-align: justify;
  opacity: 70%;
}

/* mobile logo */
.mobile-logo {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 11000;
  user-select: none;
}

.mobile-logo img {
  height: 30px; /* adjust as needed */
  width: auto;
  display: block;
  margin-top: 10px;
  margin-left: 10px;
}

/* Fireflies */
.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 223, 70, 0.9) 40%, transparent 80%);
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.8;
  animation: flicker 3s infinite alternate;
}

@keyframes flicker {
  0%, 100% {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translateY(-10px) translateX(5px) scale(1.2);
  }
}

/* Star for mouse effect */
.star {
  position: fixed;
  pointer-events: none;
  color: #fefbd8;
  font-size: 20px;
  text-shadow:
    0 0 5px #ffe600,
    0 0 10px #ffcc00,
    0 0 20px #ff9900,
    0 0 30px #ff6600,
    0 0 40px #ff3300;
  user-select: none;
}

/* Blurry transition */
.blurry {
  transition: filter 0.3s, opacity 0.3s;
}


/* faq */

    a {
        color:rgba(255, 223, 70, 0.9);
        text-decoration: none;
    }

    .faq-container {
        max-width: 800px;
        margin: 12vh auto 40px auto;  /* Top margin responsive, horizontal center */
        padding: 20px 40px 0 40px;
        padding: 0 40px;
        color: white;
        text-align: left;  /* Inner text left aligned */
        box-sizing: border-box;
    }



    /* faq */
    .faq-item {
    margin-bottom: 0px;
    cursor: pointer;
  }
  .faq-question::before {
  content: "+ ";
  color: #ffd84d; /* Yellow color */
  font-weight: 700;
  margin-right: 6px;
}

  .faq-question {
    font-weight: 600;
    font-size: 18px;
    padding: 0px;
    background: none;
    color: white;
    border-radius: 5px;
    user-select: none;
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: none;
    color: #ddd;
    padding: 0 10px;
    border-radius: 0 0 5px 5px;
  }
  .faq-item.active .faq-answer {
  max-height: none; /* or large enough to show full content */
  padding: 10px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}



/* team page */
.team-heading {
    display: none;
  }





.center-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.title-image {
  width: 100%;
  height: auto;
  max-width: 300px; /* limit maximum size */
}

.subtitle, .location{
  font-size: 1.2rem;
  margin: 8px 0;
}

.apply-deadline {
   font-size: 0.8rem;
  margin: 8px 0;
  
}

  #nav-toggle-button,
#mobile-menu-overlay {
  display: none;
}





/* MEDIA SIZE FOR RESPONSIVE LAYOUT */
/* Responsive tweaks below 768px width */
@media (max-width: 768px) {
  .center-container {
    padding: 10px;
    max-width: 95%;
  }
  
  .title-image {
    max-width: 90vw; /* almost full width on small screens */
  }
  
  .subtitle, .location, .apply-deadline {
    font-size: 1rem;
  }
  
  .apply-btn {
    padding: 10px 18px;
    font-size: 1rem;
  
  }
  .title-image {
    width: 50%;
  }

  




}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 600px) {
  .subtitle, .location, .apply-deadline {
    font-size: 0.9rem;
  }

  .description {
    font-size: 0.75rem;
    margin-left: 5%;
    margin-right: 5%;
    text-align: center;
    opacity: 70%;
}
/* 
.content-container {

  bottom: 10vh;       
  
} */

#overlay {
  width: 50%;
}

.mobile-overlay {
  display: none;
}

.full-viewport {
  height: 100vh;
  padding-top: 0px;         /* keeps it clear of navbar */
  overflow: hidden;
}

.hero-top {
  /* margin-bottom:100%; */
  overflow: hidden;
}


.title-image {
  width: 50%;
}


  .mobile-logo {
    display: block;
  }

  .team-heading {
    display: block;
  }

  .team-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }


   #nav-toggle-button,
  #mobile-menu-overlay {
    display: block;
  }

 #mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9); /* near-black full background */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 11000; /* above all content except toggle */
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
  font-size: 2rem;
  color: white;
  text-align: center;
  padding: 40px;

  overflow-y: auto;
  justify-content: flex-start;
}

/* Show overlay and menu */
#mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-link {
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.menu-link.apply-btn {
  background-color: white;
  color: black;
  font-size: 1.5rem;
  padding: 15px 40px;
  margin-top: 40px;
  border-radius: 50px;
}




/* Nav container stacking vertically for mobile */
#navbar-placeholder {
  position: fixed;
  top: 0;
  right: 0;
  background: #0b0220; /* Match page background or use translucent */
  width: 200px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 40px 20px 20px 20px;
  box-shadow: -2px 0 15px rgba(0,0,0,0.7);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 10999; /* above overlay */
}

/* Show menu sliding from right */
#navbar-placeholder.active {
  transform: translateX(0);
}

/* Style nav links */
#navbar-placeholder a {
  color: white;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

/* Hamburger or "+" toggle button */
#nav-toggle-button {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 11001; /* above star and overlay */
  background: transparent;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}


/* faq */

.faq-question {
    font-size: 20px;
  }

  .faq-answer p {
    font-size: 18px;
  }

  .faq-answer li {
    font-size: 18px;
  }

   .faq-question::before {
  content: none;
}


}
