/* General Page Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body Styling */
body {
    background-color: #0b0b0b;
    color: white;
}

/* Navbar Container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #1a1a1a;
    border-bottom: 2px solid #003791;
}

/* Logo Styling */
.logo h1 {
    font-size: 24px;
    letter-spacing: 2px;
}

.logo span {
    color: #003791;
    text-shadow: 0 0 10px #003791;
}

/* Navigation Links Styling */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

/* Hover and Active States */
.nav-links a:hover, 
.nav-links a.active {
    color: #003791;
}

/* User Actions and Search Box */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box input {
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
}

/* Login Button Styling */
.login-btn {
    background-color: #003791;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}
/* Hero Section Styling */
.ps4-hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://image.api.playstation.com/vulcan/ap/rnd/202206/0720/6mY63mI0u3V2Gv2bTzI6I7fM.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ccc;
}

/* Games Grid Section */
.games-container {
    padding: 60px 5%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    border-left: 5px solid #003791;
    padding-left: 15px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Individual Game Card */
.game-card {
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s ease;
    border: 1px solid #333;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: #003791;
    box-shadow: 0 10px 20px rgba(0, 55, 145, 0.3);
}

/* Image Handling (Crucial) */
.game-img img {
    width: 100%;
    height: 380px; 
    object-fit: cover;
}

/* Card Text Content */
.game-info {
    padding: 20px;
    text-align: center;
}

.game-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.game-info p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Download Button */
.download-btn {
    display: inline-block;
    background-color: #003791;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.download-btn:hover {
    background-color: #004ecc;
    box-shadow: 0 0 15px #003791;
}
/* Footer Styling */
footer {
    background-color: #111;
    color: white;
    padding: 50px 5% 20px;
    margin-top: 50px;
    border-top: 2px solid #003791;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 span {
    color: #003791;
}

.footer-links ul {
    list-style: none;
    margin-top: 15px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #003791;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #777;
    font-size: 0.9rem;
}
.light-theme {
    background-color: #f0f2f5 !important;
    color: #1a1b1e !important;
}

.light-theme nav {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.light-theme nav .logo,
.light-theme nav ul li a {
    color: #0f172a !important;
}

.light-theme nav ul li a:hover,
.light-theme nav ul li a.active {
    color: #003791 !important;
    border-bottom: 2px solid #003791;
}

.light-theme .hero,
.light-theme .main-header,
.light-theme section:first-of-type {
    background: #003791 !important;
    color: #ffffff !important;
    padding: 80px 20px;
}

.light-theme .hero h1,
.light-theme .hero p {
    color: #ffffff !important;
}
.mode-toggle {
    background-color: #003791; 
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
    margin: 0 10px;
    font-family: inherit;
}

.mode-toggle:hover {
    background-color: #004ecc;
    transform: scale(1.05);
}