:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #4f46e5;
  --white: #e6eef6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.5;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
}
.site-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}
#nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--white);
  font-size: 1.4rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
}
.nav a:hover {
  color: var(--white);
}
.hero {
  padding: 4rem 0;
  text-align: left;
}
.hero h1 {
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.summary h2 {
  margin-top: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 8px;
}
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 2rem 0;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.footer-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0.25rem 0;
}
.copyright {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
main {
  padding-bottom: 3rem;
}

/* responsive */
@media (max-width: 700px) {
  #nav-toggle {
    display: block;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }
  .nav a {
    margin: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* forms */
label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: #071022;
  color: var(--white);
}

/* Projects card grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
  align-items: start;
}

.project-card {
  background: var(--card-bg, #1f2933); /* darker card background */
  color: #e6edf3; /* light text for contrast */
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  padding: 0.6rem; /* added padding around inside of card */
}

.project-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* makes the thumbnail taller responsively */
  min-height: 200px; /* ensure a minimum height */
  object-fit: cover;
  background: #111318;
  display: block;
  border-radius: 6px;
}

/* Larger screens: make them even taller */
@media (min-width: 900px) {
  .project-thumb {
    aspect-ratio: 4 / 3;
    min-height: 260px;
  }
}

.project-body {
  padding: 1.25rem; /* increased inner padding */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.project-tools {
  color: rgba(230, 237, 243, 0.85);
  font-size: 0.95rem;
  margin-top: 0.25rem;
  flex: 1;
}

/* Actions */
.btn {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  background: var(--accent, #0b74de);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn.secondary {
  background: transparent;
  color: rgba(230, 237, 243, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Small screens tweak */
@media (max-width: 420px) {
  .project-thumb {
    height: 120px;
  }
}
