/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --accent-blue: #2563eb;
  --accent-blue-dark: #1d4ed8;
  --accent-orange: #f59e0b;
  --accent-orange-dark: #d97706;
  
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --bg-card: #ffffff;
  
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 50px rgba(16, 185, 129, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-primary);
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 6rem 0;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: var(--transition-normal);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: var(--text-primary);
}

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

.logo-svg {
  display: block;
  width: 44px;
  height: 44px;
  min-width: 32px;
  min-height: 32px;
  max-width: 100%;
  max-height: 100%;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  padding-top: 5.5rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero-image-bg {
  background: url('cricket-stadium-bg.jpg') center center/cover no-repeat;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 32, 50, 0.65); /* stronger overlay for readability */
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem;
  color: var(--text-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
}

/* Remove old tile/pattern/glow styles */
.hero-pattern, .hero-glow {
  display: none !important;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.badge-icon {
  font-size: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-highlight {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
  font-size: 1rem;
}

.cta-primary {
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.cta-primary:hover {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  color: #fff;
}

.cta-secondary {
  background: rgba(245, 158, 11, 0.1);
  color: #2563eb;
  border: 1px solid #f59e0b;
}

.cta-secondary:hover {
  background: #f59e0b;
  color: #fff;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 2rem;
  background: rgba(255, 255, 255, 0.2);
}

.hero-visual {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.cricket-animation {
  position: relative;
  width: 300px;
  height: 300px;
}

.floating-ball, .floating-bat, .floating-stumps {
  position: absolute;
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.floating-ball {
  width: 40px;
  height: 40px;
  background: var(--accent-orange);
  top: 20%;
  right: 20%;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
  animation-delay: 0s;
}

.floating-bat {
  width: 60px;
  height: 15px;
  background: #8B4513;
  border-radius: 30px;
  top: 50%;
  left: 30%;
  animation-delay: 1s;
}

.floating-stumps {
  width: 8px;
  height: 50px;
  background: var(--text-white);
  border-radius: 4px;
  bottom: 20%;
  right: 40%;
  animation-delay: 2s;
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

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

.feature-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  box-shadow: 0 2px 12px 0 rgba(37,99,235,0.10);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.13) rotate(-3deg);
  box-shadow: 0 4px 24px 0 rgba(37,99,235,0.18), 0 0 0 4px rgba(37,99,235,0.08);
}

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

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

.feature-stats {
  display: flex;
  gap: 1rem;
}

.stat {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Glossary Section */
.glossary-section {
  position: relative;
  background: none;
  overflow: hidden;
}
.glossary-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #e0e7ff 0%, #f1f5f9 100%);
  opacity: 0.85;
  pointer-events: none;
}
.glossary-section > .container {
  position: relative;
  z-index: 1;
}

.glossary-search-container {
  max-width: 500px;
  margin: 0 auto 3rem;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.glossary-search {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.glossary-search:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

.glossary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.glossary-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

.term-emoji {
  font-size: 2rem;
}

.term-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.term-category {
  font-size: 0.875rem;
  color: var(--accent-blue);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.term-definition {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.term-example {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-blue);
}

.example-label {
  font-weight: 600;
  color: var(--accent-blue);
  margin-right: 0.5rem;
}

.glossary-cta {
  text-align: center;
}

/* Roadmap Section */
.roadmap-section {
  background: var(--bg-secondary);
  padding: var(--section-padding);
}
.roadmap-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #f59e0b 100%);
  border-radius: 2px;
  transform: translateX(-50%);
  z-index: 0;
}
.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  justify-content: flex-start;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline-marker {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: #fff;
  border: 4px solid #2563eb;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 8px #2563eb22;
}
.timeline-item:nth-child(even) .timeline-marker {
  border-color: #f59e0b;
  box-shadow: 0 2px 8px #f59e0b22;
}
.timeline-content {
  width: 48%;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
  margin-left: 2.5rem;
  margin-right: 0;
}
.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 2.5rem;
}
.timeline-badge {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 20px;
  padding: 0.4rem 1.1rem;
  margin-bottom: 1rem;
}
.timeline-card {
  background: none;
  box-shadow: none;
  border: none;
  padding: 0;
}
.timeline-icon {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}
.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.timeline-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.timeline-features {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.feature-tag {
  background: #2563eb22;
  color: #2563eb;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

@media (max-width: 900px) {
  .roadmap-timeline {
    padding: 0;
  }
  .timeline-content {
    width: 90%;
    margin-left: 2.5rem;
    margin-right: 0;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 2.5rem;
  }
}
@media (max-width: 600px) {
  .roadmap-timeline::before {
    left: 16px;
    width: 2px;
  }
  .timeline-marker {
    left: 16px;
    width: 20px;
    height: 20px;
  }
  .timeline-content {
    width: 100%;
    margin-left: 2.5rem;
    margin-right: 0;
    padding: 1.2rem 1rem;
  }
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 2.5rem;
    margin-right: 0;
  }
  .logo-text, .footer .logo-text {
    font-size: 1.4rem;
  }
}

/* Remove learning hub grid/card styles if present */
.learning-hub-section, .hub-grid, .hub-card, .hub-icon, .hub-title, .hub-description {
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 4rem 0 2rem;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}
.footer-brand {
  max-width: 350px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
  font-size: 1.2rem;
}
.social-link:hover {
  background: var(--accent-blue);
  color: var(--text-white);
  transform: translateY(-2px);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.footer-list {
  list-style: none;
}
.footer-list li {
  margin-bottom: 0.5rem;
}
.footer-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-fast);
}
.footer-list a:hover {
  color: var(--accent-orange);
}
.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}
.contact-email {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}
.contact-email:hover {
  text-decoration: underline;
}
.footer-bottom-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-line a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-line a:hover {
  color: var(--accent-orange);
}
.footer-bottom-line .heart {
  color: #ef4444;
  animation: heartbeat 2s ease-in-out infinite;
}
/* Remove old .footer-bottom and .footer-legal styles if not needed */
.footer-bottom, .footer-legal {
  display: none !important;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateX(-50%) scale(1.1); }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero {
    text-align: center;
    padding: 2rem 0;
  }
  .hero-visual {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .stat-divider {
    width: 2rem;
    height: 1px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .glossary-grid {
    grid-template-columns: 1fr;
  }
  .roadmap-timeline::before {
    left: 1rem;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    padding-left: 3rem;
    padding-right: 0;
    text-align: left;
  }
  .timeline-marker {
    left: 1rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-legal {
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .nav-container {
    padding: 0 1rem;
  }
  .hero-content {
    padding: 1rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .feature-card,
  .timeline-card {
    padding: 1.5rem;
  }
}