body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #0e0e23;
  color: #f0f0f0;
  line-height: 1.6;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  position: fixed;
  width: calc(100% - 4rem);
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
}

nav a {
  margin-left: 1.5rem;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #a798f4;
}

.centered{
  margin: 0 auto;
}

/* Overlay stays centered */
.hero-overlay {
  position: relative;
  z-index: 10;
  text-align: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

/* Hero with gradient background */
.hero {
  height: calc(100vh - 48px);
  background: linear-gradient(120deg, #1f1836, #0d0d1a);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay h1 {
  margin: 0;
  font-size: 3rem;
  color: #f9f9ff;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
}

.hero-overlay p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #ccc;
  letter-spacing: 0.5px;
}

section {
  position: relative;
  padding: 24px 12px;
}

.about, .news, .contact {
  background-color: #151530;
}

.games {
  background-color: #100c26;
}

/* Section headings */
h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #e0d9ff;
  text-align: center;
}

/* Game cards grid */
.game-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: #1f1940;
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1 1 300px;
  max-width: 320px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.card h3 {
  margin-top: 0;
  color: #d9c9ff;
  font-size: 1.3rem;
}

.card p {
  font-size: 0.95rem;
  color: #bbb5d3;
  margin: 0.5rem 0 0;
}

/* General paragraph styling */
.about p, .news p, .contact p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  color: #cac5e5;
}

/* Social icons */
.social-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Styling for plain text social links */
.social-icons a {
  color: #a798f4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: #cbb9ff;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #0a0a1a;
  color: #666;
  font-size: 0.85rem;
}

header a .main-logo {
  display: block;
  max-height: 80px;
  max-width: 220px;
}

header a .main-logo-m {
  display: none;
  max-height: 80px;
  max-width: 220px;
}

@media (max-width: 768px) {
  header a .main-logo {
    display: none;
  }

  header a .main-logo-m {
    display: block;
  }
}

header a {
  padding: 0.5rem 1rem 0.5rem 0;
}

.social-icons > a > img{
  max-height: 72px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 2.2rem;
  }
  .hero-overlay p {
    font-size: 1rem;
  }
  header nav {
    display: none; 
    /* hide nav on small screens
    TODO: implement mobile nav */
  }

  header > img.main-logo-m {
    display: flex;
  }
  header > img.main-logo {
    display: none;
  }

  .social-icons{
    column-gap: 24px;
  }

  .social-icons > a > img{
    max-height: 48px;
  }

}

.center {
  text-align: center;
}

.game-title > h3 {
  margin-bottom: 0;
}

.game-title > p {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* Hide burger by default, show only on small screens */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #f0f0f0;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: calc(-260px - 4rem); /* move to hide, self width + 2xpadding*/
  padding: 2rem;
  width: 260px;
  height: 100vh;
  background-color: #0e0e23;
  box-shadow: -2px 0 8px rgba(0,0,0,0.5);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: right 0.33s ease;
}

.mobile-nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: #a798f4;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* Overlay for background blur */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
}

.mobile-nav.active {
  right: 0;
}

/* ✕ close button inside mobile menu */
.mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: #f0f0f0;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.mobile-close:hover {
  color: #a798f4;
}

/* Social icons inside mobile nav */
.mobile-socials {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 0.3rem 0.5rem;
  line-height: 1;
  padding-top: 0.5rem;
}

.mobile-socials::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #333, transparent);
  margin: 0.3rem 0 0.6rem;
}

.mobile-socials img {
  height: 20px;
  width: 20px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  display: block;
  padding: 0;
  margin: 0;
}


.mobile-socials img:hover {
  opacity: 1;
}
