:root {
    --primary: #4ade80;
    /* Neon Green */
    --primary-dark: #22c55e;
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: #1e293b;
    /* Slate 800 */
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --accent: #22d3ee;
    /* Cyan */
    --font-mono: 'Fira Code', 'Courier New', monospace;
    --container: 1200px;
}

body {
    font-family: var(--font-mono);
    margin: 0;
    padding: 0;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 2px solid var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

header .inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
    font-family: var(--font-mono);
}

header .logo img {
    height: 50px;
    width: auto;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    /* Increased size */
    transition: all 0.2s;
    font-family: var(--font-mono);
}

nav a:hover,
nav a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

/* Hero */
.hero {
    background: black;
    color: var(--primary);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-image: url('/images/hero-bg.png');
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    /* Heavy overlay */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    border: 1px solid var(--primary);
    background: rgba(15, 23, 42, 0.8);
    padding: 3rem;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
    font-family: var(--font-mono);
}

.hero p {
    color: var(--text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-family: sans-serif;
    /* Readable body text */
}

.btn {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s;
    font-family: var(--font-mono);
}

.btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

/* Layout */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: white;
    font-family: var(--font-mono);
}

.section-header h2::before {
    content: '> ';
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-family: sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid #334155;
    padding: 2rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-family: sans-serif;
    flex-grow: 1;
}

.project-card .btn-small {
    margin-top: 1rem;
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

.project-card .btn-small:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    border-top: 1px solid #334155;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
    font-family: var(--font-mono);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: 1px solid var(--primary);
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 0;
    transition: all 0.3s;
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header .inner {
        position: relative;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-top: 2px solid var(--primary);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        padding: 1rem 0;
        z-index: 200;
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin-left: 0;
        padding: 0.75rem 2rem;
    }

    .hero {
        padding: 4rem 1.25rem;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        overflow-wrap: break-word;
    }

    .hero-content {
        padding: 1.75rem 1.25rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .container {
        padding: 2.5rem 1.25rem;
    }

    footer {
        padding: 2rem 1.25rem;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(1.4rem, 12vw, 1.8rem);
    }

    header .logo img {
        height: 36px;
    }
}