body {
  font-family: 'Fira Code', monospace;
  margin: 0;
  padding: 0;
  background-color: #0f172a;
  color: #f8fafc;
  transition: background-color 0.3s, color 0.3s;
}
a { text-decoration: none; color: #22d3ee; }
h1, h2, h3 { margin: 0.5em 0; }
section { padding: 4em 2em; max-width: 1000px; margin: 0 auto; }
.code-highlight { color: #22d3ee; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111827;
  padding: 1em 2em;
  position: sticky;
  top: 0;
  z-index: 10;
}
header nav a { margin-left: 1em; }

#hero { text-align: center; }
#typed-text { font-size: 2.5em; color: #22d3ee; }

.btn, button {
  background-color: #22d3ee;
  color: #0f172a;
  border: none;
  padding: 0.5em 1.5em;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover, button:hover { background-color: #06b6d4; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}
.project-card {
  background: #1f2937;
  padding: 1.5em;
  border-radius: 12px;
  transition: transform 0.3s;
}
.project-card:hover { transform: scale(1.05); }

#filters {
  display: flex;
  gap: 1em;
  margin-bottom: 2em;
}
#typed-text {
  font-size: 2.5em;
  color: #22d3ee;
  min-height: 4em; 
  display: inline-block;
}
footer {
  padding: 2em 2em;
  max-width: 1000px; /* same as your sections */
  margin: 0 auto;     /* centers it */
  color: #9ca3af;
  text-align: center;
  background: transparent; /* keep the background same as body */
}
body.light { background: #f8fafc; color: #111827; }
body.light .code-highlight { color: #0d9488; }
body.light header { background: #e5e7eb; }
body.light .project-card { background: #e5e7eb; }
body.light a, body.light .btn { color: #0d9488; }

.theme-toggle {
  position: fixed;
  bottom: 1em;
  right: 1em;
  z-index: 50;
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-top: 1rem; height: fit-content; }
.gallery-grid figure { background:#1a1a1d00; padding:0.5rem;box-shadow:0 4px 12px rgba(0,0,0,0.5); border-radius:8px; text-align:center; width: 100%; height: fit-content; }
.gallery-grid img { width:100%; border-radius:6px; display:block; }
.gallery-grid figcaption { margin-top:0.3rem; font-size:0.85rem; color:#bfc7cf; }
.gallery-grid video {  width: 100%;  height: 100px;  border-radius: 6px;  display: block;}

.gallery-grid2 { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1rem; margin-top: 1rem; height: fit-content; }
.gallery-grid2 figure { background:#1a1a1d00; padding:0.5rem;box-shadow:0 4px 12px rgba(0,0,0,0.5); border-radius:8px; text-align:center; width: 100%; height: fit-content; }
.gallery-grid2 img { width:100%; border-radius:6px; display:block; }
.gallery-grid2 figcaption { margin-top:0.3rem; font-size:0.85rem; color:#bfc7cf; }
.gallery-grid2 video {  width: 100%;  height: 100px;  border-radius: 6px;  display: block;}
