/* Reset */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  box-sizing: border-box;
}

/* Main body wrapper */
body {
  background-color: #aed67a; /* fallback background */
  position: relative;
  overflow-x: hidden;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
}

/* Cat background */
.cat-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: url("images/better_cats.png") center/cover no-repeat;
  z-index: 3;
  pointer-events: none;
}

/* Flower overlay */
.flower-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  opacity: 0.35;
  transition: opacity 0.3s;
}

/* Main content */
.content {
  position: relative;
  z-index: 4;
  max-width: 800px;
  margin: 4vw auto;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 32px #0002;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1,
#intro {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  width: 100%;
}

/* Certifications */
.certifications {
  background: #eafdde;
  padding: 1.2rem;
  margin: 1.5rem 0;
  border-radius: 1rem;
}

.certifications h2 {
  margin-bottom: 1rem;
  color: #22643d;
  letter-spacing: 0.04em;
}

.certifications ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.certifications li {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f5f5f5;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px #82c19c22;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  text-align: center;
}

.cert-icon {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 0.5rem;
  margin-bottom: 0.7rem;
}

/* Projects */
.projects {
  margin: 2rem 0;
}

.projects h2 {
  margin-bottom: 1rem;
  color: #144a38;
  letter-spacing: 0.04em;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.project {
  background: #eafdde;
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px #b4dcbe66;
  padding: 1rem;
  width: 100%;
  max-width: 340px;
  text-align: left;
}

.project p,
.project ul {
  line-height: 150%;
}

.project strong {
  display: block;
  color: #144a38;
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.project a {
  color: #277951;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.4rem;
  transition: color 0.2s;
}
.project a:hover {
  color: #4fc387;
}

/* Profile links */
.profile-links {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.profile-icon {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px #1c432811;
  padding: 6px;
  transition: transform 0.18s;
}
.profile-links a:hover .profile-icon {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 4px 12px #73d98b55;
}

/* --- Responsive breakpoints --- */

/* Tablet and up */
@media (min-width: 600px) {
  .certifications ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .certifications li {
    flex: 1 1 250px;
    max-width: 300px;
  }

  .project-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .project {
    flex: 1 1 250px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  h1,
  #intro {
    font-size: 2.2rem;
  }

  .content {
    padding: 2.5rem 2rem;
  }
}
