/* Base Styles */
:root {
  --background: #FFFFFF;
  --foreground: #121214;
  --primary: #6E48AA;  /* Quizitron Purple */
  --primary-foreground: #FFFFFF;
  --secondary: #FF6B6B; /* Coral */
  --secondary-foreground: #FFFFFF;
  --accent: #FFD166; /* Yellow */
  --accent-foreground: #1E1E1E;
  --muted: #F5F5F5;
  --muted-foreground: #737373;
  --border: #E6E6E7;
  --input: #E6E6E7;
  --success: #48BB78;
  --success-foreground: #FFFFFF;
  --destructive: #EF4444;
  --destructive-foreground: #F9FAFB;
  --card: #FFFFFF;
  --card-foreground: #121214;
  --radius: 0.5rem;
}

.dark {
  --background: #0C0C0F;
  --foreground: #F9FAFB;
  --primary: #6E48AA;
  --primary-foreground: #FFFFFF;
  --secondary: #FF6B6B;
  --secondary-foreground: #FFFFFF;
  --accent: #FFD166;
  --accent-foreground: #0C0C0F;
  --muted: #28282C;
  --muted-foreground: #A6A6A7;
  --border: #28282C;
  --input: #28282C;
  --card: #0C0C0F;
  --card-foreground: #F9FAFB;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 5rem 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
  color: var(--primary-foreground);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.btn-outline-primary {
  background-color: var(--background);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
}

.btn-full {
  width: 100%;
}

/* Text Colors */
.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--background);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  width: 3rem;
}

.logo-primary {
  color: var(--primary);
}

.logo-secondary {
  color: var(--secondary);
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
}

.nav-menu li {
  align-self: center;
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--foreground);
}

.mobile-menu {
  display: none;
  width: 100%;
  background-color: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  /* gap: 0.5rem; */
  line-height: normal;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--foreground);
}

.mobile-btn {
  margin-top: 0.5rem;
  display: block;
  text-align: center;
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--background) 95%, white));
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-ratings {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatars {
  display: flex;
}

.user-avatars img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--background);
  margin-right: -0.5rem;
  object-fit: cover;
}

.stars {
  color: var(--accent);
  display: flex;
}

.rating p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--muted-foreground);
}

.hero-image {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Console Animation */
.console-container {
  position: relative;
  height: 300px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.console {
  background-color: var(--background);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  width: 150px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.console.left {
  left: 10%;
  animation: slideInLeft 1s ease-out forwards;
}

.console.right {
  right: 10%;
  animation: slideInRight 1s ease-out forwards;
}

.console-screen {
  background-color: var(--primary);
  border-radius: 0.5rem;
  height: 32px;
  margin-bottom: 0.5rem;
}

.console-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.console-buttons button {
  padding: 0.5rem;
  border: none;
  border-radius: 0.25rem;
  color: var(--primary-foreground);
  font-weight: 500;
  cursor: pointer;
}

.btn-a {
  background-color: var(--secondary);
}

.btn-b {
  background-color: var(--accent);
  color: var(--accent-foreground) !important;
}

.btn-c {
  background-color: var(--success);
}

.projector {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--primary-foreground);
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10;
  animation: float 3s ease-in-out infinite;
}

.projector i {
  font-size: 1.5rem;
}

.connection-info {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--background);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.connection-info span {
  color: var(--primary);
  font-weight: 500;
}

/* Features Section */
.features {
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--muted);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  height: 3rem;
  width: 3rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--muted);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.step-card {
  background-color: var(--background);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-card h3 {
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.step-card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Pricing Section */
.pricing {
  background-color: var(--background);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.pricing-card {
  background-color: var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.popular-tag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom-left-radius: 0.5rem;
}

.pricing-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
  margin-bottom: 0.5rem;
}

.price {
  display: flex;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.price span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.25rem;
}

.pricing-header p {
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.pricing-features {
  padding: 1.5rem;
}

.pricing-features ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.pricing-features li i {
  color: var(--success);
  margin-right: 0.5rem;
}

/* Testimonials Section */
.testimonials {
  background-color: color-mix(in srgb, var(--primary) 5%, transparent);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--background);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
}

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

/* .stars {
  margin-bottom: 1rem;
} */

.quote {
  color: var(--foreground);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* FAQ Section */
.faq {
  background-color: var(--background);
}

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

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: var(--background);
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.125rem;
}

.faq-question i {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), color-mix(in srgb, var(--background) 95%, white));
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  background-color: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  /* margin-right: 1rem; */
}

.contact-icon i {
  font-size: 1.25rem;
  color: var(--primary);
}

.contact-method h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-method p {
  color: var(--muted-foreground);
  margin-bottom: 0;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: color-mix(in srgb, var(--primary) 90%, black);
  color: var(--primary-foreground);
}

.social-link i {
  font-size: 1.125rem;
  color: white !important;
}

.contact-form-container {
  background-color: var(--background);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}

/* Footer */
.footer {
  background-color: color-mix(in srgb, var(--foreground) 95%, transparent);
  color: color-mix(in srgb, var(--background) 95%, transparent);
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.footer-links-column h4 {
  color: var(--background);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column li {
  margin-bottom: 0.75rem;
}

.footer-links-column a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.footer-links-column a:hover {
  color: var(--secondary);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.contact-info i {
  /* margin-right: 0.75rem; */
  color: var(--primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 80%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: scale(0);
  transition: transform 0.3s ease;
  z-index: 50;
}

#back-to-top.visible {
  transform: scale(1);
}

#back-to-top i {
  font-size: 1.25rem;
}

/* Confetti */
#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  z-index: 1000;
  animation: fall linear forwards;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translateZ(0);
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Animation Keyframes */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translate(-100px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate(100px, -50%);
  }
  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

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

/* Media Queries */
@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
  
  .hero-content {
    flex-direction: row;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-image {
    flex: 1;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .steps-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    opacity: 0.2;
    z-index: -10;
  }

  .step-card.middle {
    margin-top: 75px;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-card.popular {
    transform: translateY(-1rem);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr 2fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer-bottom p {
    margin-bottom: 0;
  }
}