/* --- General Setup & Variables --- */
:root {
    --primary-color: #F0ECE0; /* Very dark grey, almost black */
    --secondary-color: #001E34; /* Dark grey for cards */
    --accent-color: #AD860C; /* Bright blue for highlights */
    --text-color: #F5F5F5; /* Light grey for text */
    --text-muted: #888;
    --font-family: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
   
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; color: var(--accent-color); }
h3 { font-size: 1.5rem; }

a {
    color: var(--accent-color);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Navigation Bar --- */
.navbar {
     
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background-color:#001E34;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #222;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-header{
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
   margin-bottom: 2rem;;
}

/* Position the logo absolutely on the left for desktop */
.nav-header > a {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
}

.nav-header h1 {
    font-size: clamp(1rem, 3vw, 3rem);
    margin-bottom: 0.5rem;
    text-align: center;
}

.nav-logo {
  /* Use clamp() for a fluid size that adapts to the viewport */
    /* clamp(MINIMUM_SIZE, PREFERRED_SIZE, MAXIMUM_SIZE) */
    width: clamp(4rem, 8vw, 10rem);
    height: clamp(4rem, 8vw, 10rem);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    vertical-align: middle;
    border-radius: 50% ;
   
}



.nav-menu {
   
    display: flex;
    list-style: none;
    margin-right: 0;
}

.nav-item {
    
    margin-left: 2rem;
    font-size:medium;
   
   
}

.nav-link {
      
    color: var(--text-color);
    font-weight: 600;
    font-size:medium;
    transition: color 0.3s ease;
    background-color: #AD860C;
   /* padding-top: 1rem;
    padding-bottom: 1rem;*/
    padding: 1rem;
}

.nav-link:hover {
    color: var( --secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section (Landing Page) --- */
.hero {
    
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 35vh;
    text-align: center;
   /* padding: 0 2rem;*/
    margin-top: 10px;
    margin-bottom: 0%;
    background: linear-gradient(rgba(0, 30, 52, 0.7), rgba(0, 30, 52, 0.9)), url('https://via.placeholder.com/1920x1080/111/FFF?text=Cool+Background+Image') no-repeat center center/cover;
    /* Replace the placeholder URL above with your own background image */
}

.gold_text{
    color: #AD860C;
}
.hero-text {
    
   
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* Style for dropdown button */
.dropbtn {
      
  background-color: #001E34;
   font-weight: 600;
  color: white;
  padding: 1rem;
  font-size: 15px;
  border: none;
  cursor: pointer;
  background-color: #AD860C;
  border-radius: 10%;
  font-size: medium;
}

/* Style for dropdown content */
.dropdown-content {
   
  display: none; /* Hidden by default */
  position: absolute;
  background-color: #001E34;
  padding-top: 1rem; /* Use padding to create space from the button */
  margin-top: 0; /* Remove the margin that causes the gap */
  /*min-width: 100px;*/
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
   border-radius: 10%;
 
}

/* Style for dropdown links */
.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block; /* This is the key to making them stack vertically */
  text-align: left;
  transition: background-color 0.3s ease;
}

/* Highlight dropdown options on hover */
.dropdown-content a:hover {
  background-color: #474885;
  color: var( --primary-color);
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Highlight dropdown button when dropdown menu is open */
.dropdown:hover .dropbtn {
  background-color: #474885;
   color: var( --primary-color);
}


/* --- Page Header (for subpages) --- */
.page-header {
    margin-top: 20vh;;
     height: 50vh;
    padding: 120px 2rem 40px;
    text-align: center;
    border-bottom: 1px solid #222;
}

.page-header h1 {
    font-size: 3.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Content & Game Grid --- */
.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
   /* padding-top: 200px;*/
}

#featured{
     scroll-margin-top: 200px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.game-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.game-tag {
    display: inline-block;
    background-color: rgba(0, 123, 255, 0.1);
    color: var(--accent-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: var(--secondary-color);
    color: #AD860C;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    margin: 10px;
}

.social-icons {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    color: #ddd;
}

.social-icons li {
    margin: 0 10px;
}

.social-icons a {
    color: #fff;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #ddd;
}

/* Responsive Design */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
   
    .navbar {
        flex-direction: column;
        justify-content:center;
        gap: 1rem;
        height: auto;
    }

    .nav-header > a:first-child {
        position: static;
        transform: none;
        margin-bottom: 2rem;
    }

    .nav-header h1 {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin-bottom: 10;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Height of navbar */
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}
