@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Updated October 2025 */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 20px;
  background-color: #fafafa;
  color: #1f2937;
  font-weight: 400;
  line-height: 1.6;
}

h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  letter-spacing: -0.02em;
  text-align: center;
  color: #1e3a8a;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

h1 + h2 {
  text-align: center;
}

h1 + h2.section {
  text-align: left;
}

a:link {
  color: #1e40af;
  text-decoration: none;
}

a:visited {
  color: #1e40af;
  text-decoration: none;
}

a:hover {
  background-color: #1e40af;
  color: #dbeafe;
}

a:active {
  background-color: black;
  color: #dddddd;
}

.info-bar {
  margin: 1rem auto;
  padding: 0.8rem;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}

.info-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.info-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.info-tag:hover {
  background-color: #1e40af;
  color: white;
  border-color: #1e40af;
}

.info-tag.university {
  background: #1e40af;
  color: white;
  border-color: #1e40af;
}

.info-tag.university:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  transform: translateY(-1px) scale(1.02);
}

.section {
  background-color: #1e40af;
  color: white;
  padding: 1rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  clear: both;
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
  margin: 2rem 0 1rem 0;
}

.section a:link, .section a:visited {
  color: #fbbf24;
  text-decoration: none;
}

.section a:hover {
  background-color: #fbbf24;
  color: #1e40af;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.footer-bar {
  display: flex; /* allows left + right sections */
  justify-content: space-between; /* pushes them apart */
  align-items: center;
  font-size: 0.875rem;
  margin-top: 3rem;
  padding: 1rem 1.5rem;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-family: 'Inter', sans-serif;
}

/* left side (badges or icons) */
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* spacing between badges */
  flex-wrap: wrap;
}

/* optional if you use image badges */
.footer-left img {
  vertical-align: middle;
  height: 32px; /* you can adjust this */
}

/* right side (your original text) */
.footer-right {
  text-align: right;
}

/* links keep your style */
.footer-bar a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

.footer-bar a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}


/* Code and technical content styling */
code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  background-color: #f1f5f9;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}

pre {
  padding: 1em;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
}

.preview {
  margin-bottom: 1ex;
  clear: right;
}

.description {
  padding-left: 2em;
}

.stackpreview {
  display: inline-block;
  width: 300px;
  height: 420px;
  margin: 3ex 1em;
  padding: 0;
  clear: both;
  text-align: center;
  background-color: #dbeafe;
  border: 2px solid #93c5fd;
  vertical-align: top;
  width: 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.stackpreview .heading {
  margin-bottom: 0.25rem; /* reduce the gap */
}

.stackpreview .caption {
  margin-top: -0.75rem; /* remove top gap */
}


.stackpreview a img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  display: block;
  /* transition: filter 0.3s ease, transform 0.2s ease; */
}

.stackpreview a:hover img {
  opacity: 0.7;
  filter: brightness(1.1);
  cursor: pointer;
}


.stackpreview:hover {
  border-color: #1e40af;
}

.stackpreview p {
  margin-top: 0rem;
  padding:  0rem 0.75rem 0.75rem;
}

.stackpreview p + p, .stackpreview div + p {
  margin-bottom: 0.5em;
}

.image a img, .image a table {
  border: #1e40af solid 4px;
  position: relative;
  left: -4px;
  top: -4px;
}

.image a:hover img, .image a:hover table {
  border-color: #dbeafe;
  opacity: 0.5;
}

.image a:hover {
  background-color: inherit;
}

h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #374151;
}

.heading {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e40af;
}

.caption {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.image-rotator {
  position: relative;
  float: right;
  width: 300px;
  height: 300px;
  overflow: hidden;
}

.image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
  animation: fadeRotate 20s infinite;
}

.image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-slide span {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.7rem;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
}

/* Animation keyframes for smooth rotation with blur effect */
@keyframes fadeRotate {
  0% {
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
  }
  5% {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
  }
  20% {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
  }
  25% {
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
  }
  100% {
    opacity: 0;
    filter: blur(6px);
    pointer-events: none;
  }
}

/* Animation delays for each slide */
.image-slide:nth-child(1) { animation-delay: 0s; }
.image-slide:nth-child(2) { animation-delay: 4s; }
.image-slide:nth-child(3) { animation-delay: 8s; }
.image-slide:nth-child(4) { animation-delay: 12s; }
.image-slide:nth-child(5) { animation-delay: 16s; }




.float {
  float: right;
  margin: 1.5ex 0em 1.5ex 1.5em;
  text-align: center;
}

/* Contact table styles */
.vcard {
  margin: 1em 0;
  background-color: white;
  padding: 1.5em;
  border: 1px solid #e5e7eb;
  font-family: 'Inter', sans-serif;
}

.vcard th {
  text-align: left;
  vertical-align: top;
  padding-right: 1.5em;
  padding-bottom: 0.75em;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.vcard td {
  padding-bottom: 0.75em;
  color: #1f2937;
}

.vcard a {
  color: #1e40af;
  text-decoration: none;
  font-weight: 500;
}

.vcard a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    margin: 10px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .info-bar {
    margin: 1.5rem auto;
    padding: 1rem;
  }

  .info-tags {
    gap: 0.5rem;
  }

  .info-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .stackpreview {
    width: 90%;
    margin: 2ex auto;
  }

  .float {
    float: none;
    margin: 1ex auto;
    text-align: center;
  }

  .vcard th, .vcard td {
    display: block;
    padding-right: 0;
  }

  .vcard th {
    font-weight: 600;
    margin-top: 1em;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.875rem;
  }

  .info-bar {
    padding: 0.75rem;
  }

  .info-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .stackpreview {
    width: 95%;
    margin: 1.5ex auto;
  }
    /* Footer adjustments for mobile */
  .footer-bar {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-left {
    justify-content: center;
  }

  .footer-left a:last-child {
    flex-basis: 100%; /* forces the No-JS Club badge to new line */
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

}
/* Horizontal card layout */
.card {
  display: flex;
  align-items: center;/*flex-start; */
  gap: 1.5rem;
  background-color: white;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.15);
  border-color: #1e40af;
}

/* Left side image */
.card img {
  width: 500px;
  height: 300px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #dbeafe;
}

/* Right side content */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #1e40af;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

/* Optional link or action button */
.card a {
  color: #1e40af;
  font-weight: 500;
  text-decoration: none;
  margin-top: 0.75rem;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.card a:hover {
  color: #1e3a8a;
  text-decoration: underline;
}

.card-date {
  font-size: 0.9rem;
  color: #6b7280; /* Tailwind's gray-500 */
  margin-top: -0.25rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}


/* Responsive */
@media (max-width: 768px) {
  .card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .card img {
    width: 100%;
    height: 200px;
  }

  .card-content {
    align-items: center;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.9rem;
  }
}


