body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: black;
  color: white;
}

/* NAVBAR */
.navbar {
    height: 100px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000; 
    display: flex;
    align-items: center;
    padding: 0 5%; /* Changed to relative padding to prevent overflow */
    background: black;
    box-sizing: border-box;
}

.logo img {
    height: 70px; /* Slightly reduced to fit better within 100px header */
    width: auto;    
}

/* LEFT SIDE (logo + nav) */
.left {
    display: flex;
    align-items: center;
    gap: 40px; 
}

/* NAV LINKS */
nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

nav .active {
    color: red;
    border-bottom: 2px solid red;
}

/* RIGHT SIDE (push to right) */
.right {
    margin-left: auto;   
    display: flex;
    align-items: center;
    gap: 30px;
}

/* SEARCH BOX */
.search-box {
    display: flex;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.search-box:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.search-box:focus-within {
    border-color: rgb(188, 22, 22);
    box-shadow: 0 0 12px rgba(188, 22, 22, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.search-box input {
    padding: 0 20px;
    width: 200px; /* Reduced base width */
    border: none;
    background: transparent;
    color: white;
    outline: none;
    font-size: 14.5px;
    transition: width 0.4s ease;
}

.search-box input:focus {
    width: 280px; 
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.search-box button {
    padding: 0 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.search-box button:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.search-box button img {
    height: 18px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* SIGN IN BUTTON */
.signin {
    padding: 9px 18px;
    background: rgb(188, 22, 22);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.signin:hover {
  background: rgb(157, 38, 38);
}

/* HERO SLIDER */
.hero-slider {
    margin-top: 100px;
    position: relative;
    width: 100%;
    height: 400px; 
    overflow: hidden; 
}

.hero-slider input[type="radio"] {
  display: none;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  animation: autoSlide 12s infinite; 
}

@keyframes autoSlide {
  0%, 28% { transform: translateX(0%); }
  33.33%, 61.33% { transform: translateX(-100%); }
  66.66%, 94.66% { transform: translateX(-200%); }
  100% { transform: translateX(0%); }
}

.hero-slider:hover .slides,
.hero-slider:hover .dots label {
  animation-play-state: paused;
}

#slide2:checked ~ .slides,
#slide3:checked ~ .slides {
  animation: none;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
  background: #000;
}

#slide1:checked ~ .slides { transform: translateX(0%); }
#slide2:checked ~ .slides { transform: translateX(-100%); }
#slide3:checked ~ .slides { transform: translateX(-200%); }

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.dots label {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dots label:nth-child(1) { animation: dot1 12s infinite; }
.dots label:nth-child(2) { animation: dot2 12s infinite; }
.dots label:nth-child(3) { animation: dot3 12s infinite; }

@keyframes dot1 { 
  0%, 28% { background: #fff; } 
  33.33%, 100% { background: rgba(255, 255, 255, 0.5); } 
}
@keyframes dot2 { 
  0%, 28% { background: rgba(255, 255, 255, 0.5); } 
  33.33%, 61.33% { background: #fff; } 
  66.66%, 100% { background: rgba(255, 255, 255, 0.5); } 
}
@keyframes dot3 { 
  0%, 61.33% { background: rgba(255, 255, 255, 0.5); } 
  66.66%, 94.66% { background: #fff; } 
  100% { background: rgba(255, 255, 255, 0.5); } 
}

#slide2:checked ~ .dots label,
#slide3:checked ~ .dots label {
  animation: none;
}

#slide1:checked ~ .dots label:nth-child(1),
#slide2:checked ~ .dots label:nth-child(2),
#slide3:checked ~ .dots label:nth-child(3) {
  background: #fff;
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; 
  box-sizing: border-box; 
  padding: 0 30px;        
}

.controls label {
  color: white;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  pointer-events: all; 
  user-select: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4); 
  transition: background 0.3s ease;
}

.controls label:hover {
  background: rgba(0, 0, 0, 0.8);
}

.controls-1,
.controls-2,
.controls-3 {
  display: none;
}

#slide1:checked ~ .controls-1 { display: flex; }
#slide2:checked ~ .controls-2 { display: flex; }
#slide3:checked ~ .controls-3 { display: flex; }


/* ABOUT SECTION */
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 5%;
  gap: 40px;
  flex-wrap: wrap; /* Keep it responsive */
}

.about-us {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about img {
  width: 100%;
  max-width: 300px;
  border-radius: 12px;
}

.about-text {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  box-sizing: border-box;
}

.about-text h2 {
  margin-top: 0;
}

.about-text p {
  color: #ccc;
  line-height: 1.6;
}

.about-text button {
  margin-top: 20px;
  padding: 12px 24px;
  background: rgb(243, 53, 53);
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.about-text button:hover {
  background: rgb(188, 22, 22);
}

/* GAMES SECTION */
.games {
  text-align: center;
  padding: 40px 5% 80px;
}

.games h2 {
  margin-bottom: 40px;
}

.game-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap; /* Stack on smaller screens */
}

.game-row img {
  width: 150px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.game-row img:hover {
  transform: scale(1.05);
}
