:root{
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --panel: rgba(10, 12, 22, 0.55);
  --panel-border: rgba(255,255,255,0.10);
  --glow: rgba(140, 90, 255, 0.35);
  --glow2: rgba(40, 170, 255, 0.25);
  --shadow: 0 18px 60px rgba(0,0,0,0.55);
  --radius: 18px;
}

*{ box-sizing: border-box; }

html, body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: #050612;
  overflow-x: hidden;
}

/* ================= BACKGROUND ================= */

.bg{
  position: fixed;
  inset: 0;
  background-image: url("Background.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  z-index: -3;
}

.bg-overlay{
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 15% 20%, rgba(140, 90, 255, 0.35), transparent 55%),
    radial-gradient(1000px 650px at 85% 70%, rgba(40, 170, 255, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(5,6,18,0.55), rgba(5,6,18,0.82));
  backdrop-filter: blur(1px);
}

/* ================= HERO ================= */

.hero{
  padding: 110px 20px 60px;
}

.hero-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 40px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, rgba(10,12,22,0.35), rgba(10,12,22,0.55));
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;

  display:flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-inner::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 520px at 10% 20%, var(--glow), transparent 60%),
    radial-gradient(900px 520px at 90% 80%, var(--glow2), transparent 60%);
  opacity: 0.9;
  pointer-events:none;
}

.hero-inner > *{
  position: relative;
}

.hero-badge{
  display:inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero h1{
  margin: 20px 0 16px;
  font-size: clamp(52px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 18px 60px rgba(0,0,0,0.45);
}

.hero-sub{
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 32px;
}

/* ================= NAVBAR ================= */

.navbar{
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 20px;
  background: rgba(5,6,18,0.65);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.nav-inner{
  max-width: 1100px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.brand{
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration:none;
  color: var(--text);
}

.nav-links{
  display:flex;
  gap: 18px;
}

.nav-links a{
  color: var(--muted);
  text-decoration:none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-links a:hover{
  color: white;
  background: rgba(255,255,255,0.08);
}

/* ================= LINKS ================= */

a{
  color: #d8e6ff;
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover{
  color: #ffffff;
  text-shadow: 0 0 18px rgba(140, 90, 255, 0.45);
}

a:visited{
  color: #d8e6ff;
}

/* Hero CTA links */
.hero-links{
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}

.hero-links a{
  display: inline-block;
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: #f3f6ff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.hero-links a:hover{
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Contact links */
#contact a{
  color: #cfe2ff;
  text-decoration: none;
  font-weight: 600;
}

#contact a:hover{
  color: #ffffff;
  text-shadow: 0 0 18px rgba(40, 170, 255, 0.35);
}

#contact p{
  margin: 0 0 18px;
}

/* ================= CONTENT ================= */

.content{
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  display:flex;
  flex-direction: column;
  gap: 22px;
}

.panel{
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 16px 52px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
}

.panel h2{
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.panel p{
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.muted{
  color: var(--muted);
}

/* ================= CHARACTERS ================= */

.character-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.character-card{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.15));
  position: relative;
  overflow: hidden;
}

.character-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(380px 240px at 20% 30%, rgba(140, 90, 255, 0.18), transparent 60%),
    radial-gradient(380px 240px at 80% 70%, rgba(40, 170, 255, 0.14), transparent 60%);
  pointer-events:none;
}

.character-media{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 300px;
}

.character-media img{
  width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 40px rgba(0,0,0,0.55));
}

.character-body h3{
  margin: 0 0 10px;
  font-size: 20px;
}

.character-body p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ================= FOOTER ================= */

.footer{
  padding: 40px 20px;
  text-align: center;
  color: rgba(255,255,255,0.60);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 980px){
  .character-grid{
    grid-template-columns: 1fr;
  }

  .character-card{
    grid-template-columns: 1fr;
    text-align: center;
  }

  .character-media{
    min-height: auto;
  }

  .character-media img{
    max-width: 260px;
  }
}

@media (max-width: 600px){
  .hero-inner{
    padding: 50px 20px;
  }

  .nav-inner{
    flex-direction: column;
    gap: 10px;
  }

  .nav-links{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-links a{
    font-size: 13px;
    padding: 6px 10px;
  }
}