/**
 * Landing page: Swiper, actor showcase, staff cards, animations.
 * Loads after global.css. #main-content p resets global paragraph rules so Tailwind wins.
 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 3;
}

#main-content p {
  max-width: none;
  font-family: inherit;
  font-size: inherit;
}

.home::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  
  /* Gọi lớp nhiễu này ra */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  
  /* Cho nó mờ thôi, khoảng 5-10% để không bị nhức mắt */
  opacity: 0.05; 
  z-index: 2;
  pointer-events: none;
}

/* === 1. FONT CHỮ CHUYÊN GAME === */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@700&display=swap'); /* Font này cực ngầu cho game */

/* === 2. ĐỊNH NGHĨA KEYFRAMES (Các hiệu ứng chuyển động) === */
@keyframes glowPulse {
0% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.4); }
50% { box-shadow: 0 0 25px rgba(217, 70, 239, 0.9); }
100% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.4); }
}

@keyframes shine {
100% { left: 125%; }
}

@keyframes metalShimmer {
0% { background-position: -500% 0; }
100% { background-position: 500% 0; }
}

/* Định nghĩa hiệu ứng lướt sáng */
.shine-text {
  display: block;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 55px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  text-align: center;

  /* Đổ bóng cho chữ */
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.6));

  /* GRADIENT CÓ TIA SÁNG (Chỉnh lại màu để tia sáng hiện rõ hơn) */
  background: linear-gradient(
    90deg, 
    #ffffff 0%, 
    #ffffff 45%, 
    #a855f7 50%, /* Tia sáng tím */
    #ffffff 55%, 
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  /* Chạy hiệu ứng nhanh hơn một chút (3s) để dễ thấy */
  animation: shineSweep 3s linear infinite;
}

/* Giữ nguyên Keyframes này */
@keyframes shineSweep {
  0% { background-position: -100% center; }
  100% { background-position: 100% center; }
}
/* === 3. CSS CHO SECTION CHÍNH === */
.home {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
position: relative;
overflow: hidden;
/* Bạn nhớ chèn hình nền của bạn vào đây nếu chưa có */
background-color: #0c0d12; 
}

/* Lớp phủ mờ để chữ nổi bật trên nền */
.home::after {
content: "";
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background: radial-gradient(circle, rgba(12, 13, 18, 0.2) 0%, rgba(12, 13, 18, 0.7) 100%);
z-index: 1;
}

.home-content {
position: relative;
z-index: 10; /* Đẩy nội dung lên trên lớp phủ */
/* Nhấc nội dung lên cao một chút để tránh máy bay, bạn có thể điều chỉnh số 80px */
transform: translateY(-80px); 
}

/* === 5. CSS HIỆU ỨNG NÚT BẤM (Glow Pulse & Shine) === */
.btn-join-game {
display: inline-flex;
align-items: center;
padding: 1.2rem 3rem;
background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%); /* Màu tím/hồng gaming */
border-radius: 9999px;
font-weight: bold;
color: white;
font-size: 1.1rem;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 1px;
position: relative;
overflow: hidden; /* Cần thiết cho hiệu ứng shine */
transition: all 0.3s ease;
border: 2px solid rgba(255, 255, 255, 0.1);

/* Kích hoạt hiệu ứng hào quang xung mạch */
animation: glowPulse 2s infinite ease-in-out;
}

/* Hiệu ứng tia sáng lướt qua khi hover */
.btn-join-game::after {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 50px;
height: 100%;
background: rgba(255, 255, 255, 0.3);
transform: skewX(-30deg);
transition: none;
}

.btn-join-game:hover {
transform: scale(1.08) translateY(-3px);
box-shadow: 0 10px 40px rgba(217, 70, 239, 0.6);
}

.btn-join-game:hover::after {
animation: shine 0.6s;
}
.swiper-button-next,
.swiper-button-prev {
  color: #00c3ff;
}

.swiper-pagination-bullet-active {
  background: #007aff;
}

.gameplay-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 3px;
}

.gameplay-desc {
  font-family: "Montserrat", sans-serif;
  line-height: 1.8;
}

.feature-card {
  background: rgba(17, 25, 40, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.15);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border: 1px solid rgba(139, 92, 246, 0.4);
  transform: translateY(-5px);
}

.actor-img {
  transition: none;
}

.actor-out {
  animation: actorOut 0.6s forwards;
}

@keyframes actorOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-120px) scale(0.9);
    filter: blur(8px);
  }
}

.actor-in {
  animation: actorIn 0.6s forwards;
}

@keyframes actorIn {
  0% {
    opacity: 0;
    transform: translateX(120px) scale(1.1);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

#bgGlow {
  animation: glowMove 5s infinite alternate ease-in-out;
}

@keyframes glowMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, -30px);
  }
}

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  color: white;
  box-shadow: 0 0 20px rgba(140, 82, 255, 0.6);
  background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.description {
  color: #d1d1d1;
  line-height: 1.6;
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

.social-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
}

.join-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.join-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.discord-btn {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

.discord-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.group:hover img {
  transform: scale(1.1);
}

.mySwiper {
  width: 100%;
  padding-top: 50px !important;
  padding-bottom: 80px !important;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 60%;
  filter: blur(4px) grayscale(0.5);
  opacity: 0.4;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-slide-active {
  filter: blur(0) grayscale(0);
  opacity: 1;
  transform: scale(1.1);
  z-index: 10;
}

.my-prev,
.my-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: white;
  border-radius: 50%;
  z-index: 20;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

.my-prev:hover,
.my-next:hover {
  background: white;
  color: black;
}

.my-prev {
  left: 5%;
}

.my-next {
  right: 5%;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3) !important;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: white !important;
  width: 30px;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #4f46e5;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  margin-bottom: 8px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatDelayed {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(20px);
  }
  100% {
    transform: translateY(0);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: floatDelayed 7s ease-in-out infinite;
}

.team-card {
  background: rgba(17, 17, 17, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  opacity: 0;
  transition: 0.5s;
}

.team-card:hover::before {
  opacity: 1;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(140, 82, 255, 0.3);
}

.team-card img {
  transition: transform 0.4s ease;
}

.team-card:hover img {
  transform: scale(1.1);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-rotate {
  animation: rotate 40s linear infinite;
}

.reverse {
  animation-direction: reverse;
}

.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[class*="before:"] {
  position: relative;
}

#main-content a:focus-visible:not(.social-icon),
#main-content button:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

.social-icon:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

#join .feature-card .social-group {
  justify-content: center;
}

@media (min-width: 1024px) {
  #join .feature-card .social-group {
    justify-content: flex-start;
  }
}

/* Override legacy global.css `footer { display: grid; ... }` so inner layout stays a single column. */
footer.site-footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  grid-template-columns: unset;
  gap: unset;
}

.site-footer .container > .grid p {
  text-align: left;
  font-family: inherit;
  margin: 0;
  max-width: none;
}

.site-footer .footer-col-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a78bfa;
  margin: 0;
  line-height: 1.3;
}

.site-footer .footer-status-card {
  text-align: left;
}

.site-footer .footer-status-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.site-footer .footer-status-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.75);
}

.site-footer .footer-connect-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  width: 100%;
}

.site-footer .footer-help-card {
  width: 100%;
  text-align: left;
}

.site-footer .footer-nav-link {
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
  transition: color 0.15s ease;
  text-decoration: none;
}

.site-footer .footer-nav-link:hover {
  color: #e9d5ff;
}

.site-footer .footer-nav-link:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer a:focus-visible:not(.footer-nav-link) {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
  border-radius: 4px;
}

.highlight {
    color: #fff; /* Chữ trắng sáng */
    font-weight: 800; /* Đậm hơn */
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); /* Đổ bóng nhẹ màu tím cho hợp tone */
}

.stat-line {
    color: #cbd5e1; /* Chữ thường màu xám nhạt để làm nền */
    margin-bottom: 8px;
    font-size: 0.95rem;
}

:root {
    --primary-purple: #a855f7;
    --bg-dark: rgba(15, 12, 28, 0.7);
}

.cyber-sidebar {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    background: var(--bg-dark);
    backdrop-filter: blur(15px); /* Hiệu ứng kính mờ */
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 30px; /* Bo tròn dài hiện đại */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hiệu ứng khi lướt chuột vào cả thanh */
.cyber-sidebar:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
    width: 65px;
}

/* Brand Dot trên cùng */
.brand-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-purple);
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 0 10px var(--primary-purple);
    animation: pulse-dot 2s infinite;
}

/* Cấu trúc Icon */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.nav-item {
    position: relative;
    color: #94a3b8;
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vạch sáng bên cạnh icon khi hover */
.glow-line {
    position: absolute;
    right: -15px;
    width: 3px;
    height: 0;
    background: var(--primary-purple);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--primary-purple);
}

.nav-item:hover {
    color: white;
    transform: scale(1.2);
}

.nav-item:hover .glow-line {
    height: 20px;
}

/* Nút hỗ trợ hình tròn có hiệu ứng sóng */
.support-circle {
    margin-top: 40px;
    width: 35px;
    height: 35px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    position: relative;
    text-decoration: none;
}

.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-purple);
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

/* Animations */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes pulse-dot {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

@media (max-width: 768px) {
    .sticky-sidebar { display: none; }
}