/* General Styles */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  margin: 0;
}

/* Parallax Background Section */
.parallax {
  height: 100vh;
  background: url('background.jpeg') no-repeat center center/cover;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10%;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
}

.title {
  font-size: 16rem;
  color: white;
  position: relative;
  z-index: 2;
  text-align: left;
  line-height: 1;
}

.jozi {
  display: block;
}

.rumble {
  display: block;
  margin-left: 15%;
  position: relative;
}

.rumble::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -10%;
  width: 120%;
  height: 60%;
  background: #ffcc00;
  z-index: -1;
  transform: skewX(-20deg);
  animation: highlight 2s infinite;
}

@keyframes highlight {
  0% { transform: skewX(-20deg) translateX(-10%); }
  50% { transform: skewX(-20deg) translateX(10%); }
  100% { transform: skewX(-20deg) translateX(-10%); }
}

.rotating-square {
  width: 150px;
  height: 150px;
  background: #ffcc00;
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%) rotate(45deg);
  animation: rotate 5s infinite linear;
}

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

/* About Section */
.about {
  padding: 10rem 10% 6rem; /* Added more space above */
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.highlight-text {
  font-weight: bold;
  color: #ffcc00;
}

.highlight-bg {
  background: #333;
  color: white;
  padding: 0.2rem 0.5rem;
}

.rumble-text {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 2rem;
}

.rumble-effect {
  background: #ffcc00;
  padding: 0.2rem 0.5rem;
  color: #333;
  animation: rumble 1s infinite;
}

@keyframes rumble {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.typewriter {
  margin-top: 2rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.5rem;
  color: #333;
  position: relative;
}

.typewriter-text {
  background: #ffcc00;
  padding: 0.2rem 0.5rem;
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 3s steps(40) 1s 3 normal both;
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* Advert Section */
.advert {
  padding: 6rem 10%;
  text-align: center;
  background: #f8f8f8;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.button {
  background: #333;
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.button:hover {
  background: #ffcc00;
  color: #333;
}

/* Past Editions Section */
.past-editions {
  padding: 6rem 10%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('background2.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  z-index: -1;
  opacity: 0.3;
}

.columns {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.column {
  flex: 1;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid #ffcc00;
  border-radius: 10px;
  animation: border-pulse 3s infinite ease-in-out;
}

@keyframes border-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 1; }
}

.debate-rooms {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.number {
  color: #ffcc00;
}

.champion {
  background: #ffcc00;
  padding: 0.2rem 0.5rem;
  color: #333;
}

.tab-link-container {
  margin-top: 2rem;
}

.tab-link {
  background: #333;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  transition: background 0.3s;
}

.tab-link:hover {
  background: #ffcc00;
  color: #333;
}

.tab-link i {
  margin-left: 0.5rem;
}

/* Past Champions Section */
.past-champions {
  padding: 6rem 10%;
  text-align: left;
  background: #f8f8f8;
}

.past-champions ul {
  list-style: none;
  padding: 0;
}

.past-champions li {
  margin: 1.5rem 0;
  position: relative;
  z-index: 1;
}

.year {
  font-weight: bold;
  color: #333;
}

.champion-part {
  background: #ffcc00;
  padding: 0.2rem 0.5rem;
  color: #333;
}

/* Floating Squares */
.floating-squares {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shape1, .shape2, .shape3 {
  position: absolute;
  background: #ffcc00;
  animation: float 6s infinite ease-in-out;
}

.shape1 { top: 10%; left: 10%; width: 50px; height: 50px; }
.shape2 { top: 30%; left: 70%; width: 70px; height: 70px; }
.shape3 { top: 60%; left: 40%; width: 40px; height: 40px; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .title {
    font-size: 8rem;
  }

  .rumble {
    margin-left: 10%;
  }

  .about {
    padding: 8rem 5% 4rem;
  }

  .advert {
    padding: 4rem 5%;
  }

  .button-group {
    flex-direction: column;
    gap: 1rem;
  }

  .past-editions {
    padding: 4rem 5%;
  }

  .columns {
    flex-direction: column;
    gap: 1rem;
  }

  .column {
    padding: 1.5rem;
  }

  .past-champions {
    padding: 4rem 5%;
  }

  .past-champions ul {
    padding-left: 1rem;
  }

  .floating-squares {
    display: none; /* Hide floating squares on mobile */
  }
  
  .typewriter-text {
    white-space: normal; /* Allow text to wrap */
    animation: none; /* Disable typewriter animation on mobile */
    display: block; /* Ensure the text takes full width */
    text-align: center; /* Center-align the text */
  }
}
