* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #0d1117;
  color: #f4f4f4;
  font-family: Arial, Helvetica, sans-serif;
}

.hero,
.sub-hero {
  background:
    linear-gradient(rgba(10, 20, 30, 0.60), rgba(10, 20, 30, 0.82)),
    url("images/hero-background.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 24px 60px;
}

.hero {
  min-height: 100vh;
}

.sub-hero {
  min-height: 72vh;
}

.navbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  z-index: 20;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.logo-link img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
}

.logo-link span {
  color: #ffffff;
}

.nav-area {
  position: relative;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #f4f4f4;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.nav-links a:hover {
  color: #a7e8ff;
}

.mega-toggle {
  border: none;
  background: transparent;
  color: #f4f4f4;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.mega-toggle:hover {
  color: #a7e8ff;
}

.mega-toggle span {
  color: #a7e8ff;
  font-size: 17px;
}

.mega-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 18px);
  width: min(940px, calc(100vw - 48px));
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  background: linear-gradient(135deg, rgba(13, 24, 36, 0.98), rgba(17, 34, 50, 0.98));
  border: 1px solid #5b879d;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.mega-menu.show {
  display: grid;
}

.mega-column h3 {
  color: #ffffff;
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.mega-column h3::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  background-color: #a7e8ff;
  border-radius: 999px;
  margin-top: 10px;
}

.mega-column a {
  display: block;
  color: #c9d1d9;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  margin: 12px 0;
}

.mega-column a:hover {
  color: #a7e8ff;
}

.hero-content {
  max-width: 900px;
  margin: 105px auto 0;
  text-align: center;
}

.sub-hero .hero-content {
  margin-top: 80px;
}

.hero-logo {
  width: 145px;
  height: 145px;
  object-fit: contain;
  border-radius: 24px;
  margin-bottom: 28px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  color: #a7e8ff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 24px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero-text {
  max-width: 720px;
  margin: 0 auto;
  color: #e6eef3;
  font-size: 22px;
  line-height: 1.6;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ip-box {
  display: inline-flex;
  border: 2px solid #a7e8ff;
  border-radius: 10px;
  overflow: visible;
  background-color: rgba(19, 36, 52, 0.88);
  box-shadow: 0 0 22px rgba(167, 232, 255, 0.15);
  backdrop-filter: blur(3px);
}

.ip-box span {
  padding: 15px 22px;
  font-weight: bold;
  color: #ffffff;
}

.copy-button-wrap {
  position: relative;
  display: flex;
}

.copy-button-wrap button {
  border: none;
  background-color: #a7e8ff;
  color: #0d1117;
  padding: 15px 22px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
}

.copy-button-wrap button:hover {
  background-color: #d3f4ff;
}

.copy-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  background-color: #2c323a;
  color: #d7dde5;
  border: 1px solid #4a5563;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.copy-popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #a7e8ff;
  color: #0d1117;
  padding: 15px 22px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
}

.button:hover {
  background-color: #d3f4ff;
}

.outline-button {
  background-color: transparent;
  color: #a7e8ff;
  border: 2px solid #a7e8ff;
}

.outline-button:hover {
  background-color: #a7e8ff;
  color: #0d1117;
}

.sub-hero .hero-actions .button:not(.discord-button):not(.patreon-button):not(.email-button):not(.youtube-button):not(.instagram-button):not(.x-button) {
  background-color: transparent;
  color: #a7e8ff;
  border: 2px solid #a7e8ff;
}

.sub-hero .hero-actions .button:not(.discord-button):not(.patreon-button):not(.email-button):not(.youtube-button):not(.instagram-button):not(.x-button):hover {
  background-color: #a7e8ff;
  color: #0d1117;
}

.discord-button {
  background-color: #5865f2;
  color: white;
  white-space: nowrap;
}

.discord-button:hover {
  background-color: #4752c4;
}

.discord-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.patreon-button {
  background: linear-gradient(135deg, #ff424d, #ff7a5c);
  color: white;
  border: none;
}

.patreon-button:hover {
  background: linear-gradient(135deg, #ff5c66, #ff936f);
  color: white;
}

.patreon-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.youtube-button {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
}

.youtube-button:hover {
  background: linear-gradient(135deg, #ff3333, #e00000);
  color: white;
}

.instagram-button {
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: white;
}

.instagram-button:hover {
  background: linear-gradient(135deg, #ffe08c, #ff9440, #e63a88, #a948cf, #6671e0);
  color: white;
}

.x-button {
  background: linear-gradient(135deg, #111111, #2c323a);
  color: white;
  border: 1px solid #3d4650;
}

.x-button:hover {
  background: linear-gradient(135deg, #222222, #3a424c);
  color: white;
}

.linktree-button {
  background: linear-gradient(135deg, #43e660, #1ecb68);
  color: #06120a;
}

.linktree-button:hover {
  background: linear-gradient(135deg, #65f47b, #34dd7b);
}

.email-button {
  background: linear-gradient(135deg, #a7e8ff, #6fc8ff);
  color: #0d1117;
}

.email-button:hover {
  background: linear-gradient(135deg, #d3f4ff, #94dcff);
}

.social-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.big-social-button {
  min-height: 86px;
  font-size: 22px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section {
  margin-bottom: 100px;
}

.section-heading {
  margin-bottom: 28px;
}

.section h2 {
  font-size: 42px;
  margin: 0;
}

.section p {
  color: #c9d1d9;
  font-size: 19px;
  line-height: 1.7;
}

.section-action {
  margin-top: 28px;
  text-align: center;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.left-action {
  text-align: left;
}

.card-grid,
.link-grid,
.step-grid,
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.social-button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.social-button-grid .big-social-button {
  flex: 0 1 calc((100% - 66px) / 4);
  min-width: 240px;
}

.project-card,
.link-card,
.note-box,
.warning-box,
.step-card,
.image-card,
.project-detail,
.feed-card,
.gallery-project-section,
.gallery-subproject {
  background-color: #111821;
  border: 1px solid #263545;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.project-card,
.link-card,
.note-box,
.warning-box,
.step-card,
.feed-card,
.gallery-project-section,
.gallery-subproject {
  padding: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  text-decoration: none;
}

.clickable-card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.clickable-card:hover {
  transform: translateY(-4px);
  border-color: #a7e8ff;
}

.project-card h3,
.link-card h3,
.note-box h3,
.warning-box h3,
.step-card h3,
.image-card h3,
.feed-card h3,
.gallery-subproject h3 {
  color: #ffffff;
  margin-top: 0;
  font-size: 24px;
}

.project-card p,
.link-card p,
.note-box li,
.warning-box p,
.step-card p,
.image-card p,
.feed-card p,
.gallery-subproject p {
  color: #c9d1d9;
  font-size: 17px;
  line-height: 1.6;
}

.project-card a,
.card-link {
  color: #a7e8ff;
  text-decoration: none;
  font-weight: bold;
}

.project-card a:hover,
.card-link:hover {
  text-decoration: underline;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.card-actions a {
  color: #a7e8ff;
  text-decoration: none;
  font-weight: bold;
}

.card-actions a:hover {
  text-decoration: underline;
}

.link-card {
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: #a7e8ff;
}

.step-card span {
  width: 42px;
  height: 42px;
  background-color: #a7e8ff;
  color: #0d1117;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  margin-bottom: 18px;
}

.note-box {
  margin-top: 28px;
}

.note-box ol {
  padding-left: 22px;
}

.support-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  background: linear-gradient(135deg, #111821, #152536);
  border: 1px solid #263545;
  border-radius: 18px;
  padding: 32px;
}

.support-section h2 {
  margin-bottom: 12px;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.rules-list {
  display: grid;
  gap: 16px;
}

.rule {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  background-color: #111821;
  border: 1px solid #263545;
  border-radius: 14px;
  padding: 20px;
}

.rule span {
  width: 42px;
  height: 42px;
  background-color: #a7e8ff;
  color: #0d1117;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
}

.rule p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.warning-box {
  margin-top: 28px;
  border-color: #a7e8ff;
}

.image-card {
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.image-card:hover {
  transform: translateY(-4px);
  border-color: #a7e8ff;
}

.image-card-photo {
  height: 180px;
  background-color: #152536;
  background-image:
    linear-gradient(rgba(10, 20, 30, 0.10), rgba(10, 20, 30, 0.45)),
    var(--project-image);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #263545;
}

.image-card-content {
  padding: 22px;
}

.image-card-content h3 {
  margin-bottom: 10px;
}

.image-card-content p {
  margin-bottom: 0;
}

.project-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.project-detail-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.project-detail-link:hover {
  transform: translateY(-4px);
  border-color: #a7e8ff;
}

.project-image {
  min-height: 360px;
  background-color: #152536;
  background-image:
    linear-gradient(rgba(10, 20, 30, 0.10), rgba(10, 20, 30, 0.42)),
    var(--project-image);
  background-size: cover;
  background-position: center;
}

.project-detail-content {
  padding: 34px;
}

.project-detail-content h2 {
  margin-bottom: 18px;
}

.gallery-project-section {
  padding: 32px;
}

.gallery-subproject {
  margin-top: 28px;
}

.gallery-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}

.gallery-title-row h2,
.gallery-title-row h3 {
  margin-bottom: 8px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.carousel-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid #4a5563;
  background-color: #2c323a;
  color: #d7dde5;
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  font-weight: bold;
}

.carousel-controls button:hover {
  background-color: #a7e8ff;
  color: #0d1117;
  border-color: #a7e8ff;
}

.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.carousel-track::-webkit-scrollbar {
  height: 10px;
}

.carousel-track::-webkit-scrollbar-track {
  background-color: #111821;
  border-radius: 999px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background-color: #4a5563;
  border-radius: 999px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
  background-color: #a7e8ff;
}

.gallery-slide {
  flex: 0 0 min(820px, 86vw);
  height: 460px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #263545;
  background-color: #152536;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  display: block;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.empty-gallery-message {
  display: none;
  margin-top: 16px;
  color: #8b949e;
  font-size: 16px;
  font-style: italic;
}

.feed-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-link {
  color: #a7e8ff;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  display: inline-block;
}

.feed-link:hover {
  text-decoration: underline;
}

/* Staff Page */

.staff-gradient-box {
  background: linear-gradient(135deg, #111821, #152536);
  border: 1px solid #263545;
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.staff-card,
.staff-history-card {
  background-color: #111821;
  border: 1px solid #263545;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.staff-card img,
.staff-history-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background-color: #152536;
  border-bottom: 1px solid #263545;
}

.staff-card-content {
  padding: 22px;
}

.staff-card-content h3,
.staff-history-card h3 {
  color: #ffffff;
  margin: 0 0 12px;
  font-size: 24px;
}

.staff-card-content p,
.staff-history-card p {
  color: #c9d1d9;
  font-size: 17px;
  line-height: 1.6;
}

.staff-role {
  color: #a7e8ff !important;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 13px !important;
  font-weight: bold;
  margin: 0 0 10px;
}

.staff-history-track {
  align-items: stretch;
}

.staff-history-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  padding: 22px;
}

.staff-history-card img {
  height: 200px;
  margin: -22px -22px 22px;
  width: calc(100% + 44px);
}

/* Footer */

.site-footer {
  background-color: #080b10;
  border-top: 1px solid #1f2a36;
  color: #8b949e;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 24px;
  display: grid;
  grid-template-columns: 1.15fr 1.05fr 1fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand p {
  margin: 10px 0 0;
  color: #8b949e;
  font-size: 15px;
}

.footer-contact {
  text-align: left;
}

.footer-contact h3,
.footer-links h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 17px;
  text-align: left;
}

.footer-contact a {
  color: #a7e8ff;
  text-decoration: none;
  font-weight: bold;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links {
  display: block;
  text-align: left;
}

.footer-links > a,
.footer-link-grid a {
  color: #8b949e;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.footer-links > a {
  display: block;
  margin-bottom: 8px;
}

.footer-links > a:hover,
.footer-link-grid a:hover {
  color: #a7e8ff;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(86px, 1fr));
  gap: 8px 18px;
  justify-items: start;
}

.footer-bottom {
  border-top: 1px solid #1f2a36;
  text-align: center;
  padding: 18px 24px;
}

.footer-bottom p {
  margin: 0;
  color: #8b949e;
  font-size: 14px;
}

@media (max-width: 800px) {
  .hero,
  .sub-hero {
    padding: 20px;
    background-position: center center;
  }

  .navbar {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }

  .nav-area {
    width: 100%;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .mega-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .hero-content,
  .sub-hero .hero-content {
    margin-top: 70px;
  }

  .hero-logo {
    width: 115px;
    height: 115px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-text {
    font-size: 18px;
  }

  .ip-box {
    flex-direction: column;
    width: 100%;
    overflow: visible;
  }

  .ip-box > span {
    width: 100%;
    text-align: center;
  }

  .copy-button-wrap {
    width: 100%;
  }

  .copy-button-wrap button {
    width: 100%;
    border-radius: 0 0 8px 8px;
  }

  .support-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .support-actions {
    justify-content: flex-start;
  }

  .rule {
    grid-template-columns: 1fr;
  }

  .project-detail {
    grid-template-columns: 1fr;
  }

  .project-image {
    min-height: 240px;
  }

  .gallery-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-slide {
    flex-basis: 88vw;
    height: 280px;
  }

  .social-button-grid .big-social-button {
    flex-basis: 100%;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .staff-card img {
    height: 260px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-contact,
  .footer-links {
    text-align: left;
  }

  .footer-contact h3,
  .footer-links h3 {
    text-align: left;
  }

  .footer-link-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    justify-items: start;
  }
}