/* Global Styles */
:root {
  --primary-color: #4e73df;
  --secondary-color: #1cc88a;
  --dark-color: #5a5c69;
  --light-color: #f8f9fc;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Navbar */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar-scrolled {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.nav-link {
  font-weight: 600;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1rem 0;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: rgba(78, 115, 223, 0.1);
  color: var(--primary-color);
}

.dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 500px;
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-buttons {
  margin-top: 2rem;
}

.hero-image {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-15deg);
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0);
}

/* Features Section */
.feature-card {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

/* Feature Header */
.feature-header {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  color: white;
  padding: 120px 0 50px;
  margin-bottom: 30px;
}

.feature-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-header .lead {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Process Cards */
.process-card {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: white;
  height: 100%;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.process-card:hover {
  transform: translateY(-10px);
}

.process-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

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

/* Testimonials */
.testimonial-card {
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: white;
  height: 100%;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #6c757d;
}

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

.testimonial-author img {
  width: 60px;
  height: 60px;
  margin-right: 1rem;
  border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.testimonial-author p {
  margin-bottom: 0;
  color: #6c757d;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.feature-list li i {
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

/* Footer */
footer {
  background-color: #343a40;
  color: white;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

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

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: color 0.3s ease;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-section {
    height: auto;
    padding: 120px 0 80px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-header {
    padding: 100px 0 40px;
  }

  .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    margin-top: 0.5rem;
  }

  .dropdown-item {
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 100px 0 60px;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .hero-buttons .btn:last-child {
    margin-left: 0 !important;
  }

  .feature-card,
  .process-card,
  .testimonial-card {
    margin-bottom: 2rem;
  }

  .game-container {
    padding: 20px;
  }

  .flashcard {
    width: 150px;
    height: 150px;
    font-size: 80px;
  }

  #traceCanvas {
    width: 250px;
    height: 250px;
  }
}

