* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  background-color: #401366;
  color: #fff;
  overflow-x: hidden;
}

/* ---------------- HEADER ---------------- */
header {
  background-color: #0D47A1;
  padding: 2rem 2rem;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo img {
  height: 50px;
}
nav {
  display: flex;
  gap: 1.5rem;
}
nav a {
  text-decoration: none;
  color: #eee7e7;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover {
  text-decoration: underline;
  color: #fff;
}
/* Global Headings */
h1 {
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-size: 46px;
  line-height: 1.3;
}

h3 {
  font-size: 24px;
  line-height: 1.4;
}

h4 {
  font-size: 20px;
}

/* Paragraphs and Descriptions */
p, .text, .about-text, .games-text, .disc-text {
  font-size: 20px;
  line-height: 1.6;
}

/* Hero Section */
.hero-head {
  font-size: 48px;
}

.hero-btn a {
  font-size: 16px;
}

/* Game overlay titles */
.overlay h3 {
  font-size: 18px;
}

/* Footer */
.footer p,
.footer a {
  font-size: 15px;
}

/* ---------------- HERO ---------------- */
#hero {
  position: relative;
  min-height: 100vh;
  background-image: url('../images/bg2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 1;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-head {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}
.text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 1rem auto;
}
.hero-btn a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  color: #fff;
  border: 2px solid #ffffff;
  background-color: transparent;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}
.hero-btn a:hover {
  background-color: #ffffff;
  color: #000;
}

/* ---------------- ABOUT ---------------- */
#about {
  min-height: 100vh;
  background: linear-gradient(to right, #0D47A1, #882f2f00);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}
.about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  align-items: center;
}

.about-image img {
  max-width: 600px;
  width: 100%;
  height: 400px;
  border-radius: 10px;
}
.about-content {
  flex: 1;
}
.about-text {
  margin: 1rem 0;
  font-size: 1rem;
  color: #f1f1f1;
}
.about-content h2 {
  color: #ffffff;
}
.about-content h4 {
  color: #ffffff;
}

/* ---------------- GAMES ---------------- */
#games {
  position: relative;
  background: linear-gradient(to right, #0D47A1, #882f2f00);
  padding: 4rem 2rem;
  z-index: 1;
  overflow: hidden;
}

#games h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #ffffff;
}
.games-text {
  text-align: center;
  max-width: 800px;
  margin: auto;
  margin-bottom: 2rem;
  color: #ffffff;
}
/* ----------- Overlay Wrapper ------------ */
.overlay-wrapper {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 4rem 2rem;
  width: 100%;
  height: 100%;
}

#hero .overlay-wrapper {
  background-color: rgba(250, 250, 250, 0.6);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.game-box {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  border: 2px solid #c0b6b6;
}
.game-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.overlay h3 {
  margin-bottom: 10px;
}
.overlay a {
  background-color: #1f1e0b;
  color: #ffffff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
}
.game-box:hover .overlay {
  opacity: 1;
}

/* ---------------- DISCLAIMER ---------------- */
#disc {
 background: linear-gradient(to right, #0D47A1, #882f2f00);
  padding: 4rem 2rem;
}
#disc h2 {
  text-align: center;
  color: #fff700;
  margin-bottom: 1rem;
}
.disc-text {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

/* ---------------- FOOTER ---------------- */
.footer {
  background-color: #386ec0;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: #ffffff;
  
  transition: 0.3s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
  }
  .about-row {
    flex-direction: column;
  }
  .text {
    padding: 0 1rem;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  p, .text, .about-text, .games-text, .disc-text {
    font-size: 16px;
  }

  .hero-head {
    font-size: 32px;
  }

  .hero-btn a {
    font-size: 15px;
  }
}
