/* General Styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF;
  background: #000000;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loading-content {
  text-align: center;
}

.loading-bar {
  width: 100px;
  height: 100px;
  position: relative;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(#E50914 0deg, transparent 0deg 360deg);
}

.loading-progress {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  border: 5px solid #E50914;
}

.loading-text {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #E50914;
  font-family: 'Montserrat', sans-serif;
}

/* Navigation */
.top-nav {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: 100;
}

.top-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.top-nav a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  position: relative;
  transition: all 0.3s ease;
}

.top-nav a::after {
  content: '';
  position: absolute;
  left: 100%;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: #E50914;
  transition: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.top-nav a:hover::after {
  left: 0;
  width: 100%;
}

.top-nav a:hover {
  color: #E50914;
}

/* Landing Page */
#landing {
  height: 100vh;
  background: url('background-image.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-attachment: fixed;
}

#landing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.favicon-rotate {
  margin-bottom: 40px;
  animation: rotate 8s linear infinite;
  width: 80px;
  height: 80px;
}

.favicon-rotate img {
  width: 100%;
  height: 100%;
}

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

h1 {
  font-size: 6rem;
  margin: 0;
  color: #E50914;
  text-transform: uppercase;
  font-family: 'Bebas Neue', cursive;
  letter-spacing: -5px;
  line-height: 0.8;
}

.button-container {
  display: flex;
  justify-content: center;
}

#enter-btn, #schedule-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

#enter-btn:hover, #schedule-btn:hover {
  background: transparent;
  color: #E50914;
}

#enter-btn .arrow, #schedule-btn .arrow {
  font-size: 2rem;
}

/* New Section: Free? as in Freedom Day! */
#freedom-section {
  padding: 100px 20px;
  background: #000000;
  position: relative;
  overflow: hidden;
}

.freedom-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.freedom-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.free-large {
  font-size: 8rem;
  color: #E50914;
  font-family: 'Bebas Neue', cursive;
  position: relative;
}

.free-large::after {
  content: '?';
  position: absolute;
  right: -30px;
  top: -10px;
  font-size: 8rem;
  color: #FFFFFF;
  border: 2px solid #E50914;
  border-radius: 50%;
  padding: 10px;
}

.as-in {
  font-size: 1.5rem;
  color: #CCCCCC;
  font-family: 'Montserrat', sans-serif;
}

.freedom-day {
  font-size: 4rem;
  color: #E50914;
  font-family: 'Bebas Neue', cursive;
  position: relative;
}

.freedom-day::after {
  content: '!';
  position: absolute;
  right: -20px;
  top: -10px;
  font-size: 4rem;
  color: #FFFFFF;
  border: 2px solid #E50914;
  border-radius: 50%;
  padding: 5px;
}

.freedom-subtext {
  font-size: 1.5rem;
  color: #CCCCCC;
  font-family: 'Montserrat', sans-serif;
}

.highlight {
  background: #FFFFFF;
  color: #000000;
  padding: 2px 5px;
}

/* Festival Schedule */
#schedule {
  padding: 50px 20px;
  background: #000000;
}

h2 {
  text-align: center;
  font-size: 3rem;
  color: #E50914;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-family: 'Bebas Neue', cursive;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.day {
  background: transparent;
  padding: 20px;
  border-left: 2px solid #E50914;
  position: relative;
}

.day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(229, 9, 20, 0.1);
  z-index: -1;
}

.day h3 {
  font-size: 2rem;
  color: black;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  background: #CCCCCC;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.venue {
  font-size: 1rem;
  color: #CCCCCC;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.events {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.event {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

.event .time {
  font-size: 2rem;
  color: #E50914;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0px;
  margin-top: 70px;
  border-bottom: 3px solid #E50914;
  width: 50%;
}

.event::before {
  content: '⊕';
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(35%);
  font-size: 2rem;
  color: #E50914;
}

.festival-theme {
  margin-top: 10em;
}

.clock-icon {
  width: 16px;
  height: 16px;
  background: url('/clock-icon.png') no-repeat center center/cover;
}

.event .title {
  font-size: 1.2rem;
  color: #CCCCCC;
  font-family: 'Montserrat', sans-serif;
}

.film-name {
  font-weight: bold;
}

/* Guest Image Container */
.guest {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.guest img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.guest::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  border: 3px solid #E50914;
  border-radius: 50% 30% 70% 40% / 60% 40% 70% 50%;
  z-index: 0;
}

.bio-btn {
  background: #E50914;
  border: none;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 0;
  text-transform: uppercase;
  transition: background 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  position: relative;
  z-index: 2;
}

.bio-btn:hover {
  background: #B20710;
}

/* Films Section */
#films {
  padding: 0;
  background: #000000;
}

.film-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  padding: 20px;
  justify-content: center;
}

.sort-controls,
.filter-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

label {
  font-size: 1rem;
  color: #E50914;
  font-family: 'Montserrat', sans-serif;
}

select {
  padding: 5px;
  border: 1px solid #E50914;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  border-radius: 5px;
}

select:hover {
  border-color: #B20710;
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 20px 40px 20px;
}

.film-card {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #000000;
}

.film-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.film-card img {
  width: 100%;
  height: auto;
  display: block;
}

.film-card-content {
  padding: 15px;
}

.film-card h3 {
  font-size: 1.2rem;
  color: #E50914;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', cursive;
  text-transform: none;
}

.film-card .detail {
  font-size: 0.9rem;
  color: #000000;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.film-card .year-runtime {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.film-card .year-runtime span {
  color: #000000;
}

.film-card .director {
  margin-bottom: 10px;
}

.film-card .genre-languages {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.film-card .genre-languages span {
  color: #000000;
}

.film-card .read-synopsis {
  background: #E50914;
  border: none;
  padding: 5px 10px;
  font-size: 0.9rem;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 10px;
  width: 100%;
  text-align: center;
  transition: background 0.3s ease;
}

.film-card .read-synopsis:hover {
  background: #B20710;
}

.film-card .synopsis {
  display: none;
  font-size: 0.9rem;
  color: #000000;
  margin-top: 10px;
  font-family: 'Montserrat', sans-serif;
}

/* Festival Info Section */
#festival-info {
  padding: 150px 20px;
  background: url('background-festival.jpg') no-repeat center center/cover;
  position: relative;
  background-attachment: fixed;
}

#festival-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: -1;
}

.info-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: rgba(0, 0, 0, 1);
  padding: 50px;
  border-left: 2px solid #E50914;
  border-radius: 10px;
}

.info-content p {
  font-size: 1.2rem;
  color: #CCCCCC;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 45px;
  font-size: 1.1rem;
  color: #CCCCCC;
  flex-wrap: wrap;
}

.info-item #rsvp-email,
.info-item #rsvp-submit {
  width: 100%;
  margin-bottom: 10px;
}

.info-item i {
  color: #E50914;
  font-size: 1.2rem;
}

.info-item a {
  color: #E50914;
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

#rsvp-email {
  padding: 8px;
  border: 1px solid #E50914;
  border-radius: 5px;
  background: transparent;
  color: #FFFFFF;
  flex-grow: 1;
}

#rsvp-submit {
  background: #E50914;
  border: none;
  padding: 8px 15px;
  font-size: 1rem;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s ease;
}

#rsvp-submit:hover {
  background: #B20710;
}

.error-message {
  color: #E50914;
  font-size: 0.9rem;
  margin-left: 10px;
  display: none;
}

.success-message {
  color: #4CAF50;
  font-size: 0.9rem;
  margin-left: 10px;
  display: none;
}

.sponsor-logo {
  width: 100px;
  height: auto;
  margin-right: 10px;
}

/* About CineBa Section */
#about-cineba {
  padding: 100px 20px;
  background: #000000;
}

#about-cineba h2 {
  text-align: center;
  font-size: 4rem;
  color: #E50914;
  margin-bottom: 40px;
  text-transform: uppercase;
  font-family: 'Bebas Neue', cursive;
  letter-spacing: -3px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.2rem;
  color: #CCCCCC;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

/* Biography Pop-up */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000000;
  padding: 20px;
  border: 2px solid #E50914;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
}

.popup-content h3 {
  font-size: 2rem;
  color: #E50914;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', cursive;
}

.popup-content p {
  font-size: 1rem;
  color: #CCCCCC;
  font-family: 'Montserrat', sans-serif;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: #E50914;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 4rem;
  }

  .free-large {
    font-size: 6rem;
  }

  .freedom-day {
    font-size: 3rem;
  }

  .freedom-subtext {
    font-size: 1.2rem;
  }

  #about-cineba h2 {
    font-size: 3rem;
  }
  
  .calendar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .day {
    padding: 15px;
    border-left: 1px solid #E50914;
  }

  .day h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .event .time {
    font-size: 1.5rem;
    margin-top: 50px;
  }

  .event .title {
    font-size: 1rem;
  }

  .guest img {
    width: 35px;
    height: 35px;
  }

  .bio-btn {
    font-size: 0.7rem;
    padding: 3px 8px;
  }   

  .film-controls {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    margin: 20px 0;
  }

  .sort-controls,
  .filter-controls {
    flex-direction: column;
    gap: 5px;
  }

  label {
    font-size: 0.9rem;
  }

  select {
    width: 100%;
    font-size: 0.9rem;
  }

  .film-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px 20px 10px;
  }

  .film-card {
    padding: 10px;
  }

  .film-card h3 {
    font-size: 1rem;
  }

  .film-card .detail {
    font-size: 0.8rem;
  }

  .film-card .year-runtime {
    gap: 5px;
  }
  
  .film-card .genre-languages {
    flex-direction: column;
    gap: 5px;
  }

  .film-card .genre-languages span {
    display: block;
  }

  .film-card .read-synopsis {
    font-size: 0.8rem;
    padding: 5px;
  }

  .film-card .synopsis {
    font-size: 0.8rem;
  }

  .info-content {
    padding: 30px;
  }

  .info-item {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  #rsvp-email {
    width: 100%;
    margin-bottom: 10px;
  }

  #rsvp-submit {
    width: 100%;
  }
 
  .popup-content {
    width: 90%;
    max-width: 90%;
    padding: 15px;
  }

  .popup-content h3 {
    font-size: 1.5rem;
  }

  .popup-content p {
    font-size: 0.9rem;
  }
  
  .top-nav {
    top: 15px;
    right: 15px;
  }
  
  .top-nav ul {
    gap: 15px;
  }
}
