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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    background-color: #f4f1ee;
    color: #3e3e3e;
    padding-bottom: 60px;
}

header {
    background-color: #6b4f3b;
    color: #f4f1ee;
    /*background-color: #1e1e1e;*/
    padding: 20px;
    text-align: center;
}

header h1 {
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #f4f1ee;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #d9a066;
}

#hero {
    color: #3e3e3e;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to right, #e9e4d4, #dcd6c8);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {   
    border: 2px solid #a3b18a;
    color: #3e3e3e;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 10px rgba(107, 79, 59, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 20px 5px rgba(99, 112, 75, 0.4);
}

.project-card img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.project-card a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%;
}

.project-card a.card-link:hover {
    color: inherit; /* optional, reinforces no style shift */
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: auto;
}

form input,
form textarea {
    min-height: 40px;
    resize: vertical;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #e6e1d3;
    color: #63704b;
}

form button {
    padding: 10px;
    background-color: #a3b18a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #8a9f78;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #6b4f3b;
    color: #eee;
    text-align: center;
    padding: 10px;
}


/* -----Type Writer functionality----- */
#typewriter {
    display: inline-block;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    /*border-right: 3px solid #ff6f61;*/ /* Cursor effect */
    width: 0;
    animation: typewriter 3s steps(20) 1s forwards, blink-caret 0.75s step-end infinite;
}

/* Typewriter animation */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}
/* Blinking cursor */
/*
@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}
*/
/*---------------------------------------*/

form input:hover::placeholder,
form textarea:hover::placeholder {
    color: #d9a066;
    text-shadow: 0 0 5px #d9a066;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

form input::placeholder,
form textarea::placeholder {
    transition: all 0.3s ease;
}

.section-divider {
    border: dashed #000000;
    height: 2px;
    background: #ece8dd; /* earthy green */
    margin: 60px auto 40px;
    width: 100%;
    /*max-width: 600px;*/
    opacity: 0.7;
}




.section-divider-with-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px auto 40px;
    width: 100%;
}

.section-divider-with-text::before,
.section-divider-with-text::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #a3b18a;
    margin: 0 20px;
    opacity: 0.6;
}

.section-divider-with-text span {
    font-family: 'Merriweather', serif;
    font-size: 1rem;
    color: #6b4f3b;
    opacity: 0.9;
}

.engine-note {
    font-size: 0.60em;
    color: #555555;
    display: block;
    margin-top: 5px;
}
