:root {
    --primary-color: #00eeff; /* A slightly brighter */
    --secondary-color: #0d0d0d; /* Off-black for a softer feel */
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --card-bg: #1a1a1a;
    --border-color: #333;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* -- FIX: Added for smooth scrolling when clicking nav links -- */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Navigation bar --- */

nav.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    padding: 0.9rem 7%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.5);
    /* -- FIX: Added -webkit- prefix for better browser compatibility -- */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--primary-color); }



/* --- Buttons --- */

.auth-buttons {
    display: flex;
    gap: 1px;
    align-items: center;
}

.btn {
    height: 30px;              /* Button height */
    min-width: 10px;          /* Minimum button width */
    font-size: 12px;           /* Font size */
    padding: 0.1rem 0.7rem;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-login {
    border: 1px solid var(--border-color);
    color: var(--text-color);
}
.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-signup {
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--secondary-color);
    margin-left: 1rem;
}
.btn-signup:hover {
    background: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 10px #00eeff;
}

/* --- Home Img --- */

.Himg {
    width: 100%;
    height: 610.4px;
    object-fit: cover;
    padding-top: 5px;
    opacity: 50%;
    
}

/* --- Home Content --- */

.home-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
}



/* --- Welcome Note --- */

.welcome-note {
    font-family: var(--font-heading);
    font-size: 50px;
    margin-bottom: 1rem;
}

.welcome-note span {
    color: var(--primary-color);
}

/* --- Home Paragraph --- */

.Home-para {
    font-size: 20px;
    margin-top: -20px;
    color: rgba(245, 245, 245, 0.637);
}

/* --- Search Bar --- */

form{
  position: relative;
  top: 50px;
  left: 50%;
  transform: translate(-50%,-50%);
  transition: all 1s;
  width: 50px;
  height: 50px;
  background: glssy(rgba(255,255,255,0.1));
  box-sizing: border-box;
  border-radius: 25px;
  border: 4px solid glassy(rgba(255,255,255,0.2));
  padding: 5px;
  
}

input{
    
    top: 0;
    left: 0;
    width: 100%;
    height: 42.5px;
    line-height: 30px;
    border: 0;
    outline: 0;
    display: none;
    padding: 0 20px;
    font-size: 16px;
    border-radius: 25px;
    transition: all 0.5s;
}

.fa{
    box-sizing: border-box;
    padding: 10px;
    width: 42.5px;
    height: 42.5px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 50%;
    color: #00eeff;
    text-align: center;
    font-size: 1.2em;
    transition: all 1s;
}

form:hover{
    width: 300px;
    cursor: pointer;
}

form:hover input{
    display: block;
}

form:hover .fa{
    background: #00eeff;
    color: #ffffff;
}

/* --- Game Section Links --- */

.GameSection-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    justify-content: center;
}

.GameSection-links a {
    width: 100%;
    height: auto;
    padding: 10px 15px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 15px; 
    font-weight: bold; 
}

.GameSection-links a:hover {
    color: #00eeff;
}



/* --- Game Card Section --- */

.game-card {
   
    border: 1px solid var(--border-color);
    border-radius: 10px;
    border-top-left-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    height: 250px;
    padding-left: 20px;
}
.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    padding-left: 20px;
}
.game-card img {
    width: 100%;
    height: auto;
    padding-left: 20px;
}





/*--- Flooter ---*/

.flooter {
    text-align: center;
    padding: 20px 0;
    background-color: var(--secondary-color);
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
}

/*media queries for responsiveness*/

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links on smaller screens */
    }
    .home-content {
        padding: 0 20px; /* Add padding for smaller screens */
    }
    .welcome-note {
        font-size: 30px; /* Adjust font size for smaller screens */
    }
    .Home-para {
        font-size: 16px; /* Adjust paragraph size for smaller screens */
    }
}





