/* === Base Layout === */
body {
  font-family: 'Courier New', Courier, monospace;
  background-color: #fdfdfd;
  color: #222;
  margin: 0;
  padding: 2rem;
}

header, footer {
  text-align: center;
}

hr {
  border: none;
  border-top: 1px dashed #aaa;
  margin: 1rem 0;
}

a {
  color: #222;
}

a:hover {
  color: #838383;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 3rem 1.5rem;
  width: 100%;
  padding: 1rem 2rem;
  box-sizing: border-box;
}

/* === Card Styling === */
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  border: 1px solid #aaa;
  transition: border-color 0.2s ease;
  padding: 1rem;
  background-color: #fff;
}

.card:hover {
  border-style: dashed;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.card-title {
  font-weight: bold;
  font-size: 1.2rem;
}

.card h3, .card h5 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.mt-auto {
  margin-top: auto;
}

/* === Badge Styling === */
.badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  border: 1px solid #aaa;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}

.badge:hover {
  background-color: #ccc;
}

.active-tag {
  background-color: #222;
  color: #fff;
  border-color: #222;
}

.inactive-tag {
  background-color: #eee;
  color: #222;
}

.clear-tag {
  background-color: #fff;
  color: #000;
  border: 1px dashed #aaa;
}

.badge-card {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin: 0.2rem;
  background-color: #fff;
  color: #7a7a7a;
  border: 1px solid #aaa;
  font-size: 0.8rem;
  text-decoration: none;
  pointer-events: none;
}

/* === Filter Bar === */
.filter-bar {
  position: sticky;
  top: 0;
  background-color: #fdfdfd;
  padding: 0.5rem 2rem 1rem 2rem; 
  z-index: 100;
  border-bottom: 1px dashed #aaa;
}

/* Toggle button for mobile dropdown */
.filter-toggle {
  display: none;
  font-weight: bold;
  padding: 0.5rem;
  border: 1px dashed #aaa;
  background-color: #fdfdfd;
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

/* Filter options container */
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #ddd;
  border: 1px solid #999;
  text-decoration: none;
  color: #000;
  font-size: 0.9rem;
}

.btn:hover {
  background-color: #bbb;
}

/* === Miscellaneous === */
.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.footer {
  text-align: center;
  padding: 1rem 0;
}

.typewriter {
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

#cursor {
  display: inline-block;
  color: #222;
  font-weight: bold;
  visibility: visible;
}

/* === Contact Form === */
#contact-form {
  font-family: 'Courier New', Courier, monospace;
  background-color: #fff;
  border: 1px dashed #aaa;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 4px 4px 0 #ccc;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
  font-size: 0.9rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid #aaa;
  background-color: #fdfdfd;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

#contact-form textarea {
  resize: vertical;
}

#submit-btn {
  background-color: #ddd;
  border: 1px solid #999;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#submit-btn:hover {
  background-color: #bbb;
}

#form-response {
  margin-top: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #222;
  border-top: 1px dashed #aaa;
  padding-top: 1rem;
}

/* === Mobile Responsive Design === */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  main {
    padding-bottom: 1rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 4rem 0;
    padding: 0 1rem;
  }
  
  .filter-bar {
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem 1rem 1.5rem; 
  }

  .filter-toggle {
    display: block;
  }

  .filter-options {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
  }

  .filter-options.open {
    display: flex;
  }
}
