* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.main-container {
  flex: 1;
}

.navbar {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
}

.navbar .menu-toggle {
  display: none;
}
.navbar ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.navbar a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

.hero {
  background-color: lightblue;
  text-align: center;
  padding: 60px;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 2.5em;
}

.hero p {
  margin-bottom: 30px;
  font-size: 1.2em;
}

.hero-image {
  border-radius: 10px;
}

.portfolio {
  text-align: center;
  padding: 40px;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.portfolio h2 {
  font-size: 2em;
  margin-bottom: 20px;
}
.portfolio h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.card {
  border: 1px solid #ddd;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: whitesmoke;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
}
.card:hover {
  transform: scale(1.05);
}
.footer {
  background-color: #333;
  color: white;
  padding: 20px;
  text-align: center;
  width: 100%;
}
.footer ul {
  list-style: none;
  padding-bottom: 10px;
}

.footer ul li {
  display: inline;
  margin-right: 15px;
}

.footer a {
  text-decoration: none;
  color: white;
}

/*mobile*/
@media only screen and (max-width: 600px) {
  .navbar .menu-toggle {
    display: flex;
  }
  .navbar ul {
    list-style: none;
    display: none;
    justify-content: space-between;
    gap: 15px;
  }
  .menu {
    display: none; /* Hide menu */
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack items vertically */
    position: absolute; /* Position relative to navbar */
    background-color: #333; /* Same background as navbar */
    top: 44px; /* Position below the navbar */
    left: 0;
    right: 0;
    z-index: 1; /* Stay on top of other elements */
    padding: 20px 0; /* Padding around menu items */
  }

  /* Show the menu when active */
  .menu.active {
    display: flex; /* Display menu */
  }

  /* Adjust the menu list for mobile */
  .menu ul {
    flex-direction: column; /* Stack list items vertically */
    align-items: center; /* Center items horizontally */
  }

  /* Adjust menu items for mobile */
  .menu li {
    margin: 10px 0; /* Space between items */
  }
  .create-margin {
    margin-top: 300px;
  }
  .card {
    border: 1px solid #ddd;
    width: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: whitesmoke;
  }
  .card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
  }
  .card-content {
    padding: 10px;
  }

  .card-content h3 {
    margin-bottom: 5px;
  }
  .card:hover {
    transform: scale(1.05);
  }
}

/*tablet*/
@media only screen and (min-width: 601px) and (max-width: 899px) {
  .card {
    border: 1px solid #ddd;
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: whitesmoke;
  }
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  .card-content {
    padding: 20px;
  }

  .card-content h3 {
    margin-bottom: 5px;
  }
  .card:hover {
    transform: scale(1.05);
  }
}

/*wide screen*/
@media only screen and (min-width: 900px) and (max-width: 2499px) {
  .card {
    border: 1px solid #ddd;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: whitesmoke;
  }
  .card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }
  .card-content {
    padding: 20px;
  }

  .card-content h3 {
    margin-bottom: 5px;
  }
  .card:hover {
    transform: scale(1.05);
  }
}
