/* Global font */
body {
  font-family: 'Comfortaa', sans-serif;
  background-color: #ffffff;
  color: #212121;
  margin: 0;
  padding: 0;
}

/* Pink top bar */
.top-bar {
  width: 100%;
  height: 40px;
  background-color: #ff1493;
}

/* Hero Section */
.hero {
  background-color: #a0d8ff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #000;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.25rem;
  color: #333;
  font-weight: 300;
}

.hero-icon {
  flex: 0 0 120px;
  text-align: right;
}

/* base state */
.llama-icon {
  width: 120px;
  height: 120px;
  transform: scaleX(1);
  transition: transform 0.25s ease;
  transform-origin: center center;
  cursor: pointer;
}

/* DESKTOP ONLY — flip on hover */
@media (hover: hover) and (pointer: fine) {
  .hero-icon:hover .llama-icon {
    transform: scaleX(-1);
  }
}

/* MOBILE flipped state (applied via JS) */
.llama-icon.flipped {
  transform: scaleX(-1);
}

/* Projects Section */
#projects {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Title matches content width, bold */
#projects h2 {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
  text-align: left;
  font-size: 2.5rem;
  color: #111;
  font-weight: 700;
}

/* Grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 40px;
}

/* Project cards for desktop */
.project-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.project-image {
  width: 260px;
  max-width: 40%;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

.project-content {
  flex: 1;
}

/* Smaller project title, bold name only */
.project-title {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #222;
  font-weight: 300;
}

.project-title span {
  font-weight: 700;
  color: #000;
  font-size: 1.15rem;
}

.project-meta {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  color: #777;
  font-weight: 300;
}

.project-link {
  font-size: 0.95rem;
  color: #3399ff;
  text-decoration: underline;
  font-weight: 700;
}

.project-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #f8f9fa;
  color: #212121;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 300;
}

footer a {
  color: #3399ff;
  text-decoration: underline;
  font-weight: 700;
}

/* =========================
   Mobile styles (Walzr vibe)
   ========================= */
@media (max-width: 700px) {

  /* Hero tighter and centered */
  .hero {
    padding: 36px 16px;
  }

  .hero-content {
    max-width: 520px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-icon {
    margin-top: 16px;
    text-align: center;
  }

  .llama-icon {
    width: 90px;
    height: 90px;
  }

  /* Projects section narrower and cleaner */
  #projects {
    max-width: 520px;
    margin: 40px auto 50px auto;
    padding: 0 16px;
  }

  #projects h2 {
    max-width: 520px;
    padding: 0;
    margin: 0 0 24px 0;
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Cards become compact list items */
  .project-card {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 10px 10px 10px 10px;
    gap: 12px;
    align-items: center;
  }

  .project-image {
    width: 120px;
    max-width: none;
    border-radius: 14px;
  }

  .project-title {
    font-size: 0.98rem;
    line-height: 1.3;
  }

  .project-title span {
    font-size: 1rem;
  }

  .project-meta {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .project-link {
    font-size: 0.85rem;
  }

  footer {
    padding: 24px 16px 32px 16px;
    font-size: 0.9rem;
  }
}
