* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}
body { 
  font-family: 'Segoe UI', sans-serif; 
  background-color: #0d1b2a; 
  color: white; 
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
  margin: 0; 
}
main { flex: 1; width: 100%; }

#main-header { position: fixed; top: -100px; left: 0; width: 100%; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3), rgba(53, 179, 210, 0.7), rgba(228, 117, 54, 0.7)); padding: 0 40px; height: 60px; display: flex; align-items: center; justify-content: space-between; transition: top 1s ease; z-index: 1000; }
#main-header.active {top: 0;}
nav ul { display: flex; list-style: none; gap: 20px; margin-top: 10px; align-items: center; }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1002; }
.hamburger span { width: 28px; height: 3px; background-color: #000000 !important; transition: transform 0.3s ease, opacity 0.3s ease; border-radius: 2px; }
.hamburger.active span { background-color: #000000 !important; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.logo { width: 120px; height: auto; display: block; z-index: 1001; }
.logo img { width: 50%; height: auto; display: block; }

nav ul li a { color: #121212; font-weight: bold; text-decoration: none; transition: color 0.3s; }
nav ul li a:hover {color: #ffffff;}

.header-popup-toggle {
  border: 0;
  padding: 0;
  background: transparent;
  color: #121212;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
  transition: color .3s;
}

.header-popup-toggle:hover,
.header-popup-toggle:focus-visible { color: #fff; }

.view-all-btn {
    position: absolute;
    right: 0;
    color: #ffffff;
    background-color: #333333;
    border: 1px solid #ffffff;
    border-radius: 25px;
    padding: 8px 24px;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}
.view-all-btn:hover {
    background-color: #555555;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.lang-btn-style {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: static;
    background-color: transparent;
    border: 1px solid #ffffff;
    color: #121212;
    padding: 6px 16px;
    cursor: pointer;
}
.lang-btn-style:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
}
.lang-btn-style i { font-size: 1rem; }
.lang-btn-style span { font-size: 0.9rem; text-transform: uppercase; }

.language-popup-menu { position: fixed; background-color: rgba(26, 26, 26, 0.95); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-10px); transition: all 0.2s ease; z-index: 1005; }
.language-popup-menu.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.language-popup-menu a { color: white; text-decoration: none; font-size: 0.9rem; padding: 5px 10px; border-radius: 4px; transition: background 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.language-popup-menu a:hover, .language-popup-menu a.active { background: rgba(53, 179, 210, 0.5); }

.section { width: 100%; }
.section > section { min-height: 600px; height: auto; padding: 100px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; }
.fade-in-on-load { animation: pageFadeIn 1.5s ease-out forwards; }
@keyframes pageFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.section-header-wrap { 
    position: relative; 
    max-width: 1200px; 
    margin: 0 auto 40px; 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 2;
}
.section-title { 
    margin-bottom: 0; 
    font-size: 3rem; 
    font-weight: bold; 
    text-align: center; 
    background: linear-gradient(135deg, rgb(53, 179, 210), rgb(228, 117, 54));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.6));
}

.games { padding: 80px 20px 40px; position: relative; overflow: hidden; }
.games-bg-layer { position: absolute; inset: 0; background-size: cover; background-position: center center; filter: blur(10px); transform: scale(1.05); opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; z-index: 0; }
.games-bg-layer.active { opacity: 1; visibility: visible; z-index: 0; }
.games::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 1; }

.games-marquee { min-height: auto !important; padding: 90px 0 !important; background: #111d2a; overflow: hidden; }
.games-marquee .section-header-wrap { padding: 0 20px; }
.marquee-window { width: 100%; overflow: hidden; }
.marquee-track { width: max-content; display: flex; gap: 24px; animation: gamesMarquee 30s linear infinite; }
.marquee-set { display: flex; gap: 24px; }
.marquee-window:hover .marquee-track,
.marquee-window:focus-within .marquee-track { animation-play-state: paused; }
.marquee-card { position: relative; width: min(560px, 78vw); aspect-ratio: 16/9; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; color: #fff; text-decoration: none; box-shadow: 0 16px 36px rgba(0,0,0,.3); }
.marquee-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.marquee-card:hover img { transform: scale(1.04); }
.marquee-card span { position: absolute; inset: auto 0 0; padding: 54px 22px 20px; font-size: 1.55rem; font-weight: 800; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
@keyframes gamesMarquee { to { transform: translateX(calc(-50% - 12px)); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in-on-load { animation: none; }
  .marquee-track { animation-play-state: paused; }
}

.game-showcase { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; width: 100%; }
.game-banner { position: relative; width: 100%; height: 500px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; cursor: pointer; }
.game-banner:hover { transform: translateY(-10px); }

.slide { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; z-index: 0; }
.slide.active { opacity: 1; visibility: visible; z-index: 1; }

.main-game-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; transform: scale(1); }
.game-banner:hover .main-game-image { transform: scale(1.05); }

.game-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.6) 100%); pointer-events: none; }
.game-info { position: absolute; bottom: 40px; left: 40px; color: white; max-width: 500px; display: flex; flex-direction: column; align-items: flex-start; pointer-events: auto; }
.game-description { font-size: 3rem; font-weight: bold; margin: 0 0 30px 0; line-height: 1.1; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); color: #ffffff; }

.button-group {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    position: relative;
}

.discord-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #5865F2;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.discord-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
    background-color: #4752C4;
}

.play-button { position: relative; background-color: #2a2a2a; color: #ffffff; border: 2px solid #E47536; padding: 15px 40px; font-size: 1.1rem; font-weight: bold; border-radius: 50px; cursor: pointer; transition: background-size 0.6s ease, box-shadow 0.3s ease, transform 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); text-transform: uppercase; letter-spacing: 1px; z-index: 10; background-image: linear-gradient(90deg, rgba(53, 179, 210, 1), rgba(53, 179, 210, 1)); background-repeat: no-repeat; background-size: 0% 100%; background-position: left top; }
.play-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); background-size: 100% 100%; }
.play-button:active { transform: translateY(0); }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.6); color: white; border: 1px solid rgba(255,255,255,0.2); width: 50px; height: 50px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; z-index: 10; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.slider-btn:hover { background: rgba(53, 179, 210, 0.9); transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 20px; } .next-btn { right: 20px; }

.slider-dots { position: absolute; bottom: 20px; left: 0; width: 100%; display: flex; justify-content: center; gap: 8px; z-index: 10; }
.slider-dot { width: 10px; height: 10px; background: rgba(255, 255, 255, 0.4); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.slider-dot.active { background: #ffffff; transform: scale(1.3); }
.slider-dot:hover { background: rgba(255, 255, 255, 0.8); }

.progress-bar-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background: rgba(255, 255, 255, 0.2); z-index: 10; }
.progress-bar { height: 100%; background: linear-gradient(90deg, rgba(53, 179, 210, 1), rgba(228, 117, 54, 1)); width: 0%; }
.progress-bar.animate { animation: slideProgress 10s linear forwards; }
@keyframes slideProgress { 0% { width: 0%; } 100% { width: 100%; } }

.about { padding: 100px 20px; position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; } 
.about::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: -1; }

.about-container { max-width: 1000px; width: 100%; margin: 0 auto; background-color: #262626; padding: 80px 60px; border-radius: 20px; position: relative; z-index: 1; text-align: center; border: 4px solid transparent; background-image: linear-gradient(#262626, #262626), linear-gradient(135deg, rgb(53, 179, 210), rgb(228, 117, 54)); background-origin: border-box; background-clip: padding-box, border-box; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); }
.about-title { font-size: 3.5rem; font-weight: bold; color: #ffffff; margin-bottom: 40px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); }
.about-content p { font-size: 1.25rem; color: #ffffff; line-height: 1.8; margin-bottom: 20px; word-break: keep-all; }
.about-content p:last-child { margin-bottom: 0; font-weight: bold; }

.media { padding: 80px 20px 40px; position: relative; } 
.media::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: -1; }

.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; width: 100%; position: relative; z-index: 2; }
.news-item { background: rgba(30, 30, 30, 0.8); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; overflow: hidden; text-decoration: none; color: white; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
.news-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); border-color: rgba(255,255,255,0.3); }
.news-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; position: relative; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-item:hover .news-thumb img { transform: scale(1.05); }

.video-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.news-item:hover .video-overlay { background: rgba(0, 0, 0, 0.1); }
.play-icon { font-size: 4rem; color: #ffffff; opacity: 0.85; transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.news-item:hover .play-icon { transform: scale(1.1); color: #E47536; opacity: 1; }

.news-info { padding: 25px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.news-title { font-size: 1.4rem; font-weight: bold; margin-bottom: 15px; line-height: 1.4; color: #fff; transition: color 0.3s ease; }
.news-item:hover .news-title { color: #E47536; }
.news-date { font-size: 0.95rem; color: #aaa; text-align: right; margin-top: auto; }

.community { padding: 80px 20px 40px; position: relative; width: 100%; } .community::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: -1; }

.social-banner { max-width: 1200px; margin: 40px auto 0; padding: 60px 40px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.2); text-align: center; position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.social-content { width: 100%; }
.social-content h2 { font-size: 2.5rem; font-weight: bold; margin: 0 0 20px 0; color: #ffffff; }
.social-content p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.9); margin: 0 0 40px 0; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
.social-icons { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; width: 100%; }
.social-link { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; background: rgba(255, 255, 255, 0.1); border-radius: 15px; text-decoration: none; color: white; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.2); min-width: 140px; }
.social-link:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.2); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }
.social-link i { font-size: 2.5rem; transition: all 0.3s ease; }
.social-link span { font-size: 0.9rem; font-weight: 500; text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); }
.social-link:hover i { background: linear-gradient(45deg, rgba(53, 179, 210, 1), rgba(228, 117, 54, 1)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }

#main-footer { background-color: rgba(0, 0, 0, 0.6); padding: 40px 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); position: relative; z-index: 10; width: 100%; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }

.footer-content { text-align: left; }
.footer-content p { color: rgba(255, 255, 255, 0.7); margin: 5px 0; font-size: 0.95rem; }
.footer-content .copyright { margin-top: 20px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); }

.email-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; }
.email-link:hover { color: #ffffff; text-decoration: underline; }

.footer-social { display: flex; gap: 20px; }
.footer-social a { color: rgba(255, 255, 255, 0.5); font-size: 1.8rem; transition: color 0.3s ease; }
.footer-social a:hover { color: #ffffff; }

@media (max-width: 768px) {
  .section > section { padding: 60px 15px 30px; height: auto; min-height: 100vh; }
  
  #main-header { padding: 0 20px; justify-content: space-between; }
  header nav { background: transparent !important; background-color: transparent !important; }
  .hamburger { display: flex; margin-left: auto; }

  nav ul { 
    position: fixed; top: 60px; left: 0; width: 100%; 
    background: linear-gradient(to bottom, rgba(40, 44, 52, 0.95) 0%, rgba(55, 65, 81, 0.92) 60%, rgba(53, 179, 210, 0.88) 100%) !important;
    backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 2px solid #E47536;
    flex-direction: column; padding: 40px 0; gap: 25px; 
    transform: translateY(-150%); opacity: 0; 
    transition: transform 0.4s ease, opacity 0.4s ease; 
    pointer-events: none; margin-top: 0; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); z-index: 1001;
  }
  
  nav ul.nav-active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  nav ul li a { color: #ffffff !important; font-size: 1.15rem; font-weight: bold; letter-spacing: 0.5px; transition: color 0.2s ease; }
  nav ul li a:hover { color: #121212 !important; }

  .lang-btn-style { border-color: #ffffff; color: #ffffff !important; }
  
  .section-title { display: block; font-size: 2.25rem; }
  #games > .section-header-wrap .section-title,
  #media > .section-header-wrap .section-title,
  #community > .section-title,
  .games-page-header .section-title,
  #media-page > .section-header-wrap .section-title {
    display: block !important;
    visibility: visible;
    opacity: 1;
  }

  .section-header-wrap {
    justify-content: center;
    padding: 0 15px;
    margin-bottom: 25px;
    height: auto;
    min-height: 44px;
  }
  .section-header-wrap > .view-all-btn {
    position: absolute;
    right: 15px;
    padding: 7px 16px;
    font-size: 0.85rem;
  }

  .about-container { padding: 40px 20px; }
  .about-title { font-size: 2.2rem; margin-bottom: 25px; }
  .about-content p { font-size: 1.05rem; }
  
  .game-banner { height: auto; aspect-ratio: 16/9; margin-top: 10px; }
  .game-info { bottom: 15px; left: 15px; max-width: 80%; }
  .game-description { font-size: 1.5rem; margin-bottom: 10px; }
  
  .discord-icon-btn { width: 38px; height: 38px; font-size: 1.2rem; }

  .play-button { padding: 8px 20px; font-size: 0.85rem; }
  .slider-btn { width: 35px; height: 35px; font-size: 0.9rem; }
  .slider-btn i { display: flex; align-items: center; justify-content: center; }
  .prev-btn { left: 10px; } .next-btn { right: 10px; }
  .slider-dots { bottom: 10px; }
  
  .news-grid { grid-template-columns: 1fr; gap: 20px; padding: 0 10px; }
  .play-icon { font-size: 3rem; }

  .social-banner { padding: 30px 20px; margin-top: 20px; }
  .social-content h2 { font-size: 1.8rem; }
  .social-content p { font-size: 1rem; margin-bottom: 25px; }
  .social-icons { flex-direction: column; align-items: center; gap: 15px; width: 100%; }
  .social-link { width: 100%; max-width: 280px; padding: 15px; }

  .footer-container { flex-direction: column; text-align: center; gap: 25px; }
  .footer-content { text-align: center; }
}

@media (max-width: 768px) {
  .header-popup-toggle { width: 100%; padding: 15px 20px; text-align: center; }
  .hamburger { border: 0; background: transparent; }
}
