@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css');

/* Brand Colors */
:root {
  --primary-color: #C71F5D; /* Crimson Pink */
  --dark-text: #2B2B2B;
  --background-color: #F9FAFB;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --hover-color: #A61A4D;
  --accent-color: #FF6B6B; /* Coral Red */
  --success-color: #4CAF50; /* Green */
  --warning-color: #FFC107; /* Yellow */
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--background-color);
  color: var(--dark-text);
  line-height: 1.6;
  font-weight: 400;
  scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
  background: #C71F5D;
  color: var(--white);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--hover-color);
  transition: all 0.3s ease;
}

.navbar .logo {
  display: flex;
  align-items: center;
}

.navbar .logo-img {
  height: 32px;
  margin-right: 8px;
}

.navbar .logo h1 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--white);
  display: none; /* Hide text logo, use image only */
}

.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.navbar nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
}

.navbar nav a:hover {
  color: var(--hover-color);
  background: rgba(255,255,255,0.1);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  color: var(--white);
  text-decoration: none;
}

.navbar a:hover {
  text-decoration: underline;
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--primary-color) !important;
  font-size: 1rem;
}

.social-links a:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
  color: var(--white) !important;
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--hover-color) 100%);
  color: var(--white);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  z-index: 1;
  pointer-events: none;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  z-index: 2;
  font-weight: 600;
  animation: fadeInDown 0.5s ease-out;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin-bottom: 2rem;
  z-index: 2;
  opacity: 0.9;
}

.hero button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background-color: var(--dark-text);
  color: var(--white);
  border: none;
  cursor: pointer;
  margin-top: 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 600;
  z-index: 2;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.hero button:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  z-index: -1;
  transition: transform 0.3s ease;
}

.hero button:hover::after {
  transform: scale(1.2);
}

/* Footer Styles */
.footer {
  background-color: #2B2B2B;
  color: var(--white);
  padding: 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-info, .footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Enhanced Footer Sections */
.footer-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

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

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Additional Content Styles */
.about-features, .feature-item, .about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.about-features .feature-item {
  flex: 1;
  min-width: 300px;
  margin-bottom: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.about-features .feature-item:hover {
  transform: translateY(-5px);
}

.about-features h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.about-features p {
  color: var(--dark-text);
}

.features-section, .features-content, .feature-item {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.features-section .feature-item {
  flex: 1;
  min-width: 300px;
  margin-bottom: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.features-section .feature-item:hover {
  transform: translateY(-5px);
}

.quiz-categories, .category {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.quiz-categories .category {
  flex: 1;
  min-width: 300px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.quiz-categories .category:hover {
  transform: translateY(-5px);
}

.quiz-categories .category h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.quiz-categories .category p {
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.quiz-categories .quiz-link {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.quiz-categories .quiz-link:hover {
  background: var(--primary-color);
  color: var(--white);
}

.pricing-faq .faq-item {
  margin-bottom: 1.5rem;
}

.pricing-faq h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pricing-faq p {
  color: var(--dark-text);
}

.support-categories, .support-categories .category {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.support-categories .category {
  flex: 1;
  min-width: 300px;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.support-categories .category h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.support-categories .category p {
  margin-bottom: 1rem;
  color: var(--dark-text);
}

.support-categories a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.support-categories a:hover {
  color: var(--hover-color);
  border-bottom-color: var(--hover-color);
}

.faq-section .faq-item {
  margin-bottom: 1.5rem;
}

.faq-section h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.faq-section p {
  color: var(--dark-text);
}

.roadmap-community .community-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.roadmap-community .cta-button {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.roadmap-community .cta-button:hover {
  background: var(--hover-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-features, .features-section, .quiz-categories, .support-categories {
    flex-direction: column;
  }

  .about-features .feature-item,
  .features-section .feature-item,
  .quiz-categories .category,
  .support-categories .category {
    max-width: 100%;
  }

  .roadmap-community .community-actions {
    flex-direction: column;
  }

  .roadmap-community .cta-button {
    width: 100%;
  }
}

/* Semantic Layout Styles */
main {
  flex: 1;
  padding: 7rem 2rem 10rem; /* Add padding to account for fixed header and footer */
  min-height: 100vh; /* Ensure content area takes full height */
  display: flex;
  flex-direction: column;
  background-color: #F9FAFB; /* Ensure content has proper background */
}

/* Add spacing below navbar */
.navbar {
  margin-bottom: 1rem;
}

/* Add spacing above footer */
.footer {
  margin-top: 2rem;
}

/* Ensure proper content flow */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header and footer positioning */
header#header-placeholder {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

footer#footer-placeholder {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
}

/* Main content area */
main {
  flex: 1;
  padding: 7rem 2rem 10rem; /* Account for fixed header and footer */
  background-color: var(--background-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero section spacing */
.hero {
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Content section spacing */
.content-section {
  padding: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

/* Feature items spacing */
.feature-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 8px;
}

/* Section heading spacing */
h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* List spacing */
ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  padding-left: 1rem;
}

ul li {
  margin-bottom: 0.5rem;
}

.content-section {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex: 1;
}

.pricing-section {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 2rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.pricing-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.pricing-card p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
}

.pricing-card li {
  margin-bottom: 1rem;
  color: var(--dark-text);
  position: relative;
}

.pricing-card li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  margin-right: 0.5rem;
}

.quiz-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-list li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.quiz-list li a:hover {
  color: var(--hover-color);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: 2rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-content {
  width: 100%;
  padding-left: 2rem;
  position: relative;
}

.timeline-content h4 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.timeline-content p {
  margin: 0.5rem 0 0;
  color: var(--dark-text);
}

/* Responsive Design */
@media (max-width: 768px) {
  .pricing-section {
    flex-direction: column;
  }

  .pricing-card {
    max-width: 100%;
  }

  .timeline {
    padding: 1rem 0;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-marker {
    left: 0;
    transform: translateX(0);
  }

  .timeline-content {
    padding-left: 1.5rem;
  }
}

/* Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--hover-color);
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background: var(--hover-color);
}

.social-links img {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }

  .navbar .logo,
  .navbar nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  .navbar nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .navbar nav a {
    width: 100%;
    text-align: center;
  }

  /* Mobile menu toggle */
  .navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
  }

  .navbar-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  .navbar.active .navbar-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar.active .navbar-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.active .navbar-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .navbar.active nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.hero h2 {
  animation: fadeInDown 0.8s ease-out;
}

.hero button {
  animation: pulse 2s infinite;
}

.about-features .feature-item,
.features-section .feature-item,
.quiz-categories .category,
.support-categories .category {
  transition: all 0.3s ease;
}

.about-features .feature-item:hover,
.features-section .feature-item:hover,
.quiz-categories .category:hover,
.support-categories .category:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

/* Accessibility Improvements */
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Performance Optimizations */
img {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .hero button {
    animation: none;
  }

  .hero h2 {
    animation: none;
  }
}
