@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');

@font-face {
  font-family: Bebas;
  src: url('../fonts/BebasKai-Regular.otf');
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ffffff;
  --secondary-color: #f16363;
  --accent-color: #fdc884;
  --text-color: #fff;
  --background-color: #000;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-darker: rgba(0, 0, 0, 0.2);
  --text-shadow-color: #000000;
  --navbar-height: 50px;
}

html,
body {
  width: 100%;
  height: 100%;
  color: var(--text-color);
  background-color: var(--background-color);
  font-family: 'Poppins', Montserrat, Arial, Helvetica, sans-serif;
  font-weight: 700;
  scroll-behavior: smooth;
  /* Smooth scrolling for navigation */
  scroll-padding-top: var(--navbar-height);
  /* Offset for fixed navbar */
}

a {
  text-decoration: none;
  color: var(--text-color);
}

.btn {
  border: 1.5px solid var(--text-color);
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease-in-out;
  display: inline-block;
}

.btn:hover {
  color: var(--background-color);
  background: var(--text-color);
}

.wrapper {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 300px;
  background-color: #000;
  overscroll-behavior: none;
}

.parallax__group {
  position: relative;
  /* height: 100vh;  Removed to allow content to dictate height where needed */
  width: 100vw;
  transform-style: preserve-3d;
}

.hero-container {
  height: 100vh;
  /* Hero needs to be full screen for the effect */
  min-height: 100vh;
  z-index: 1;
  /* Lower z-index */
}

.parallax__layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.background {
  background: url('assets/img/background.png') no-repeat center;
  background-size: cover;
  transform: translateZ(-600px) scale(3);
  z-index: 1;
}

.hero-text {
  background-size: cover;
  transform: translateZ(0) scale(1);
  z-index: 7;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar .logo a {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.navbar .logo a:hover {
  opacity: 0.8;
}

.navbar .logo-img {
  height: 40px;
  margin-right: 10px;
}

.navbar h2 {
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  color: var(--text-color);
}

.navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin-left: 2.5rem;
  list-style-type: none;
}

.navbar ul li a {
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
  color: var(--text-color);
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.navbar ul li a:hover {
  color: var(--accent-color);
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* Active link styling */
.navbar ul li a.active {
  color: var(--accent-color);
}

.navbar ul li a.active::after {
  width: 100%;
}

/* Language Selector */
.navbar .language-selector {
  display: flex;
  align-items: center;
  margin-left: 2.5rem;
}

.navbar .language-selector button {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 5px;
  transition: all 0.3s ease;
}

.navbar .language-selector button.active {
  opacity: 1;
  font-weight: 900;
  color: var(--accent-color);
}

.navbar .language-selector button:hover {
  transform: scale(1.1);
}

.navbar .language-selector span {
  margin: 0 5px;
  opacity: 0.5;
  color: var(--text-color);
}

/* Mobile Menu Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

.tagline {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
}

.tagline p {
  font-size: 1.8rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 var(--text-shadow-color);
  line-height: 1.4;
}

.info-container {
  background: var(--background-color);
  /* transform: none; */
  /* transform-style: flat; */
  z-index: 20;
  /* High z-index */
  position: relative;
  /* isolation: isolate; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 5rem 2rem;
  background-color: #000;
  /* min-height: 100vh; */
  /* Let content define height */
}

.info-container img {
  width: 75%;
  max-width: 500px;
  margin-bottom: 2.5rem;
  filter: saturate(0.65);
}

.text-container {
  width: 100%;
  max-width: 1200px;
}

.text-container h2 {
  font-size: 2.5rem;
  font-weight: 900;
  position: relative;
  padding-bottom: 10px;
  text-shadow: 2px 2px 0 var(--text-shadow-color);
  margin-bottom: 1.5rem;
}

.text-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.text-container p {
  font-weight: 400;
  font-size: 0.9rem;
  margin: 1rem 0;
  text-shadow: 1px 1px 0 var(--text-shadow-color);
}

.text-container .btn {
  margin-top: 1.5rem;
}

/* Contact info styling */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.contact-item p {
  font-weight: 700;
  text-shadow: 1px 1px 0 var(--text-shadow-color);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--background-color);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
}

/* Game Section Styles */
.game-section {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)), url('assets/img/tss-header.jpg') no-repeat center center;
  background-size: cover;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  z-index: 20;
  /* Higher z-index to cover hero */
  min-height: 450px;
  background-color: #000;
  /* transform-style: flat; */
  /* Not needed if not in 3d context group */
  box-shadow: 0 -50px 50px rgba(0, 0, 0, 1);
  /* Shadow to blend transition */
}

.game-section .game-content {
  max-width: 700px;
  margin: 0 auto;
}

.game-section .game-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-shadow: 2px 2px 0 var(--text-shadow-color);
  position: relative;
  padding-bottom: 15px;
}

.game-section .game-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.game-section p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
  text-shadow: 1px 1px 0 var(--text-shadow-color);
}

.game-badge {
  display: inline-block;
  background: var(--accent-color);
  color: var(--background-color);
  padding: 0.5rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.steam-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--text-color);
  border-radius: 0.75rem;
  color: var(--text-color);
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
}

.steam-btn:hover {
  color: var(--background-color);
  background: var(--text-color);
}

.steam-btn i {
  font-size: 1.25rem;
}

/* Steam Widget Container */
.steam-widget-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.steam-widget-container iframe {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Game Section */
@media (max-width: 767px) {
  .game-section {
    padding: 0 0 2.5rem 0;
    border-top: none;
    overflow: hidden;
    background-position: center top;
  }

  .game-section .game-title {
    margin-top: 1rem;
    font-size: 1.4rem;
    padding: 0 1rem;
  }

  .game-section p {
    font-size: 0.8rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
  }

  .game-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 1rem;
  }

  /* Steam widget mobile fix - scale down and remove scroll */
  .steam-widget-container {
    margin-top: 0.5rem;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .steam-widget-container iframe {
    width: 646px;
    height: 190px;
    transform: scale(0.60);
    transform-origin: center center;
    overflow: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  .steam-widget-container iframe::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }
}

.footer-container {
  width: 100%;
  padding: 1rem 0;
  text-align: center;
  background-color: #000;
  position: relative;
  z-index: 12;
}

.footer-content p {
  font-size: 0.8rem;
  margin: 0;
}

/* Desktop styles */
@media (min-width: 768px) {
  .info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 3rem;
    align-items: center;
    text-align: left;
    padding: 5rem;
  }

  .info-container img {
    justify-self: end;
    width: 75%;
  }

  .text-container h2::after {
    left: 0;
    transform: none;
  }

  .contact-info {
    align-items: flex-start;
  }

  .social-links {
    justify-content: flex-start;
  }

  .tagline p {
    font-size: 2.2rem;
  }
}

/* Mobile styles */
@media (max-width: 767px) {
  .navbar {
    padding: 0 1.5rem;
    height: 50px;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 10001;
  }

  .navbar ul {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .navbar ul.open {
    right: 0;
  }

  .navbar ul li {
    margin: 1.5rem 0;
  }

  .navbar .language-selector {
    margin-left: 0;
    margin-top: 2rem;
  }

  .tagline {
    top: 55%;
  }

  .tagline p {
    font-size: 1.3rem;
  }

  .info-container {
    padding: 3rem 1.5rem;
    min-height: auto;
    height: auto;
  }

  .info-container img {
    width: 60%;
    max-width: 250px;
    margin-bottom: 1.5rem;
  }

  .text-container h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .text-container p {
    font-size: 0.8rem;
    margin: 0.5rem 0;
  }

  .contact-info {
    margin: 1rem 0;
  }

  .social-links {
    margin-top: 1rem;
    gap: 1rem;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .footer-container {
    margin-top: 0;
    padding: 0.75rem 0;
  }

  .footer-content p {
    font-size: 0.7rem;
  }
}

/* Common ScrollPadding for both desktop and mobile */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

/* Section scroll margin */
#home,
#about {
  scroll-margin-top: var(--navbar-height);
}