@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in-char {
  opacity: 0;
  animation: fadeIn 0.2s forwards;
}

:root {
  --primary-bg: #333;
  --primary-text: white;
  --secondary-bg: #e7dbdb;
  --accent-color: #ff6600;
  --dark-text: #333;
  --light-text: #666;
  --hover-bg: #f1f1f1;
  --contact-bg: #e2d6d6;
}

html,
body {
  overflow-x: hidden;
}

body {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: sans-serif;
  margin: 0;
  padding-bottom: 15rem;
  /* Added to prevent footer overlap */
}

header {
  background-color: var(--primary-bg);
  color: white;
  padding: 1rem;
}

.services-intro {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;

  .logo-text {
    font-size: 2.5rem;
    font-style: italic;
    font-weight: bold;
    padding-bottom: 0.2rem;
  }

  .mouse-icon {
    background-image: url("images/mouse-image.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 50%;
    height: 100px;
    margin-left: 1%;
    width: 100px;
  }
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  font-size: x-large;
  margin-left: 3.5rem;
}

nav ul li a {
  color: var(--primary-text);
  text-decoration: none;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--secondary-bg);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: var(--dark-text);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: var(--hover-bg);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.hero {
  text-align: center;
  padding: 2rem 1rem;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);

  h1 {
    color: var(--dark-text);
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  p {
    color: var(--dark-text);
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }
}

.business-purpose {
  border-radius: 30px;
  border: 1px solid var(--dark-text);
  text-align: center;
  background-color: var(--secondary-bg);
  transition-duration: 500ms;

  @media (min-width: 800px) {
    padding: 3rem 1rem;
    margin: 5% 25%;

    &:hover {
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      transform: translate(10px, -5px);
    }
  }
}

.purpose-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;

  .purpose-row {
    flex-basis: 45%;

    h3 {
      font-size: 1.75rem;
      color: var(--dark-text);
    }

    p {
      color: var(--light-text);
    }
  }
}

.contact-info {
  padding: 4rem 0.5rem;
  margin: 1rem 50% 1rem 15%;
  background-color: var(--contact-bg);
  border-radius: 10px;
  border: 1px solid var(--dark-text);
}

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-row {
  text-align: center;

  &:first-child {
    border-bottom: 1px solid var(--dark-text);
    padding-bottom: 4rem;
  }

  h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
  }

  p {
    font-size: 1.2rem;
    margin: 0;
    padding-top: 1.5em;
  }

  a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;

    &:hover {
      text-decoration: underline;
    }
  }
}

.solutions {
  padding: 2rem 1rem;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  margin: 2rem 5%;

  .solutions-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;

    .solution-column {
      flex: 1;
      padding: 1rem;

      h3 {
        font-size: 1.75rem;
        color: var(--dark-text);
      }

      p {
        color: var(--light-text);
        font-size: 1.1rem;
        line-height: 1.6;
      }

      ul {
        list-style: none;
        padding: 0;
        margin-top: 3rem;
      }

      li {
        background-color: var(--secondary-bg);
        border-left: 5px solid var(--accent-color);
        margin-bottom: 1rem;
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
      }

      @media (min-width: 800px) {
        li:hover {
          transform: translate(5px, -5px);
          box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }
      }
    }
  }
}

.hamburger-menu {
  background: none;
  border: none;
  color: var(--secondary-bg);
  cursor: pointer;
  display: none;
  font-size: 7rem;
  font-weight: bolder;
  margin-bottom: 1.2em;
  margin-top: 1em;
}

#nav-links {
  margin-bottom: 2em;
}

.photo-gallery {
  padding: 2rem 1rem;
  margin: 1rem;

  .photo-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;

    .photo-item {
      background-color: var(--secondary-bg);
      border-radius: 10px;
      border: 1px solid var(--dark-text);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      padding-top: 3.5rem;
      padding-bottom: 3rem;
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;

      &:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
      }

      h3 {
        font-size: x-large;
        font-weight: 800;
      }

      img {
        width: 75%;
        height: 75%;
        border-radius: 50%;
        object-fit: cover;
        padding-bottom: 0.5rem;
        transition: transform 0.3s ease;

        &:hover {
          transform: scale(1.1);
        }
      }

      hr {
        border-color: var(--dark-text);
        border-style: solid;
        border-width: 1px 0 0 0;
        margin: 1rem 0;
      }
    }
  }
}

/*
  Mobile Styles
*/
@media (max-width: 800px) {
  header {
    padding: 1.25rem 1rem;
  }

  header.nav-open .logo-container {
    visibility: hidden;
  }

  .logo-text {
    font-size: 2rem;
  }

  .footer-column:first-child {
    display: none;
  }

  nav {
    ul {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      background-color: var(--primary-bg);
      z-index: 1000;

      &.show {
        display: flex;
        border: 1px solid var(--contact-bg);
      }

      li {
        margin: 1rem 0;
        text-align: center;
      }
    }
  }

  .hamburger-menu {
    display: block;
    font-size: 3rem;
    margin: 0;
    padding-bottom: 1.5rem;
  }

  .logo-container {
    flex-grow: 1;
  }

  .business-purpose {
    padding: 3rem 1rem;
    margin: 5%;
    border-radius: 0;
  }

  .contact-info {
    margin: 1rem 10%;
  }

  .solutions {
    .solutions-container {
      flex-direction: column;

      .solution-column {
        border-top: 1px solid var(--dark-text);

        ul {
          margin-top: 1.5em;
        }
      }
    }
  }

  .footer-mobile {
    display: block;
    text-align: center;
  }

  .footer-mobile a {
    align-items: center;
    color: var(--primary-text);
    display: flex;
    font-size: 1.2rem;
    gap: 0.5rem;
    justify-content: center;
    text-decoration: none;
  }

  .footer-mobile .phone-icon {
    font-size: 1.5rem;
  }

  /* Hide the footer columns on mobile */
  .footer-column {
    display: none;
  }

  .photo-gallery {
    .photo-row {
      flex-direction: column;

      .photo-item {
        padding: 2.8rem 2.8rem 3rem;
        margin-top: 2.0rem;

        img {
          padding-top: 0.5rem;
        }
      }
    }
  }
}

/* Styles for very small screens */
@media (max-width: 400px) {
  header {
    padding: 0 1.25rem;
    padding-top: 1.33rem;
  }

  .logo-container .mouse-icon {
    display: none;
  }

  .logo-container {

    .logo-text {
      font-size: 1.4rem;
      padding-bottom: 0.5rem;
    }
  }
}

footer {
  background-color: var(--primary-bg);
  color: var(--primary-text);
  padding: 1rem 0.5rem;
  margin-top: 2rem;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  /*
    Desktop Styles for footer
  */
  @media (min-width: 800px) {

    /* Avoid displaying the mobile footer on desktop */
    .footer-mobile {
      display: none;
    }

    .footer-container {
      display: flex;
      justify-content: space-evenly;
      max-width: 1200px;
      margin: 0 auto;

      .footer-column {
        text-align: center;
        flex: 1;
        padding: 0 1rem;

        >.logo-container {
          margin-left: 0;
          border: 1px solid var(--contact-bg);
        }

        h4 {
          font-size: 1.2rem;
          margin-bottom: 1rem;
        }

        ul {
          list-style: none;
          padding: 0;

          li {
            margin-bottom: 0.5rem;
          }
        }

        a {
          color: var(--primary-text);
          text-decoration: none;

          &:hover {
            text-decoration: underline;
          }
        }

        p {
          margin: 0.5rem 0;
        }
      }
    }
  }
}