/*
Theme Name: WordDodge
Description: Custom theme for WordDodge - helping dyslexic students excel
Version: 1.0
Author: WordDodge Team
*/

/* Import Lexend font for accessibility */
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap");

/* CSS Variables for brand colors */
:root {
  --primary-purple: #cb81f0;
  --light-purple: #f5ebfb;
  --primary-green: #2ed000;
  --light-green: #ebf9e5;
  --primary-blue: #73a6f3;
  --light-blue: #eef7fd;
  --dark-navy: #192549;
  --light-cream: #fffef7;
  --white: #ffffff;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lexend", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-navy);
  background-color: var(--light-cream);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

/* Header */
.site-header {
  background: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 50px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark-navy);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary-green);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: "Lexend", sans-serif;
}

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

.btn-primary:hover {
  background: #26b800;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-secondary:hover {
  background: #5a94f0;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--dark-navy);
  color: var(--white);
}

/* Enhanced Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero-enhanced {
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--light-purple) 100%);
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none" stroke="%23ffffff" stroke-opacity="0.1" stroke-width="1"/></svg>');
  opacity: 0.5;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-navy);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  line-height: 0;
}

/* Section Styles */
.content-section {
  padding: 80px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-green);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  color: #666;
}

/* Developed By Section */
.developed-by-section {
  padding: 40px 0;
}

.developed-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.developed-by h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

/* Video Section */
.video-section {
  background-color: var(--light-blue);
}

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

.video-placeholder {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background-color: var(--dark-navy);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%) scale(1.1);
}

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

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Steps Section */
.steps-section {
  background-color: var(--light-green);
}

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

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

.step:last-child {
  margin-bottom: 0;
}

.step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 60px;
  left: 25px;
  height: calc(100% - 30px);
  width: 2px;
  background-color: var(--primary-green);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content {
  padding-top: 0.5rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--light-purple);
}

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

.testimonial-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  position: relative;
  margin-bottom: 1.5rem;
}

.quote-icon {
  position: absolute;
  top: -20px;
  left: -10px;
  opacity: 0.2;
}

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

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ddd;
  margin-right: 1rem;
}

.testimonial-info h4 {
  margin-bottom: 0.2rem;
}

.testimonial-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #666;
}

/* Stats Section */
.stats-section {
  background-color: var(--white);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--dark-navy);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
}

.cta-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: white;
  color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
  background: var(--light-cream);
}

.cta-section .btn-secondary {
  background: transparent;
  border: 2px solid white;
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Login Form */
.login-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-navy);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-family: "Lexend", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

/* Enhanced Footer */
.site-footer {
  background: var(--dark-navy);
  color: var(--white);
  position: relative;
}

.footer-wave {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  height: 60px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-green);
  transform: translateY(-3px);
}

.footer-links h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-green);
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-contact h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-contact h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-green);
}

.footer-contact p {
  margin-bottom: 0.8rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

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

  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .developed-by {
    flex-direction: column;
    text-align: center;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .step:not(:last-child):after {
    display: none;
  }

  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Accessibility improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus {
  outline: 3px solid var(--primary-blue);
  outline-offset: 2px;
}
