#root {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}
.home{
  display: flex;
  justify-content: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}

.home {
  text-align: center;
  background: linear-gradient(135deg, #3ab7da, rgb(44,115,210));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Poppins", sans-serif;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  color: white;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 20px;
  border-radius: 16px;
  background: rgba(44, 115, 210, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

.intro{
  background-color: rgba(44, 115, 210, 0.08);
  border: 1px solid rgba(44, 115, 210, 0.2);
  border-radius: 16px;
  padding: 20px;
}

.profile-img{
  height: 100px;
}

/* Hero gif: fixed visual size on large screens, responsive on small screens */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-gif {
  /* Preferred fixed size */
  width: 380px;
  height: 220px;
  max-width: 90%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Make image smaller on very small screens */
@media (max-width: 420px) {
  .hero-gif {
    width: 280px;
    height: 160px;
  }
}

/* Prevent the intro container from causing horizontal overflow */
.section {
  overflow: hidden;
}
