:root {
  --bg: #fffdfc;
  --accent: rgb(6, 62, 6);
  --text: #333;
  --font: "Outfit", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Make images and sections scale */
img {
  max-width: 100%;
  height: auto;
}

section,
header,
footer {
  padding: 2rem 1rem;
  width: 100%;
}

/* Make typography and containers scale */
body {
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: var(--text);
}

.header {
  background-image: url(images/pexels-jplenio-1423600.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 2rem 1rem;
  text-align: center;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.hero {
  padding: 2rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.btn {
  background: #333;
  color: white;
  padding: 0.75rem 1.5rem;
  margin-top: 1rem;
  border-radius: 5px;
  display: inline-block;
}

.section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.portfolio .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

input,
textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #888;
}
/* Tablet (768px and below) */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p,
  .section p {
    font-size: 1rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 0.5rem;
  }

  input,
  textarea,
  .btn {
    width: 100%;
    font-size: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }
}
@media (max-width: 768px) {
  /* Tablets */
  .img {
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  /* Mobile */
  .img {
    max-width: 120px;
  }
}
