/* ===== Global Styles ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  color: rgb(60, 60, 60);
  line-height: 1.6;
  font-size: 16px;
  background-color: #fff;
}

/* screen-reader only, no visual change */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Typography ===== */
h2.titlep {
  color: rgb(76, 109, 170);
  text-align: center;
  margin-bottom: 30px;
}

/* ===== Header and Navbar ===== */
.navbar {
  background-color: rgb(60, 82, 121);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
  position: relative;
}

.nav-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
  height: 70px;
}

#logo {
  color: antiquewhite;
  font-weight: bold;
  font-size: 22px;
  text-decoration: none;
}

.menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.menu li a {
  color: antiquewhite;
  text-decoration: none;
  padding: 10px 0;
}

.menu a:hover {
  background-color: rgb(76, 109, 170);
  transition: all 0.3s ease;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: antiquewhite;
  cursor: pointer;
}

/* ===== Containers ===== */
.container,
.aboutcontain,
.edu-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== About Page ===== */
.about-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-text {
  font-size: 18px;
  color: rgb(91, 90, 90);
  max-width: 900px;
  margin: auto;
}

.about-img {
  text-align: center;
  margin-top: 20px;
}

.about-img img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}

.about-img figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: rgb(91, 90, 90);
}

/* ===== Index/Profile ===== */
.profile {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.profile-img {
  height: 400px;
  border-radius: 10px;
  max-width: 90%;
}

.profile-text {
  max-width: 500px;
  font-size: 20px;
  color: rgb(91, 90, 90);
}

/* ===== Portfolio ===== */
.portfolio-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.shape {
  width: 100%;
  max-width: 1000px;
  background-color: rgba(131, 184, 224, 0.35);
  color: rgb(78, 78, 78);
  font-size: 18px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 8px;
}

/* ===== Education Page ===== */
.edu-entry {
  background-color: rgba(204, 228, 255, 0.35);
  margin-top: 30px;
  padding: 20px;
  border-left: 6px solid rgb(76, 109, 170);
  border-radius: 4px;
  box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
}

.edu-entry h3 {
  margin-bottom: 10px;
  color: rgb(76, 109, 170);
}

.edu-entry p {
  font-size: 16px;
}

/* ===== Buttons and Footer ===== */
.buttonp {
  display: inline-block;
  background-color: #fffefe;
  color: rgb(60, 82, 121);
  padding: 10px 20px;
  text-decoration: none;
  margin: 10px 5px;
}

.buttonp:hover {
  background-color: #f0f0f0;
  box-shadow: 0 0 8px rgba(76, 109, 170, 0.4);
}

footer {
  text-align: center;
  margin-top: auto;
}

.button-container {
  display: inline-block;
}

footer a {
  text-decoration: none;
}

/* ===== Filter Buttons ===== */
.filter-buttons {
  text-align: center;
  margin-bottom: 30px;
}

.filter-buttons button {
  background-color: #e0e0e0;
  color: #333;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

.filter-buttons button:hover {
  background-color: #ccc;
}

/* ===== Media Queries ===== */
@media only screen and (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: rgb(60, 82, 121);
    width: 100%;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 10px 0;
    z-index: 999;
  }

  .menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .profile {
    flex-direction: column;
  }

  .profile-text {
    text-align: center;
    padding: 0 10px;
  }

  .button-container {
    display: block;
    text-align: center;
  }

  .shape {
    font-size: 16px;
    padding: 16px;
  }
}