/* === Global Reset === */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; }

body {
  min-height: 100vh;
  color: #fff;
  background: #0b0b0b; /* base safety under overlays */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === Apple Liquid Glass Nav === */
nav {
  display: flex;
  justify-content: center;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.45s ease;
}
.nav-left { display: flex; position: relative; }
.nav-left a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  z-index: 1;
  transition: color 0.3s ease;
}
.nav-indicator {
  position: absolute;
  top: 4px;
  left: -1px;
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3b3b, #c00000);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.55);
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1), width 0.35s;
  z-index: 0;
}
.nav-left a.active { color: #190101; font-weight: 700; }
.nav-left a:hover { color: #ffb3b3; }

/* === Sections === */
section {
  min-height: 100vh;
  padding: 120px 20px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
  color: #ff4d4d;
  text-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 1px;
  color: #ff6666;
  text-shadow: 0 0 18px rgba(255, 0, 0, 0.3);
}
h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ff8080;
  text-shadow: 0 0 18px rgba(255, 0, 0, 0.3);
}
p  {
  max-width: 760px;
  color: #ffd6d6;
  line-height: 1.65;
}

/* === GLASS CARD === */
.glass-card{
  position: relative;        /* create stacking context */
  z-index: 50;               /* sit above section overlays */
  width: 100%;
  max-width: 800px;
  border-radius: 24px;
  padding: 40px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* stronger, layered background: solid fallback + translucent glass on top */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    rgba(0,0,0,0.44);

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);

  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);

  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.45);
}

/* mobile tweak */
@media (max-width: 640px) {
  .glass-card {
    padding: 24px;
    border-radius: 18px;
  }
}

/* === Rules Grid === */
.rules-intro{
  margin-top: 8px;
  margin-bottom: 18px;
}

.rules-grid{
  margin-top: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.rule-item{
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);

  display: flex;
  align-items: center;     /* center icon + text vertically */
  gap: 12px;
  text-align: left;        /* text left because icon is on the side */

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rule-item:hover{
  transform: translateY(-4px);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}

.rule-icon{
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  margin-top: 0;
  filter: drop-shadow(0 0 14px rgba(255, 80, 80, 0.6));
}

.rule-text{
  flex: 1;
}

.rule-text h3{
  margin-bottom: 4px;
}

.rule-text p{
  font-size: 0.95rem;
  line-height: 1.5;
}


/* === Bottom Bar === */
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120%);
  width: min(92%, 900px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.5s cubic-bezier(.25,.8,.25,1), opacity 0.3s;
  z-index: 1500;
  opacity: 0;
}
.bottom-bar.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* === Buttons === */
.quick-connect{
  flex: 1;
  text-align: center;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #190101;
  background: linear-gradient(135deg, #ff4040, #c00000);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.35);
  border: none;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.quick-connect:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(255, 50, 50, 0.5);
}
.news-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #ff4d4d;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s, box-shadow 0.3s;
}
.news-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.5);
}

/* ===== News Popup (Centered + Fade-only, no display toggle) ===== */
.news-popup{
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.news-popup.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .4s ease, visibility 0s linear 0s;
}
.news-content{
  width: min(92vw, 880px);
  max-height: 90vh;
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 0;
  color: #ffecec;
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.news-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.close-btn{
  background: rgba(255,255,255,0.06);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.news-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px 12px;
  position: sticky;
  top: 56px;
  z-index: 2;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.news-filter-btn{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffcaca;
  font-weight: 600;
  font-size: .9rem;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
.news-filter-btn:hover{
  background: rgba(255,50,50,0.18);
  transform: translateY(-2px);
}
.news-filter-btn.active{
  background: linear-gradient(135deg,#ff4040,#c00000);
  color:#190101;
  box-shadow:0 0 15px rgba(255,0,0,.4);
}
.news-scroll{
  flex:1;
  min-height:0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:14px 16px 18px;
}
.news-section-title{
  margin: 10px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff9999;
  text-shadow: 0 0 8px rgba(255,0,0,0.3);
}
.news-container{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.news-item{
  display:flex;
  gap:12px;
  background:rgba(255,255,255,0.02);
  padding:12px;
  border-radius:12px;
}
.news-thumb{
  width:96px;
  height:72px;
  object-fit:cover;
  border-radius:8px;
}
.news-title{
  font-weight:700;
  color:#ffcccc;
  margin-bottom:6px;
}
.news-desc{
  font-size:.95rem;
  color:#ffeaea;
  line-height:1.4;
}
.news-flair{
  display:inline-block;
  margin-top:6px;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  color:#2b0000;
  background:#ff8080;
}

/* === SITE-WIDE RED GLOW BACKGROUND (cross-fades out on section bg) === */
.background-glow{
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 20% 40%, rgba(120, 0, 0, 0.3), transparent 60%),
    radial-gradient(circle at 80% 60%, rgba(180, 0, 0, 0.25), transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(255, 50, 50, 0.25), transparent 70%);
  background-size: 200% 200%;
  animation: glowShift 20s ease-in-out infinite alternate;
  filter: blur(60px);
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes glowShift{
  0%{background-position:0% 0%, 100% 50%, 50% 100%;}
  100%{background-position:100% 100%, 0% 50%, 50% 0%;}
}
/* When any non-home section bg is active, fade the red glow out */
.section-bg-active .background-glow{ opacity: 0; }

/* === Home === */
.home-buttons{
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.home-connect{ width: 240px; text-align: center; }
.view-news-btn{
  width: 240px;
  text-align: center;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #ffb6b6;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s, transform 0.25s, color 0.25s;
}
.view-news-btn:hover{
  background: rgba(255, 50, 50, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

/* === Home Logo === */
.home-logo{
  position: relative;
  top: 5px;
  width: clamp(220px, 30vw, 420px);
  display: block;
  margin: 0 auto 30px;
  filter:
    drop-shadow(0 0 35px rgba(150,0,0,0.55))
    drop-shadow(0 0 60px rgba(255,0,0,0.35))
    drop-shadow(0 0 90px rgba(200,0,0,0.25));
  user-select: none;
  pointer-events: none;
}

/* === ONE SHARED SECTION VIDEO (replaces per-section videos) === */
.shared-section-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transform: scale(1.06) translateZ(0);
  filter: blur(10px) brightness(.95);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.1s ease,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.section-bg-active .shared-section-bg{
  opacity: 1;
  transform: scale(1);
  filter: blur(0) brightness(1);
}

/* === Particle mist overlay stays section-scoped === */
section.has-bg { position: relative; overflow: hidden; }
section.has-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120px 120px at 20% 70%, rgba(255,80,80,.18), transparent 65%),
    radial-gradient(160px 160px at 70% 40%, rgba(255,120,120,.14), transparent 70%),
    radial-gradient(140px 140px at 45% 85%, rgba(255,60,60,.12), transparent 70%);
  background-size: 180% 180%;
  opacity: 0;
  filter: blur(28px);
  transition: opacity 1.2s ease, filter 1.1s ease;
  animation: aboutParticles 14s ease-in-out infinite alternate;
}
@keyframes aboutParticles{
  0%,100%{ background-position: 0% 0%, 100% 50%, 50% 100%; }
  50%    { background-position: 80% 100%, 20% 0%, 50% 50%; }
}
section.bg-active::after{
  opacity: 1;
  filter: blur(18px);
}

/* === Responsive === */
@media (max-width: 640px) {
  .nav-left a { padding: 8px 14px; font-size: 0.9rem; }

  .news-content { width: 100%; max-height: 85vh; border-radius: 12px; }
  .news-header { top: 0; }
  .news-filters { top: 52px; }

  .close-btn{
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
  }

  .news-item{
    flex-direction: column;
    align-items: center;
  }
  .news-thumb{
    width: 100%;
    height: 160px;
  }
}

/* ===== NAV WRAPPER + SCROLL EFFECT ===== */
.nav-wrapper{
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-logo{
  opacity: 0;
  transform: translateX(-30px) scale(0.9);
  width: 0;
  overflow: hidden;
  transition: all 0.45s ease;
}
.nav-logo img{
  height: 50px;
  width: auto;
  filter: drop-shadow(0 0 25px rgba(255, 0, 0, 0.4));
}
.nav-wrapper.scrolled{
  left: 30px;
  transform: scale(0.9);
  justify-content: flex-start;
  gap: 12px;
}
.nav-wrapper.scrolled .nav-logo{
  opacity: 1;
  width: auto;
  transform: translateX(0) scale(1);
}
.nav-wrapper.scrolled nav{ margin-left: 2px; }

/* === Mobile Fix for nav === */
@media (max-width: 640px) {
  .nav-wrapper,
  .nav-wrapper.scrolled{
    left: 50%;
    transform: translateX(-53%) scale(1);
    justify-content: center;
  }
}

/* ===== Fix home section spacing on mobile ===== */
@media (max-width: 640px){
  section { padding-top: 80px; }
  #home  { padding-top: calc(56px + 16px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .news-popup { transition: none !important; }
  .background-glow{ transition: none !important; }
  .shared-section-bg{ transition: none !important; }
  section.has-bg::after{
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

.join-wa-btn{
  width: 240px;
  text-align: center;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #ffa6a6;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);

  transition: background 0.25s, transform 0.25s, color 0.25s;
  text-decoration: none;
}

.join-wa-btn:hover{
  background: rgba(255, 50, 50, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.3);
}

@media (max-width: 640px){
  .join-wa-btn{
    width: 165px;          /* smaller width */
    padding:5px 10px;    /* compact padding */
    font-size: 0.85rem;    /* smaller text */
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    color: #ff9e9e;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.25s, background 0.3s;
  }

  .join-wa-btn:hover{
    transform: translateY(-2px);
    background: rgba(255,60,60,0.18);
    box-shadow: 0 0 18px rgba(255,0,0,0.3);
  }
  }
