body {
  font-family: 'Inter', Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05), transparent 40%),
    linear-gradient(135deg, #1b0c2e, #36174d);
  color: white;
  text-align: center;
  min-height: 100vh;
  margin: 0;
  padding: 40px 20px;
}

.page-shell {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

header h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

header p {
  margin: 0 auto 32px;
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.section-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 20px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  padding-left: 4px;
}

.section-title:first-of-type {
  margin-top: 0;
}

/* Grid definition: Max 3 columns horizontally */
.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

/* Tablet */
@media (min-width: 600px) {
  .projects {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 900px) {
  .projects {
    grid-template-columns: repeat(3, 1fr);
  }
}

.projects li {
  margin: 0;
  display: flex;
}

.projects a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 24px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Ensures content is centered vertically */
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  width: 100%;
  box-sizing: border-box;
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.05);
}

.projects a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

.sys-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.sys-name {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.search-container {
  margin: 0 auto 32px;
  max-width: 500px;
}

#searchInput {
  width: 100%;
  padding: 14px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1.1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#searchInput:focus {
  outline: none;
  border-color: #a87ffb;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(168, 127, 251, 0.2);
}

/* Super Skinny Scrollbar with Theme Colors */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: #1b0c2e; 
}

::-webkit-scrollbar-thumb {
  background: #a87ffb; 
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8e5ce8; 
}

/* Firefox compatibility */
* {
  scrollbar-width: thin;
  scrollbar-color: #a87ffb #1b0c2e;
}

/* Windows 7 dropdown */
.win7-wrapper {
  position: relative;
}

.win7-wrapper > a:hover {
  transform: none;
}

.win7-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  min-width: 180px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  flex-direction: column;
  gap: 8px;
}

.win7-dropdown.show {
  display: flex;
}

.win7-dropdown a {
  text-decoration: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.3);
  padding: 18px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.05);
}

.win7-dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 12px rgba(168, 127, 251, 0.15);
}
