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

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

h1, h2, h3 {
    font-family: 'Russo One', sans-serif;
    color: #f88812;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 75%;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Styles */
header {
    background: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

/* Logo Container */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Image */
.logo img {
    min-width: 20%;
    max-width: 20%;
    height: auto;
    margin-right: 20px; /* Add space between the logo and the text */
}

/* Logo Text */
.logo h1 {
    font-size: 28px; /* Adjust font size to match the logo height */
    margin: 10;
    line-height: 1; /* Ensures the text is vertically aligned */
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links li a {
    color: #f88812;
    font-weight: bold;
    font-size: 28px;  /* Increased from 28px for better scaling */
    padding: 20px 20px;  /* Added padding for better clickability */
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #F1C40F;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;  /* Ensure it's above the menu */
}

.menu-toggle .hamburger,
.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    width: 25px;
    height: 3px;
    background-color: #f88812;
    display: block;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.menu-toggle .hamburger::before {
    top: -8px;
}

.menu-toggle .hamburger::after {
    top: 8px;
}

/* Burger animation for active state */
.menu-toggle .hamburger.active {
    background: transparent;
}

.menu-toggle .hamburger.active::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle .hamburger.active::after {
    transform: rotate(-45deg);
    top: 0;
}

@media screen and (max-width: 768px) {
    nav {
        position: relative;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px; /* Adjust to be below the header */
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 1000;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
        padding: 10px 20px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        color: #f88812;
        font-size: 18px;
        text-decoration: none;
        display: block;
        width: 100%;
    }

    .nav-links li a:hover {
        background-color: #f8f8f8;
    }
}

/* Hero Section Styles */
.hero {
    background-image: url('images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    width: 100%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 0;
    padding-top: 150px;
    padding-bottom: 150px;
}

.hero::before {
    content: '';
    background: rgba(13, 13, 13, 0.7);
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 56px;
    margin-bottom: 60px;
    font-weight: 700;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 100px;
    line-height: 1.6;
}

.btn {
    background-color: #f88812;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ffcd44;
}

.secondary-btn {
    background-color: transparent;
    color: #0D0D0D;
    border: 2px solid #0D0D0D;
}

.secondary-btn:hover {
    background-color: #0D0D0D;
    color: #FFFFFF;
}

/* Games Section Styles */
.games-section {
    padding: 80px 0;
    text-align: center;
}

.games-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;  /* Match studio section h2 size */
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.game-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px;  /* Added minimum width */
}

.game-card-image {
    width: 100%;
    height: 300px;  /* Increased from 200px */
    overflow: hidden;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-card-content {
    padding: 30px;  /* Increased padding */
}

.game-card-content h3 {
    font-size: 2em;  /* Increased from 1.5em */
    margin-bottom: 15px;  /* Added margin */
}

.game-card-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.2em;  /* Increased font size */
}

.game-card .btn {
    display: inline-block;
    padding: 12px 25px;  /* Increased padding */
    background: #f88812;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-size: 1.1em;  /* Increased font size */
}

.game-card .btn:hover {
    background: #ff9c3f;
}

@media screen and (max-width: 768px) {
    .games-section {
        padding: 40px 0;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-card-image {
        height: 180px;
    }
}

/* Studio Section Styles */
.studio-section {
    padding: 80px 0;
    background-color: #F1F1F1;
}

.studio-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

.studio-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.studio-section p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.studio-section ul {
    list-style-type: disc;
    margin-left: 40px;
    margin-bottom: 20px;
}

.studio-section ul li {
    font-size: 18px;
    color: #555;
    margin-bottom: 10px;
}

.studio-section .cta {
    text-align: center;
    margin-top: 40px;
}

.studio-section .cta p {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 100px;
}

.studio-section .btn {
    background-color: #f88812;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.studio-section .btn:hover {
    background-color: #ffcd44;
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 30px;
    font-size: 36px;
}

.contact-section p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #555;
}

.contact-section a {
    color: #f88812;
    font-weight: bold;
}

.contact-section a:hover {
    color: #D4AC0D;
}

/* Home Section Styles */
#home {
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
}

/* Footer Styles */
footer {
    background-color: #0D0D0D;
    color: #FFFFFF;
    padding: 20px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

footer p {
    margin: 10px 0;
    flex: 1;
}

.social-media {
    display: flex;
    margin: 10px 0;
}

.social-media a {
    margin-left: 15px;
}

.social-media img {
    width: 24px;
    height: 24px;
}

/* Adjust margin for single social icon */
.social-media a:first-child {
    margin-left: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        padding: 0 20px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .logo img {
        min-width: 15%;
        max-width: 15%;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .hero-content p {
        font-size: 18px;
        margin-bottom: 50px;
    }

    .games-section h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .game-card {
        width: 100%;
        margin-bottom: 30px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    .logo h1 {
        font-size: 16px;
    }

    .hero-content h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .games-section h2,
    .studio-section h2,
    .contact-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .game-info h2 {
        font-size: 20px;
    }

    .game-info p {
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

@media screen and (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #FFFFFF;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .nav-links.active li {
        margin: 20px 0;
    }

    .nav-links.active li a {
        font-size: 18px;
        color: #f88812;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    /* Show Mobile Menu Toggle */
    .menu-toggle {
        display: block;
    }

    /* Hide Navigation Links on Mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #ffffff;
        position: center;
        top: 100px;
        right: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links.mobile-menu {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Adjust Header Container */
    header .container {
        align-items: center;
    }

    .game-card {
        width: 100%;
    }

    .screenshots img {
        width: 100%;
    }

    .team-member {
        width: 80%;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    footer .container {
        flex-direction: column;
        align-items: center;
    }

    footer p {
        text-align: center;
    }

    .social-media {
        justify-content: center;
    }

    .logo h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    .nav {
        margin-top: 10px;
    }
}

/* Added CSS to ensure footer is always at the bottom of the page using flexbox */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body > *:not(footer) {
    flex: 1;
}

/* Game Page Styles */
.game-page {
    padding-top: 80px;
}

.game-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    padding: 60px 0;
    color: #ffffff;
}

.game-hero h1 {
    font-size: 3em;
    margin-bottom: 40px;
}

.game-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.game-hero-image {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-details {
    padding: 60px 0;
    background: #ffffff;
}

.game-details h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.game-description, .game-features, .game-specs {
    margin-bottom: 40px;
}

.game-description p {
    font-size: 1.1em;
    line-height: 1.6;
}

.game-features ul, .game-specs ul {
    list-style: none;
    padding: 0;
}

.game-features li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.game-features li:before {
    content: "•";
    color: #f88812;
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.game-specs li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.game-specs strong {
    color: #f88812;
    margin-right: 10px;
}

@media screen and (max-width: 768px) {
    .game-hero h1 {
        font-size: 2.5em;
    }

    .game-hero-image {
        max-width: 95%;
    }

    .game-details {
        padding: 40px 0;
    }

    .game-details h2 {
        font-size: 1.8em;
    }
}