c
:root {
  --bg-color: #fafafa;
  --text-color: #333;
  --card-bg: #ffffff;
  --nav-bg: #ffffff;
  --button-bg: #e8f4f8;
  --button-hover-bg: #5fb3d4;
  --button-text: #5fb3d4;
  --button-hover-text: #ffffff;
  --border-color: #e0e0e0;
  --search-bg: #f8f9fa;
  --logo-color: #333;
}

a {
  text-decoration: none;
  color: var(--button-text);
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
}

body.light {
  --bg-color: #fafafa;
  --text-color: #333;
  --card-bg: #ffffff;
  --nav-bg: #ffffff;
  --button-bg: #e8f4f8;
  --button-hover-bg: #5fb3d4;
  --button-text: #5fb3d4;
  --button-hover-text: #ffffff;
  --border-color: #e0e0e0;
  --search-bg: #f8f9fa;
  --logo-color: #333;
}

body {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --card-bg: #2a2a2a;
  --nav-bg: #2a2a2a;
  --button-bg: #2d4a52;
  --button-hover-bg: #4a9cc9;
  --button-text: #4a9cc9;
  --button-hover-text: #ffffff;
  --border-color: #404040;
  --search-bg: #333;
  --logo-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: all 0.3s ease;
}

/* Navigation */
.nav-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--nav-bg);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  z-index: 1000;
  padding: 0 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  max-width: 1000px;
  width: calc(100% - 40px);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: var(--button-bg);
  color: var(--button-text);
}

.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--logo-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: var(--button-hover-bg);
  border-radius: 4px;
}

#logo-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

#search-bar {
  width: 300px;
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--search-bg);
  color: var(--text-color);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

#search-bar:focus {
  border-color: var(--button-hover-bg);
  box-shadow: 0 0 0 3px rgba(95, 179, 212, 0.1);
}

#mode-toggle {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  color: var(--text-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0), 0 2px 4px rgba(0, 0, 0, 0);
}

#mode-toggle:hover {
  background: var(--search-bg);
  box-shadow: 0 0 0 3px rgba(95, 179, 212, 0.1);
}

/* Main content */
.main-content {
  margin-top: 100px;
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 40px 20px;
}

.hero-section {
  text-align: center;
  max-width: 800px;
  margin-bottom: 60px;
}

.hero-section h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-section p {
  font-size: 18px;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 32px;
}

.cta-button {
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 18px 36px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 20px rgba(95, 179, 212, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

.cta-button:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(95, 179, 212, 0.4), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(95, 179, 212, 0.3), 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Pages showcase */
.pages-showcase {
  width: 100%;
  margin: 40px 0;
  position: relative;
}

.pages-scroll-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.pages-scroll-track {
  display: flex;
  gap: 20px;
  animation: continuousScroll 40s linear infinite;
  width: max-content;
}

.scroll-image {
  width: 200px;
  height: 120px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 16px 12px;
  gap: 8px;
}

.scroll-image:hover {
  background: var(--button-bg);
  color: var(--button-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.scroll-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

/* Book Icon */
.book-icon::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.book-icon::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 1px;
  background: currentColor;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 -3px 0 currentColor, 0 3px 0 currentColor;
}

/* Chart Icon */
.chart-icon::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 12px;
  background: currentColor;
  bottom: 4px;
  left: 4px;
  border-radius: 1px;
}

.chart-icon::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 16px;
  background: currentColor;
  bottom: 4px;
  left: 10px;
  border-radius: 1px;
  box-shadow: 6px -4px 0 currentColor;
}

/* Clock Icon */
.clock-icon::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.clock-icon::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 6px;
  background: currentColor;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: bottom;
}

/* Pencil Icon */
.pencil-icon::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 16px;
  background: currentColor;
  top: 2px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}

.pencil-icon::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid currentColor;
  top: 18px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 1px;
}

/* Rocket Icon */
.rocket-icon::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 14px;
  background: currentColor;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px 3px 0 0;
}

.rocket-icon::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes continuousScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

/* Updates section */
.updates-section {
  max-width: 1000px;
  width: 100%;
  margin: 60px 0;
  padding: 0 20px;
}

.updates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.updates-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.learn-more {
  color: var(--button-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.learn-more:hover {
  background: var(--button-bg);
  color: var(--button-hover-text);
}

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

.update-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.update-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--button-hover-bg);
}

.update-image {
  width: 100%;
  height: 160px;
  background: var(--button-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.update-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.update-card:hover .update-img {
  transform: scale(1.05);
}

.update-icon {
  font-size: 48px;
  opacity: 0.8;
}

.update-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 12px;
  line-height: 1.3;
}

.update-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.update-category {
  background: var(--button-bg);
  color: var(--button-text);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.update-date {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 14px;
}

/* Testimonials */
.testimonial {
  background: var(--search-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
}

.testimonial h3 {
  margin-bottom: 8px;
  color: var(--button-text);
}
.container {
  display: flex;
  justify-content: center;  /* centers horizontally */
  align-items: center;      /* centers vertically */
  height: 100vh;            /* full viewport height */
}


/* Card styles */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  margin: 20px 0;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.card h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-color);
  line-height: 1.2;
}

.card h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--text-color);
  line-height: 1.3;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 24px;
  color: var(--text-color);
  line-height: 1.3;
}

.card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 20px;
  color: var(--text-color);
  line-height: 1.3;
}

.card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--text-color);
}

.card ol, .card ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.card li {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 8px;
  color: var(--text-color);
}

.card ol li {
  margin-bottom: 12px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

button, .button {
  background: var(--button-bg);
  color: var(--button-text);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
}

button:hover, .button:hover {
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
  border-color: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}

button:active, .button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.back-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* Search results */
#search-results {
  margin-top: 20px;
}

#search-results a {
  display: block;
  margin: 8px 0;
  color: var(--button-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#search-results a:hover {
  background: var(--button-bg);
  color: var(--button-hover-text);
}

#no-results {
  display: none;
  margin-top: 16px;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #dc2626;
  text-align: center;
}

body.light #no-results {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

body #no-results {
  background: #431c1c;
  border-color: #7f1d1d;
  color: #fca5a5;
}

/* About link */
#about-container {
  margin-top: 40px;
  text-align: center;
}

#about-link {
  color: var(--button-text);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#about-link:hover {
  background: var(--button-bg);
  color: var(--button-hover-text);
}

/* Better spacing for content */
.main-content {
  max-width: 1200px;
  margin: 100px auto 0;
  padding: 40px 20px;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-container {
    top: 10px;
    width: calc(100% - 20px);
    padding: 0 20px;
  }
  
  .nav-links {
    gap: 16px;
  }
  
  .nav-link {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  #search-bar {
    width: 200px;
    margin: 8px 0;
  }
  
  .hero-section h1 {
    font-size: 36px;
  }
  
  .hero-section p {
    font-size: 16px;
  }

  .cta-button {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    letter-spacing: 0.3px;
  }
  
  .card {
    padding: 24px;
    margin: 12px;
  }
  
  .card h1 {
    font-size: 28px;
  }
  
  .card h2 {
    font-size: 22px;
  }
  
  .button-grid {
    grid-template-columns: 1fr;
  }
  
  .back-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .scroll-image {
    width: 150px;
    height: 90px;
    font-size: 12px;
    padding: 12px 8px;
    gap: 6px;
  }

  .scroll-icon {
    width: 20px;
    height: 20px;
  }
  
  .updates-section {
    margin: 40px 0;
    padding: 0 12px;
  }
  
  .updates-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .updates-header h2 {
    font-size: 24px;
  }
  
  .updates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .update-card {
    padding: 16px;
  }
  
  .update-image {
    height: 120px;
  }

  .update-img {
    border-radius: 8px;
  }
  
  .update-icon {
    font-size: 36px;
  }
}

/* Footer */
.footer {
  margin-top: 60px;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--text-color);
  opacity: 0.8;
}

.footer-copyright {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--button-text);
}

.footer-note {
  font-size: 12px;
  opacity: 0.6;
  font-style: italic;
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 15px;
  }
  
  .nav-content {
    flex-wrap: wrap;
    gap: 12px;
    height: auto;
    min-height: 60px;
    padding: 8px 0;
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
  
  .nav-right {
    margin-left: auto;
  }
  
  #search-bar {
    flex: 1;
    max-width: 250px;
  }
  
  .main-content {
    margin-top: 140px;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
    max-width: 280px;
    letter-spacing: 0.2px;
  }
  
  .footer {
    padding: 30px 15px;
  }
  
  .footer-links {
    gap: 16px;
  }

  .scroll-image {
    width: 120px;
    height: 70px;
    font-size: 11px;
    padding: 10px 6px;
    gap: 4px;
  }

  .scroll-icon {
    width: 16px;
    height: 16px;
  }

  .scrolling-images {
    gap: 12px;
  }
}
