/* --- General Styles & Dark Mode Theme --- */
:root {
    --background-color: #1a1a1a; /* Dark charcoal */
    --text-color: #e0e0e0;       /* Light gray */
    --primary-accent: #00ffff;   /* Cyan */
    --secondary-accent: #ff00ff; /* Magenta */
    --link-color: var(--primary-accent);
    --link-hover-color: #ffffff;
    --header-font: 'Orbitron', sans-serif;
    --body-font: 'Inter', sans-serif;
    --border-color: #444;
    --card-bg: #2a2a2a;
}

body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--background-color);
    background-image: url('/images/background.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px; /* Base font size */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    color: var(--primary-accent);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem; /* Larger H1 */
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-accent); /* Different accent for H3 */
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-content {
    padding-top: 80px; /* Adjust based on navbar height */
    padding-bottom: 40px;
    padding: 25px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-accent);
    color: var(--background-color);
    border: none;
    border-radius: 5px;
    font-family: var(--header-font);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--secondary-accent);
    color: var(--background-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* btn-primary inherits from .btn */

.btn-secondary {
    background-color: transparent;
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
}

.btn-secondary:hover {
    background-color: var(--primary-accent);
    color: var(--background-color);
    border-color: var(--primary-accent);
}

/* --- Navigation --- */
.navbar {
    background-color: rgba(26, 26, 26, 0.9); /* Semi-transparent dark */
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: top 0.3s;
    width: 100%;
    z-index: 1000;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

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

.logo {
    font-family: var(--header-font);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-accent);
    text-decoration: none;
    margin-left: 30px; /* Increased from 15px to 30px to move the text further right */
}

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

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

.nav-links a {
    color: var(--text-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active { /* Add active class styling if needed */
    color: var(--primary-accent);
    text-decoration: none;
}

.nav-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-accent);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-accent);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

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

.hamburger::after {
    top: 8px;
}

/* Active state for hamburger toggle */
.nav-toggle.active .hamburger {
    background-color: transparent; /* Middle bar disappears */
}

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

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

/* --- Hero Section (Homepage) --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Full viewport height */
    /* Remove the background images and use only the site background */
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: overlay;
    text-align: center;
    color: #fff; /* White text on hero */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-logo {
    max-width: 200px; /* Adjust size as needed */
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-cta .btn {
    margin: 10px;
}

/* --- Intro Text (Homepage) --- */
.intro-text {
    padding: 40px 0;
    text-align: center;
}

/* --- Game Library (games.html) --- */
.filter-search {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.filter-search input[type="text"] {
    padding: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 5px;
    flex-grow: 1;
    font-size: 1rem;
}

.game-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
    flex: 1 1 300px;
}

.game-card:hover {
    transform: translateY(-5px); /* Optional hover effect */
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2); /* Neon glow effect */
}

.game-card img {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

.game-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.game-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.platform-icons {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-accent);
}

.platform-icons i {
    margin: 0 5px;
}

.game-card .btn {
    width: 100%;
}

/* --- Projects Page (projects.html) --- */
.project-highlight {
    margin-bottom: 40px;
    padding: 30px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.project-highlight h2 {
    margin-top: 0;
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.project-media img {
    border-radius: 5px;
    margin-bottom: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 15px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.project-info ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.project-info .btn {
    margin-top: 15px;
}

/* --- About Page (about.html) --- */
.about-section {
    margin-bottom: 30px;
}

.team-section .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid var(--primary-accent);
}

.studio-values ul,
.studio-milestones ul {
    list-style: none;
    padding-left: 0;
}

.studio-values li,
.studio-milestones li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.studio-values li::before {
    content: '✨'; /* Sparkle emoji or icon */
    position: absolute;
    left: 0;
    color: var(--primary-accent);
}

.studio-milestones li::before {
    content: '➤'; /* Arrow or icon */
    position: absolute;
    left: 0;
    color: var(--secondary-accent);
}

/* --- Contact Page (contact.html) --- */
.contact-info {
    margin-bottom: 30px;
}

.contact-info p {
    margin-bottom: 10px;
}

.social-links a {
    font-size: 1.8rem;
    margin-right: 15px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.contact-form h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    background-color: var(--background-color); /* Slightly darker than card */
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
}

.contact-form small {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #aaa;
}

.map-placeholder {
    margin-top: 30px;
}

.map-placeholder h2 {
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background-color: #111; /* Even darker for footer */
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }

    /* Mobile Navigation */
    .nav-links {
        display: none; /* Hide links by default on small screens */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Position below navbar */
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.97); /* More opaque for better readability */
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
        margin-left: 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    .nav-toggle {
        display: block; /* Show hamburger */
        z-index: 1001;
    }
    
    /* Project details in mobile view */
    .project-details {
        grid-template-columns: 1fr; /* Stack media and info on mobile */
    }

    .project-media {
        grid-row: 1; /* Ensure media appears first */
    }

    .page-content {
        padding-top: 70px; /* Adjust for nav toggle */
    }
    
    /* Game cards for mobile */
    .game-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    /* Game page layout for mobile */
    .game-details {
        grid-template-columns: 1fr !important;
    }
    
    /* Adjust logo placement on mobile */
    .logo {
        margin-left: 15px;
        font-size: 1.5rem;
    }
    
    /* Adjust site logo size on mobile */
    .site-logo {
        max-width: 45px;
    }
}

@media (min-width: 769px) {
    /* Styles for Project Page grid layout on larger screens */
    .project-details {
         grid-template-columns: repeat(2, 1fr); /* Side-by-side layout */
        align-items: start;
    }
}

/* Top left corner site logo */
.site-logo {
    position: fixed;
    top: 10px;
    left: 20px;
    z-index: 2000;
    max-width: 60px;
    height: auto;
} 