* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body{
margin: 0;
min-height: 100vh;

background:
linear-gradient(35deg,
rgba(255,255,255,0.18) 0%,
rgba(255,255,255,0.18) 35%,
transparent 35%),

linear-gradient(-35deg,
rgba(255,255,255,0.15) 0%,
rgba(255,255,255,0.15) 40%,
transparent 40%),

linear-gradient(18deg,
rgba(255,255,255,0.12) 0%,
rgba(255,255,255,0.12) 45%,
transparent 45%),

linear-gradient(
135deg,
#1e88e5 0%,
#29b6f6 35%,
#4dd0e1 70%,
#80deea 100%
);

background-attachment: fixed;
}

/* Header */
/* .header{
    display:none;
}

.left-sidebar{
    display:none;
} */
/* Main Content */
.main-content {
padding-top: 10px;
width: auto;
padding-left: 0;
padding-right: 0;
}

/* Game Grid - EXACTLY 3 ROWS */
.games-grid {
display: grid;
grid-template-rows:repeat(3 ,1fr);
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 10px;
width: 100%;

padding: 0;
margin: 0;
}

.game-card {
aspect-ratio: 4/ 3;
border-radius: 15px;
overflow: hidden;
cursor: pointer;
transition: all 0.4s ease;
position: relative;
background: rgba(255, 255, 255, 0.05);
border: none;
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
}

.game-card:hover {
transform: scale(1.02);
box-shadow: 0 25px 50px rgba(0, 212, 255, 0.3);
}

.game-image {
width: 100%;
height: 100%;
object-fit: contain;
object-position: center;
transition: transform 0.4s ease;
position: absolute;
top: 0;
left: 0;
transform: scale(1);
}

.game-card:hover .game-image {
transform: scale(1.05);
}

.game-overlay {
position: relative;
background: linear-gradient(transparent, rgba(0,0,0,0.9));
padding: 20px;
width: 100%;
transform: translateY(100%);
transition: transform 0.3s ease;
z-index: 2;
}

.game-card:hover .game-overlay {
transform: translateY(0);
}

.game-title {
font-size: 14px;
font-weight: bold;
margin-bottom: 3px;
color:white;
}

/* Responsive - Always 3 rows */
@media (max-width: 1200px) {
.games-grid {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
}


/* ON PHONE */
@media (max-width: 768px) {

.main-content{
    margin-left:0;
    width:100%;
    padding-top:10px;
    padding-right:0;
}

.games-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:6px;
    padding:6px;
}

.game-card{
    height:90px;
    border-radius:10px;
    aspect-ratio:auto;
}

.game-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

footer{
    margin-left:0;
}
}



/* Loading Animation */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.game-card {
animation: fadeInUp 0.6s ease forwards;
opacity: 0;
animation-fill-mode: both;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }
.game-card:nth-child(9) { animation-delay: 0.9s; }

/* Footer */
footer {
background: #0d2058;
color: white;
padding: 3rem 2rem 1rem;
margin-top: 2rem;
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}

.footer-section h3 {
color: #00d4ff;
margin-bottom: 1rem;
}

.footer-section a {
color: #ccc;
text-decoration: none;
display: block;
margin-bottom: 0.5rem;
transition: color 0.3s ease;
}

.footer-section a:hover {
color: #00d4ff;
}

.footer-bottom {
text-align: center;
padding-top: 2rem;
border-top: 1px solid #333;
color: #999;
}
.footer-section a {
color:white;
}
footer{
transition:0.2s ease;
}


/* CONTENT */
.main-content{
margin-left: 15px;  
padding-right: 15px;    
width: auto;
}

.games-grid{
width: 100%;
}



/* ── CATEGORIES SECTION ── */
.categories-section {
  padding: 30px 15px 20px;
}
.categories-title {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 14px;
}
.categories-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 10px;
}
.cat-card {
  flex: 0 0 auto;
  width: 150px;
  height: 90px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cat-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.cat-emoji { font-size: 40px; }

.cat-action      { background: linear-gradient(135deg, #e53935, #ef9a9a); }
.cat-racing      { background: linear-gradient(135deg, #f57c00, #ffcc80); }
.cat-arcade      { background: linear-gradient(135deg, #8e24aa, #ce93d8); }
.cat-puzzle      { background: linear-gradient(135deg, #00897b, #80cbc4); }
.cat-horror      { background: linear-gradient(135deg, #37474f, #90a4ae); }
.cat-sports      { background: linear-gradient(135deg, #1e88e5, #90caf9); }
.cat-adventure   { background: linear-gradient(135deg, #43a047, #a5d6a7); }
.cat-shooting    { background: linear-gradient(135deg, #c62828, #ef9a9a); }
.cat-simulation  { background: linear-gradient(135deg, #00838f, #80deea); }
.cat-strategy    { background: linear-gradient(135deg, #6a1b9a, #ce93d8); }
.cat-survival    { background: linear-gradient(135deg, #d84315, #ffab91); }
.cat-multiplayer { background: linear-gradient(135deg, #0277bd, #81d4fa); }
.cat-io          { background: linear-gradient(135deg, #558b2f, #dcedc8); }
.cat-3d          { background: linear-gradient(135deg, #4527a0, #b39ddb); }

/* Mobile */
@media (max-width: 768px) {
  .categories-section { padding: 20px 8px 10px; }
  .cat-card { width: 95px; height: 75px; font-size: 11px; border-radius: 10px; }
  .cat-emoji { font-size: 22px; }
  .categories-title { font-size: 16px; padding-left: 4px; }
}



/* nav button */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {

  body {
    padding-bottom: 65px;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: rgba(13, 45, 119, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    flex: 1;
    gap: 3px;
    padding: 6px 0;
    transition: color 0.2s ease;
    position: relative;
  }

  .bottom-nav-icon {
    width: 25px;
    height: 25px;
    transition: transform 0.2s ease;
  }

  .bottom-nav-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  /* Active state */
  .bottom-nav-item.active {
    color: #29b6f6;
  }

  .bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.15);
  }



  .bottom-nav-center {
  color: rgba(255,255,255,0.5);
}

.bottom-nav-center .bottom-nav-label {
  display: block;
}
}
