:root {
  font-size: 20px;
  --bg-gradient: rgba(30, 20, 60, 0);
  --nav-bg: rgba(0, 38, 255, 0.555);
  --accent-purple: rgba(130, 94, 230, 0.25);
  --accent-blue: rgba(53, 56, 235, 0.26);
  --text-color: #f3f3f3;
  --shadow-light: rgba(130, 94, 230, 0.18);
  --shadow-dark: rgba(31, 38, 135, 0.37);
  --modal-bg: rgba(30, 20, 60, 0.92);
  --text-stroke: 0.03rem #3804f5;
  --text-shadow: 0 0.15rem 0.4rem #000;
}

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

html {
  min-height: 100%;
}

body {
  background: linear-gradient(120deg, #232526, #485563 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
  font-family: 'Segoe UI', Arial, sans-serif;
}

main {
  flex: 1;
}

.navbar {
  background: rgba(34, 37, 38, 0.95);
}

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  max-width: 1000px;
}

.image-gallery img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

.page-content.blurred {
  filter: blur(8px);
  transition: filter 0.3s ease;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 100000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.pizza {
  position: relative;
  font-size: 1.5rem;
  color: var(--text-color);
  background: var(--accent-blue);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1002;
  padding: 4px 8px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.pizza:hover {
  transform: scale(1.08);
}
.serverlist {
  background: var(--text-shadow);
  color: var(--text-color);
  border-radius: 8px;
  padding: 12px 20px;
  margin: 8px 0;
  gap: 8px;
  display: none;
  flex-direction: column;
}
.serverlist.active {
  display: flex;
}
.serverlist li {
  list-style: none;
  margin: 4px 0;
}
.serverlist li span.list {
  font-size: 0.9rem;
  color: #00a2ff;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
  left: relative;
}

.hero {
  background: url('/assets/server/Network.png') center/cover no-repeat;
  padding: 60px 0 40px 0;
  text-align: center;
  color: #fff;
  position: relative;
  margin-bottom: 30px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 37, 38, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.server-ip {
  font-size: 1.3rem;
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 12px;
  margin-top: 10px;
  font-weight: 500;
  letter-spacing: 1px;
}

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

.project-list li {
  margin: 12px 0;
  font-size: 1.12rem;
}

.project-list a {
  color: #3ecf8e;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.project-list a:hover {
  color: #fff;
}

.site-footer {
  background: #232526;
  color: #d2d2d2;
  padding: 30px 0 12px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left,
.footer-center,
.footer-right {
  margin: 8px 0;
}

.footer-left img {
  height: 32px;
  vertical-align: middle;
  margin-right: 8px;
}

.social-icons a {
  color: #7289da;
  margin-right: 10px;
  font-size: 1.3rem;
}

.theme-toggle {
  cursor: pointer;
  font-size: 1.4rem;
  margin-left: 15px;
  background: none;
  border: none;
  color: var(--text-color);
}

.list {
  font-size: 0.9rem;
  color: #00a2ff;
}

[data-theme='light'] body {
  background: linear-gradient(120deg, #f3f3f3 60%, #bcd9ea 100%);
  color: #222;
}

[data-theme='light'] .navbar,
[data-theme='light'] .navbar-brand,
[data-theme='light'] .nav-link,
[data-theme='light'] .pizza,
[data-theme='light'] .serverlist,
[data-theme='light'] .site-footer {
  background: #fff;
  color: #222;
}

[data-theme='light'] .project-list a {
  color: #007bff;
}

[data-theme='light'] .list {
  color: #1504ff;
}

[data-theme='light'] .project-list a:hover {
  color: #232526;
}