/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #808080;
  font-family: optima, sans-serif;
}

a {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6, p, span {
  font-family: optima, sans-serif;
  color: #ffffff;
  margin: 0;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  background-color: #3E485A;
  min-height: 115px;
  padding: 0 5%;
  margin: 0 4%;
}

.navbar-title {
  width: 30%;
  display: flex;
  align-items: center;
}

.navbar-title a {
  text-decoration: none;
}

.navbar-title h4 {
  font-family: optima, sans-serif;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar-links {
  width: 60%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.navbar-links a {
  font-family: optima, sans-serif;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
}

.navbar-links a:hover {
  text-decoration: underline;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  background-color: #3E485A;
  height: 8vh;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.mobile-nav p {
  font-family: optima, sans-serif;
  color: #ffffff;
  font-size: 0.9rem;
}

.menu-icon {
  color: #ffffff;
  cursor: pointer;
  font-size: 1.5rem;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #3E485A;
  z-index: 1000;
  flex-direction: column;
  padding: 20px 0;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-close {
  align-self: flex-end;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 10px 20px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.mobile-menu-links a {
  font-family: optima, sans-serif;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
}

/* Page Container */
.page {
  background-color: #808080;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 500px;
  height: 100%;
}

/* Border/Divider */
.border {
  width: 92%;
  height: 5px;
  background-color: #ffffff;
}

/* Section Header */
.header {
  height: 60px;
  width: 300px;
  border: 2px solid #ffffff;
  background-color: #3E485A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2%;
}

.header h5 {
  font-weight: bold;
  font-size: 1.25rem;
}

/* Hero Section */
.hero {
  width: 90.9vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #3e485a;
}

.hero img {
  width: 90.9vw;
  display: block;
}

.hero h4 {
  font-weight: bold;
  margin: 2% 0;
  text-align: center;
  font-size: 2rem;
}

/* Services Section (Home Page) */
.services {
  display: flex;
  width: 98.8vw;
  flex-wrap: wrap;
  justify-content: center;
}

.service {
  width: 30%;
  padding: 0 1%;
  margin-bottom: 2%;
  margin-top: 2%;
}

.service h6 {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Cases Link on Home Page */
.cases-link {
  padding: 2%;
  border-radius: 30px;
  text-decoration: none;
  display: block;
   background-color: #afafaf;
}

.cases-link:hover {
  background-color: #CD4C4C;
}

.cases-link h5 {
  font-weight: bold;
  text-align: center;
  font-size: 1.25rem;
}

/* Footer */
.footer {
  width: 92%;
  min-height: 10vh;
  display: flex;
  justify-content: center;
  background-color: #3E485A;
  padding: 1% 0;
  margin: 0 4%;
}

.footer-info {
  display: flex;
  width: 50%;
  justify-content: space-around;
}

.footer-info p {
  text-align: center;
  color: #ffffff;
  font-size: 0.9rem;
  margin: 3px 0;
}

.footer-person {
  margin-bottom: 0%;
}

.footer-person h6 {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1rem;
  text-align: center;
}

/* About Page */
.about-section {
  display: flex;
  width: 70%;
  margin-bottom: 2%;
}

.avatar {
  height: 220px;
  width: 220px;
  border-radius: 50%;
  margin-bottom: 2%;
  box-shadow: 0.2vw 0.3vw 0.5vw 0.4vw rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.bio-section {
  display: flex;
  flex-direction: column;
  padding-left: 5%;
}

.bio-section h6 {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.bio-section p {
  margin-bottom: 2%;
  line-height: 1.5;
}

/* Cases Page */
.cases-grid {
  display: flex;
  flex-wrap: wrap;
  width: 90%;
  justify-content: space-around;
}

/* Case Card */
.case-card {
  display: flex;
  flex-direction: column;
  width: 280px;
  height: 490px;
  margin-bottom: 5%;
  box-shadow: 0.2vw 0.3vw 0.5vw 0.4vw rgba(0, 0, 0, 0.3);
  background-color: #ffffff;
  overflow: hidden;
}

.case-card img {
  height: 222px;
  width: 100%;
  object-fit: cover;
}

.case-card-name {
  color: #000000;
  text-align: center;
  font-weight: bold;
  padding-top: 5%;
  font-size: 1.1rem;
}

.case-card-bio {
  color: #000000;
  padding: 10% 10% 2% 10%;
  line-height: 1.2;
  font-size: 0.95rem;
}

.case-card-link {
  height: 35px;
  width: 112px;
  background-color: #3E485A;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  border-radius: 10px;
}

.case-card-link a {
  text-decoration: none;
  color: #ffffff;
  font-family: optima, sans-serif;
  font-size: 0.9rem;
}

/* Services Page */
.services-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 5%;
}

.services-list h6 {
  margin-bottom: 2%;
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
}

/* Contact Page */
.contact-section {
  margin-bottom: 0%;
  text-align: center;
}

.contact-section h5 {
  margin-bottom: 2%;
  font-weight: bold;
  text-align: center;
  font-size: 1.25rem;
}

.contact-info p {
  text-align: center;
  font-size: 1.2rem;
  margin: 5px 0;
}

.contact-info .spacer {
  margin-bottom: 2%;
}

/* Case Detail Pages */
.case-hero {
  width: 90.9vw;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-hero img {
  width: 90.9vw;
  display: block;
}

.case-hero iframe {
  max-width: 100%;
}

.case-hero h4 {
  font-weight: bold;
  padding: 2% 0;
  text-align: center;
  width: 100%;
  background-color: #3e485a;
  font-size: 2rem;
}

.case-bio {
  width: 80%;
  display: flex;
  flex-direction: column;
}

.case-bio p {
  margin: 2% 0;
  line-height: 1.6;
}

.articles {
  display: flex;
  flex-direction: column;
  width: 50%;
  align-items: center;
  justify-content: center;
}

.articles h6 {
  margin-bottom: 5%;
  width: 100%;
  font-weight: bold;
  font-size: 1.1rem;
}

.articles a {
  color: #ffffff;
  text-decoration: none;
}

.articles a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media only screen and (max-width: 812px) {
  .navbar {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .hero h4 {
    font-size: 1.2rem;
  }

  .service {
    width: 80%;
  }

  .services {
    width: 100vw;
  }

  .footer-info {
    flex-direction: column;
    width: 75%;
  }

  .about-section {
    flex-direction: column;
    width: 90%;
    align-items: center;
  }

  .bio-section {
    padding-left: 0;
    padding-top: 3%;
  }

  .cases-grid {
    justify-content: center;
  }

  .case-hero h4 {
    font-size: 1.2rem;
  }

  .articles {
    width: 80%;
  }

  .case-bio {
    width: 90%;
  }
}
