/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
  background: url("https://p3-flow-imagex-sign.byteimg.com/tos-cn-i-a9rns2rl98/rc/pc/super_tool/caf0e97fead844bab7b0f91ed6114e6d~tplv-a9rns2rl98-image.image?rcl=202512261155230956CAC520677CB3FFD6&rk3s=8e244e95&rrcfp=f06b921b&x-expires=1769313363&x-signature=VPeQCo4s08BEJAYLqFlCtAwOtWQ%3D")
    no-repeat center center/cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #3498db;
}

ul {
  list-style: none;
}

.container {
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a2463;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-content {
  text-align: center;
  color: white;
}
.loading-logo-text {
  font-size: 3rem;
  font-weight: bold;
  color: #3498db;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: pulse 1.5s infinite ease-in-out;
}

.loading-logo {
  width: 200px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite ease-in-out;
}

.loading-bar-container {
  width: 300px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 auto 20px;
}

.loading-bar {
  height: 100%;
  background-color: #3498db;
  width: 0;
  border-radius: 10px;
  animation: loading 3s forwards ease-out;
}

.loading-text {
  font-size: 1.2rem;
  color: white;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Navigation */
.navbar {
  background-color: rgba(10, 36, 99, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: #3498db;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 120px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #3498db;
}

.nav-link.active {
  color: #3498db;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #3498db;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease;
  background-color: white;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(10, 36, 99, 0.7), rgba(10, 36, 99, 0.7)),
    url("https://p3-flow-imagex-sign.byteimg.com/tos-cn-i-a9rns2rl98/rc/pc/super_tool/6cf5e006fd7140bba9cf5d211628d1a8~tplv-a9rns2rl98-image.image?rcl=20251226114335F18B3BEA8391A0196D99&rk3s=8e244e95&rrcfp=f06b921b&x-expires=1769312685&x-signature=H%2FXb1Y35Ux3lAU4p%2BedVUC8m1jU%3D")
      no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  animation: fadeIn 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #3498db;
  color: white;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

/* Section Styles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #0a2463;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #3498db;
}

/* Games Section */
.games-section {
  padding: 5rem 0;
  background: rgba(248, 249, 250, 0.5);
  backdrop-filter: blur(10px);
}

.games-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.game-card {
  perspective: 1000px;
  height: 450px;
  cursor: pointer;
}

.game-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.game-card:hover .game-card-inner {
  transform: rotateY(180deg);
}

.game-card-front,
.game-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 40px;
  overflow: hidden;
}

.game-card-front {
  background-color: white;
  color: #0a2463;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game-card-image {
  width: 100%;
  height: 60%;
  object-fit: cover;
}

.game-card-front img {
  width: 100%;
  height: 60%;
  object-fit: cover;
}

.game-card-front h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.game-card-front p {
  padding: 0 1rem;
  flex-grow: 1;
}

.game-card-back {
  background-color: #0a2463;
  color: white;
  transform: rotateY(180deg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-card-back h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.game-features {
  text-align: left;
  margin: 1rem 0;
}

.game-features h4 {
  margin-bottom: 0.5rem;
  color: #3498db;
}

.game-features ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-secondary:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: #0a2463;
  color: white;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  position: relative;
  animation: slideIn 0.5s ease-out;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: white;
  text-decoration: none;
}

#game-details-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.game-detail-header {
  text-align: center;
}

.game-detail-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.game-detail-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.game-detail-screenshots img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.game-detail-description {
  line-height: 1.8;
}

.game-detail-features {
  margin: 2rem 0;
}

.game-detail-features h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.game-detail-features ul {
  list-style-type: disc;
  padding-left: 2rem;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
    align-items: center;
  }
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0a2463;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}
.about-placeholder {
  background-color: #0a2463;
  color: white;
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* News Section */
.news-section {
  padding: 5rem 0;
  background: rgba(248, 249, 250, 0.5);
  backdrop-filter: blur(10px);
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.team-member {
  perspective: 1000px;
  height: 400px;
  cursor: pointer;
}

.team-member-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.team-member:hover .team-member-inner {
  transform: rotateY(180deg);
}

.team-member-front,
.team-member-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 10px;
  overflow: hidden;
}

.team-member-front {
  background-color: white;
  color: #0a2463;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team-member-placeholder {
  background-color: #3498db;
  color: white;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.team-member-front h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-member-front p {
  color: #666;
}

.team-member-back {
  background-color: #0a2463;
  color: white;
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team-member-back h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.team-member-back p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.team-member-back .social-links a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.team-member-back .social-links a:hover {
  color: #3498db;
}

/* Careers Section */
.careers-section {
  padding: 5rem 0;
  background: rgba(248, 249, 250, 0.5);
  backdrop-filter: blur(10px);
}

.careers-content {
  display: flex;
  align-items: center !important;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .careers-content {
    flex-direction: row;
    align-items: flex-start;
  }
}

.careers-text,
.careers-openings {
  flex: 1;
}

.careers-text h3,
.careers-openings h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #0a2463;
}

.careers-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.careers-openings ul {
  list-style: none;
}

.careers-openings li {
  background-color: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.careers-openings li:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.careers-openings h4 {
  font-size: 1.2rem;
  color: #0a2463;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
  }
}

.contact-info,
.contact-form {
  flex: 1;
}

.contact-info h3,
.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #0a2463;
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-info p i {
  margin-right: 1rem;
  color: #3498db;
}

.contact-info .social-links {
  margin-top: 2rem;
}

.contact-info .social-links a {
  display: inline-block;
  color: #0a2463;
  margin-right: 1rem;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-info .social-links a:hover {
  color: #3498db;
  transform: translateY(-3px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #0a2463;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}

.news-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.news-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.news-item {
  min-width: 100%;
  padding: 2rem;
  background-color: white;
}

.news-date {
  color: #3498db;
  font-weight: bold;
  margin-bottom: 1rem;
}

.news-item h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0a2463;
}

.news-prev,
.news-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(10, 36, 99, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.news-prev:hover,
.news-next:hover {
  background-color: #0a2463;
}

.news-prev {
  left: 1rem;
}

.news-next {
  right: 1rem;
}

/* Footer */
.footer {
  background-color: #0a2463;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #3498db;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #3498db;
}

.footer-links ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a,
.footer-legal a {
  color: white;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #3498db;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Privacy and Terms Pages */
.privacy-section,
.terms-section {
  padding: 8rem 0 5rem;
  background-color: white;
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #0a2463;
}

.privacy-content,
.terms-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .privacy-content,
  .terms-content {
    flex-direction: row;
  }
}

.privacy-sidebar,
.terms-sidebar {
  flex: 0 0 250px;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  height: fit-content;
}

.privacy-nav,
.terms-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-nav-link,
.terms-nav-link {
  color: #0a2463;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 5px;
}

.privacy-nav-link:hover,
.terms-nav-link:hover {
  background-color: #e3f2fd;
  color: #3498db;
}

.privacy-main,
.terms-main {
  flex: 1;
}

.privacy-section-content,
.terms-section-content {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.privacy-section-content:last-child,
.terms-section-content:last-child {
  border-bottom: none;
}

.privacy-section-content h2,
.terms-section-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0a2463;
}

.privacy-section-content h3,
.terms-section-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: #3498db;
}

.privacy-section-content p,
.terms-section-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.privacy-section-content ul,
.terms-section-content ul {
  list-style-type: disc;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.privacy-section-content li,
.terms-section-content li {
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #0a2463;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .modal-content {
    width: 95%;
    margin: 15% auto;
    padding: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 90%;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .game-card {
    height: 400px;
  }

  .news-item {
    padding: 2rem;
  }

  .news-prev,
  .news-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .privacy-sidebar,
  .terms-sidebar {
    flex: 0 0 100%;
    position: static;
  }
}
