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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: #f4f6f8;
  color: #1f2937;
}

.header {
  min-height: 70px;
  padding: 15px 7%;
  background: #111827;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

.logo span {
  color: #60a5fa;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

nav a {
  color: white;
  text-decoration: none;
}

nav a:hover,
nav .active {
  color: #60a5fa;
}

.banner {
  min-height: 330px;
  padding: 60px 7%;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17,24,39,.95), rgba(17,24,39,.55)),
    url("https://placehold.co/1600x500?text=Responsive+Web+Design") center/cover;
  color: white;
}

.banner h1 {
  max-width: 650px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 10px 0;
}

.banner p {
  max-width: 600px;
}

.eyebrow {
  letter-spacing: 3px;
  font-weight: bold;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #60a5fa;
  color: #111827;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.home-layout {
  width: min(1200px, 90%);
  margin: 35px auto;
  display: flex;
  align-items: flex-start;
  gap: 25px;
  flex-wrap: wrap;
}

.sidebar {
  flex: 0 1 220px;
  background: white;
  padding: 25px;
  border-radius: 10px;
}

.sidebar a {
  display: block;
  padding: 8px 0;
  color: #374151;
  text-decoration: none;
}

.content {
  flex: 1 1 600px;
  min-width: 0;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 25px;
}

.card h2,
.card h3 {
  margin-bottom: 10px;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.cards .card {
  flex: 1 1 220px;
  margin-bottom: 0;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.project {
  flex: 1 1 180px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

footer {
  padding: 35px 7%;
  background: #111827;
  color: white;
  text-align: center;
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }

  .home-layout {
    width: 94%;
  }

  .content {
    flex-basis: 100%;
  }
}

@media (max-width: 600px) {
  nav {
    width: 100%;
    justify-content: center;
    gap: 15px;
  }

  .banner {
    display: none;
  }

  .header {
    justify-content: center;
  }

  .home-layout {
    width: 92%;
    margin-top: 20px;
  }

  .cards .card {
    flex-basis: 100%;
  }

  .projects .project {
    flex-basis: 100%;
  }
}
