/* CSS Variables for flat design */
:root {
  --primary-bg: #0f0f23;
  --secondary-bg: #1a1a2e;
  --text-color: #ffffff;
  --highlight-color: #00d4aa;
  --accent-color: #ff6b6b;
  --border-color: #333333;
  --font-family: 'Inter', sans-serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--primary-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--secondary-bg);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--highlight-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--highlight-color);
}

/* Hero Section */
#hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  padding: 120px 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 50%;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.highlight {
  color: var(--highlight-color);
  font-weight: 600;
}

.progress-container {
  margin-top: 2rem;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--highlight-color);
  transition: width 2s ease-in-out;
}

.progress-text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

.hero-image {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-image img {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
}

/* Floating Balls for Playfulness */
.floating-ball {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  pointer-events: auto;
  z-index: 3;
}

.ball1 { background-color: #00d4aa; /* teal */ }
.ball2 { background-color: #ff6b6b; /* red */ }
.ball3 { background-color: #ffd93d; /* yellow */ }
.ball4 { background-color: #6bcf7f; /* green */ }
.ball5 { background-color: #4d96ff; /* blue */ }
.ball6 { background-color: #c77dff; /* purple */ }
.ball7 { background-color: #ff8c42; /* orange */ }
.ball8 { background-color: #ff4757; /* coral */ }

/* About Section */
#about {
  padding: 4rem 0;
  background-color: var(--secondary-bg);
}

#about h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--text-color);
}

.about-content {
  display: flex;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-text ul {
  list-style: none;
  padding-left: 0;
}

.about-text li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-text li::before {
  content: '🎪';
  position: absolute;
  left: 0;
}

.buttons {
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--highlight-color);
  color: var(--primary-bg);
  text-decoration: none;
  border-radius: 5px;
  margin-right: 1rem;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--accent-color);
}

/* FAQ Section */
#faq {
  padding: 4rem 0;
}

#faq h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--text-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem;
  background-color: var(--secondary-bg);
  color: var(--text-color);
  border: none;
  text-align: left;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: var(--highlight-color);
  color: var(--primary-bg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: var(--primary-bg);
}

.faq-answer p {
  padding: 1rem;
  margin: 0;
}

/* Footer */
footer {
  padding: 2rem 0;
  background-color: var(--secondary-bg);
  text-align: center;
}

footer a {
  color: var(--highlight-color);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1rem;
  }

  nav ul {
    margin-top: 1rem;
  }

  nav ul li {
    margin-left: 1rem;
  }

  #hero {
    flex-direction: column;
    text-align: center;
    padding-top: 150px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
  }

  .faq-question {
    font-size: 1rem;
  }
}
