:root {
  /* Base color palette in RGB for flexible opacity use */
  --primary-color: 255, 4, 128;     /* #ff0480 */
  --secondary-color: 0, 150, 255;   /* #0096ff */
  --background-color: 200, 200, 200;        /* #dbb17e */

  /* Optional derived colors for quick use */
  --primary-solid: rgb(var(--primary-color));
  --secondary-solid: rgb(var(--secondary-color));
  --background-solid: rgb(var(--background-color));
}

/* General */
body {
  margin: 0;
  font-family: 'Delius', cursive;
  background-color: var(--background-solid);
  color: #333;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 60px;
  color: white;
}

.navbar * {
  margin: 5px;
  vertical-align: middle;
}

.navbar img {
  height: 50px;
}

.logo {
  font-size: 1.4rem;
  color: #7b5539;
}

.navbar a {
  margin: auto 30px;
  position: relative;               /* anchor for ::after */
  display: inline-block;
  color: var(--primary-solid);
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s ease;
}

.navbar a::after {
  content: '';                       /* create the pseudo-element */
  position: absolute;
  left: 0;
  bottom: -6px;                      /* tweak vertical offset as needed */
  width: 100%;
  height: 2px;
  background-color: var(--primary-solid);
  transform: scaleX(0);
  transform-origin: center;
  transition: 0.2s ease;
}

.navbar a:hover {
  color: var(--secondary-solid);
}

.navbar a:hover::after {
  background-color: var(--secondary-solid);
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero > div {
  background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.75) 50%, transparent 100%);
  height: 100%;
  position: absolute;
  padding: 0px 50px;
}

.video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.video-bg video, .video-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(30%);
}

.hero-content {
  position: relative;
  z-index: 1;
  transform: translateY(-50%);
  top: 50%;
}

.hero-content img {
  height: 200px;
  margin: -25px;
}

.hero-mask {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 200px;
  border-radius: 50%; /* make it circular for radial blur */
  pointer-events: none;

  /* Semi-transparent layer to blur video underneath */
  backdrop-filter: blur(10px);
  
  /* fade edges smoothly */
  -webkit-mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;

  mask-image: radial-gradient(circle at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 100% 100%;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.button {
  background: var(--primary-solid);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  transition: 0.3s;
}

.button:hover {
  background: var(--secondary-solid);
}

/* Fade from hero to page */
.fade {
  position: absolute;
  bottom: 0;
  height: 100px;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, var(--background-solid) 100%);
}

/* Page Container */
.page {
  background: white;
  max-width: 900px;
  margin: -50px auto 60px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
  overflow: hidden
}

section.content {
  padding: 20px 40px;
}
hr {
  border: solid var(--secondary-solid) 1px;
  width: 80%;
}

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

.features li {
  padding: 5px 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 0.9rem;
}

section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.discord-button {
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  transition: 0.3s;
}
.discord-button img {
  height: 1em;
}

.discord-button:hover {
  background: #4452bb;
}

/* Members Section */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.member-card {
  background: rgba(var(--background-color), 0.3);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.member-pfp {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid rgba(var(--primary-color), 0.8);
}

.member-name {
  font-size: 1.2rem;
  color: var(--primary-solid);
  margin: 0.4rem 0;
}

.member-role {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  font-style: none;
  font-weight: bold;
  transition: 0.2s ease;
}

.social-links a.youtube {
  color: #FF0000;
}
.social-links a.twitch {
  color: #8956FB;
}
.social-links a.youtube:hover {
  color: #FF0000;
}
.social-links a.twitch:hover {
  color: #8956FB;
}
