* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.wrapper {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 3;
  perspective: 10px;
}
.p-footer {
  margin: 4px 0;
  padding: 5px;
}

nav {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 1.25rem 5%;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .name{
  width: 4rem;
  z-index: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  opacity: 1; 
  z-index: 1;
}

.nav-links li {
  margin-left: 2.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 250;
  border-radius: 0.75rem;
  margin-top: 10%;
  padding: 0.31rem 0.44rem;
  transition: 0.2s;
}
.nav-links li a:hover {
  background-color: #ffffff;
  color: rgb(36, 36, 36);
  font-weight: 450;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 1.56rem;
  height: 0.188rem;
  background-color: #fff;
  margin: 0.31rem 0;
  transition: all 0.3s ease;
}
.background-header {
height: 12vh; /* Full viewport height */
width: 100vw; /* Full viewport width */
background-image: url('images/NAV/Charcoal.jpg');
background-size: cover; /* Makes the image cover the whole container */
background-position: center; /* Centers the image */
background-repeat: no-repeat; /* Ensures the image doesn't repeat */
position: relative; /* Keeps it in place within its parent container */
}

.header h1, .header h2 {
  transition: opacity 0.3s ease;
}
.header {
  text-align: center;
  z-index: -1;
}

.header h3{
  font-size: 1.7rem;
  color: #4f4f4f;
  font-weight: 600;
  line-height: normal;
  }

section {
  align-items: center;
  color: #4f4f4f;  
  padding: 2rem;
  line-height: 150%;
  background-color: rgb(253, 247, 233);
  z-index: 2;
}

.youtube-player {
width: 60%;
aspect-ratio: 16 / 9;
margin: 0 auto; 
display: block;
}

.youtube-player iframe {
position: relative;
width: 100%;
height: 100%;
}

.footer{
  padding: 1%;
  color: #4f4f4f;
  opacity: 80%;
  line-height: normal;
}
.footer p{}
.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 5%;
  background-color: rgb(253, 247, 233);
}

.about-image {
  flex: 0 0 40%;
  margin-right: 2rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.about-text {
  flex: 0 0 55%;
}

.about-text h1 {
  font-size: 2rem;
  color: #4f4f4f;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-text h2 {
  font-size: 1.4rem;
  color: #4f4f4f;
  font-weight: 500;
  margin-top: 0.1;
  line-height: 1rem;
}

.about-text h4 {
  font-size: 1.1rem;
  color: #4f4f4f;
  font-weight: 300;
  margin-top: 1.7rem;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.1;
  color: #4f4f4f;
  margin-bottom: 1rem;
}

.about-text ul {
  list-style-type: none;
  padding-left: 0;
}

.about-text li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4f4f4f;
  margin-bottom: 0.5rem;
}
.email-link {
  text-align: center;
  position: relative;
  margin-top: 20px;
  font-size: 1.3rem;
}

.email-link a {
  text-decoration: none;
  color: inherit;
}

.email-link a:hover {
  text-decoration: none;
}

.icon-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.icon-cell {
  width: 30px;
  height: 30px;
  margin: 0 10px;
}

.icon-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.icon-cell a {
  display: block; 
  color: inherit;
  text-decoration: none; 
}
.icon-cell:hover{
  transform: scale(1.05);
  color: rgb(36, 36, 36);
  transition: 0.2s;
}
  @media (max-aspect-ratio: 16/9){
  .home-video{
      width: auto;
      height: 100%;
      transform: translateZ(-10px) scale(2); 
}
  }

@media screen and (max-width: 768px) {
.image-table {
      max-width: 100%;
    }

    .icon-grid {
      scale: 80%;
      margin-top: 10px;
    }

    .email-link {
      margin-top: 10px;
      font-size: 1.1rem;
    }

    .about-text h2 {
      font-size: 1.2rem;
      color: #4f4f4f;
      font-weight: 500;
      margin-top: 0.1;
      line-height: 1.5rem;
    }
    
  .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 60%;
      height: 100vh;
      opacity: 1; 
      background-color: rgb(255, 255, 255);
      flex-direction: column;
      align-items: center;
      justify-content:flex-start;
      transition: right 0.3s ease;
  }

  .nav-links.active {
      right: 0;
  }

  .nav-links li {
      margin: 0.625rem 0;
      padding-top: 1.875rem;
  }

  .nav-links li a {
      text-decoration: none;
      color: #4f4f4f;
      font-size: 1.5rem;
      font-weight: 600;
  }

  .hamburger {
      display: block;
      z-index: 2;
  }

  .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(0.313rem, 0.313rem);
      background-color: #000000;
  }

  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(0.438rem, -0.375rem);
      background-color: #000000;
  }

  .content h1, .content h2, .content a {
      transition: opacity 0.3s ease;
  }



  .youtube-player {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
  }
  .about-content {
    flex-direction: column;
}

.about-image {
    flex: 0 0 100%;
    margin-right: 0;
    margin-bottom: 2rem;
}
.about-text h1 {
  line-height: 1.1;
  margin-bottom: 0rem;
.about-text {
    flex: 0 0 100%;
}
}
@media screen and (max-width: 480px) {  
  .image-gallery {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }
}