#main {
  width: 100%;
  display: flex;
  flex-direction: column;
  
}
#welcome {
  margin-top: var(--navbar-height);
  
}
#magnified-hero-div {
  position: relative;
  overflow: hidden;
  line-height: 0;
  width: 100vw;
  height: calc(100vh - var(--navbar-height));
}

#hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#welcome-section h1 {
  position: absolute;
  /* centered in the middle rectangle: x = 1/3 + 1/2 of 1/3 = 50% of canvas width */
  /* middle rect spans canvas[1/3 .. 2/3] horizontally and vertically */
  top: calc(50vh + (var(--navbar-height) / 2) ); /* vertical center of middle third */
  left: 50%;
  margin-top: 0px;
  transform: translate(-50%, -50%);
  font-size: 30px;
  font-weight: 30;
  text-align: center;
  width: 33vw; /* constrain to the middle rectangle width */
  pointer-events: none;
  color: var(--color-surface);
}
.magnifier-glass {
  position: absolute;
  border: 1px solid var(--color-surface);
  border-radius: 50%;
  cursor: none;
  background-color: var(--color-bg);
  
}

#all-projects {
  width: 90%;
  height: auto;
  margin: auto;
  margin-top: 80px;
}

.navigation-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px;
    border-radius: 16px; /* less round since it won't be a pill when wrapped */
    background: var(--color-surface);
    width: fit-content;
    max-width: 100%;
    list-style: none;
}

.navigation-tabs::-webkit-scrollbar {
    display: none; /* hides scrollbar on Chrome/Safari */
}

.navigation-tab button {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 99px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    white-space: nowrap;
}

.navigation-tab button.inactive {
  background: transparent;
  color: var(--color-text);
  opacity: 0.55;
}

.navigation-tab button.inactive:hover {
  background: color-mix(in srgb, var(--color-secondary) 15%, transparent);
  color: var(--color-secondary);
  opacity: 1;
}

.navigation-tab button.active {
  background: color-mix(in srgb, var(--color-primary) 20%, transparent);
  color: var(--color-primary);
  opacity: 1;
}
.projects{
  display: flex;
  flex-direction:column;
  padding-top: 2rem;
  gap: 2rem;
}

.showcase {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;

}

.project-tile {
  border-radius: var(--border-radius-lg, 12px);
  border: 0.5px solid color-mix(in srgb, var(--color-text) 15%, transparent);
  overflow: hidden;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.tile-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tile-content {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex:1;
}

.tile-content h3 {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.tile-content p {
  margin: 0 0 10px;
  font-size: 13px;
  opacity: 0.65;
}

.tile-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tile-links {
  display: flex;
  gap: 8px;
  margin-top: auto;
}
#contacts {
  display: flex;
  align-items: start;
  justify-content: space-around;
}

#footer p{
  font-size: 14px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: baseline;
}

#footer i {
  margin-right: 6px;
  margin-left: 16px;
  margin-bottom: 0px;
  color: var(--color-secondary);
  
}
#footer span {
  display: flex;
  align-items: center;
  vertical-align: middle;
}

