/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=VT323&display=swap');

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

/* --- Base Body Styles (Primarily for Homepage) --- */
body {
    background-color: #000;
    /* Added a dark overlay to the background image for better text contrast */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('forest_background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #fff;
    /* Changed to Arial, with fallbacks */
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-y: auto; /* Allow scrolling */
    overflow-x: hidden;

    /* --- Anti-Aliasing Removal --- */
    font-smooth: never;
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Remove Anti-Aliasing from Images/SVG --- */
img, svg {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}


/* --- About Page Wrapper --- */
.full-page-wrapper {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Align content to the top */
    padding-top: 2rem; /* Add some space at the top */
}


/* --- Homepage Specific Styles --- */
.top-nav-container {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
}

.main-nav a {
    color: #fff;
    text-decoration: underline;
    margin-right: 2rem;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    text-shadow: 0 0 5px #000;
}

.main-nav a:last-child {
    margin-right: 0;
}

.main-nav a:hover {
    color: #aaa;
    text-decoration: none;
}

.top-braille {
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    opacity: 0.5;
}

.center-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
}

.main-title {
    margin-bottom: 2rem;
}

.project-logo-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px #000);
}

.welcome-message {
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 8px #000, 0 0 8px #000;
}

/* --- TV Styles --- */
.tv-container {
    position: relative;
    margin: 0 auto;
    filter: drop-shadow(0 0 10px #000);
    line-height: 0; /* Prevents extra space below the image */
}

.tv-screen {
    position: absolute;
    top: 14.5%;
    left: 12%;
    width: 76%;
    height: 62%;
    background-color: #000;
    background-size: auto; /* Use native image size */
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    z-index: 1;
    /* Prevents blurring on pixel art */
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.tv-static-overlay {
    position: absolute;
    top: 14.5%;
    left: 12%;
    width: 76%;
    height: 62%;
    display: none;
    overflow: hidden;
    border-radius: 12px;
    z-index: 2;
    background-image: url('static.gif');
    background-size: cover;
}

.tv-frame-overlay {
    position: relative; /* Puts the image back in the document flow */
    z-index: 3;
    pointer-events: none;
    display: block;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.socials a svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
    transition: stroke 0.2s ease;
    filter: drop-shadow(0 0 5px #000);
}

.socials a:hover svg {
    stroke: #aaa;
}

footer {
    width: 100%;
    padding: 1.5rem;
    opacity: 0.8;
    margin-top: auto;
    text-shadow: 0 0 5px #000;
    text-align: right;
    font-size: 0.9rem;
}

footer span {
    display: inline-block;
    position: relative;
}

/* --- About & Shared Styles --- */
.page-container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
}

h1 {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #000, 0 0 10px #000;
}

.content-box {
    border: 2px solid #fff;
    padding: 2rem 2.5rem;
    background-color: rgba(0, 0, 0, 0.65);
    text-align: left;
    margin-bottom: 2rem;
}

.content-box p {
    margin-bottom: 1.5rem;
}

.content-box p:last-of-type {
    margin-bottom: 0;
}

.back-link {
    display: block;
    margin-top: 2rem;
    text-decoration: none;
    font-size: 1.5rem;
    color: #fff;
    text-align: center;
}

.back-link:hover {
    color: #aaa;
}

.character-title {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 2rem;
    text-shadow: 0 0 10px #000, 0 0 10px #000;
}

.character-image {
    display: block;
    margin: 0 auto 2rem auto;
    max-width: 50%; /* Reduced max-width to make images smaller */
    height: auto;
}

/* --- Projects Page --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.project-card {
    position: relative;
    border: 2px solid #fff;
    background-color: #000;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from contain to fit image properly */
    transition: transform 0.3s ease;
}

.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: left;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info h3 {
    margin-top: 0;
    font-size: 1.5rem;
    font-family: Arial, sans-serif;
}

.project-info p {
    margin: 0.5rem 0;
}

.project-info a {
    color: #fff;
    text-decoration: underline;
}

/* --- Credits Page --- */
.credits-grid {
    display: grid;
    grid-template-columns: 1fr; /* Each card takes full width */
    gap: 2rem;
    width: 100%;
}

.credit-card {
    border: 2px solid #fff;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.65);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.credit-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover;
    flex-shrink: 0;
}

.credit-info h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    font-size: 1.75rem;
}

.credit-info h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #ccc;
    font-style: italic;
}

.credit-info p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}


/* --- Under Construction --- */
.construction-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.construction-container p {
    margin-bottom: 2rem;
}

/* --- Keyframe Animations --- */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

