/* ─────────────────────────────────────────────────────────
   1) Reset & Base
───────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: system-ui, sans-serif;
    line-height: 1.6;
    background: #f9f9f9;
    color: #333;
}
a {
    text-decoration: none;
    color: inherit;
}
  
  /* ─────────────────────────────────────────────────────────
     2) Navbar
  ───────────────────────────────────────────────────────── */
#navbar {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 100;
}
#navbar a {
    padding: .5rem;
    transition: color .3s;
}
#navbar a:hover,
#navbar a.active {
    color: #0070f3;
    font-weight: 600;
}
  
  /* ─────────────────────────────────────────────────────────
     3) Projects Section
  ───────────────────────────────────────────────────────── */
#projects {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}
#projects h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
  
  /* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: .5rem 1rem;
    border: 1px solid #0070f3;
    border-radius: .25rem;
    background: #fff;
    cursor: pointer;
    transition: background .3s, color .3s, transform .2s;
    font-size: .9rem;
}
.filter-btn:hover {
    background: #0070f3;
    color: #fff;
    transform: translateY(-2px);
}
.filter-btn.active {
    background: #0070f3;
    color: #fff;
}
  
  /* Projects Grid & Cards */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.project-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: .5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform .3s, box-shadow .3s;
    text-align: left;
}
.project-card img {
    zoom: 150%;
    width: 100%;
    object-fit: cover;
    max-height: 200px;
    border-radius: .5rem;
    margin-bottom: .75rem;
}
.project-card h3 {
    margin: .5rem 0;
    font-size: 1.25rem;
}
.project-card p {
    font-size: .95rem;
    color: #555;
    margin-bottom: 1rem;
}
.project-card .btn {
    display: inline-block;
    padding: .5rem 1rem;
    background: #0070f3;
    color: #fff;
    border-radius: .25rem;
    text-decoration: none;
    transition: transform .2s;
}
.project-card .btn:hover {
    transform: translateY(-2px);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
  
  /* ─────────────────────────────────────────────────────────
     4) Modal Overlay
  ───────────────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 200;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: .5rem;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.modal-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
footer {
    text-align:center; padding:2rem 0;
    font-size: .9rem; color: #666;
}
.space {
    height: 2rem;
}