body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: #f5f5f5;
  color: #202124;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.hero-section {
  text-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-section canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.avatar-container {
  position: relative;
  display: inline-block;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid #1a73e8;
  overflow: hidden;
  width: 140px;
  height: 140px;
}

.avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.hero-section h1,
.hero-section p {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
  margin: 10px 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #1a73e8;
  cursor: pointer;
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.scroll-indicator i {
  font-size: 1.5rem;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.projects-section {
  padding-top: 80px;
  display: flex;
  justify-content: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
  width: 100%;
}

.project-card {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.project-card.show {
  transform: translateY(0);
  opacity: 1;
}

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

.project-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header h2 {
  margin: 0;
  font-size: 1.6rem;
}

.project-header span {
  color: #777;
  font-size: 0.9rem;
}

.project-description {
  margin: 10px 0 15px;
  color: #444;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 3.75px 7.5px;
  border-radius: 6px;
  transition: background 0.3s;
  flex: none;
  min-width: 70px;
  max-width: 90px;
  justify-content: center;
  box-sizing: border-box;
}

.link-button.primary {
  background: #1a73e8;
  color: #fff;
}

.link-button.primary:hover {
  background: #0c5fdb;
}

.link-button.secondary {
  background: #eee;
  color: #333;
}

.link-button.secondary:hover {
  background: #ddd;
}

footer {
  text-align: center;
  margin: 50px 0 20px;
  font-size: 0.9rem;
  color: #777;
}

@media (max-width: 800px) {
  .project-card {
    width: 95%;
  }
}

@media (max-width: 500px) {
  .project-card {
    width: 100%;
  }
  .link-button {
    width: 100%;
    max-width: none;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: #111;
    color: #f5f5f5;
  }

  .project-card {
    background: #222;
    box-shadow: 0 2px 8px rgba(255,255,255,0.1);
  }

  .project-header span,
  .project-description {
    color: #ccc;
  }

  .link-button.primary {
    background: #1a73e8;
    color: #fff;
  }

  .link-button.secondary {
    background: #333;
    color: #f5f5f5;
  }

  .link-button.secondary:hover {
    background: #444;
  }
}
