/* Projects page styles */

.hero-projects { padding: 56px 0 24px; background: var(--panel); position: relative; overflow: hidden; }
.hero-projects::before { content: ""; position: absolute; inset: -40px -20px; background: radial-gradient(800px 320px at 12% 18%, rgba(139,201,255,0.12), transparent 60%), radial-gradient(700px 300px at 88% 82%, rgba(255,239,64,0.10), transparent 60%); filter: blur(18px); pointer-events: none; }
.hero-projects .container { position: relative; z-index: 1; }
.hero-projects h1 { text-align: center; font-size: clamp(28px, 5vw, 44px); margin: 0 0 8px; }
.hero-projects p { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0 0; }
.filter-btn { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.06); color: var(--text); cursor: pointer; }
.filter-btn.is-active { background: var(--primary); color: #fff; border-color: transparent; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #0c1426; box-shadow: 0 10px 28px rgba(0,0,0,0.18); cursor: pointer; }
.project-card img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; filter: saturate(0.95); display: block; }
.project-card:hover img { transform: scale(1.05); }
.project-meta { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 12px; background: rgba(0,0,0,0.35); border-radius: 10px; backdrop-filter: blur(6px); color: #fff; }
.project-meta h3 { margin: 0; font-size: 16px; }
.project-meta p { margin: 2px 0 0; font-size: 13px; color: rgba(255,255,255,0.9); }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 80; }
.modal.is-open { display: flex; }
.modal-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; max-width: 980px; width: 100%; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.modal-media { width: 100%; height: 420px; object-fit: cover; display: block; }
.modal-body { padding: 16px; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: rgba(0,0,0,0.35); color: #fff; cursor: pointer; }

@media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } .modal-media { height: 360px; } }
@media (max-width: 680px) { .projects-grid { grid-template-columns: 1fr; } .modal-media { height: 260px; } }



