h1{ color: midnightblue; }

/* Targets all text inputs and textareas */
input[type="text"], 
input[type="email"], 
textarea {
    border-radius: 8px;         /* Adjust this value for more or less curve */
    border: 1px solid #ccc;     /* Gives it a clean border */
    padding: 10px;              /* Adds space inside so text isn't touching the edges */
    font-family: inherit;       /* Ensures the font matches the rest of your site */
    width: 100%;                /* Optional: makes them fill the container width */
    max-width: 400px;           /* Optional: prevents them from getting too wide */
    box-sizing: border-box;      /* Ensures padding doesn't increase the total width */
}

/* Optional: adds a nice effect when you click inside the box */
input:focus, 
textarea:focus {
    border-color: #007bff;      /* Changes border color on click */
    outline: none;              /* Removes the default browser glow */
    box-shadow: 0 0 5px rgba(0,123,255,0.25);
}

/* 
!!!

Above this message is coding for the color for all texts and shape of the textboxes in contacr form

!!!
*/


/* 
  Sean Alvarado | Engineering Portfolio 
  Final Sticky Footer & Alignment Fix
*/

:root {
  --primary: #0f172a;
  --accent: #3b82f6;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #ffffff;
  --max-width: 1100px;
}

/* --- THE FIX: Sticky Footer Logic --- */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Body is always at least the full height of the screen */
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
}

/* This expands to fill the gap, forcing the footer to the bottom */
#content {
  flex: 1 0 auto; 
  padding: 3rem 0;
}

footer {
  flex-shrink: 0; /* Keeps footer from squishing */
  padding: 2rem 0;
  border-top: 1px solid #f1f5f9;
}

/* --- Layout Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Header --- */
header {
  border-bottom: 1px solid #f1f5f9;
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}

/* --- Main Content --- */
h2 {
  font-size: 2.25rem;
  color: midnightblue;
  margin-bottom: 1rem;
}

p {
  font-size: 1.1rem;
  max-width: 850px;
}

/* --- Footer Alignment (Bottom Right) --- */
footer .container {
  display: flex;
  justify-content: flex-end;
}

footer p {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: right;
  margin: 0;
  line-height: 1.4;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Mobile Styles (Under 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show hamburger */
    }

    nav {
        display: none; /* Hide menu by default */
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background: var(--bg-light);
        border-bottom: 1px solid #f1f5f9;
        z-index: 1000;
    }

    nav.open {
        display: block; /* Show menu when toggle is clicked */
    }

    nav ul {
        flex-direction: column; /* Stack links vertically */
        gap: 0;
        padding: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 1rem;
        border-top: 1px solid #f1f5f9;
    }
}

.section-title {
  margin-top: 2rem;
}

.recent-posts {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.post-card {
  flex: 1 1 300px; /* responsive cards */
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  background: white;
}

.post-card h3 {
  margin-top: 0;
}

.post-card .muted {
  color: #64748b;
}

.post-card .meta {
  font-size: 0.9rem;
  color: #64748b;
}

.read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}