/* --- General Styling & Resets --- */
:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --text-light: #f5f5f5;
    --text-dark: #a0a0a0;
    --accent-color: #ffffff;
    --border-color: #333333;
    --font-family: 'Roboto', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    font-weight: 300;
    color: var(--text-dark);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: top 0.3s;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.nav-logo-img {
    height: 40px; /* Adjust height for the navbar logo */
    width: auto;
    transition: filter 0.3s ease;
}

.nav-logo-img:hover {
    filter: brightness(1.2);
}

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

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Header Section --- */
.header {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden; /* Ensures the video doesn't overflow */
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.1; /* Low opacity to fit the background */
    pointer-events: none; /* Prevents user interaction with the video */
}

.video-background iframe {
    width: 100vw; /* Viewport Width */
    height: 56.25vw; /* 16:9 Aspect Ratio for landscape */
    min-width: 177.77vh; /* 16:9 Aspect Ratio for portrait */
    min-height: 100vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.header-content {
    animation: fadeIn 1.5s ease-out;
    position: relative; /* Required to sit on top of the video background */
    z-index: 2;
}

.header-logo {
    max-width: 600px; /* Adjust this value to make the logo bigger or smaller */
    width: 90%; /* This makes sure the logo shrinks on smaller mobile screens */
    height: auto; /* This maintains the aspect ratio so it doesn't get stretched */
    margin-bottom: 20px;
    transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0)); /* Start with no shadow */
}

.header-logo:hover {
    transform: scale(1.02); /* Slightly enlarges the logo */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)); /* Adds a subtle white glow */
}


.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
}

/* --- General Section Styling --- */
section {
    padding: 100px 0;
    animation: slideInUp 1s ease-out forwards;
    opacity: 0;
}

.projects-section, .contact-section {
    background-color: var(--primary-bg);
}

.bio-section {
    background-color: var(--secondary-bg);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: grayscale(90%);
    transition: filter 0.3s ease;
}

.project-card:hover .video-wrapper iframe {
    filter: grayscale(0%);
}

.project-info {
    padding: 25px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.project-genre {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.project-description {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.steam-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-bg);
    color: var(--text-light);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.steam-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border-color: var(--accent-color);
}

.steam-link.unreleased {
    background-color: transparent;
    color: var(--text-dark);
    cursor: default;
    border-color: #444;
}
.steam-link.unreleased:hover {
    background-color: transparent;
    color: var(--text-dark);
}


/* --- Bio Section --- */
.bio-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.bio-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.bio-content strong {
    color: var(--text-light);
    font-weight: 400;
}

/* --- Contact Section --- */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: var(--primary-bg);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #cccccc;
}

#form-status {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 30px;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Simple solution for now, could be replaced with a hamburger menu */
    }

    .header-logo {
        max-width: 90%;
    }

    .tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
