/* Body */
body {
  margin: 0;
  padding: 0;
  font-family: "Comfortaa", sans-serif;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #406d43;
  flex-direction: row-reverse;
}

/* Menu */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li a {
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: underline;
  font-size: 1.1rem;
}

nav ul li a:hover {
  background-color: #1b3d29;
}

/* Logo */
.avatar1 {
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.avatar1 img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  padding: 10px;
}


h1,h2{
  font-size: x-large;
  display: flex;
  justify-content: center;
 font-family: "Comfortaa", sans-serif;
 font-weight: 600;
}

p{
  font-size: large;
  line-height: 1.6;
  display: flex;
  justify-content: center;
 font-family: "Comfortaa", sans-serif;
 font-weight: 500;
 margin-right: 200px;
 margin-left: 200px;
}

/* Icons*/
.skills-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 15px;
  flex-wrap: wrap; /* wraps nicely on mobile */
}

.skills-icons img {
  width: 40px;       /* controls icon size */
  height: auto;
  transition: transform 0.3s ease;
}

.skills-icons img:hover {
  transform: scale(1.1);
}


/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #406d43;
  padding: 8px 12px;
  color: white;
  font-size: 1.2rem;
  text-align: center;
}

/* ===== RESPONSIVE / MOBILE ===== */
@media (max-width: 768px) {
  /* Body font scaling */
  body {
    font-size: 14px;
  }

  /* Headings */
  h1, h2 {
    font-size: 1.5rem;
    margin: 10px 15px;
  }

  /* Paragraphs */
  p {
    font-size: 1rem;
    margin: 10px 15px;
    line-height: 1.4;
  }

  /* Navigation */
  nav {
    padding: 5px 10px;
  }

  nav ul li a {
    padding: 10px 12px;
    font-size: 1rem;
  }

  .avatar1 img {
    width: 70px;
    height: 70px;
  }

  /* Skills icons */
  .skills-icons {
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 60px; /* added more space under the tools */
  }

  .skills-icons img {
    width: 35px;
    height: auto;
  }

  /* Footer */
  footer {
    font-size: 1rem;
    padding: 6px 8px;
  }
}
