* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f5f5f7;
  color: #1d1d1f;
  line-height: 1.5;
}

.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: 44px;
  position: fixed;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding-left: 35px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 45px;
  width: auto;
}

.logo {
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #c7c3c9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color:#fff;
  text-decoration: none;
  margin-right: auto;
}

.nav-container {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}

.main {
  padding-top: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  max-width: 980px;
  margin: 40px auto 0;
  padding: 0 22px;
  position: relative;
}

.project-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  height: 100%;
}

.project-card a {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.project-card:first-child {
  width: 100%;
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 auto;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-image {
  width: 120px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.project-content {
  padding: 20px;
  flex-grow: 1;
}

.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.project-card p {
  color: #86868b;
  font-size: 15px;
  margin-bottom: 15px;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card .tag {
  background: #f5f5f7;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: #515154;
}

.project-card .abandonware-links a {
  display: inline;
  width: auto;
  text-decoration: none;
  color: #8a2be2;
}

.project-card .abandonware-links a:hover {
  text-decoration: underline;
}

.robot-tech {
  margin: 60px auto 20px auto;
  text-align: center;
}

.robot-tech img{
  width: 90px;
  height: auto;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 980px;
  margin: 0 auto 40px auto;
  padding: 0 22px;
}

.tech-item {
  background: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tech-item a {
  color: #8a2be2;
  text-decoration: none;
}

.tech-item a:hover {
  text-decoration: underline;
}

.footer {
  background: #f5f5f7;
  padding: 20px 0;
  border-top: 1px solid #d2d2d7;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #515154;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #8a2be2;
}

#pi {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-family: "Times New Roman", verdana, helvetica, sans-serif;
  font-size: 22px;
  line-height: 22px;
  color: #ccc;
}

#pi a {
  color: #ccc;
  text-decoration: none;
}

#one-day {
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 100%;
  max-width: 600px;
  line-height: 0;
  box-shadow: 0px 0px 10px 4px rgba(34,34,34,0.1);
  -webkit-box-shadow: 0px 0px 10px 4px rgba(34,34,34,0.1);
  -moz-box-shadow: 0px 0px 10px 4px rgba(34,34,34,0.1);
  display: none;
}

#one-day img {
  width: 100%;
  max-width: 600px;
  border: 0;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    padding-left: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
  }

  .project-card a {
    flex-direction: column;
  }

  .project-card:last-child {
    width: 100% !important;
  }

  .project-image {
    width: 100%;
    height: 150px;
  }

  .project-content {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
