@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --color-primary: #95b3ff;
  --color-secondary: #ffe395;
  --color-background: #ffffff;
  --color-text: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  overflow-x: hidden;
}

h2 {
  font-size: 3rem;
  font-weight: 600;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

button {
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.menu-toggle {
  display: none;
}

button,
a {
  cursor: pointer;
}

.wrapper {
  padding: 100px 20px;
  max-width: 1640px;
  width: 100%;
  margin: 0 auto;
}

.wrapper-header {
  padding: 0 20px;
  max-width: 1640px;
  width: 100%;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgb(223 223 223 / 75%);

  background: var(--color-background);
}

@media (max-width: 1199px) {
  .wrapper {
    padding: 70px 20px;
  }
}

@media (max-width: 767px) {
  .wrapper {
    padding: 50px 20px;
  }
}

/* global design above */

/* header design below */

.codex-logo-text {
  background: linear-gradient(
    to right,
    #2563eb,
    #9333ea
  ); /* from-blue-600 to-purple-600 */
  -webkit-background-clip: text; /* bg-clip-text */
  -webkit-text-fill-color: transparent; /* text-transparent */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo,
nav {
  flex: 1 1 0;
}

.logo {
  font-size: 2rem;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
}

.logo-image {
  width: 50px;
}

.logo span {
  background: linear-gradient(to right, #2563eb, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  justify-content: space-between;
}

nav ul {
  display: flex;
  gap: 48px;
  align-items: center;
}

nav ul a {
  font-size: 1.5rem;
}

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

.contact-header a {
  border: 1px solid rgb(120, 88, 233);
  color: #ffffff;
  border-radius: 5px;
  padding: 10px 25px;
  background: linear-gradient(
    to right,
    #2563eb,
    #9333ea
  ); /* from-blue-600 to-purple-600 */
}

@media (min-width: 992px) {
  .nav-list li {
    position: relative;
    display: inline-block; /* or flex if needed */
    padding-bottom: 4px; /* space for underline */
  }

  .nav-list li::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #95b3ff;
    transition: width 0.3s ease-in-out;
  }

  .nav-list li:hover::after {
    width: 100%;
  }
}

@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 140%;
    left: 0; /* 👈 move from left */
    transform: translateX(-100%); /* 👈 hidden at the start to the left */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 90%;
    background: var(--color-background);
    border: 1px solid black;
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.5s ease; /* smooth animation */
    pointer-events: none; /* prevent click when hidden */
  }

  nav.active {
    transform: translateX(5%); /* 👈 slide in to visible */
    pointer-events: auto; /* allow clicking */
  }

  nav ul {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .logo span {
    font-size: 1.5rem;
  }
}

/* header design above */

/* hero */

.hero {
  background: url("images/banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 560px;
  box-shadow: 0px 10px 100px -36px rgba(0, 0, 0, 0.51) inset;
}

/* hero end */

/* search start*/

.search-section {
  background: linear-gradient(to right, #2563eb, #9333ea);
}

.search-section .wrapper {
  padding: 50px 20px;
}

.search-form input {
  padding: 6px;
  border: none;
  outline: none;
  width: 600px;
}

.search-form form {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 600px;
  padding: 5px;
  border: 1px solid #95b3ff;
  border-radius: 5px;
}

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-form {
  width: max-content;
  background: #ffffff;
  border-radius: 5px;
}

.banner-search-btn {
  width: 24px;
}

.search-form button {
  padding-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* search end */

.gamelist-content ul {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(1, 1fr); /* default 1 column */
}

@media (min-width: 600px) {
  .gamelist-content ul {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium */
  }
}

@media (min-width: 900px) {
  .gamelist-content ul {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on large */
  }
}

.homepage-list-img {
  width: 100%;
  height: 300px;
  object-fit: cover;

  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.homepage-list-prev {
  padding: 25px 20px;
  border: 1px solid #00000040;
}

.homepage-list-prev h3 {
  margin-bottom: 16px;
}

.homepage-list-prev p {
  margin-bottom: 10px;
  word-break: break-word;
}

.homepage-list-view-more {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.homepage-list-prev {
  margin-top: -10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.homepage-list {
  border-radius: 10px;
  transition: all 0.3s ease;
}

.homepage-list:hover {
  box-shadow: 0px 0px 10px 0px rgba(140, 138, 250, 0.7);
}

.homepage-list:hover .homepage-list-view-more {
  gap: 20px;
}

/* home section contact */

.contact-section-home-page {
  text-align: center;
}

.contact-section-home-page p {
  margin-bottom: 25px;
}

.contact-section-home-page a {
  border: 1px solid #ffffff;
  padding: 10px 25px;
  border-radius: 8px;
  color: #ffffff;
}

.contact-home-page {
  background: linear-gradient(to right, #2563eb, #9333ea);
  color: #ffffff;
}

/* footer design below */

.footer-wrapper {
  display: flex;
}

.footer-section-container {
  flex: 0 0 40%;
}

.footer-section-container-two {
  flex: 0 0 60%;

  display: flex;
  justify-content: space-between;
}

.section-one p {
  max-width: 400px;
  width: 100%;
}

.section-one .logo {
  margin-bottom: 1rem;
}

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

.section-one p {
  margin-bottom: 3rem;
}

.footer-section-container-two h3 {
  margin-bottom: 1rem;
}

.footer-section-container-two li {
  margin-bottom: 0.4rem;
}

footer {
  box-shadow: 0px -2px 20px 4px rgba(182, 201, 248, 0.55);
}

@media (max-width: 991px) {
  .footer-wrapper {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 20px;
  }

  .footer-section-container-two {
    gap: 20px;
    flex-wrap: wrap;
    flex: 1 1 100%;
  }

  .section-two,
  .section-three {
    flex: 1 1 48%;
  }

  .email-section {
    flex: 1 1 100%;
  }
}
