/* Mobile First Base Styles */
body {
    font-family: monospace;
    background-color: #f0f0f0;
    color: #000;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    max-width: 100vw;
    overflow-x: hidden;
}

header, main, footer, nav {
    padding: 20px 5%;
    border-bottom: 2px solid #000;
}

h1, h2, h3 {
    margin: 0 0 10px 0;
    text-transform: uppercase;
    color: #000;
}

h1 {
    font-size: 2em;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid #000;
    max-width: 0;
}

/* Keyframe animation for the blinking cursor *after* the text is typed */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #000; }
}

p {
    margin: 0 0 15px 0;
}

a {
    color: inherit; /* Inherit color from parent (button/body) */
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Center the buttons */
    flex-wrap: wrap; /* Allows buttons to wrap on mobile */
    gap: 10px; /* Space between buttons */
}

nav ul li {
    /* The <li> itself becomes the button container */
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: 3px 3px 0px #888; /* Gives a 3D button press look */
    transition: all 0.1s ease;
    cursor: pointer;
    text-transform: uppercase;
}

nav ul li:hover {
    box-shadow: 1px 1px 0px #888; /* Simulates button being pressed down */
    transform: translate(2px, 2px); /* Shift the button to match the shadow change */
}

nav ul li a {
    display: block;
    padding: 10px 20px; /* Generous padding for easy tapping on mobile */
    color: #000; /* Ensure text inside is black */
}


/* Project Specific Styles (These remain the same as the previous Brutalist CSS) */
.project-item {
    border: 2px solid #000;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
}

.project-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
