body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #fcf8f8;
  font-family: 'Acme', sans-serif;
}

header {
  background-color: #a987a8;
  color: white;
  padding: 1rem;
  text-align: center;
  position: fixed;
  width: 97.5%;
  margin-top: -10%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-link:hover,
.nav-link:focus,
.nav-link:active {
  color: white;
}

.hamburger {
  display: none;
}

.nav-list {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

header ul li {
  display: inline;
  margin: 10px;
  font-size: 18px;
}

.nav-list li {
  margin: 0 15px;
}

header ul li a {
  color: white;
  text-decoration: none;
}

.nav-list a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  padding: 15px 0;
  display: block;
}

header .logo {
  font-size: 25px;
  font-weight: bold;
  margin-left: 1rem;
}

header .menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

header .menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
}

header ul {
  list-style: none;
}

#projects {
  text-align: center;
  margin-top: 40px;
  height: 90%;
}

.project {
  background: rgba(224, 212, 212, 0.41);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-align: left;
  margin: 20px 10px;
  padding: 10px;
  max-width: 300px;
  border: 2px solid #511f52;
  width: 90%;
  height: 90%;
}

.project img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #511f52;
}

.button-container {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.demo-button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #511f52;
  color: white;
  width: 270px;
  height: 40px;
  font-size: 18px;
  font-family: 'Acme', sans-serif;
}

.see-more-container {
  margin-top: 40px;
}

.see-more {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #511f52;
  color: white;
  width: 150px;
  height: 40px;
  font-size: 18px;
  font-family: 'Acme', sans-serif;
}

footer {
  background-color: #a987a8;
  color: white;
  padding: 10px;
  text-align: center;
  margin-top: 80px;
  font-family: 'Arial', sans-serif;
  position: relative;
  height: auto;
}

.social-media {
  margin-bottom: 5px;
}

.social-media a {
  margin: 0 15px;
  display: inline-block;
  margin-bottom: -1%;
}

.social-media img {
  width: 60px;
  height: 65px;
  border-radius: 50%;
  padding: -70px;
}

.blog-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  width: 100%;
}

.blog-frame {
  border: 3px solid white;
  padding: 20px;
  margin: 0 10px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  max-width: 300px;
  white-space: nowrap;
}

.blog-frame a {
  color: white;
  text-decoration: none;
  font-size: 1em;
}

.blog-frame a:hover {
  text-decoration: underline;
}

.footer-divider {
  margin: 20px auto;
  width: 40%;
  border-bottom: 3px solid #fff;
  opacity: 0.6;
}

.footer-container {
  margin-top: 20px;
  width: 100%;
  text-align: center;
}

.footer-text {
  font-size: 0.9em;
  color: white;
  opacity: 0.8;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: rgba(244, 238, 244, 1);
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.close {
  color: #511f52;
  float: right;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bc96af;
  text-decoration: none;
}

.button-container2 button {
  font-size: 20px;
  padding: 7px 24px;
  border-radius: 2px;
  background-color: #fff;
  color: rgba(81, 31, 82, 1);
  cursor: pointer;
  margin: 20px;
  width: 230px;
  height: 40px;
  border: 2px solid #511f52;
  box-shadow: 0 4px 8px rgba(81, 31, 82, 0.5);
  font-family: 'Acme', sans-serif;
}

.button-container2 button:hover {
  background-color: #dec7e0;
}

.modal img {
  width: 70%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@font-face {
  font-family: 'Acme';
  src:
    url('Acme-Regular.ttf') format('woff2'),
    url('Acme-Regular.ttf') format('woff');
  font-weight: normal;
  font-style: normal;
}

.menu {
  display: none;
}

.popup-btn {
  display: none;
}

.projects h2 {
  margin-top: 10%;
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
    padding-top: 1px;
  }

  header {
    width: 92%;
    position: fixed;
    z-index: 1000;
    margin-top: -2%;
  }

  .nav-list {
    display: none;
    flex-direction: row;
    gap: 10px;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #a987a8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    margin: 0;
  }

  .project {
    max-width: 100%;
    margin: 10px 0;
  }

  .projects h2 {
    margin-top: 25%;
    font-size: 240%;
  }

  .button-container {
    flex-direction: column;
  }

  .demo-button,
  .see-more {
    width: 100%;
    height: auto;
    font-size: 16px;
  }

  .blog-link {
    font-size: 1em;
  }

  .blog-frame {
    font-size: 90%;
    width: 110%;
  }

  .social-media {
    display: flex;
  }

  .close {
    font-size: 50px;
  }

  .menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 93%;
    height: 93%;
    background: rgba(244, 238, 244, 1);
    border-radius: 8px;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30px;
    border: 15px solid rgba(169, 135, 168, 1);
    overflow-y: auto;
  }

  .popup-btn {
    display: block;
    margin-left: 78%;
    margin-bottom: -10%;
    width: 30%;
    height: 100%;
    font-size: 200%;
    background: none;
    color: white;
    border: none;
  }

  .separator {
    width: 2px;
    height: 250px;
    background-color: #511f52;
    margin-bottom: 2px;
    margin-right: 65%;
  }

  .closee {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: #511f52;
    cursor: pointer;
    margin-top: 8%;
    margin-right: 10%;
    font-weight: bold;
  }

  .menu-item,
  .menu-item1,
  .menu-item2 {
    display: flex;
    align-items: center;
    margin-bottom: 45px;
    margin-top: 2%;
    color: #511f52;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
  }

  .menu-item {
    margin-right: 50%;
  }

  .menu-item1 {
    margin-right: 48%;
    margin-top: 2%;
  }

  .menu-item2 {
    margin-right: 45%;
    padding: 2%;
  }

  .menu-item img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
  }

  .modal-content {
    width: 94%;
    max-width: 400px;
    padding: 18px;
    max-height: 96%;
    font-size: 85%;
  }

  .image {
    width: 20%;
    height: 20%;
    border-radius: 50%;
    margin-right: 60%;
    margin-bottom: 30px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  header {
    width: 100%;
    padding: 1rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .navbar {
    flex-direction: row;
  }

  .menu-toggle {
    display: none;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
  }

  .nav-list li {
    margin: 0 10px;
  }

  .project {
    max-width: 45%;
    margin: 15px 10px;
  }

  .button-container {
    flex-direction: row;
  }

  .demo-button,
  .see-more {
    width: auto;
    height: auto;
    font-size: 16px;
  }

  .social-media img {
    width: 50px;
  }

  .blog-link {
    font-size: 1.1em;
  }

  footer {
    width: 98%;
  }
}

@media (min-width: 1025px) {
  .navbar {
    flex-direction: row;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
  }

  .project {
    max-width: 300px;
  }

  .button-container {
    flex-direction: row;
  }

  .demo-button,
  .see-more {
    width: auto;
    height: auto;
    font-size: 18px;
  }

  footer {
    padding: 20px;
    width: 97%;
  }
}
