/* Base Styles */
:root {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #2d2d2d;
  --primary-color: #bb86fc;
  --secondary-color: #03dac6;
  --accent-color: #cf6679;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #757575;
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
  color: var(--text-primary);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(18, 18, 18, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 70%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.1) 0%, rgba(3, 218, 198, 0.1) 100%);
  z-index: 1;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: var(--text-primary);
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip: rect(0, 0, 0, 0);
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--primary-color);
  animation: glitch-animation 2s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: 1px 0 var(--secondary-color);
  animation: glitch-animation 3s infinite linear alternate-reverse;
}

@keyframes glitch-animation {
  0% {
    clip: rect(44px, 9999px, 56px, 0);
  }
  5% {
    clip: rect(20px, 9999px, 59px, 0);
  }
  10% {
    clip: rect(67px, 9999px, 11px, 0);
  }
  15% {
    clip: rect(79px, 9999px, 83px, 0);
  }
  20% {
    clip: rect(32px, 9999px, 100px, 0);
  }
  25% {
    clip: rect(54px, 9999px, 76px, 0);
  }
  30% {
    clip: rect(35px, 9999px, 100px, 0);
  }
  /* ... continues but shortened for brevity */
  100% {
    clip: rect(70px, 9999px, 46px, 0);
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Countdown Styles */
.countdown-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: rgba(30, 30, 30, 0.6);
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.countdown-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-item span:first-child {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

.countdown-item span:last-child {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.step {
  display: flex;
  align-items: flex-start;
  background-color: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-left: 3px solid var(--primary-color);
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.step-number {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-right: 1rem;
  line-height: 1;
}

.step-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.step-content p {
  color: var(--text-secondary);
}

.timeline {
  margin-top: 3rem;
}

.progress-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0;
  transition: width 1s ease;
}

.timeline-markers {
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* Contestants Section */
.contestants {
  background-color: var(--bg-primary);
}

.contestant-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.contestant-card {
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.contestant-card:hover {
  transform: translateY(-10px);
}

.contestant-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 2rem auto 1rem;
  border: 5px solid var(--bg-secondary);
  position: relative;
}

.contestant-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.2), rgba(3, 218, 198, 0.2));
}

.contestant-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tagline {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

.contestant-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-primary);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.contestant-card:hover .contestant-hover {
  transform: translateY(0);
}

/* Statistics Section */
.statistics {
  background-color: var(--bg-secondary);
}

.stats-container {
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--box-shadow);
}

.stats-header,
.stats-row {
  display: grid;
  grid-template-columns: 1fr repeat(5, 1fr);
  text-align: center;
}

.stats-header {
  background-color: rgba(187, 134, 252, 0.1);
  font-weight: 600;
  padding: 1rem 0.5rem;
}

.stats-cell {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-row {
  transition: var(--transition);
}

.stats-row:hover {
  background-color: rgba(187, 134, 252, 0.05);
}

.stats-row:last-child .stats-cell {
  border-bottom: none;
}

.visualization,
.probability-visualization {
  background-color: var(--bg-tertiary);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--box-shadow);
}

.visualization h3,
.probability-visualization h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.chart-container {
  height: 300px;
  position: relative;
}

.probability-bars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.probability-bar {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  align-items: center;
  gap: 1rem;
}

.bar-label {
  color: var(--text-primary);
  font-weight: 500;
}

.bar-container {
  height: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0;
  transition: width 1.5s ease-out;
}

#prem-bar-fill {
  background: linear-gradient(90deg, var(--primary-color), #9d4edd);
}

#vishal-bar-fill {
  background: linear-gradient(90deg, var(--secondary-color), #00b4d8);
}

#dheeraj-bar-fill {
  background: linear-gradient(90deg, var(--accent-color), #e63946);
}

.bar-value {
  color: var(--text-secondary);
  font-weight: 600;
  text-align: right;
}

/* Rules Section */
.rules {
  background-color: var(--bg-primary);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.accordion-header {
  width: 100%;
  padding: 1.2rem;
  background-color: var(--bg-tertiary);
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  color: var(--text-primary);
}

.accordion-header:hover {
  background-color: rgba(187, 134, 252, 0.1);
}

.accordion-header .icon {
  font-size: 1.5rem;
  transition: var(--transition);
  color: var(--primary-color);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background-color: var(--bg-secondary);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
  padding: 1.2rem;
  margin: 0;
  color: var(--text-secondary);
}

.accordion-item.active .accordion-header {
  background-color: rgba(187, 134, 252, 0.2);
}

.accordion-item.active .icon {
  transform: rotate(45deg);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
  padding: 0.5rem 0;
}

/* Fun Zone Section */
.fun-zone {
  padding: 5rem 0;
  background-color: var(--light-color);
}

.tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tab-headers {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e9ecef;
}

.tab-btn {
  padding: 1rem 2rem;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s;
}

/* Meme Gallery */
.meme-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.meme {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.meme:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.meme img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.meme p {
  padding: 1rem;
  text-align: center;
  font-style: italic;
}

/* Quiz Styles */
.quiz-container {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.quiz-question {
  margin-bottom: 2rem;
}

.quiz-question p {
  font-weight: 600;
  margin-bottom: 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.quiz-submit {
  margin-top: 1.5rem;
}

.quiz-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  text-align: center;
}

/* Leaderboard Styles */
.leaderboard-container {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.prediction-meter {
  margin-bottom: 2.5rem;
}

.contestant-prediction {
  margin-bottom: 1.5rem;
}

.contestant-prediction h4 {
  margin-bottom: 0.5rem;
}

.meter-container {
  height: 20px;
  background-color: #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.meter {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 10px;
}

.cheer-section {
  text-align: center;
}

.cheer-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.cheer-btn {
  padding: 0.8rem 1.5rem;
  background-color: var(--light-color);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.cheer-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background-color: white;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

/* Footer Styles */
.footer {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-links h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .stats-header,
  .stats-row {
    grid-template-columns: 1fr repeat(2, 1fr);
  }

  .stats-header .stats-cell:nth-child(n + 4),
  .stats-row .stats-cell:nth-child(n + 4) {
    display: none;
  }
}

@media (min-width: 768px){
  .hero{
    margin-top: 60px;
  }
  
}
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    padding: 2rem 0;
    height: calc(100vh - 70px);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-link {
    display: block;
    padding: 1.5rem;
    font-size: 1.2rem;
  }

  .hero h2 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .countdown {
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .stats-container {
    overflow-x: auto;
  }

  .stats-header,
  .stats-row {
    grid-template-columns: 120px repeat(5, 120px);
    min-width: 720px;
  }
  
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .step {
    flex-direction: column;
  }

  .step-number {
    margin-bottom: 1rem;
  }

  .probability-bar {
    grid-template-columns: 80px 1fr 50px;
  }
}

