html, body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Arial, sans-serif;
  overflow-x: hidden;
}
body {
  background: url('Images/BgMenu.png') no-repeat center center fixed;
  background-size: cover;
  color: #e6eef6;
  overflow: hidden;
  position: relative;
  perspective: 1200px;
}
.hidden { display: none !important; }

#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeOut 1s ease 3s forwards;
}
#preloader img {
  width: min(60vw, 300px);
  opacity: 0;
  transform: scale(0.8);
  animation: logoReveal 2s ease forwards;
}
@keyframes logoReveal {0% {opacity:0;transform:scale(0.8);}100% {opacity:1;transform:scale(1);}}
@keyframes fadeOut {to {opacity:0;visibility:hidden;}}

.side-menu {
  position: fixed;
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 20px;
  z-index: 5000;
  border-left: 1.5px solid rgba(255,255,255,0.4);
}
.side-menu a {
  position: relative;
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 5px 0 5px 15px;
  transition: all 0.3s ease;
}
.side-menu a::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 2px;
  background: transparent;
  transition: all 0.3s ease;
}
.side-menu a:hover, .side-menu a.active { color: #fff; }
.side-menu a:hover::before, .side-menu a.active::before {
  background: #e53935;
  width: 16px;
}

.team-footer {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 4000;
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-footer img {
  width: 90px;
  height: auto;
  display: block;
}
.mute-btn {
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mute-btn:hover {
  background: rgba(255,255,255,0.1);
}
.mute-btn img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

#bgWrap {
  width: 100%;
  height: 100%;
  transition: transform 0.2s ease-out;
  will-change: transform;
  z-index: 1;
}

.card {
  position: fixed; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.55);
  border-radius: 12px;
  padding: 6vw;
  max-width: 600px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 100;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: center center;
}

h1 {
  color: #fff;
  text-shadow: 2px 2px 5px #000;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg,#28a745,#218838);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: background 0.3s;
}
.download-btn:hover { background: linear-gradient(180deg,#2ecc71,#27ae60); }
.download-btn .win-icon { width: 20px; height: 20px; }
footer { margin-top: 18px; font-size: 0.75rem; color: rgba(230,238,246,0.7); }

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.93);
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 2000;
  transform-style: preserve-3d;
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
  transform-origin: center center;
}
.modal-content {
  color: #fff;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-content::-webkit-scrollbar {display: none;}
.team-logo {
  width: min(40vw,200px);
  margin: 0 auto 20px;
  display: block;
}

.profiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
  justify-items: center;
  padding: 20px 0;
  width: 100%;
  max-width: 950px;
  margin: 0 auto;
  justify-content: center;
}
@media (max-width: 950px) {
  .modal-content { max-width: 100vw;}
  .profiles { max-width: 99vw;}
}
@media (max-width: 900px) {
  .profiles {
    grid-template-columns: repeat(2, 1fr);
    max-width: 650px;
  }
}
@media (max-width: 600px) {
  .profiles {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}

.profile {
  background: rgba(0,0,0,0.4);
  padding: 15px;
  border-radius: 10px;
  width: 200px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  display: block;
  vertical-align: top;
}
.profile img {
  width: 160px;
  height: 200px;
  object-fit: contain;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #181818;
}
.name { font-weight: 600; font-size: 1rem; margin: 5px 0;}
.role {font-size: 0.9rem; color: #aaa; margin-bottom: 10px;}
.social-header { font-size: 0.9rem; font-weight: bold; margin-top: 5px; color: #18a999;}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.social-icons img { width: 22px; height: 22px; }

body, .modal-content, .profiles {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
body::-webkit-scrollbar, .modal-content::-webkit-scrollbar, .profiles::-webkit-scrollbar {
  display: none !important;
}

.leaf {
  position: fixed;
  top: -40px;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
  opacity: 0.85;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(105vh) rotateZ(360deg) rotateY(180deg);
    opacity: 0.7;
  }
}

.mute-btn {
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}
.mute-btn:hover {
  background: rgba(255,255,255,0.1);
}
.mute-btn img {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

#menuToggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 6000;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
}

#menuToggle:hover {
  background: rgba(255,255,255,0.12);
}

#menuToggle img {
  width: 28px;
  height: 28px;
  filter: none(1);
}

.side-menu {
  transition: transform 0.4s ease;
}

.side-menu.collapsed {
  transform: translate(-200px, -50%);
}

@media (max-width: 768px) {
  .side-menu {
    left: 10px;
  }
}


