/* Reset defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
  
}

body {
  background-color: #222836;
}

/* Navbar */
.navbar {
  font-family: "Poppins", sans-serif;
  background-color: #007bff;
  width: 100%;
  padding: 0.8rem 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.logo {
  width: 42px;
  height: 42px;
  margin-right: 10px;
  object-fit: contain;
  border-radius: 5px;
}

.site-name {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #fff;
  margin-left: 2rem;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

/* Underline animation */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Join button breathing animation */
.join-btn {
  font-weight: 600;
  background: #fff;
  color: #007bff;
  padding: 6px 14px;
  border-radius: 6px;
  animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 10px 4px rgba(255, 255, 255, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  }
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

.nav-menu {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 90%;
    flex-direction: column;
    align-items: center;
    background-color: #007bff; /* fully opaque black */
    border-radius: 12px;
    box-shadow: 0 6px 16px  #007bff; /* fully opaque shadow */
    overflow: hidden;
    opacity: 1;
    visibility: hidden;
    transition: all 0.35s ease-in-out;
    z-index: 3;
}


  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    padding: 1rem 0.5rem;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 1.05rem;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.288);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .join-btn {
    margin-top: 12px;
    border: none;
    padding: 10px;
    padding-left: 100px;
    padding-right: 100px;
  }

  /* Hamburger animation */
  .menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }
}


/* ---------TOP BAAR -------------------------------------------------------------------------------------------- */
/* ==== Update Bar Styles ==== */
.update-bar {
  font-family: "Poppins", sans-serif;
  width: 100%;
  height: 15px;
  background-color: #e8dcca;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding-bottom: 1px;
}

/* Wrapper ensures text duplication aligns properly */
.scrolling-wrapper {
  white-space: nowrap;
  display: inline-block;
  min-width: 100%;
}

/* Actual scrolling text */
.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  line-height: 15px;
  color: #000;
  animation: scrollText 40s linear infinite;
}

/* Keyframes for continuous scrolling */
@keyframes scrollText {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive scaling for smaller devices */
@media (max-width: 768px) {
  .scrolling-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .scrolling-text {
    font-size: 11px;
  }
}



/* LADING PAGE ---------------------------------------------------------------------------------------------------------- */

.main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a1e;
  color: #e6e6e6;
  font-family: "Poppins", sans-serif;
  min-height: 80vh;
  padding: 60px;
  flex-wrap: wrap;
}

.content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  z-index: 2;

}

.big-text {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.quote-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
   background: linear-gradient(90deg, #e8dcca, #e8dcca);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 60px;
  margin-bottom: 30px;
}

.description-box {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 3px solid #e8dcca;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 2px 2px 15px  #ffffff; 
}

.highlight {
  color: #e8dcca;
  font-weight: 600;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.btn-white {
  background: #ffffff;
  color: #1a1a1e;
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  animation: breathe 2s infinite ease-in-out;
  transition: transform 0.3s;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.btn-white:hover {
  transform: scale(1.08);
}

.btn-red {
  background: #ff3333;
  color: #fff;
  padding: 12px 22px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-red:hover {
  background: #cc0000;
}

.members-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.members-img {
  height: 40px;
  width: auto;
  border-radius: 5px;
  margin-left: 30px;
}

.members-text {
  line-height: 1.2;
}

.count {
  font-size: 1.5rem;
  font-weight: 700;
}

.subtext {
  font-size: 0.9rem;
  color: #e8dcca;
}

.image-side {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img {
  width: 80%;
  max-width: 400px;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 1s ease;
  box-shadow: 4px 4px 50px  #ffffff; 
}

.feature-img:hover {
  transform: scale(1.05);
}

/* Video Overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 30, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.video-container {
  width: 80%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  padding: 0px;
  margin: 0px;
  border: 2px solid rgb(0, 0, 0);
  border-radius: 11px;
  background-color: white;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .image-side {
    order: 2;
    margin-top: 40px;
  }

  .feature-img {
    width: 70%;
  }

  .big-text {
    font-size: 2rem;
  }

  .quote-text {
    font-size: 1rem;
  }

  .description-box {
    font-size: 0.9rem;
  }
}


/* ----------------------------------------------------------------------------------------------------- */


.main {
  font-family: "Poppins", sans-serif;
  background-color: #1c1c24;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 10px;
}

/* Header */
.header {
  text-align: center;
  margin: 20px 0px;
}

.header h1 {
  font-size: 2rem;
  font-weight: 600;
  color:rgb(255, 255, 255);
}

/* Container */
.container {
  background-color: rgb(172, 163, 141);
  border: 1px solid #ffffff;
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
}

/* Video wrapper */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  background: #ffefef;
}

/* Thumbnail */
.thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(255, 0, 0);
  opacity: 0.8;
  width: 4em;
  height: auto;
}

/* Video iframe (same size as thumbnail) */
.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  
}

/* Description */
.description {
  margin: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
  .header h1 {
    font-size: 1.6rem;
  }

  .description {
    font-size: 0.75rem;
  }
}


/* -----------Results Page ------------------------------------------------------------------------------------------ */





/* Page Container */
.page-one {
  background-color: #1c1c24;
  color: #fff;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 0;
}

/* Masonry Grid */
.image-grid {
  column-count: 3; /* Number of columns on desktop */
  column-gap: 0.75rem;
  width: 80%;
  max-width: 1200px;
}

/* Masonry Items */
.image-grid img {
  width: 100%;
  margin-bottom: 0.75rem;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
   border: 1px solid rgba(255, 255, 255, 0.514) ;
}

/* Hover effect */
.image-grid img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Tablet View */
@media (max-width: 1024px) {
  .image-grid {
    width: 90%;
    column-count: 2;
  }
}

/* Mobile View */
@media (max-width: 768px) {
  .image-grid {
    width: 90%;
    column-count: 1;
  }
}





/* -------Features List ---------------------------------------------------------------------------------------------- */




.mb-main-section {
  font-family: 'Poppins', sans-serif;
  text-align: center;
  padding: 10px 10px;
  animation: fadeIn 1.5s ease-in-out;
  background-color:#1a1a1e;
}

.mb-header {
  margin-bottom: 30px;
}

.mb-subtitle {
  color: #b0b0b0;
  letter-spacing: 1.5px;
  margin-bottom: 3px;
  font-size: 1rem;
}

.mb-title {
  font-size: 2rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

/* -------- CONTAINER WRAPPER -------- */
.mb-container-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 35px;
  flex-wrap: wrap;
}

/* -------- CONTAINER BOXES -------- */
.mb-container {
  background: linear-gradient(145deg, #1f1f24, #25252b);
  border-radius: 18px;
  padding: 35px 28px;
  width: 320px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mb-container::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 191, 255, 0.1), transparent 60%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.mb-container:hover::before {
  transform: scale(1);
}

.mb-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.15);
  border: 1px solid rgba(0, 191, 255, 0.3);
}

/* -------- CONTAINER TITLES -------- */
.mb-container-title {
  color: #00bfff;
  font-size: 1.5rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 191, 255, 0.2);
  padding-bottom: 10px;
}

/* -------- LIST DESIGN -------- */
.mb-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mb-list li {
  margin: 10px 0;
  font-size: 1.05rem;
  color: #d3d3d3;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Alternate 🔷🔶 icons */
.mb-list li:nth-child(odd)::before {
  content: "🔷";
  color: #00bfff;
  font-size: 1rem;
}

.mb-list li:nth-child(even)::before {
  content: "🔶";
  color: #ffaa00;
  font-size: 1rem;
}

.mb-list li:hover {
  color: #ffffff;
  transform: translateX(5px);
}

/* -------- RESPONSIVE -------- */
@media (max-width: 768px) {
  .mb-container-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .mb-container {
    width: 90%;
    padding: 25px 20px;
  }

  .mb-title {
    font-size: 1.7rem;
  }

  .mb-subtitle {
    font-size: 0.9rem;
  }

  .mb-container-title {
    font-size: 1.3rem;
  }

  .mb-list li {
    font-size: 0.9rem;
  }
}




/* -------Social Media  List ---------------------------------------------------------------------------------------------- */




#impact_wrapper {
  width: 100%;
  min-height: 60vh;
  background-color: #1a1a1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  box-sizing: border-box;
  background-image: radial-gradient(#333 1px, transparent 1px);
  background-size: 25px 25px;
  position: relative;
  overflow: hidden;
}

/* Header Styling */
#impact_header {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

#impact_header span {
  color: #00bcd4;
}

/* Main container */
#impact_container {
  position: relative;
  width: 90%;
  max-width: 1100px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
  border-radius: 20px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Snowfall canvas */
#snowfall_canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Individual boxes */
.impact_box {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1rem;
  text-align: center;
  color: white;
  backdrop-filter: blur(10px);
  z-index: 1;
  transition: transform 0.3s ease, background 0.3s ease;
}

.impact_box:hover {
  transform: translateY(-5px);
  background: rgba(0, 188, 212, 0.1);
}

.impact_box h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00bcd4;
  margin-bottom: 0.5rem;
}

.impact_box p {
  font-size: 1rem;
  color: #ccc;
}

/* Responsive layout */
@media (max-width: 768px) {
  #impact_container {
    flex-direction: column;
    align-items: center;
  }

  .impact_box {
    width: 90%;
  }

  #impact_header {
    font-size: 1.8rem;
  }

  .impact_box h2 {
    font-size: 2rem;
  }

  .impact_box p {
    font-size: 0.9rem;
  }
}



/* -------  Footer ---------------------------------------------------------------------------------------------- */
/* ===== FOOTER STYLING ===== */
.footer {
  background: #16161f;
  color: #f1f5f9;
  padding: 50px 10%;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
  margin-top: 5px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* --- Left Side --- */
.footer-left {
  flex: 1;
  min-width: 260px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  border-radius: 10px;
}

.footer-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 10px 0 20px;
  max-width: 300px;
  line-height: 1.5;
}

.visit-btn1 {
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.visit-btn:hover {
  background: #16a34a;
  transform: scale(1.05);
}

/* --- Right Side --- */
.footer-right {
  flex: 2;
  min-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  color: #38bdf8;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.footer-section a {
  display: block;
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #38bdf8;
}

.footer-section p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 5px 0;
}

.social-section .social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0px;
}

.social-section img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-section img:hover {
  transform: scale(1.1);
}

/* --- Bottom Line --- */
.footer-line {
  border: none;
  border-top: 1px solid #334155;
  margin: 30px 0 10px;
}

.footer-bottom {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 40px 8%;
  }

  .footer-desc {
    max-width: 100%;
  }

  .social-section img {
    width: 26px;
  }
}











.youtube-gallery-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    background-color: #222836;
    text-align: center;
  padding: 30px 25px;
}

.gallery-carousel-container {
  margin-top: 15px;
    position: relative;
    overflow: hidden;
}

.video-carousel-main {
    display: flex;
    transition: transform 0.6s ease;
}

.carousel-video-item {
    min-width: 100%;
    flex-shrink: 0;
}

.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-thumb-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
        background-color: #222836;
}

.video-thumb-container:hover {
    transform: scale(1.02);
}

.video-thumb-container:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255, 0, 0, 1);
}

.thumbnail-image-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 0, 0, 0.658);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.video-play-btn::after {
    content:'';
    border-left:16px solid #fff;
    border-top:10px solid transparent;
    border-bottom:10px solid transparent;
    margin-left:4px;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.carousel-indicator-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator-dot:hover {
    background: rgba(255,255,255,0.6);
    transform: scale(1.2);
}

.indicator-dot.active-dot {
    background: white;
    width: 35px;
    border-radius: 6px;
}

.video-hidden {
    display: none;
}

.carousel-nav-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;

}

.nav-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.nav-arrow:hover {
    background: white;
    transform: scale(1.1);
}

.nav-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 3px solid #667eea;
    border-right: 3px solid #667eea;
}

.nav-arrow-left::before {
    transform: rotate(-135deg);
    margin-right: -4px;
}

.nav-arrow-right::before {
    transform: rotate(45deg);
    margin-left: -4px;
}


















.mafia-b-join {
  font-weight: 800;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ffe600, #ffae00);
  color: #1a1a1a;
  border-radius: 999px;
  margin: 20px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;

  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 20px rgba(255, 180, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: pulse 2.2s infinite ease-in-out;
}

/* Subtle glow ring */
.mafia-b-join::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 200, 0, 0.35), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Shine sweep */
.mafia-b-join::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transition: left 0.6s ease;
}

.mafia-b-join:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 14px 35px rgba(255, 180, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.mafia-b-join:hover::before {
  opacity: 1;
}

.mafia-b-join:hover::after {
  left: 140%;
}

/* Smooth attention pulse */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.45);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 14px 35px rgba(255, 200, 0, 0.65);
  }
}

/* Auto-play Video Popup Styles */
.auto-video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.auto-video-popup.active {
    display: flex;
    opacity: 1;
}

/* Video container */
.auto-video-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;

    /* Maintain 16:9 aspect ratio */
    aspect-ratio: 16 / 9;
}

/* Make iframe scale to fit without cutting */
.auto-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    object-fit: contain; /* keeps full video inside container */
    background: #000;    /* fallback color for thumbnail */
}

/* Close button */
.auto-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: all 0.3s ease;
}

.auto-close-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Media Queries for better responsiveness */
@media (max-width: 1024px) {
    .auto-video-container {
        width: 95%;
        aspect-ratio: 16 / 9;
    }

    .auto-close-btn {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .auto-video-container {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .auto-close-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .auto-video-container {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .auto-close-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}


        /* Daily Visitor Popup Styles - Modern Dark Theme */
        .visitor-popup {
            position: fixed;
            bottom: 20px;
            left: 20px;
            background: rgba(30, 30, 40, 0.95);
            color: #f0f0f0;
            padding: 18px 22px;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 
                        0 2px 8px rgba(106, 17, 203, 0.3),
                        inset 0 1px 0 rgba(255, 255, 255, 0.1);
            z-index: 1000;
            max-width: 320px;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            display: none;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            animation: slideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(106, 17, 203, 0.3);
            overflow: hidden;
        }
        
        .visitor-popup.raised {
            bottom: 100px; /* Raised when banner is visible */
        }
        
        .visitor-popup::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
        }

        .visitor-popup:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 
                        0 4px 12px rgba(106, 17, 203, 0.4),
                        inset 0 1px 0 rgba(255, 255, 255, 0.15);
            border-color: rgba(106, 17, 203, 0.5);
        }

        .visitor-popup .close-btn {
            position: absolute;
            top: 8px;
            right: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #aaa;
            font-size: 16px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            cursor: pointer;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1001;
            transition: all 0.2s ease;
        }

        .visitor-popup .close-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        .visitor-popup .content {
            padding-right: 30px;
        }

        .visitor-popup .count {
            font-weight: 700;
            font-size: 20px;
            margin-bottom: 6px;
            background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: inline-block;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .visitor-popup .message {
            font-size: 14px;
            line-height: 1.5;
            color: #d0d0d0;
            font-weight: 500;
        }
        
        .visitor-popup .timestamp {
            font-size: 11px;
            color: #888;
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .visitor-popup .timestamp::before {
            content: '🕒';
            font-size: 10px;
        }

        @keyframes slideIn {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(-100%);
                opacity: 0;
            }
        }
        
        /* Floating Bottom Banner - FIXED FOR MOBILE */
        .floating-banner {
            position: fixed;
            bottom: -100px; /* Start hidden */
            left: 50%;
            transform: translateX(-50%);
            background: rgba(28, 28, 36, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(106, 17, 203, 0.3);
            padding: 12px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1001;
            transition: bottom 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
            margin-bottom: 20px;
            border-radius: 50px;
            max-width: 600px;
            width: 90%;
            box-sizing: border-box;
        }

        .banner-content {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .banner-logo {
            width: 35px;
            height: 35px;
            border-radius: 10px;
            object-fit: cover;
            border: 2px solid rgba(106, 17, 203, 0.5);
            flex-shrink: 0;
        }

        .banner-text {
            color: white;
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .banner-title {
            font-size: 16px;
            font-weight: 700;
            margin: 0;
            background: linear-gradient(90deg, #ffffff, #f0f0f0);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .banner-subtitle {
            font-size: 13px;
            color: #4cc9f0;
            margin: 2px 0 0 0;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .banner-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .banner-join-btn {
            background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 25px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
            white-space: nowrap;
            font-size: 14px;
        }

        .banner-join-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(106, 17, 203, 0.4);
        }

        .banner-close-btn {
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #aaa;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: all 0.2s ease;
        }

        .banner-close-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        /* Mobile responsiveness - UPDATED FOR BETTER CENTERING */
        @media (max-width: 768px) {
            .auto-video-container {
                width: 95%;
                height: auto;
            }
            
            .auto-video-container iframe {
                height: 50vh;
            }
            
            .auto-close-btn {
                width: 35px;
                height: 35px;
                font-size: 20px;
                top: 10px;
                right: 10px;
            }
            
            .visitor-popup {
                left: 10px;
                right: 10px;
                bottom: 10px;
                max-width: none;
                padding: 16px 20px;
                margin: 0 auto;
                width: calc(100% - 20px);
            }
            
            .visitor-popup.raised {
                bottom: 80px;
            }
            
            .visitor-popup .count {
                font-size: 18px;
            }
            
            .visitor-popup .message {
                font-size: 13px;
            }
            
            .floating-banner {
                width: calc(100% - 20px);
                max-width: none;
                margin: 0;
                padding: 10px 15px;
                border-radius: 40px;
                left: 50%;
                transform: translateX(-50%);
                bottom: -100px;
            }
            
            .banner-content {
                gap: 12px;
            }
            
            .banner-logo {
                width: 30px;
                height: 30px;
            }
            
            .banner-title {
                font-size: 15px;
            }
            
            .banner-subtitle {
                font-size: 12px;
            }
            
            .banner-join-btn {
                padding: 7px 16px;
                font-size: 13px;
            }
            
            .banner-close-btn {
                width: 25px;
                height: 25px;
            }
        }
        
        @media (max-width: 480px) {
            .auto-video-container iframe {
                height: 40vh;
            }
            
            .auto-close-btn {
                width: 30px;
                height: 30px;
                font-size: 18px;
            }
            
            .visitor-popup {
                padding: 14px 18px;
                width: calc(100% - 20px);
                left: 10px;
                right: 10px;
            }
            
            .visitor-popup.raised {
                bottom: 70px;
            }
            
            .visitor-popup .count {
                font-size: 16px;
            }
            
            .visitor-popup .message {
                font-size: 12px;
            }
            
            .floating-banner {
                padding: 8px 12px;
                border-radius: 35px;
                width: calc(100% - 20px);
                left: 50%;
                transform: translateX(-50%);
            }
            
            .banner-content {
                gap: 8px;
            }
            
            .banner-logo {
                width: 28px;
                height: 28px;
                display: block;
            }
            
            .banner-title {
                font-size: 14px;
            }
            
            .banner-subtitle {
                font-size: 11px;
            }
            
            .banner-join-btn {
                padding: 6px 14px;
                font-size: 12px;
            }
            
            .banner-close-btn {
                width: 22px;
                height: 22px;
            }
        }
        
        @media (max-width: 360px) {
            .auto-video-container iframe {
                height: 35vh;
            }
            
            .floating-banner {
                padding: 6px 10px;
                border-radius: 30px;
                width: calc(100% - 20px);
                left: 50%;
                transform: translateX(-50%);
            }
            
            .banner-logo {
                display: none;
            }
            
            .banner-title {
                font-size: 13px;
            }
            
            .banner-subtitle {
                font-size: 10px;
            }
            
            .banner-join-btn {
                padding: 5px 12px;
                font-size: 11px;
            }
            
            .banner-close-btn {
                width: 20px;
                height: 20px;
                font-size: 12px;
            }
        }
        
        /* Atlas AI Chatbot Section Styles */
        .atlas-chatbot-section {
            background-color: #1c1c27;
            padding: 80px 20px;
            margin: 0;
            scroll-margin-top: 30px; /* Add scroll margin to prevent jump */
        }
        
        .atlas-chatbot-section h2 {
            text-align: center;
            color: white;
            font-size: 2.5rem;
            margin-bottom: 20px;
            background: linear-gradient(90deg, #ffffff, #ffffff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: glow 2s ease-in-out infinite alternate;
        }
        
        .atlas-chatbot-section p {
            text-align: center;
            color: #b0b0d0;
            font-size: 1.2rem;
            margin-bottom: 50px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }
        
        /* Atlas Chatbot Container Styles */
        .chatbot-container {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            background: linear-gradient(135deg, #12121e 0%, #1a1a2e 100%);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
            border: 1px solid #2a2a3e;
        }

        .chatbot-header {
            padding: 25px 20px;
            text-align: center;
            background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
            position: relative;
            overflow: hidden;
        }

        .chatbot-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(90deg, #ffffff, #ffffff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: glow 2s ease-in-out infinite alternate;
        }

        .chatbot-header p {
            font-size: 1.1rem;
            line-height: 1.6;
            color: #b0b0d0;
            max-width: 700px;
            margin: 0 auto;
        }

        .chatbot-header p span {
            color: #4cc9f0;
            font-weight: 600;
        }

        .ai-badge {
            display: inline-block;
            background: linear-gradient(90deg, #4361ee, #4cc9f0);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-top: 15px;
            animation: pulse 2s infinite;
        }

        .chat-area {
            padding: 15px;
            height: 400px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .message {
            display: flex;
            max-width: 85%;
            animation: fadeIn 0.3s ease-out;
        }

        .user-message {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        .bot-message {
            align-self: flex-start;
        }

        .avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.2rem;
            flex-shrink: 0;
            margin: 0 10px;
        }

        .user-avatar {
            background: linear-gradient(135deg, #4361ee, #4cc9f0);
        }

        .bot-avatar {
            background: linear-gradient(135deg, #f72585, #b5179e);
            position: relative;
        }

        .bot-avatar::after {
            content: '';
            position: absolute;
            top: -3px;
            left: -3px;
            right: -3px;
            bottom: -3px;
            border-radius: 50%;
            background: linear-gradient(135deg, #f72585, #b5179e, #4cc9f0);
            z-index: -1;
            animation: rotate 3s linear infinite;
        }

        .message-content {
            padding: 15px;
            border-radius: 18px;
            position: relative;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
        }

        .user-message .message-content {
            background: linear-gradient(135deg, #4361ee, #4cc9f0);
            border-top-right-radius: 5px;
        }

        .bot-message .message-content {
            background: linear-gradient(135deg, #2d2d42, #3a3a5e);
            border-top-left-radius: 5px;
            color: #e0e0f0;
        }

        .message-text {
            font-size: 1rem;
            line-height: 1.5;
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            padding: 10px 15px;
            background: #2d2d42;
            border-radius: 18px;
            border-top-left-radius: 5px;
            width: fit-content;
            margin-top: 5px;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #4cc9f0;
            margin: 0 3px;
            animation: typing 1.5s infinite ease-in-out;
        }

        .typing-dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-dot:nth-child(3) {
            animation-delay: 0.4s;
        }

        .input-area {
            padding: 15px;
            border-top: 1px solid #2a2a3e;
            display: flex;
            background: #161624;
        }

        .input-area input {
            flex: 1;
            padding: 15px 20px;
            border: none;
            border-radius: 50px;
            background: #2a2a3e;
            color: #f0f0f0;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s;
        }

        .input-area input:focus {
            box-shadow: 0 0 0 2px #4361ee;
        }

        .input-area button {
            background: linear-gradient(135deg, #4361ee, #4cc9f0);
            border: none;
            border-radius: 50%;
            width: 55px;
            height: 55px;
            margin-left: 15px;
            color: white;
            font-size: 1.3rem;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .input-area button:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
        }

        .input-area button:active {
            transform: scale(0.98);
        }

        /* Community link styling */
        .community-link {
            display: inline-block;
            background: linear-gradient(90deg, #fffefe, #ffffff);
            color: rgb(0, 0, 0);
            padding: 8px 20px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 10px;
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .community-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(247, 37, 133, 0.4);
        }

        /* Animations */
        @keyframes glow {
            0% {
                text-shadow: 0 0 5px rgba(76, 201, 240, 0.5);
            }
            100% {
                text-shadow: 0 0 20px rgba(76, 201, 240, 0.8), 0 0 30px rgba(67, 97, 238, 0.6);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.7);
            }
            70% {
                box-shadow: 0 0 0 10px rgba(67, 97, 238, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(67, 97, 238, 0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes typing {
            0%, 60%, 100% {
                transform: translateY(0);
            }
            30% {
                transform: translateY(-10px);
            }
        }

        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        /* Scrollbar styling */
        .chat-area::-webkit-scrollbar {
            width: 6px;
        }

        .chat-area::-webkit-scrollbar-track {
            background: #1a1a2e;
            border-radius: 10px;
        }

        .chat-area::-webkit-scrollbar-thumb {
            background: linear-gradient(180deg, #4361ee, #4cc9f0);
            border-radius: 10px;
        }

        /* Mobile Responsive Design */
        @media (max-width: 768px) {
            .atlas-chatbot-section {
                padding: 40px 15px;
            }
            
            .atlas-chatbot-section h2 {
                font-size: 2rem;
            }
            
            .atlas-chatbot-section p {
                font-size: 1rem;
            }
            
            .chatbot-container {
                border-radius: 15px;
            }
            
            .chatbot-header {
                padding: 20px 15px;
            }
            
            .chatbot-header h1 {
                font-size: 2rem;
                margin-bottom: 8px;
            }
            
            .chatbot-header p {
                font-size: 0.95rem;
                line-height: 1.5;
            }
            
            .chat-area {
                height: 350px;
                padding: 12px;
                gap: 12px;
            }
            
            .message {
                max-width: 90%;
            }
            
            .avatar {
                width: 35px;
                height: 35px;
                font-size: 1rem;
                margin: 0 8px;
            }
            
            .message-content {
                padding: 12px;
            }
            
            .message-text {
                font-size: 0.95rem;
            }
            
            .input-area {
                padding: 12px;
            }
            
            .input-area input {
                padding: 12px 15px;
                font-size: 0.95rem;
            }
            
            .input-area button {
                width: 50px;
                height: 50px;
                margin-left: 10px;
            }
        }

        @media (max-width: 480px) {
            .atlas-chatbot-section h2 {
                font-size: 1.7rem;
            }
            
            .atlas-chatbot-section p {
                font-size: 0.9rem;
            }
            
            .chatbot-header h1 {
                font-size: 1.7rem;
            }
            
            .chatbot-header p {
                font-size: 0.9rem;
            }
            
            .chat-area {
                height: 300px;
            }
            
            .message {
                max-width: 95%;
            }
            
            .avatar {
                width: 30px;
                height: 30px;
                font-size: 0.9rem;
                margin: 0 5px;
            }
            
            .message-content {
                padding: 10px;
            }
            
            .message-text {
                font-size: 0.9rem;
            }
            
            .input-area {
                padding: 10px;
            }
            
            .input-area button {
                width: 45px;
                height: 45px;
                font-size: 1.1rem;
            }
            
            .ai-badge {
                font-size: 0.8rem;
                padding: 4px 12px;
            }
        }

        @media (max-width: 360px) {
            .atlas-chatbot-section {
                padding: 30px 10px;
            }
            
            .chatbot-header {
                padding: 15px 10px;
            }
            
            .atlas-chatbot-section h2 {
                font-size: 1.5rem;
            }
            
            .chatbot-header h1 {
                font-size: 1.5rem;
            }
            
            .chatbot-header p {
                font-size: 0.85rem;
            }
            
            .chat-area {
                height: 280px;
            }
            
            .message-content {
                padding: 8px 10px;
            }
            
            .input-area input {
                padding: 10px 12px;
                font-size: 0.9rem;
            }
        }
