/* Typography */
body {
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    background: #fafafa;
    color: #1a1a1a;
}

.container {
    width: 90%;
    max-width: 1080px;
    margin: 3rem auto;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
    font-family: "Press Start 2P", monospace;
    font-size: 1.55rem;
    letter-spacing: 0.5px;
}

.nav-left {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: #555;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav a:hover {
    color: #111;
    opacity: 0.8;
}

.social {
    margin-left: auto;
    display: flex;
    gap: 1rem;
}

.social a {
    text-decoration: none;
    color: #999;
    font-size: 1rem;
}

.social a:hover {
    color: #111;
}

/* Headings */
h1, h2 {
    font-family: "Press Start 2P", monospace;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

h1.project-title {
    font-family: "Press Start 2P", monospace;
    font-size: 3rem;
    color: #49c9e7;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* Images */
img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd;
    object-fit: cover;
    image-rendering: pixelated; /* subtle 8-bit */
    transition: transform 0.25s ease;
}

img:hover {
    transform: scale(1.015);
}

/* Grid for work page */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.card h2 {
    font-size: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.card p {
    font-size: 0.9rem;
    color: #555;
}

/* Contact form */
.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
}

input,
textarea {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

button {
    padding: 0.9rem;
    border: none;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-family: "Press Start 2P", monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    margin-bottom: 5rem;
}

.hero-text h1 {
    font-size: 1.2rem;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 1.5rem;
    color: #444;
}

.cta {
    display: inline-block;
    background: #111;
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-family: "Press Start 2P", monospace;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cta:hover {
    opacity: 0.85;
}

.hero-img img {
    border-radius: 14px;
}

/* Featured Project */
.featured {
    margin-bottom: 4rem;
}

.featured h2 {
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

.featured-info h3 {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.featured-info p {
    color: #555;
    margin-bottom: 1.5rem;
}

.more {
    font-family: "Press Start 2P", monospace;
    text-decoration: none;
    font-size: 0.7rem;
    color: #111;
    border-bottom: 1px solid #111;
    padding-bottom: 3px;
}

.more:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 800px) {
    .hero,
    .featured-card {
        grid-template-columns: 1fr;
    }
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
}

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

.card-link {
    text-decoration: none;
    color: inherit;
}

.project {
    display: grid;
    gap: 2.5rem;
    margin-top: 0.5rem;
}

.project-header {
    display: grid;
    gap: 1rem;
}

.project-tagline {
    font-size: 1rem;
    color: #444;
    max-width: 640px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.project-hero img {
    border-radius: 14px;
}

.project-section {
    max-width: 720px;
}

.project-section h2 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 800px) {
    .project-meta {
        flex-direction: column;
    }
}

.not-found {
    text-align: center;
    margin-top: 6rem;
}

.not-found h1 {
    font-family: "Press Start 2P", monospace;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.not-found p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}

.back-home {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-family: "Press Start 2P", monospace;
    font-size: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.back-home:hover {
    opacity: 0.85;
}

.project-content h1 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.project-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}
