* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; }
a { color: #c7d223; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: auto; padding: 1rem; }

header { background: #fff; padding: 1rem 0; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: space-between; }
nav ul { list-style: none; display: flex; justify-content: center; gap: 1.5rem; }
.header-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 1rem;
}

.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: #007acc;
  color: #fff;
  border-radius: 8px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.hero p { font-size: 1.2rem; }
.hero .moving-img {
  position: absolute;
  top: 20px;
  left: -100px;
  width: 80px;
  animation: moveAcross 10s linear infinite;
}
@keyframes moveAcross {
  0% { left: -100px; }
  100% { left: 110%; }
}

section { margin-bottom: 2rem; }
section h2 { font-size: 1.8rem; margin-bottom: 1rem; border-bottom: 2px solid #007acc; display: inline-block; }
.about p, .contact p { max-width: 700px; margin: auto; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.portfolio-item { background: #fff; padding: 1rem; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.portfolio-item img { max-width: 100%; border-radius: 4px; }
.portfolio-item h3 { margin-top: 0.5rem; }

form { display: grid; gap: 1rem; max-width: 500px; margin: auto; }
input, textarea { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px; }
button { padding: 0.75rem; border: none; border-radius: 4px; background: #007acc; color: #fff; cursor: pointer; }
button:hover { background: #005fa3; }

footer { text-align: center; padding: 1rem 0; font-size: 0.9rem; color: #666; }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
}
