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

.nav-buttons {
  position: fixed;
  right: 15px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}

.nav-buttons button {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  color: #ffb347;
  border: 1px solid #ffb347;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.3s ease;
  min-width: 80px;
}

.nav-buttons button:hover {
  background: #ffb347;
  color: #000;
}

.nav-buttons button:active {
  transform: scale(0.98);
}

body {
  font-family: Georgia, serif;
  background: #0f0f0f;
  color: #f2f2f2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.6;
}

h1 {
  text-align: center;
  margin: 30px 0 20px;
  letter-spacing: 1px;
  font-size: 28px;
  padding: 0 10px;
}

.section-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-nav a {
  text-decoration: none;
  color: #aaa;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.section-nav a:hover {
  color: #ffb347;
  border-bottom: 1px solid #ffb347;
}

.section-header {
  font-size: 24px;
  color: #ffb347;
  margin: 50px 10px 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 24px;
  background: #ffb347;
}

.card {
  border-bottom: 1px solid #333;
  padding: 25px 0;
  margin: 0 10px;
}

.title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.4;
}

.summary {
  color: #aaa;
  font-style: italic;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
  padding-left: 10px;
  border-left: 2px solid #444;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 10px;
}

.category-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  color: #f2f2f2;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.category-card:hover {
  background: rgba(255, 179, 71, 0.1);
  border-color: #ffb347;
  transform: translateY(-5px);
}

.category-card .icon {
  font-size: 40px;
  margin-bottom: 5px;
}

.category-card h3 {
  font-size: 22px;
  color: #ffb347;
  letter-spacing: 1px;
}

.category-card p {
  font-size: 14px;
  color: #aaa;
  font-style: italic;
}

button {
  background: transparent;
  color: #ffb347;
  border: 1px solid #ffb347;
  padding: 8px 20px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 5px;
  font-size: 15px;
  transition: all 0.3s ease;
  min-width: 80px;
}

button:hover {
  background: #ffb347;
  color: #000;
}

button:active {
  transform: scale(0.98);
}

.content {
  display: none;
  white-space: pre-line;
  margin-top: 20px;
  line-height: 1.8;
  color: #e6e6e6;
  padding-left: 10px;
  border-left: 1px solid #333;
  font-size: 16px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  max-width: 900px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Improve readability on all screens */
@media (prefers-color-scheme: light) {
  body {
    background: #f5f5f5;
    color: #222;
  }
  
  .card {
    border-bottom-color: #ddd;
  }
  
  .summary {
    color: #666;
    border-left-color: #ccc;
  }
  
  .content {
    color: #333;
    border-left-color: #ddd;
  }
  
  button {
    color: #ff8c00;
    border-color: #ff8c00;
  }
  
  button:hover {
    background: #ff8c00;
    color: #fff;
  }
}

/* Smooth scrolling for better mobile experience */
html {
  scroll-behavior: smooth;
}
