* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  overscroll-behavior-x: contain;
}

body {
   font-family: 'Open Sans', sans-serif; /* Default long-form copy */
  background-color: #0e0e0e;
  color: #ccc;
  line-height: 1.6;
}

/* === GLOBAL FONT SETTINGS === */

/* Headings use Montserrat */
h1, h2, h3, h4, h5, h6,
.main_title h1,
.main_title h2,
.vertical-text,
.year-text,
.mode-toggle,
.cta-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; /* default heading weight */
}

/* Strong emphasis also uses Montserrat */
strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Paragraphs and list items use Open Sans */
p, li, a, input, textarea, button {
  font-family: 'Open Sans', sans-serif;
}



/* === MODE TOGGLE BUTTON === */
.mode-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 20px;
  background: #FFA300;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000000;
  transition: background 0.3s ease;
}
.mode-toggle:hover {
  background: #d9820e;
}

/* === LIGHT MODE OVERRIDES === */
body.light-mode {
  background-color: #fff;
  color: #333;
  font-family: 'Open Sans', sans-serif;
}

body.light-mode header {
  background: linear-gradient(135deg, #fff 50%, #f0f0f0 50%);
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
  color: #FFA300; /* Orange headings */
}

body.light-mode .about-section,
body.light-mode .schedule-section,
body.light-mode .sponsors-section,
body.light-mode .team-section,
body.light-mode .contact-section,
body.light-mode footer {
  background-color: #f9f9f9;
  color: #333;
}

body.light-mode a {
  color: #00B5E2; /* Blue links */
}

body.light-mode .cta-section {
  background: #00B5E2; /* Blue CTA */
  color: #fff;
}

body.light-mode .cta-btn {
  background: #FFA300; /* Orange button */
  color: #fff;
}

/* Making the text in about us section and schedule section black */
/* Light mode overrides */
body.light-mode .about-text p,
body.light-mode .about-text li,
body.light-mode .schedule-section p,
body.light-mode .schedule-section .date-range {
  color: #000000; /* Black text */
}


/* .about-text h2,
.schedule-section h2,
.registration-section h2,
.contact-section h2 {
  color: #ccc;
} */

.main_title h1 {
  color: #ccc;
}

.main_title h2 {
  color: #ccc;
}

/* Optional: keeps image rendering clean on mobile */
.intro-mobile img { display: block; }


header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(135deg, #0e0e0e 50%, #1a1a1a 50%);
  text-align: center;
}

header h1 {
  font-size: 6rem;
  font-weight: 900;
}

header h2 {
  font-size: 2rem;
  margin-top: 1rem;
  font-weight: 400;
}

.vertical-text {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: rotate(-90deg) translateY(-50%);
  font-size: 0.875rem;
  letter-spacing: 0.2rem;
  color: #aaa;
}

.year-text {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: rotate(90deg) translateY(-50%);
  font-size: 0.875rem;
  letter-spacing: 0.2rem;
  color: #aaa;
}

.about-section {
  display: flex;
  flex-wrap: wrap;
  background-color: #000000;
  padding: 4rem 2rem;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1 1 500px;
  max-width: 600px;
  padding-right: 2rem;
  color: #ccc;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ccc;
}

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #ccc;
}

.about-text p,
.about-text li {
  color: #ccc;
}

.about-text ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.about-image {
  flex: 1 1 300px;
  max-width: 400px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
}

.schedule-section {
  background-color: #1a1a1a;
  padding: 4rem 2rem;
  text-align: center;
  color: #ccc;
}

.schedule-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.schedule-section .date-range {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* === SPONSOR CAROUSEL === */


.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  margin-top: 2rem;
}

.sponsor-grid img {
  max-width: 150px;
  height: auto;
  /* filter: brightness(0) invert(1); makes logos white-ish if needed */
  transition: transform 0.3s ease;
}

.sponsor-grid img:hover {
  transform: scale(1.1);
}

.sponsor-carousel-custom {
  display: flex;
  /* overflow-x: auto; */
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 2rem 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  color: #ccc;
}

.sponsor-carousel-custom::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.sponsor-carousel-custom img {
  flex: 0 0 auto;
  width: 150px;
  height: auto;
  opacity: 0.4;
  transition: opacity 0.3s;
  /* transition: opacity 0.5s ease, transform 0.5s ease; */
  scroll-snap-align: center;
}

.sponsor-carousel-custom img.active {
  opacity: 1;
  transform: scale(1.1);
}

.sponsors-section {
  background-color: #000000;
  padding: 4rem 2rem;
  text-align: center;
  color: #ccc;
}


/* === TEAM SECTION === */

.team-section {
  padding: 4rem 2rem;
  background-color: #000000; /* Black background */
  text-align: center;
  color: #fff; /* White text */
}

.team-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.team-card {
  background: #111; /* Dark gray for contrast */
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  max-width: 220px;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-card p {
  font-size: 0.9rem;
  color: #ccc;
}



.registration-section {
  background-color: #1a1a1a;
  padding: 4rem 2rem;
  text-align: center;
  color: #ccc;
}

.registration-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.register-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #b59026;
  color: #0e0e0e;
  font-weight: bold;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.register-btn:hover {
  background-color: #a07d1f;
}

/* === CALL TO ACTION SECTION === */
.cta-section {
  background: #FFA300;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-btn {
  background: #000000;
  color: #fff;
  padding: 1rem 2rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
  border-radius: 10px;
}

.cta-btn:hover {
  background: #333;
}


/* === CONTACT SECTION === */

/* Light mode email styling */
body.light-mode .contact-section a {
  color: #FFA300; /* Orange email */
  font-weight: 600;
}


.contact-section {
  background-color: #000000;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}

.contact-info {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.contact-info h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: none;
  border-bottom: 1px solid #666;
  background: transparent;
  color: #fff;
  outline: none;
}

.contact-form button {
  background: #FFA300;
  color: #000000;
  padding: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #d9820e;
}


/* === SOCIAL LINKS === */
.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.social-links a {
  color: #FFA300; /* Orange for consistency */
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: #fff; /* White on hover */
  transform: scale(1.2);
}

/* Light mode override */
body.light-mode .social-links a {
  color: #00B5E2; /* Blue in light mode */
}

body.light-mode .social-links a:hover {
  color: #FFA300; /* Orange hover in light mode */
}


/* === FOOTER SECTION === */
.site-footer {
  background: #000000;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  max-width: 120px;
  height: auto;
}



/* Mobile Sponsor Animation */
@media (max-width: 768px) {
  header h1 {
    font-size: 3rem;
  }

  .about-section {
    flex-direction: column;
  }

  .about-text,
  .about-image {
    max-width: 100%;
    padding: 1rem 0;
  }

  .sponsor-carousel {
    flex-direction: row;
    animation: scroll-strip 12s linear infinite;
    gap: 4rem;
    overflow: hidden;
  }

  .sponsor-carousel:hover {
    animation-play-state: paused;
  }

  .sponsor-carousel img {
    opacity: 1 !important;
    transform: none !important;
    flex-shrink: 0;
  }

  .team-cards {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
}

@media (max-width: 480px) {
  .sponsor-carousel {
    animation-duration: 8s;
  }
}

@keyframes scroll-strip {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}
