:root {
    --bg-color: #080808;
    --grid-color: #1a1a1a;
    --text-primary: #ededed;
    --text-dim: #666666;
    --accent-main: #ffffff;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timer-display {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-family: 'Space Mono', monospace;
    color: var(--text-dim);
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 100;
}

/* --- Visual Effects --- */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.5;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
}

/* --- Layout --- */
.main-interface {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* --- Hero --- */
.hero-section {
    margin-bottom: 4rem;
    text-align: center;
    /* Center the title specifically */
    display: flex;
    justify-content: center;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px;
    border-left: 5px solid var(--accent-main);
    padding-left: 2rem;
    display: inline-block;
    /* Allow it to be centered */
}

/* --- Projects Grid --- */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    /* Increased gap for cleaner look */
    padding: 0 2rem;
}

.project-card {
    border: 1px solid var(--text-dim);
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(10, 10, 10, 0.8);
    transition: all 0.2s cubic-bezier(0.215, 0.610, 0.355, 1);
    display: flex;
    flex-direction: column;
    height: 280px;
    /* Slightly shorter since less content */
    position: relative;
}

.project-card:hover {
    border-color: var(--accent-main);
    background: #111;
    transform: translateY(-5px);
    box-shadow: 5px 5px 0px rgba(255, 255, 255, 0.1);
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center text in card */
    text-align: center;
}

.card-body h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
}

.card-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--text-dim);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-card:hover .card-footer {
    background: var(--accent-main);
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .main-interface {
        padding: 1rem;
        height: auto;
        overflow-y: auto;
    }

    body {
        height: auto;
        overflow-y: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    h1 {
        font-size: 3rem;
        border-left-width: 3px;
    }

    .projects-container {
        gap: 1.5rem;
        padding: 0;
    }

    .project-card {
        height: 200px;
    }
}