body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding-top: 60px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 1000;
  padding: 10px 2rem;
}

.nav-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 50px;
  border: 1px solid rgba(150, 243, 245, 0.5);
  border-radius: 999px;
  background: rgba(51, 51, 51, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.2), inset 0 0 20px rgba(0, 255, 229, 0.03);
}
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3rem;
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
  display: block;
}
.nav-link::after {
  display: none;
}

.nav-link:hover {
  color: #96f3f5;
}

.nav-link.active {
  color: #96f3f5;
}
.nav-bar {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #96f3f5, #4bf9ed);
  box-shadow: 0 0 8px rgba(0, 255, 229, 0.6);
  border-radius: 2px;
  pointer-events: none;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #96f3f5;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle:hover {
  color: #00ffe5;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-container {
    justify-content: flex-start;
    padding: 15px 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0, 255, 229, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    text-align: center;
    font-size: 1.2rem;
    padding: 1rem 0;
  }

  .nav-bar {
    display: none;
  }

  .nav-link.active {
    border-left: 3px solid #96f3f5;
    padding-left: 0.5rem;
  }
}

.background-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -10;
}

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.8;
  box-shadow:
    0 0 10px rgba(0, 255, 229, 0.8),
    0 0 20px rgba(0, 255, 229, 0.4),
    0 0 30px rgba(0, 255, 229, 0.2);
}

.particle.small {
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #00ffe5, #96f3f5, rgba(0, 255, 229, 0.3));
  animation: snowfall-small 8s infinite linear;
}

a {
  color: #96f3f5;
  text-decoration: underline;
  font-weight: bold;
}

a:hover {
  color: #3bbfe0;
  text-decoration: none;
}

.particle.medium {
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #4bf9ed, #96f3f5, rgba(75, 249, 237, 0.3));
  animation: snowfall-medium 12s infinite linear;
  box-shadow:
    0 0 12px rgba(0, 255, 229, 0.9),
    0 0 24px rgba(0, 255, 229, 0.5),
    0 0 36px rgba(0, 255, 229, 0.3);
}

.particle.large {
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #00ffe5, #4bf9ed, rgba(0, 255, 229, 0.2));
  animation: snowfall-large 15s infinite linear;
  box-shadow:
    0 0 15px rgba(0, 255, 229, 1),
    0 0 30px rgba(0, 255, 229, 0.6),
    0 0 45px rgba(0, 255, 229, 0.3);
}

@keyframes snowfall-small {
  0%   { transform: translateY(-10px) translateX(0px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(110vh) translateX(50px) rotate(360deg); opacity: 0; }
}

@keyframes snowfall-medium {
  0%   { transform: translateY(-10px) translateX(0px) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(110vh) translateX(-30px) rotate(180deg); opacity: 0; }
}

@keyframes snowfall-large {
  0%   { transform: translateY(-10px) translateX(0px) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(110vh) translateX(20px) rotate(270deg); opacity: 0; }
}

.container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: #96f3f5;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(0, 255, 229, 0.5);
  background: linear-gradient(45deg, #96f3f5, #4bf9ed, #00ffe5);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

h1::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0, 255, 229, 0.1) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #aaa;
  margin-bottom: 3rem;
  font-style: italic;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.5s forwards;
  position: relative;
  z-index: 2;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.status-section {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 255, 229, 0.2);
  border-top: 1px solid rgba(0, 255, 229, 0.2);
  border-radius: 0;
  padding: 1rem 0 2rem 0;
  margin: 2rem auto;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h3 {
  color: #96f3f5;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

h4 {
  color: #96f3f5;
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 1.3rem;
}

.status-title {
  color: #96f3f5;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.status-list {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.status-item {
  background: transparent;
  border: none;
  padding: 0;
  transition: color 0.3s ease;
}

.status-item:hover {
  transform: none;
}

.status-name {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
}

.status-name::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #96f3f5, #4bf9ed);
  transition: width 0.3s ease;
}

.status-item:hover .status-name::after {
  width: 100%;
}

.status-value {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
}

.status-value.functional  { color: #00ff88; }
.status-value.broken      { color: #ff4444; }
.status-value.maintenance { color: #ffaa00; }

::-webkit-scrollbar { width: 12px; }

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 229, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffe5, #4bf9ed);
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 10px rgba(0, 255, 229, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4bf9ed, #96f3f5);
  box-shadow: 0 0 15px rgba(0, 255, 229, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #96f3f5, #00ffe5);
}

html {
  scrollbar-width: thin;
  scrollbar-color: #00ffe5 rgba(0, 0, 0, 0.3);
}

.chat-messages::-webkit-scrollbar { width: 8px; }

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  margin: 4px 0;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 229, 0.6), rgba(75, 249, 237, 0.6));
  border-radius: 6px;
  border: 1px solid rgba(0, 255, 229, 0.2);
  box-shadow: 0 0 8px rgba(0, 255, 229, 0.3);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 255, 229, 0.8), rgba(75, 249, 237, 0.8));
  box-shadow: 0 0 12px rgba(0, 255, 229, 0.5);
}

.chat-messages::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #00ffe5, #4bf9ed);
}

.ai-chat-section {
  background: rgba(0, 255, 229, 0.05);
  border: 1px solid rgba(0, 255, 229, 0.2);
  border-radius: 15px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.chat-header {
  background: rgba(0, 255, 229, 0.1);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0, 255, 229, 0.2);
}

.chat-title {
  font-size: 1.8rem;
  color: #96f3f5;
  text-align: center;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 255, 229, 0.3);
}

.chat-container {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
}

.message.user {
  align-self: flex-end;
  background: rgba(0, 255, 229, 0.2);
  border: 1px solid rgba(0, 255, 229, 0.3);
  color: #fff;
}

.message.ai {
  align-self: flex-start;
  background: rgba(75, 249, 237, 0.1);
  border: 1px solid rgba(75, 249, 237, 0.2);
  color: #e0e0e0;
}

.chat-input-container {
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 255, 229, 0.2);
  background: rgba(0, 255, 229, 0.03);
}

.chat-input-form {
  display: flex;
  gap: 1rem;
}

.chat-input {
  flex: 1;
  padding: 1rem;
  border: 1px solid rgba(0, 255, 229, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: #00ffe5;
  box-shadow: 0 0 10px rgba(0, 255, 229, 0.3);
}

.chat-input::placeholder { color: #888; }

.chat-send-btn {
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #00ffe5, #4bf9ed);
  border: none;
  border-radius: 8px;
  color: rgba(0, 0, 0, 0.8);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 255, 229, 0.4);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4bf9ed;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.typing-indicator.visible { opacity: 1; }

.typing-dots { display: flex; gap: 3px; }

.typing-dot {
  width: 4px;
  height: 4px;
  background: #4bf9ed;
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30%           { opacity: 1;   transform: scale(1.2); }
}

.maps-section {
  background: rgba(0, 255, 229, 0.05);
  border: 1px solid rgba(0, 255, 229, 0.2);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  position: relative;
  z-index: 3;
}

.maps-title {
  font-size: 2rem;
  color: #96f3f5;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(0, 255, 229, 0.4);
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.map-card {
  background: rgba(0, 255, 229, 0.03);
  border: 1px solid rgba(0, 255, 229, 0.2);
  border-radius: 12px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 0.6s ease-out forwards;
  z-index: 4;
}

.map-card:nth-child(1) { animation-delay: 0.7s; }
.map-card:nth-child(2) { animation-delay: 0.8s; }
.map-card:nth-child(3) { animation-delay: 0.9s; }

@keyframes slideInUp {
  to { opacity: 1; transform: translateY(0); }
}

.map-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 229, 0.1), transparent);
  transition: left 0.5s;
}

.map-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(0, 255, 229, 0.08);
  border-color: #00ffe5;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 255, 229, 0.3);
  z-index: 10;
}

.map-card:hover::before { left: 100%; }

.map-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2rem;
  height: 100%;
}

.map-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(45deg, #96f3f5, #4bf9ed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.8);
}

.map-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255,255,255,0.3), transparent);
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.map-card:hover .map-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 255, 229, 0.6);
}

.map-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #96f3f5;
  margin-bottom: 0.8rem;
  text-align: center;
  transition: all 0.3s ease;
}

.map-card:hover .map-title { text-shadow: 0 0 15px rgba(0, 255, 229, 0.8); }

.map-description {
  font-size: 1rem;
  color: #bbb;
  text-align: center;
  line-height: 1.6;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.map-card:hover .map-description { opacity: 1; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

.section-title {
  font-size: 2rem;
  color: #96f3f5;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(0, 255, 229, 0.4);
  position: relative;
  z-index: 2;
}

.article-card {
  background: rgba(0, 255, 229, 0.05);
  border: 1px solid rgba(0, 255, 229, 0.2);
  border-radius: 15px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 0.6s ease-out forwards;
  z-index: 4;
}

.article-card:nth-child(1)  { animation-delay: 0.1s; }
.article-card:nth-child(2)  { animation-delay: 0.2s; }
.article-card:nth-child(3)  { animation-delay: 0.3s; }
.article-card:nth-child(4)  { animation-delay: 0.4s; }
.article-card:nth-child(5)  { animation-delay: 0.5s; }
.article-card:nth-child(6)  { animation-delay: 0.6s; }
.article-card:nth-child(7)  { animation-delay: 0.7s; }
.article-card:nth-child(8)  { animation-delay: 0.8s; }
.article-card:nth-child(9)  { animation-delay: 0.9s; }
.article-card:nth-child(10) { animation-delay: 1.0s; }
.article-card:nth-child(11) { animation-delay: 1.1s; }

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 229, 0.1), transparent);
  transition: left 0.5s;
}

.article-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(8, 26, 46, 0.8);
  border-color: #00ffe5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 229, 0.3);
  z-index: 10;
}

.article-card:hover::before { left: 100%; }

.article-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 2rem;
  height: 100%;
  position: relative;
}

.article-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(45deg, #96f3f5, #4bf9ed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: rgba(0, 0, 0, 0.8);
}

.article-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255,255,255,0.3), transparent);
  animation: rotate 3s linear infinite;
}

.article-card:hover .article-icon {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 255, 229, 0.6);
}

.article-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #96f3f5;
  margin-bottom: 0.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.article-card:hover .article-title { text-shadow: 0 0 10px rgba(0, 255, 229, 0.8); }

.article-description {
  font-size: 0.9rem;
  color: #bbb;
  text-align: center;
  line-height: 1.5;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.article-card:hover .article-description { opacity: 1; }

.article-card[data-category="celestial"] { border-color: rgba(0, 255, 229, 0.3); }
.article-card[data-category="celestial"]:hover {
  border-color: #00ffe5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 229, 0.3);
}
.article-card[data-category="celestial"] .article-icon { background: linear-gradient(45deg, #00ffe5, #4bf9ed); }

.article-card[data-category="elements"] { border-color: rgba(0, 255, 229, 0.3); }
.article-card[data-category="elements"]:hover {
  border-color: #00ffe5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 229, 0.3);
}
.article-card[data-category="elements"] .article-icon { background: linear-gradient(45deg, #00ffe5, #4bf9ed); }

@media (max-width: 768px) {
  .container { padding: 1rem; }
  .articles-grid, .status-grid, .maps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  h1 { font-size: 2.5rem; }
  .chat-container { height: 300px; }
  .message { max-width: 90%; }
  .chat-input-form { flex-direction: column; gap: 0.5rem; }
  .nav-menu { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .particle, h1, .article-card, .map-card, .article-icon::before, .map-icon::before {
    animation: none;
  }
  .article-card, .map-card, .status-section, .ai-chat-section, .maps-section {
    opacity: 1;
    transform: none;
  }
}

h2 {
  color: #96f3f5;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 1.5rem 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, #00ffe5, #4bf9ed, #96f3f5);
  border-radius: 2px;
}

p {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin: 0.5rem 0 1.5rem 0;
}

p.header {
  color: #96f3f5;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  margin: 0.5rem 0 1.5rem 0;
  letter-spacing: 1px;
}

ul {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  list-style-position: inside;
  margin: 1rem auto;
  padding: 0;
}

:root { --sides: 8; }

.gallery-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  perspective: 2000px;
}

.gallery-container {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.cylinder {
  position: relative;
  width: 80%;
  max-width: 600px;
  height: 350px;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  margin: 0 auto;
}

.cylinder .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  border: 2px solid rgba(0,255,229,0.3);
}

.cylinder .slide[data-index="0"] { transform: rotateY(0deg)   translateZ(800px); }
.cylinder .slide[data-index="1"] { transform: rotateY(45deg)  translateZ(800px); }
.cylinder .slide[data-index="2"] { transform: rotateY(90deg)  translateZ(800px); }
.cylinder .slide[data-index="3"] { transform: rotateY(135deg) translateZ(800px); }
.cylinder .slide[data-index="4"] { transform: rotateY(180deg) translateZ(800px); }
.cylinder .slide[data-index="5"] { transform: rotateY(225deg) translateZ(800px); }
.cylinder .slide[data-index="6"] { transform: rotateY(270deg) translateZ(800px); }
.cylinder .slide[data-index="7"] { transform: rotateY(315deg) translateZ(800px); }

@media (max-width: 768px) {
  .cylinder { height: 250px; }
  .gallery-section h2 { font-size: 2rem; }
  .gallery-section p  { font-size: 1rem; }
}

.library-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.library-category {
  background: rgba(0, 255, 229, 0.05);
  border: 1px solid rgba(0, 255, 229, 0.2);
  border-radius: 15px;
  padding: 1.8rem 2rem;
  opacity: 0;
  transform: translateY(40px);
  animation: slideInUp 0.6s ease-out forwards;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.library-category:nth-child(1) { animation-delay: 0.1s; }
.library-category:nth-child(2) { animation-delay: 0.2s; }
.library-category:nth-child(3) { animation-delay: 0.3s; }
.library-category:nth-child(4) { animation-delay: 0.4s; }
.library-category:nth-child(5) { animation-delay: 0.5s; }

.library-category:hover {
  background: rgba(0, 255, 229, 0.09);
  border-color: rgba(0, 255, 229, 0.5);
  box-shadow: 0 8px 30px rgba(0, 255, 229, 0.15);
}

.library-category h2 {
  font-size: 1.2rem;
  text-align: left;
  margin: 0 0 1.2rem 0;
  letter-spacing: 0.5px;
  text-transform: none;
  color: #96f3f5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.library-category h2::after { display: none; }
.library-category h2 i { font-size: 1rem; opacity: 0.85; }

.library-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.library-list li a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #d0f8f9;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: normal;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.library-list li a i {
  font-size: 0.85rem;
  color: #4bf9ed;
  width: 16px;
  flex-shrink: 0;
}

.library-list li a:hover {
  color: #00ffe5;
  background: rgba(0, 255, 229, 0.1);
  padding-left: 1rem;
  text-decoration: none;
}

@media (max-width: 768px) {
  .library-categories { grid-template-columns: 1fr; gap: 1.5rem; }
}

.mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 1rem;
}

.mod-card {
  background: rgba(0, 255, 229, 0.05);
  border: 1px solid rgba(0, 255, 229, 0.2);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
  animation: slideInUp 0.6s ease-out forwards;
}

.mod-card:nth-child(1) { animation-delay: 0.1s; }
.mod-card:nth-child(2) { animation-delay: 0.2s; }
.mod-card:nth-child(3) { animation-delay: 0.3s; }
.mod-card:nth-child(4) { animation-delay: 0.4s; }

.mod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 229, 0.1), transparent);
  transition: left 0.5s;
}

.mod-card:hover {
  transform: translateY(-10px);
  background: rgba(0, 255, 229, 0.08);
  border-color: #00ffe5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 255, 229, 0.3);
  z-index: 10;
}

.mod-card:hover::before { left: 100%; }

.mod-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.mod-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #96f3f5, #4bf9ed);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mod-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(255,255,255,0.3), transparent);
  animation: rotate 3s linear infinite;
}

.mod-card:hover .mod-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 25px rgba(0, 255, 229, 0.6);
}

.mod-info { flex: 1; }

.mod-title {
  color: #96f3f5;
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  transition: all 0.3s ease;
}

.mod-card:hover .mod-title { text-shadow: 0 0 10px rgba(0, 255, 229, 0.8); }

.mod-meta { display: flex; gap: 1rem; font-size: 0.85rem; }

.mod-version {
  color: #4bf9ed;
  background: rgba(75, 249, 237, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(75, 249, 237, 0.3);
}

.mod-size {
  color: #96f3f5;
  background: rgba(150, 243, 245, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(150, 243, 245, 0.3);
}

.mod-description {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  text-align: left;
}

.mod-features { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.feature-tag {
  background: rgba(0, 255, 229, 0.1);
  color: #96f3f5;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 255, 229, 0.2);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
}

.feature-tag i { font-size: 0.7rem; }

.mod-card:hover .feature-tag {
  background: rgba(0, 255, 229, 0.15);
  border-color: rgba(0, 255, 229, 0.4);
}

.mod-download-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(45deg, #00ffe5, #4bf9ed);
  border: none;
  border-radius: 10px;
  color: rgba(0, 0, 0, 0.9);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: 0.5rem;
}

.mod-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 229, 0.4);
  background: linear-gradient(45deg, #4bf9ed, #96f3f5);
}

.mod-download-btn:active { transform: translateY(0); }
.mod-download-btn i { font-size: 1.1rem; }

.mod-github-btn {
  width: auto;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 255, 229, 0.1);
  border: 2px solid #00ffe5;
  border-radius: 10px;
  color: #00ffe5;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-align: center;
  text-decoration: none;
  margin: 0.5rem auto 0.8rem auto;
}

.mod-github-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 229, 0.3);
  background: rgba(0, 255, 229, 0.2);
  border-color: #4bf9ed;
  color: #4bf9ed;
}

.mod-github-btn:active { transform: translateY(0); }
.mod-github-btn i { font-size: 1.1rem; margin-right: 0.3rem; }

.mod-author {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mod-author i { color: #96f3f5; font-size: 0.85rem; }
.mod-author strong { color: #96f3f5; }

.mod-technical {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 229, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 229, 0.1);
}

.tech-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.tech-item i { color: #4bf9ed; font-size: 0.9rem; }
.tech-label { color: #aaa; font-weight: 500; }
.tech-value { color: #96f3f5; font-weight: 600; }

.mod-dependencies {
  margin-bottom: 1.2rem;
  padding: 1rem;
  background: rgba(75, 249, 237, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(75, 249, 237, 0.1);
}

.dep-title {
  color: #96f3f5;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dep-title i { font-size: 0.85rem; }
.dep-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.dep-item {
  background: rgba(0, 255, 229, 0.1);
  color: #e0e0e0;
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 255, 229, 0.2);
  transition: all 0.3s ease;
}

.mod-card:hover .dep-item {
  background: rgba(0, 255, 229, 0.15);
  border-color: rgba(0, 255, 229, 0.3);
  color: #96f3f5;
}

@media (max-width: 768px) {
  .mods-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .mod-header { gap: 1rem; }
  .mod-icon { width: 50px; height: 50px; font-size: 1.5rem; }
  .mod-title { font-size: 1.2rem; }
  .mod-technical { grid-template-columns: 1fr; gap: 0.6rem; }
  .mod-author { font-size: 0.85rem; }
}
body.page-enter {
  opacity: 0;
  transform: translateY(12px);
}

body.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

body.page-exit {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
}