/* ===== Base ===== */

body {
  margin: 0;
  background-color: #0b0d10; /* fallback only */
  min-height: 100vh;
}

.site {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.65)),
    url("images/background/wqhd_wallpaper_art_fusion.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transition: background 0.5s ease;
}

/* ===== Header title ===== */

.header {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 24px 24px;
}

.title {
  display: inline-block;
  margin-bottom: 16px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background: linear-gradient(to right, blue, red);
  background-size: 200% 100%;
  background-position: left;
  transition: background-position 0.3s ease;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title:hover {
  background-position: right;
}

/* ===== Sidebar Menu ===== */

#menu-toggle {
  display: none;
}

.menu-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 28px;
  color: ghostwhite;
  cursor: pointer;
  z-index: 1001;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: #111;
  padding-top: 80px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.sidebar a {
  display: block;
  padding: 15px 25px;
  color: ghostwhite;
  text-decoration: none;
  font-size: 18px;
}

.sidebar a:hover {
  background: #222;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

#menu-toggle:checked ~ .sidebar {
  left: 0;
}

#menu-toggle:checked ~ .overlay {
  opacity: 1;
  visibility: visible;
}

/* Background switcher */
input[name="bg"] {
  display: none;
}

.bg-switcher {
  display: flex;
  gap: 12px;
}

.bg-switcher label {
  position: relative;
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bg-switcher label:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.12);
  box-shadow: 0 0 8px rgba(0,255,204,0.4);
}

.menu-divider {
  height: 1px;
  margin: 20px 0;
  background: rgba(255,255,255,0.15);
}

.menu-bg-box {
  position: static;
  padding: 10px 20px 20px;
  border: none;
  background: none;
  backdrop-filter: none;
}

.menu-bg-box .bg-choose {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.menu-bg-box .bg-switcher {
  justify-content: flex-start;
}

.menu-bg-box .bg-switcher label {
  font-size: 20px;
}

#bg1:checked ~ .site {
  background-image:
    linear-gradient(rgba(11,13,16,0.65), rgba(11,13,16,0.75)),
    url("images/background/angel_feel.png");
}

#bg2:checked ~ .site {
  background-image:
    linear-gradient(rgba(11,13,16,0.55), rgba(11,13,16,0.7)),
    url("images/background/dark_side.png");
}

#bg3:checked ~ .site {
  background-image:
    linear-gradient(rgba(11,13,16,0.6), rgba(11,13,16,0.85)),
    url("images/background/gateway.png");
}

#bg4:checked ~ .site {
  background-image:
    linear-gradient(rgba(11,13,16,0.45), rgba(11,13,16,0.65)),
    url("images/background/wqhd_wallpaper_art_fusion.png");
}

#bg1:checked ~ .site label[for="bg1"],
#bg2:checked ~ .site label[for="bg2"],
#bg3:checked ~ .site label[for="bg3"],
#bg4:checked ~ .site label[for="bg4"] {
  background: rgba(255,255,255,0.2);
}

#bg1:checked ~ .site label[for="bg1"]::after,
#bg2:checked ~ .site label[for="bg2"]::after,
#bg3:checked ~ .site label[for="bg3"]::after,
#bg4:checked ~ .site label[for="bg4"]::after {
  content: "✔";
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 11px;
  background: #00ffcc;
  color: #000;
  border-radius: 50%;
  padding: 2px 4px;
}

#bg1:checked ~ .site label[for="bg1"],
#bg2:checked ~ .site label[for="bg2"],
#bg3:checked ~ .site label[for="bg3"],
#bg4:checked ~ .site label[for="bg4"] {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}


/* ===== Page spacing ===== */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0px 24px 60px;
}

/* ===== Divider ===== */

hr {
  padding: 0.5px;
  background: linear-gradient(to right, blue, red);
}

/* ===== Home page ===== */

.intro {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.7;
  font-size: 1.05rem;
  color: ghostwhite;
}

.intro .hint {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.interests {
  margin-bottom: 60px;
  padding: 0 20px;
}

.intro {
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.lang-list {
  max-width: 800px;
  margin: 0 auto;
}

.lang-list dt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 12px 16px;
  font-weight: 600;
  color: ghostwhite;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.lang-list dt:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-list dt img {
  width: 28px;
  height: 28px;
}

.lang-list dd {
  margin: 8px 0 0 40px;
  padding-left: 12px;
  color: #ddd;
  border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.lang-list dd strong {
  color: #ffd166;
  font-weight: 700;
}

/* ===== Button ===== */

.btn {
  margin: 20px 0 80px;
  padding: 1em 2em;
  background-color: #161a20;
  border: none;
  border-radius: 1000px;
  color: ghostwhite;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  gap: 10px;
}

.btn::after {
  content: '';
  position: absolute;
  height: 107%;
  width: 102%;
  border-radius: 1000px;
  background-image: linear-gradient(to bottom right, blue, red);
  z-index: -1;
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: filter 0.2s ease;
  filter: invert(1);
}

.btn:hover {
  transform: translateY(-4px);
  z-index: 0;
}

.btn:hover .btn-icon {
  filter: none;
}

.btn:active {
  transform: scale(0.97);
}

/* ===== Project Revelation ===== */

.pj-title {
  text-align: center;
  margin: 0 0 25px;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  background: linear-gradient(to bottom right, blue, silver);
  background-size: 200% 100%;
  background-position: left;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pj-rev-info {
  padding-top: 1px;
  max-width: 900px;
  margin: 30px auto 40px;
  color: ghostwhite;
  font-family: system-ui, sans-serif;
}

.pj-rev-title {
  display: inline-block;
  margin-bottom: 16px;
  background: linear-gradient(to bottom right, yellow, blue);
  background-size: 200% 100%;
  background-position: left;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pj-rev-desc {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.pj-rev-features {
  list-style: none;
  padding: 0;
  margin-bottom: 15px;
}

.pj-rev-features li {
  margin: 2px 0;
  font-size: 0.95rem;
}

.pj-rev-carousel {
  height: 160px;
  width: 90%;
  margin: 0 auto 60px;
  overflow: hidden;
  border: 3px solid rgba(0,255,204,0.6);
  box-shadow:
    0 0 15px rgba(0,255,204,0.5),
    inset 0 0 20px rgba(0,255,204,0.25);
}

.pj-rev-track {
  display: flex;
  width: max-content;
  animation: scroll 16s linear infinite;
}

.pj-rev-carousel:hover .pj-rev-track {
  animation-play-state: paused;
}

.pj-rev-group {
  display: flex;
  gap: 1em;
  padding-right: 1em;
  flex-shrink: 0;
}

.pj-rev-card {
  width: 240px;
  height: 160px;
  height: 3.5em;
  font-size: 2.9rem;
  background: linear-gradient(to right, blue, red);
  color: white;
  background: #000;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 10px rgba(0,255,204,0.35),
    0 0 25px rgba(0,255,204,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: neonpulse 3.5s ease-in-out infinite;
}

.pj-rev-card:hover {
  box-shadow:
    0 0 12px rgba(0,255,204,0.6),
    0 0 40px rgba(0,255,204,0.6),
    0 0 70px rgba(0,255,204,0.6);
}

.pj-rev-card img {
  width: 100%;
  height: 100%;
  display: block;
  margin: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes neonpulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(0,255,204,0.35),
      0 0 25px rgba(0,255,204,0.15);
  }
  50% {
    box-shadow:
      0 0 16px rgba(0,255,204,0.7),
      0 0 50px rgba(0,255,204,0.35);
  }
}

.pj-rev-links {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* ==== Socials ==== */

.contact {
  text-align: center;
  margin-top: 20px;
}

.contact-title {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: linear-gradient(to right, gray, red);
  background-size: 200% 100%;
  background-position: left;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact-sub {
  font-size: 24px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 30px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  padding: 16px 16px 16px 56px;
  border-radius: 12px;
  text-decoration: none;
  color: ghostwhite;
  background-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 24px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  background-color: rgba(255,255,255,0.15);
}

.discord {
  background-image: url("images/icons/discord_nocolor.svg");
}
.discord:hover {
  background-image: url("images/icons/discord_color.svg");
}

.github {
  background-image: url("images/icons/github_nocolor.svg");
}
.github:hover {
  background-image: url("images/icons/github_color.svg");
}

.instagram {
  background-image: url("images/icons/instagram_nocolor.svg");
}
.instagram:hover {
  background-image: url("images/icons/instagram_color.svg");
}

.linkedin {
  background-image: url("images/icons/linkedin_nocolor.svg");
}
.linkedin:hover {
  background-image: url("images/icons/linkedin_color.svg");
}

.x {
  background-image: url("images/icons/x_nocolor.svg");
}
.x:hover {
  background-image: url("images/icons/x_color.svg");
}

.youtube {
  background-image: url("images/icons/youtube_nocolor.svg");
}
.youtube:hover {
  background-image: url("images/icons/youtube_color.svg");
}

.contact-email {
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
}

.email {
  background-image: url("images/icons/email_nocolor.svg");
}
.email:hover {
  background-image: url("images/icons/email_color.svg");
}
