/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', 'Segoe UI', 'Poppins', sans-serif;
  background: url('../assets/img/2.png') no-repeat center center fixed;
  background-size: cover;
  color: #180124;
  min-height: 20vh;
}

/* Wrapper for Flex Layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

/* === Header === */
.codex-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #00ffff44;
  backdrop-filter: blur(8px);
}

.codex-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 8px #00ffffaa;
}

.codex-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.codex-nav ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.codex-nav ul li a:hover {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffffaa;
}

/* === Main Section === */
.codex-main {
  flex: 1;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 120px; /* Adjust depending on header height */
}

/* Style for h2 headings with teal glow */
.codex-main h2 {
  color: #ffffff; /* white text */
  text-shadow: 0 0 5px #02C9FF, 0 0 10px #02C9FF, 0 0 15px #02C9FF; /* teal glow */
  font-size: 24px;
  margin-bottom: 20px;
}

.codex-welcome {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  margin-bottom: 80px;
  border-left: 5px solid #00ffff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #ddd;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 10px; /* Adjust depending on header height */
}

.codex-welcome h2 {
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 10px;
  text-shadow: 0 0 6px #00ffffaa;
}

.codex-welcome a {
  color: #00ffff;
  text-decoration: underline;
}

.codex-welcome a:hover {
  text-shadow: 0 0 6px #00ffffcc;
}


/* === Make plain <pre> text white  === */
pre {
  color: #ffffff;
}


/* === ToC Intro === */
.toc-intro {
  text-align: center;
  margin-bottom: 50px;
}

.toc-intro h1 {
  font-size: 3rem;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffffcc;
}

.toc-intro p {
  font-size: 1.2rem;
  margin-top: 1px;
  color: #cccccc;
}

/* === ToC Grid === */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

/* === Category Cards === */
.toc-category {
  background: rgba(15, 15, 30, 0.8);
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(6px);
}

.toc-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.toc-category h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #00ffff;
}

.toc-category ul {
  list-style: none;
}

.toc-category ul li {
  margin-bottom: 10px;
}

.toc-category ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.toc-category ul li a:hover {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffffaa;
}

/* === Footer === */
.codex-footer {
  background: rgba(0, 0, 0, 0.7);
  text-align: center;
  padding: 25px 20px;
  font-size: 1.2rem;
  color: #888;
  border-top: 3px solid #00ffff44;
  backdrop-filter: blur(6px);
}

.social-icon img {
  margin: 0 10px;
  width: 120px;
  height: 120px;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 4px #00ffffaa);
}

.social-icon:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #00ffff);
}

/* === Fade-in Animation === */
.fade-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* === Guide Page Intro === */
.guide-intro {
  text-align: center;
  margin-bottom: 40px;
}

.guide-intro h1 {
  font-size: 2.5rem;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffffcc;
}

.guide-intro p {
  font-size: 1.1rem;
  color: #cccccc;
  margin-top: 10px;
}

/* === Video Section === */
.guide-video {
  margin: 30px 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* === Steps Section === */
.guide-steps {
  margin-top: 1px;
}

.guide-steps h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid #00ffff55;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  margin-bottom: 40px;
  border-left: 4px solid #00ffff;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

.step h3 {
  font-size: 1.3rem;
  color: #00ffff;
  margin-bottom: 10px;
}

.step img {
  width: 100%;
  margin: 15px 0;
  border-radius: 6px;
  border: 1px solid #00ffff44;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.step p {
  font-size: 1rem;
  color: #dddddd;
}



.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 500px;
}

.contact-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #00ffff;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 1px solid #00ffff55;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.contact-link:hover {
  color: #fff;
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}



.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-profile .selfie {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 100px;
  border: 3px solid #00ffffaa;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.about-content h1 {
  color: #00ffff;
  font-size: 2.4rem;
  margin-bottom: 10px;
  text-shadow: 0 0 6px #00ffffcc;
}

.about-content p {
  font-size: 1.05rem;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #00ffff66;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #00ffff;
  font-family: monospace;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.2);
}

#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
  background: rgba(0, 255, 255, 0.15);
  color: #00ffff;
  border: 1px solid #00ffff55;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
  display: none;
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
  backdrop-filter: blur(5px);
}

#backToTop:hover {
  background: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}


code {
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  color: #00ffff;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  border: 1px solid #00ffff66;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0, 255, 255, 0.2);
}

code {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 6px rgba(0, 255, 255, 0.1); }
  50% { box-shadow: 0 0 12px rgba(0, 255, 255, 0.5); }
  100% { box-shadow: 0 0 6px rgba(0, 255, 255, 0.1); }
}
