:root {
  --primary-color: #e9a741;
  --primary-light: #fff8e8;
  --primary-dark: #d89530;
  --text-color: #2d3748;
  --text-light: #4a5568;
  --white: #ffffff;
  --dark: #1a202c;
  --gray-light: #f7fafc;
  --gray: #e2e8f0;
  --code-bg: #263238;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --border-radius: 4px;
  --button-radius: 4px;
  --mono-font: "JetBrains Mono", monospace;
}

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

body,
html {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background: linear-gradient(
      to bottom,
      rgba(255, 248, 232, 0.9),
      rgba(233, 167, 65, 0.1)
    ),
    linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  background-attachment: fixed;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--primary-light);
  color: var(--dark);
  z-index: 1000;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  transform: translateY(-100%);
  backdrop-filter: blur(5px);
}
header.visible {
  transform: translateY(0);
}
header.scrolled {
  padding: 12px 30px;
}
header::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--white),
    var(--white) 5px,
    transparent 5px,
    transparent 15px
  );
  opacity: 0.7;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-icon {
  font-size: 1.5em;
  color: var(--dark);
}
header h1 {
  font-size: 1.3em;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
  font-family: var(--mono-font);
}
header nav {
  display: flex;
  gap: 25px;
}
header nav a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 8px 15px;
  position: relative;
}
header nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white); /* Changed for contrast */
  transition: width 0.3s ease;
}
header nav a:hover::after {
  width: 100%;
}
header nav a:hover {
  color: var(--white); /* Changed for contrast */
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(233, 167, 65, 0.3),
    linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  color: var(--text-color);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-color);
  opacity: 0.2;
  z-index: -1;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 0.3em;
  color: var(--text-color);
  font-family: var(--mono-font);
  opacity: 1;
}
.hero-date {
  display: inline-block;
  font-weight: 500;
  font-size: 1.1em;
  margin-bottom: 25px;
  color: var(--text-color);
  font-family: var(--mono-font);
  background: rgba(233, 167, 65, 0.15);
  padding: 5px 15px;
  border-radius: var(--border-radius);
}
.hero-date i {
  margin-right: 8px;
  color: var(--primary-color);
}

pre.code-block {
  font-family: var(--mono-font);
  background-color: var(--code-bg);
  color: var(--white);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  text-align: left;
  width: 100%;
  max-width: 550px;
  box-shadow: var(--card-shadow);
  overflow: auto;
}
pre.code-block code {
  display: block;
  white-space: pre;
}
.code-keyword {
  color: #c792ea;
}
.code-type {
  color: #ffcb6b;
}
.code-string {
  color: #c3e88d;
}
.code-number {
  color: #f78c6c;
}
.code-method {
  color: #82aaff;
}
.code-comment {
  color: #78909c;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.button {
  padding: 10px 20px;
  font-size: 0.95em;
  text-decoration: none;
  color: var(--text-color);
  background-color: var(--white);
  border-radius: var(--button-radius);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  border: 1px solid var(--gray);
  font-family: var(--mono-font);
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.primary-button {
  background: var(--primary-color);
  color: var(--dark);
  border: none;
}
.primary-button:hover {
  background: var(--primary-dark);
}
.button i {
  font-size: 1.1em;
}

.section {
  padding: 70px 20px;
  position: relative;
  background-color: rgba(255, 255, 255, 0.7);
}

.section-divider {
  height: 30px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.divider-dots {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color) 5px,
    transparent 5px,
    transparent 15px
  );
  opacity: 0.5;
}

.section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1em;
  color: var(--text-color);
  position: relative;
  font-family: var(--mono-font);
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-top: -10px;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--text-light);
}

.prize-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-size: 1.1em;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.prize-subtitle-small {
  text-align: center;
  margin: -1.5rem auto 2rem;
  color: var(--text-light);
  font-size: 0.9em;
  font-style: italic;
  max-width: 800px;
  color: #ffcb6b;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05em;
  line-height: 1.7;
}
.about-content a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 1px;
}
.about-content a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.schedule-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.day-schedule {
  flex: 1;
  min-width: 300px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray);
}
.day-schedule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}
.day-schedule:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.day-schedule h3 {
  color: var(--text-color);
  margin-bottom: 20px;
  font-size: 1.4em;
  text-align: center;
  font-weight: 700;
  font-family: var(--mono-font);
}
.day-schedule h3 i {
  color: var(--primary-color);
  margin-right: 8px;
}
.schedule-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray);
  display: flex;
  align-items: flex-start;
}
.schedule-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.schedule-time {
  font-weight: 600;
  color: var(--text-color);
  margin-right: 15px;
  min-width: 80px;
  text-align: right;
  font-family: var(--mono-font);
  font-size: 0.9em;
}
.schedule-content {
  flex: 1;
}

.prizes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.prize-card {
  flex: 1;
  min-width: 250px;
  max-width: 320px;
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: var(--border-radius);
  padding: 25px 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray);
}
.prize-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
}
.prize-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.prize-card h3 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 1.2em;
  font-weight: 700;
  font-family: var(--mono-font);
}
.prize-amount {
  font-size: 1.1em;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.prize-amount i {
  font-size: 1em;
  color: var(--primary-color);
}

.contact-info {
  max-width: 650px;
  margin: 0 auto;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--card-shadow);
  position: relative;
  z-index: 1;
  border: 1px solid var(--gray);
  background-color: rgba(255, 255, 255, 0.85);
}
.contact-method {
  padding: 20px;
  text-align: center;
}
.contact-method:last-child {
  margin-bottom: 0;
}
.contact-method p {
  font-size: 1em;
  margin-bottom: 12px;
}
.contact-method a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  border-bottom: 1px solid var(--primary-color);
}
.contact-method a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}
.contact-discord-button {
  background: var(--primary-color);
  color: var(--dark) !important;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--button-radius);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  text-decoration: none;
  border: none !important;
  font-family: var(--mono-font);
}
.contact-discord-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: var(--primary-dark);
  color: var(--dark) !important;
}
.contact-discord-button i {
  font-size: 1.1em;
}
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.contact-icon {
  width: 45px;
  height: 45px;
  background-color: var(--gray-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.contact-icon:hover {
  transform: translateY(-2px);
  background-color: var(--primary-color);
  color: var(--dark);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

footer {
  background-color: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--primary-color),
    var(--primary-color) 5px,
    transparent 5px,
    transparent 15px
  );
  opacity: 0.7;
}
footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
footer a:hover {
  color: var(--primary-light);
}
.footer-content {
  max-width: 700px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9em;
}
.footer-links a:hover {
  color: var(--primary-color);
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}
.social-icon {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: var(--white);
  transition: all 0.3s ease;
}
.social-icon:hover {
  background-color: var(--primary-color);
  color: var(--dark);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-question {
  cursor: pointer;
  padding: 15px 20px;
  background-color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--gray);
  box-shadow: var(--card-shadow);
}

.faq-question:hover {
  background-color: var(--primary-light);
}

.faq-question::after {
  content: "\f107";
  font-family: "Font Awesome";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 15px 20px;
  background-color: white;
  margin-bottom: 15px;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  border: 1px solid var(--gray);
  border-top: none;
  margin-top: -10px;
}

.faq-list {
  list-style-type: none;
  padding-left: 0;
}

.faq-list li {
  padding: 5px 0;
  position: relative;
  padding-left: 25px;
}

.faq-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.view-all-faq {
  text-align: center;
  margin-top: 30px;
}

.view-all-faq-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: var(--dark);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--button-radius);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--mono-font);
  box-shadow: var(--card-shadow);
}

.view-all-faq-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.view-all-faq-link i {
  font-size: 0.9em;
}

@media (max-width: 768px) {
  header {
    padding: 15px;
    flex-direction: column;
  }
  header.scrolled {
    padding: 10px 15px;
  }
  header nav {
    margin-top: 15px;
    gap: 1px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h1 {
    font-size: 2.5em;
  }
  .section-title {
    font-size: 1.8em;
  }
  pre.code-block code {
    font-size: 0.74em;
    line-height: 1.5;
  }
  .button {
    width: 100%;
  }
  .day-schedule,
  .prize-card,
  .contact-info {
    padding: 20px 15px;
  }
  .contact-icons {
    flex-wrap: wrap;
  }
  .footer-links {
    gap: 12px;
  }
  .section-divider {
    height: 20px;
  }
}

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

.volunteer-content p {
  font-size: 1.05em;
  margin-bottom: 40px;
  color: var(--text-color);
  line-height: 1.7;
}

.volunteer-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.benefit-item {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--gray);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.benefit-item i {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.benefit-item h4 {
  color: var(--text-color);
  font-size: 1.2em;
  margin-bottom: 10px;
  font-family: var(--mono-font);
}

.benefit-item p {
  font-size: 0.95em;
  margin-bottom: 0;
  color: var(--text-light);
}

.volunteer-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-color);
  color: var(--dark);
  padding: 15px 30px;
  border-radius: var(--button-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: var(--mono-font);
  font-size: 1.1em;
  box-shadow: var(--card-shadow);
}

.volunteer-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.volunteer-button i {
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .volunteer-benefits {
    gap: 20px;
  }
  
  .benefit-item {
    min-width: 100%;
  }
  
  .volunteer-button {
    width: 100%;
    justify-content: center;
  }
}

.sponsors-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.sponsor-logo {
  flex: 0 1 auto;
  max-width: 250px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.xyz-logo {
  max-width: 100px !important;
  height: 65px !important;
}
