/* CSS RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  color: var(--text-color);
  background: var(--bg-color);
}
html, body,
body.bioluminescent-theme {
  background: radial-gradient(ellipse at bottom, #02010a 0%, #000000 100%);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

/* CUSTOM PROPERTIES */
:root {
  --header-height: 100px;
  --header-height-sm: 64px;
  --accent-color: #ffda79;
  --accent-color-hover: #ffc048;
  --bg-color: #F6F5F2;
  --text-color: #333;
}

body.dark-mode {
  --bg-color: linear-gradient(135deg, #333, #444);
  --text-color: white;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: url(/images/b);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

body.dark-mode header {
  background: #333;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
}

/* LOGOS */
.logo {
  height: 60px;
  width: auto;
}

.logo.dark-mode { display: none; }
body.dark-mode .logo.light-mode { display: none; }
body.dark-mode .logo.dark-mode { display: block; }

/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* BURGER MENU */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: inherit;
}

.burger-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 30px;
  width: 300px;
  height: 100%;
  background: rgba(51, 51, 51, 0.9);
  padding: 20px;
  flex-direction: column;
  z-index: 1001;
}

.burger-menu.active {
  display: flex;
}

.burger-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  align-self: flex-end;
  color: white;
}

/* MAIN LAYOUT */
main {
  padding: 20px;
  background: url(/images/dragon-scales-dark.png);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.intro {
  text-align: center;
  margin-bottom: 2em;
}

.content-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.section-item {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  padding: 15px;
  border-radius: 10px;
  transition: background 0.3s ease;
  text-align: center;
}

.section-item:hover {
  background: #F0EBE3;
}

body.dark-mode .section-item:hover {
  background: #333;
}

.section-item img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.section-item h3 {
  margin-top: 0.5em;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: var(--accent-color);
  color: var(--text-color);
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: var(--accent-color-hover);
}

body.dark-mode .read-more {
  background: #6c3483;
  color: white;
}

body.dark-mode .read-more:hover {
  background: #4a235a;
}

/* FOOTER */
footer {
  background: #F0EBE3;
  padding: 2em;
  text-align: center;
  color: black;
}

body.dark-mode footer {
  background: #333;
  color: white;
}

/* THEME TOGGLE */
#theme-toggle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 50px;
  height: 50px;
  background: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1001;
  text-align: center;
  line-height: 31px;
  overflow: hidden;
  transition: width 0.3s ease;
}

#theme-toggle:hover {
  width: 150px;
}

#theme-toggle::before {
  content: '\21E6';
  font-size: 24px;
}

#theme-toggle span {
  display: none;
}

#theme-toggle:hover span {
  display: inline;
}

body.dark-mode #theme-toggle {
  background: #fff;
  color: #333;
}

/* OVERLAY */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1002;
}

.info-box {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* TABS */
.tab-container {
  display: flex;
  justify-content: center;
  margin: 1em 0;
}

button.tablinks {
  background: #f5db98;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin: 0 5px;
  width: 15%;
  transition: background 0.3s ease;
}

button.tablinks.active,
button.tablinks:hover {
  background: #ffda79;
}

body.dark-mode button.tablinks {
  background: #6c3483;
  color: white;
}

body.dark-mode button.tablinks.active,
body.dark-mode button.tablinks:hover {
  background: #4A235A;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  header {
    height: var(--header-height-sm);
  }

  .menu-toggle {
    display: block;
  }

  .section-item {
    flex: 1 1 100%;
  }

  .info-box {
    width: 90%;
  }
}

/* === Bioluminescent Forest Theme === */
body.bioluminescent-theme {
  color: #cfd7ff;
  font-family: 'Cinzel', serif;
}

.bioluminescent-theme main {
  background: none;
}

.bioluminescent-theme h2, 
.bioluminescent-theme h3 {
  font-family: 'Cinzel Decorative', cursive;
  color: #b3f0ff;
  text-shadow: 0 0 6px #66f9ff, 0 0 10px #3cc;
}

.bioluminescent-theme .read-more {
  background: #3a0066;
  color: #e0d9ff;
  box-shadow: 0 0 8px #4b0082, 0 0 16px #7b68ee;
}

.bioluminescent-theme .read-more:hover {
  background: #5f00b5;
  box-shadow: 0 0 12px #00ffe7, 0 0 24px #aaccff;
}

.bioluminescent-theme .section-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(128, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0,255,255,0.15);
}

.bioluminescent-theme .tooltip {
  font-size: 0.9em;
  color: #aaffee;
  text-shadow: 0 0 4px #55ffff;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;700&display=swap');























































































.glyph-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.glyph-center img {
  width: 100%;
  height: auto;
  display: block;
}



.glyph-header {
  position: relative;
  height: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;

  background-image: url('/images/bg2.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: none;  /* Darken for contrast */
  overflow: hidden;         /* Clip overflow for particles */
}

/* Overlay: dark blue translucent layer for atmosphere */
.glyph-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 20, 30, 0);
  pointer-events: none;
  z-index: 1;
  
}


.glyph-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.glyph-center img {
  width: 100%;
  height: auto;
  display: block;
}

.glyph-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 241px;
  height: 241px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.glyph-nav::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  /* border: 1px dashed rgba(0,255,255,0.3); */
  border-radius: 50%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.glyph-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: spin 60s linear infinite;
  transform-origin: center center;
}



.glyph-ring a {
  position: absolute;
  top: 18.1%;
  left: 32.5%;
  transform: rotate(var(--angle)) translateY(-100px);
  transform-origin: center;
  pointer-events: auto;
}

.glyph-ring a span {
  display: inline-block;
  transform: rotate(calc(-1 * var(--angle))) ;
  width: 1.5em;
  height: 1.5em;
  line-height: 1.5em;
  font-size: 1.2rem;
  text-align: center;
  color: #b3f0ff;
  font-family: 'Cinzel Decorative', cursive;
  text-shadow: 0 0 8px #66f9ff;
  transition: transform 0.3s, color 0.3s;
}






@keyframes glowPulse {
  0% {
    filter: drop-shadow(0 0 6px var(--glow-color));
  }
  50% {
    filter: drop-shadow(0 0 12px var(--glow-color));
  }
  100% {
    filter: drop-shadow(0 0 6px var(--glow-color));
  }
}


















.glyph-ring a:nth-child(1) span img {
  --glow-color: #66f9ff;
  filter: drop-shadow(0 0 6px var(--glow-color));
}
.glyph-ring a:nth-child(1):hover span img {
  animation: glowPulse 1.5s infinite ease-in-out;
}

.glyph-ring a:nth-child(2) span img {
  --glow-color: #ffaa00;
  filter: drop-shadow(0 0 6px var(--glow-color));
}
.glyph-ring a:nth-child(2):hover span img {
  animation: glowPulse 1.5s infinite ease-in-out;
}

.glyph-ring a:nth-child(3) span img {
  --glow-color: #ff4dd2;
  filter: drop-shadow(0 0 6px var(--glow-color));
}
.glyph-ring a:nth-child(3):hover span img {
  animation: glowPulse 1.5s infinite ease-in-out;
}

.glyph-ring a:nth-child(4) span img {
  --glow-color: #aaffaa;
  filter: drop-shadow(0 0 6px var(--glow-color));
}
.glyph-ring a:nth-child(4):hover span img {
  animation: glowPulse 1.5s infinite ease-in-out;
}

.glyph-ring a:nth-child(5) span img {
  --glow-color: #ff4444;
  filter: drop-shadow(0 0 6px var(--glow-color));
}
.glyph-ring a:nth-child(5):hover span img {
  animation: glowPulse 1.5s infinite ease-in-out;
}




@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}





















.particle {
  position: absolute;
  border-radius: 50%;
  width: 2px;
  height: 2px;
  background-color: currentColor;
  box-shadow: 0 0 8px 1px currentColor;
  opacity: 0.9;
  transition: top 12s linear, left 12s linear; /* smooth continuous movement */
}

/* Smaller scale range for sharper twinkle */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.3);  /* Smaller */
    filter: blur(0.5px);    /* Sharper */
  }
  50% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
