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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a0a0a;
  color: #e5e5e5;
  line-height: 1.7;
  padding-bottom: 60px;
  font-size: 16px;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.toc {
  margin: 1rem 0 2rem 0;
  padding: 1rem 1.5rem;
  background-color: #111;
  border-left: 4px solid #444;
  width: fit-content;
}

.toc h3 {
  margin-bottom: 0.75rem;
  color: #ccc;
  font-size: 1.1rem;
}

.toc ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toc li {
  display: flex;
  align-items: center;
}

.toc a {
  color: #88ccff;
  text-decoration: none;
  font-weight: bold;
}

.toc a:hover {
  text-decoration: underline;
}

.toc-num {
  display: inline-block;
  width: 2em;
  color: #aaa;
  font-weight: normal;
}
a {
  color: #00f0ff;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #00c8d4;
  text-decoration: underline;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #000000;
  color: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.logo a{
  color: #ffffff;
}

.logo a:hover{
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #ffffff;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.nav-links a:hover {
  opacity: 0.7;
}

/* Page Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* About Section */
.about-section {
  padding: 5rem 1.5rem 3rem;
  background-color: #111111;
  color: #cccccc;
}

.about-section h1 {
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: #ffffff;
}

.about-section p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.9;
  color: #bbbbbb;
}

.about-section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ffffff;
}


/* Value List */
.about-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 2rem auto 0;
}

.about-list li {
  background-color: #1a1a1a;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #00f0ff;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s ease;
}

.about-list li:hover {
  background-color: #222222;
}

/* Divider */
hr {
  margin: 3rem auto;
  border: none;
  height: 1px;
  background: #333333;
  width: 80%;
}


/* Archive Page Styles */
.archive-container {
  padding: 3rem 1.5rem;
  max-width: 1000px;
  margin: auto;
}

.intro {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #aaaaaa;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.category {
  margin-bottom: 4rem;
}

.subcategory {
  margin-bottom: 2.5rem;
}

.subcategory h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-left: 5px solid #00f0ff;
  padding-left: 1rem;
  color: #ffffff;
}

.subcategory ul {
  list-style: none;
  padding: 0;
}

.subcategory li {
  background-color: #1a1a1a;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-left: 4px solid #00f0ff;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.subcategory li:hover {
  transform: translateY(-2px);
  background-color: #242424;
}

.subcategory a {
  color: #00eaff;
  font-weight: 500;
}
.subcategory a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #000000, #141414);
  color: #ffffff;
  padding: 4rem 2rem; /* reduced padding to prevent overflow */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* extend to full viewport height */
  box-sizing: border-box;
}


.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #cccccc;
}


.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #00f0ff;
  color: #000000;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #56ca73;
  transform: translateY(-2px);
}

.button-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.5rem;
  align-items: center;
}

.button-list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.4rem;
  background-color: #1c1c1c;
  color: #00e0ff;
  border: 2px solid #2e2e2e;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  box-shadow: 0 10px 12px rgba(0, 0, 0, 0.975);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.button-list-item:hover {
  background-color: #252525;
  color: #00f7ff;
  transform: translateY(-2px);
}

.button-list-item .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* Optional: remove default button styles */
.button-list-item {
  border: none;
  outline: none;
  background: none;
}


.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

footer {
  width: 100%;
  padding: 1.5rem 0;
  background-color: #000000;
  color: #888888;
  text-align: center;
  font-size: 0.95rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.7);
}

.about-project {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  line-height: 1.8;
  color: #ddd;
}

.about-project h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.about-project hr {
  margin: 1.5rem 0;
  border: none;
  height: 1px;
  background: #444;
}


.inline-image {
  max-width: 300px;
  width: 100%;
  height: auto;
  margin: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.inline-image.right {
  float: right;
  margin-left: 1.5rem;
}

.inline-image.left {
  float: left;
  margin-right: 1.5rem;
}

/* Clear floats to prevent layout breaking */
.about-project::after {
  content: "";
  display: table;
  clear: both;
}

.search-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 2rem;
  min-height: 100vh;
  background: linear-gradient(to left, #000000, #141414);
  color: #ffffff;
  text-align: center;
}

.search-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: bold;
}

#searchInput {
  padding: 0.75rem 1.2rem;
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #444;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.2s ease;
}

#searchInput:focus {
  outline: none;
  box-shadow: 0 0 8px #1fa2ff;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  text-align: center; /* Ensures links inside are centered */
}

.results-list li {
  margin-bottom: 1rem;
  background-color: #1a1a1a;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #2c2c2c;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.results-list li:hover {
  background-color: #222;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.results-list a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  transition: color 0.2s ease;
}

.results-list a:hover {
  color: #1fa2ff;
}

.no-results {
  color: #888;
  font-style: italic;
  font-size: 1.1rem;
  margin-top: 2rem;
}

