/* ========================================
   INDEX PAGE SPECIFIC STYLES
   Styles specific to index.html content
   ======================================== */

/* Hero Section Enhancements */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
  transform: translateY(20px);
}

.hero-badge i {
  color: #f59e0b;
}

/* Featured CTA styling */
.cta-featured {
  position: relative;
  overflow: hidden;
}

.cta-featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.cta-featured:hover::before {
  left: 100%;
}

/* Features Showcase Section */
.features-showcase {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

/* Alternating section backgrounds for better flow */
section:nth-of-type(even) {
  background: var(--bg-secondary);
}

section:nth-of-type(odd) {
  background: var(--bg-primary);
}

/* Add subtle dividers between sections */
section {
  position: relative;
  padding: 5rem 0;
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1000px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-color),
    transparent
  );
  opacity: 0.5;
}

section:last-of-type::after {
  display: none;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.feature-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--primary-color);
}

.feature-card:hover .feature-link {
  color: var(--primary-color);
  transform: translateX(5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(10deg);
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.feature-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

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

/* Blog Card Hover Effects */
.blog-post-card {
  transition: all 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Interactive Activity Section - Vocabulary Quiz */
.activity-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.activity-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--border-color);
}

.activity-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  line-height: 1.2;
}

.challenge-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  text-transform: uppercase;
}

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

.activity-subtitle {
  color: #64748b;
  margin-bottom: 3rem;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.vocabulary-game {
  background: white;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  border: none;
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.vocabulary-game::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #46bbe5, #2d9cdb, #46bbe5);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.1;
}

.word-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 2.5rem;
  border-radius: 20px;
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border: 3px solid #e0e7ff;
  position: relative;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1e293b;
  z-index: 1;
}

.word-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.question-number {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.difficulty-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.difficulty-badge.easy {
  background: linear-gradient(45deg, #10b981, #34d399);
  color: white;
}

.difficulty-badge.medium {
  background: linear-gradient(45deg, #f59e0b, #fbbf24);
  color: white;
}

.difficulty-badge.expert {
  background: linear-gradient(45deg, #ef4444, #f87171);
  color: white;
  animation: expertPulse 2s infinite;
}

@keyframes expertPulse {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
  }
}

.word-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0;
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
}

.context-sentence {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(70, 187, 229, 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.question-prompt {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1rem;
}

.option-letter {
  color: var(--primary-color);
  font-weight: 700;
  margin-right: 0.5rem;
}

.game-results {
  text-align: center;
  padding: 1rem;
}

.result-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.score-display {
  font-size: 3rem;
  font-weight: 900;
  margin: 0.5rem 0;
}

.percentage {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.result-message {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 8px;
}

.result-stats {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.result-stats p {
  margin: 0.3rem 0;
}

/* Result type styling */
.legendary .score-display {
  color: #ffd700;
}
.legendary .result-message {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #000;
}

.exceptional .score-display {
  color: #ff6b35;
}
.exceptional .result-message {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
}

.impressive .score-display {
  color: var(--secondary-color);
}
.impressive .result-message {
  background: var(--secondary-color);
  color: white;
}

.decent .score-display {
  color: var(--primary-color);
}
.decent .result-message {
  background: var(--primary-color);
  color: white;
}

.challenging .score-display {
  color: #ef4444;
}
.challenging .result-message {
  background: #ef4444;
  color: white;
}

.game-set-info {
  margin: 1rem 0;
}

.set-badge {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(var(--primary-rgb), 0.3);
}

.social-share {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn {
  background: linear-gradient(45deg, #1da1f2, #0d8bd9);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.motivational {
  background: linear-gradient(45deg, #4ade80, #22c55e);
  color: white;
  padding: 0.8rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: 500;
}

.game-set-indicator {
  font-size: 0.9rem;
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0.3rem 0.8rem;
  background: rgba(var(--secondary-rgb), 0.1);
  border-radius: 15px;
  display: inline-block;
  animation: fadeInScale 0.6s ease-out;
}

.success-pulse {
  animation: successPulse 0.6s ease-out;
}

.error-shake {
  animation: errorShake 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes errorShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.feedback-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  z-index: 100;
  animation: feedbackFade 1s ease-out;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.feedback-message.success {
  background: linear-gradient(45deg, #22c55e, #16a34a);
  color: white;
}

.feedback-message.error {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  color: white;
}

@keyframes feedbackFade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

.score-container {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}

.current-score {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.accuracy {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0.3rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.option-btn {
  background: white;
  border: 3px solid #e0e7ff;
  padding: 1.5rem;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.option-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(70, 187, 229, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.option-btn:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
}

.option-btn:hover::before {
  left: 100%;
}

.option-btn.correct {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: white;
  animation: correctAnswer 0.6s ease;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.option-btn.incorrect {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: white;
  animation: shake 0.5s ease;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.activity-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: #3b82f6;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: var(--bg-primary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.about-description p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-features {
  margin-top: 3rem;
}

.about-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-icon-small {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-features .feature-content h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-features .feature-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-showcase {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 100%;
}

.logo-display {
  margin-bottom: 2.5rem;
}

.about-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  padding: 10px;
}

.logo-display h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.brand-tagline {
  color: var(--primary-color);
  font-weight: 600;
  font-style: italic;
}

.credentials {
  display: grid;
  gap: 1rem;
}

.credential-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.credential-item:hover {
  border-color: var(--primary-color);
  transform: translateX(5px);
}

.credential-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.credential-item span {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Statistics Section */

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

.stat-card {
  padding: 1.5rem;
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffd700;
}

.stat-card .stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Fade-in animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced card hover effects */
.feature-card,
.tool-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  position: relative;
}

.feature-card:hover,
.tool-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
}

.feature-card::after,
.tool-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.feature-card:hover::after,
.tool-card:hover::after {
  transform: scaleX(1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Learning Paths Section Mobile */
  .learning-paths-section {
    padding: 3rem 0 !important;
  }

  .learning-paths-section .section-header {
    margin-bottom: 2rem !important;
  }

  .learning-paths-section .section-title {
    font-size: 1.75rem !important;
  }

  .learning-paths-section .section-subtitle {
    font-size: 1rem !important;
  }

  .paths-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    margin-top: 1.5rem !important;
    padding: 0 0.5rem;
  }

  .paths-grid .path-card {
    padding: 1.5rem 1.25rem !important;
    border-radius: 16px !important;
  }

  .paths-grid .path-card > div:first-child {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
    border-radius: 14px !important;
  }

  .paths-grid .path-card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
  }

  .paths-grid .path-card p {
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.5 !important;
  }

  .paths-grid .path-card a {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
  }

  /* Feature cards inside paths-grid */
  .paths-grid > .feature-card {
    background: white;
    border: 2px solid var(--border-color);
    padding: 1.5rem 1.25rem !important;
    border-radius: 16px !important;
  }

  .paths-grid > .feature-card .feature-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  .paths-grid > .feature-card .feature-title {
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
  }

  .paths-grid > .feature-card .feature-description {
    font-size: 0.9rem !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.5 !important;
  }

  .paths-grid > .feature-card .feature-link {
    font-size: 0.9rem !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 0.5rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .about-text .section-header {
    text-align: center;
  }

  .brand-showcase {
    padding: 2.5rem 1.5rem;
  }

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

  .section-header {
    margin-bottom: 3rem;
    padding: 0 1rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 1.25rem;
  }

  .section-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .vocabulary-game {
    padding: 2rem 1.5rem;
  }

  .word-card {
    padding: 2rem 1.5rem;
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
  }

  .option-btn {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    margin: 0.5rem 0;
  }

  section {
    padding: 3.5rem 0;
  }

  .features-showcase,
  .activity-section,
  .blog-preview-section {
    padding: 4rem 0;
  }

  p {
    font-size: 1rem;
    line-height: 1.7;
  }

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

@media (max-width: 480px) {
  /* Learning Paths Section - Extra Small */
  .learning-paths-section {
    padding: 2.5rem 0 !important;
  }

  .learning-paths-section .section-title {
    font-size: 1.5rem !important;
  }

  .paths-grid {
    gap: 1rem !important;
    padding: 0 0.25rem;
  }

  .paths-grid .path-card {
    padding: 1.25rem 1rem !important;
  }

  .paths-grid .path-card > div:first-child {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.25rem !important;
  }

  .paths-grid .path-card h3 {
    font-size: 1.1rem !important;
  }

  .paths-grid .path-card p {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  .paths-grid .path-card a {
    padding: 0.65rem 1rem !important;
    font-size: 0.85rem !important;
  }

  /* Feature cards inside paths-grid - Extra small */
  .paths-grid > .feature-card {
    padding: 1.25rem 1rem !important;
  }

  .paths-grid > .feature-card .feature-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.25rem !important;
  }

  .paths-grid > .feature-card .feature-title {
    font-size: 1.1rem !important;
  }

  .paths-grid > .feature-card .feature-description {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  .paths-grid > .feature-card .feature-link {
    font-size: 0.85rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .feature-title {
    font-size: 1.25rem;
  }

  .activity-title {
    font-size: 1.75rem;
  }

  .vocabulary-game {
    padding: 1.5rem 1rem;
  }

  .word-card {
    padding: 1.5rem 1rem;
    font-size: 1.25rem;
  }

  .option-btn {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
}

/* Dark mode support */
.dark-mode .word-card {
  background: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(70, 187, 229, 0.3);
  border-color: #46bbe5;
}

.dark-mode .vocabulary-game {
  border-color: #46bbe5;
  box-shadow: 0 8px 24px rgba(70, 187, 229, 0.15);
}

.dark-mode .option-btn {
  background: var(--bg-secondary);
  border-color: #46bbe5;
  box-shadow: 0 2px 8px rgba(70, 187, 229, 0.15);
}

.dark-mode .context-sentence {
  background: rgba(70, 187, 229, 0.15);
  border-left-color: #46bbe5;
  color: var(--text-secondary);
}

.dark-mode .option-letter {
  color: #46bbe5;
}

/* ===================================================
   TOOL CARD ENHANCEMENTS
   =================================================== */
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-color: var(--primary-color) !important;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
}

@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===================================================
   FOOTER STYLES - Comprehensive footer styling
   =================================================== */
footer {
  background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #0f172a 100%);
  color: var(--text-inverse);
  padding: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    var(--secondary-color),
    var(--accent-color),
    transparent
  );
}

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

/* Newsletter Section - Fixed alignment */
.footer-newsletter {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-bottom: 1px solid #374151;
  padding: 2rem 0;
  margin-bottom: 0;
  width: 100%;
}

.newsletter-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-text h3 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.newsletter-text p {
  color: #d1d5db;
  font-size: 1rem;
  margin: 0;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.newsletter-form input {
  padding: 0.75rem 1rem;
  border: 2px solid #374151;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-inverse);
  font-size: 0.95rem;
  min-width: 250px;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(70, 187, 229, 0.2);
}

.newsletter-form input::placeholder {
  color: #9ca3af;
}

.btn-newsletter {
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: var(--font-weight-semibold);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-newsletter:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(70, 187, 229, 0.3);
}

/* Main Footer Content - Optimized */
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

/* Enhanced Brand Section */
.footer-brand {
  padding-right: 1rem;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  padding: 4px;
  background: rgba(70, 187, 229, 0.1);
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  margin: 0;
  font-family: var(--font-family-brand);
}

.footer-brand p {
  color: #d1d5db;
  line-height: 1.5;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer Section Enhancements */
.footer-section h3 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  font-family: var(--font-family-brand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

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

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

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  font-weight: var(--font-weight-medium);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  background: rgba(70, 187, 229, 0.1);
  transform: translateX(6px);
  border-left: 2px solid var(--primary-color);
}

.footer-section ul li a i {
  width: 16px;
  text-align: center;
  opacity: 0.8;
  transition: all var(--transition-normal);
  font-size: 0.85rem;
}

.footer-section ul li a:hover i {
  opacity: 1;
  transform: scale(1.05);
  color: var(--primary-color);
}

/* Enhanced Footer Bottom - Simplified */
.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-left p {
  margin: 0;
  line-height: 1.3;
  font-size: 0.85rem;
}

.footer-bottom-left .footer-subtitle {
  font-size: 0.75rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 0.25rem;
}

.footer-bottom-center .footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-center .footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: all var(--transition-normal);
  font-weight: var(--font-weight-medium);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-bottom-center .footer-links a:hover {
  color: var(--primary-color);
  background: rgba(70, 187, 229, 0.1);
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--secondary-color);
  font-weight: var(--font-weight-medium);
}

.badge:first-child {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--accent-color);
}

/* Enhanced Back to Top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(70, 187, 229, 0.3);
  z-index: 1000;
  font-size: 1.1rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  animation: bounceIn 0.6s ease-out;
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(70, 187, 229, 0.4);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.3);
  }
  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
  }
  70% {
    transform: translateY(5px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--text-inverse);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-normal);
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.social-links a:hover {
  background: var(--primary-hover);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(70, 187, 229, 0.4);
}

.social-links a:nth-child(2) {
  background: #1da1f2;
}

.social-links a:nth-child(2):hover {
  background: #0d8bd9;
  box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.social-links a:nth-child(3) {
  background: #0077b5;
}

/* ==============================================
   UTILITY CLASSES & TOOLTIPS
   ============================================== */

/* Tooltip styles */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  pointer-events: none;
  z-index: 1000;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ===================================================
   AI BOT ASSISTANT STYLES
   =================================================== */

/* AI Bot Container */
.ai-bot-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
}

/* AI Bot Button */
.ai-bot-button {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #46bbe5 0%, #2d9cdb 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(70, 187, 229, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-bot-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(70, 187, 229, 0.6);
}

.ai-bot-icon {
  font-size: 1.8rem;
  color: white;
  position: relative;
  z-index: 2;
}

/* Pulse Animation */
.ai-bot-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(70, 187, 229, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* AI Bot Chat Window */
.ai-bot-chat {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 500px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ai-bot-chat.active {
  display: flex;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode */
.dark-mode .ai-bot-chat {
  background: var(--bg-secondary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* AI Bot Header */
.ai-bot-header {
  background: linear-gradient(135deg, #46bbe5 0%, #2d9cdb 100%);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.ai-bot-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.ai-bot-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ai-bot-name {
  font-weight: 600;
  font-size: 1rem;
}

.ai-bot-online {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.ai-bot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
}

.ai-bot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Messages Container */
.ai-bot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f9fafb;
}

.dark-mode .ai-bot-messages {
  background: var(--bg-primary);
}

/* Bot Message */
.bot-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.bot-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #46bbe5 0%, #2d9cdb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.bot-message-content {
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 80%;
}

.dark-mode .bot-message-content {
  background: var(--bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bot-message-content p {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.quick-action-btn {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #46bbe5 0%, #2d9cdb 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 187, 229, 0.3);
}

.quick-action-btn i {
  font-size: 0.85rem;
}

/* User Message */
.user-message {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.user-message-content {
  background: linear-gradient(135deg, #46bbe5 0%, #2d9cdb 100%);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 80%;
  box-shadow: 0 2px 8px rgba(70, 187, 229, 0.3);
}

.user-message-content p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ai-bot-container {
    bottom: 1rem;
    right: 1rem;
  }

  .ai-bot-button {
    width: 56px;
    height: 56px;
  }

  .ai-bot-icon {
    font-size: 1.5rem;
  }

  .ai-bot-chat {
    bottom: 5rem;
    right: 1rem;
    width: calc(100vw - 2rem);
    height: 450px;
  }
}

@media (max-width: 480px) {
  .ai-bot-chat {
    bottom: 5rem;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 400px;
    border-radius: 16px 16px 0 0;
  }
}

/* Scrollbar Styling */
.ai-bot-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-bot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-bot-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.ai-bot-messages::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.dark-mode .ai-bot-messages::-webkit-scrollbar-thumb {
  background: #4b5563;
}

.dark-mode .ai-bot-messages::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}
