/* Font Imports */
@font-face {
  font-family: "Daydream";
  src: url(../assets/fonts/Daydream.ttf);
}
@font-face {
  font-family: "vhs";
  src: url(../assets/fonts/easvhs.ttf);
}
@font-face {
  font-family: "W95";
  src: url(../assets/fonts/W95FA.otf);
}

/* General Styles */
body {
  font-family: W95, Geneva, Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
  overflow-x: hidden;
}

/* Lock Scroll when modal open */
body.modal-open {
  overflow: hidden;
}
strong {
  font-weight: bold;
  font-family: VHS;
}

/* Navigation Bar */
.navBar {
  a {
    text-decoration: none;
  }
  nav {
    width: 100%;
    background-color: #224422;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  ul {
    list-style: none;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .navLinks {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  li {
    padding: 0px 20px;
  }
  .title {
    display: flex;
    max-width: 40%;
  }
  .logoHolder {
    padding: 5px;
    margin-left: 10px;
    margin-top: 10px;
    a,
    p {
      display: flex;
      font-family: W95;
    }
    p {
      margin-top: 18px;
    }
   
  }
  .Logo {
    height: 50px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  .titleName {
    color: white;
    font-size: 25px;
    min-width: fit-content;
    padding-left: 10px;
    padding-top: -20px;
    text-decoration: none;
    align-items: center;
    font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
      "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  }
  ul a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
    font-family: VHS;
  }
  ul a:hover {
    text-decoration: underline;
    color: lightgreen;
  }

  /* Hide mobile nav by default */
  .mobileNav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 75px;
    right: -50px;
    background: #224422;
    width: 200px;
    border-radius: 0px 0px 0px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 1000;
    opacity: 0;
    transition: right 0.4s ease-out, opacity 0.3s ease-out;
    a {
      font-size: 20px;
      padding-bottom: 30px;
      margin-top: -10px;
    }
  }

  /* Show mobile nav when active */
  .mobileNav.active {
    opacity: 1;
    right: 0px;
  }

  /* Hamburger button styling */
  .hamburger-menu {
    display: none;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    transition: color 0.3s ease;
  }
  .hamburger-menu:hover {
    color: lightgreen;
  }

  /* Show hamburger button when width <= 800px */
  @media (max-width: 800px) {
    .hamburger-menu {
      display: block;
    }

    /* Hide desktop nav when mobile is active */
    .navLinks {
      display: none;
    }
  }
}

/* Hero Section */
.hero {
  background-color: #2e5a2e;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  i {
    padding: 20px;
  }
  svg {
    padding: 0px 20px;
    font-size: 25px;
    margin-bottom: -5px;
  }
  .btn {
    background-color: #ffffff;
    color: #224422;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
  }
}

/* About Section */
.about-container {
  display: flex;
  width: 90%;
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  .about-text {
    h2 {
      font-family: Daydream;
    }
    p {
      font-family: W95;
      font-size: 25px;
    }
  }
  .about-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    margin-top: 20px;
  }

  .about-text {
    margin-left: 2rem;
  }
}

/* Portfolio Section */
.portfolio {
  text-align: center;
  padding: 4rem 2rem;

  .header {
    font-size: 50px;
    margin-top: -40px;
    margin-bottom: 25px;
  }

  .portfolio-item {
    display: flex;
  }

  .header {
    font-family: VHS;
    font-size: 50px;
    margin-top: -30px;
    margin-bottom: 25px;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, auto));
    gap: 2rem;
    max-width: 1200px; /* Ensures the grid doesn't stretch too far */
    justify-content: center; /* Centers the uneven row */
    margin: 0 auto;
  }

  .portfolio-card-link {
    display: block; /* Ensures the <a> tag takes up the full width of a grid cell */
    width: 100%;  /* Makes the <a> tag match the grid column width */
    text-decoration: none;
    color: inherit;
    flex: 1;
  }

  .portfolio-card {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    filter: grayscale(60%);
    flex: 1;
    min-height: 300px;
    img {
      border-radius: 20px;
    }
    .btn {
      background-color: darkgreen;
      padding: 10px;
      border-radius: 10px;
      margin-top: 25px;
      text-decoration: none;
      color: white;
      transition: all 0.3s ease;
      margin: 10px 20px;
      margin: 20px;
      &:hover {
        background-color: #5fb75f;
        cursor: pointer;
      }
    }
    .gitHubBtn {
      background-color: #6e5494;
      &:hover {
        background-color: #8b6fa4;
      }
    }
    .thumbnailImg {
      height: 200px;
    }
    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(50, 50, 50, 0.6); /* Translucent gray overlay */
      z-index: 1;
    }
    &:hover {
      transform: translateY(-5px);
      filter: none;
      cursor: grab;
    }
    &:active {
      cursor: grabbing;
    }
    h3,
    p,
    a,
    .thumbnailImg, .btn {
      position: relative;
      z-index: 2;
    }
  }
  /* This Site Tagline */
  .thisSite {
    margin: 0 auto;
    margin-top: 50px;
    max-width: 60%;
    min-width: 400px;

    font-family: Daydream;
    font-size: 25px;
    color: darkgray;
    transition: all 0.3s ease;
    &:hover {
      color: darkgreen;
    }
  }
}

/* Project Modal Styles */
.projectModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 30, 30, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.projectModal.visible {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modalContent {
  background: #e9f5ec; /* Soft green background */
  color: #224422;
  border-radius: 15px;
  padding: 2.5rem;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  text-align: center;
  animation: fadeInUp 0.3s ease;
  max-height: 85%;
  overflow-y: auto;
  margin: 2rem auto;
}

.modalClose {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  font-weight: bold;
  color: #224422;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modalClose:hover {
  color: #5fb75f;
}

.modalImage {
  max-width: 80%;
  max-height: 400px;
  border-radius: 12px;
  margin: 1.5rem 0;
  object-fit: cover;
}

.modalTitle {
  font-family: "Daydream", sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #224422;
}

.modalDescription {
  font-family: "W95", sans-serif;
  font-size: 1.2rem;
  margin: 1rem auto 2rem;
  line-height: 1.6;
  color: #224422;
  max-width: 90%;
}

.modalButtons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.modalButtons a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #224422;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: "W95", sans-serif;
}

.modalButtons a:hover {
  background-color: #5fb75f;
  transform: translateY(-3px);
}

.modalButtons .gitHubBtn {
  background-color: #6e5494;
}

.modalButtons .gitHubBtn:hover {
  background-color: #8b6fa4;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projectModal::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Contact Section */
.contact {
  background-color: #224422;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
  font-size: 20px;
  a {
    color: white;
    transition: all 0.3s ease;
    font-size: 25px;
    font-weight: lighter;
  }
  a:hover {
    color: lightgreen;
  }
  h1 {
    font-family: Daydream;
    font-size: 30px;
  }
}

/* Footer */
.footer {
  background-color: #1a331a;
  color: white;
  text-align: center;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  /* width: 100%; */
  h3 {
    font-family: Daydream;
    font-size: 20px;
    margin-bottom: 20px;
  }
  .quickLinks {
    display: flex;
    margin: 0 auto;
    justify-content: space-evenly;
    align-items: center;

    list-style-type: none;
    margin-bottom: 40px;
    /* margin-top: 50px; */
    ul {
      text-decoration: none;
      list-style-type: none;
      margin-left: -50px;
      display: flex;
      justify-content: space-evenly;
      width: 80%;
    }
    a {
      color: white;
      text-decoration: none;
      transition: all 0.3s ease;
      font-size: 20px;
      font-family: W95;
      &:hover {
        color: lightgreen;
      }
    }
    i {
      margin-left: 5px;
    }
  }
  .footerTagline {
    font-family: W95;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* About Me Page */
.aboutMe {
  width: 80%;
  min-height: 67vh;
  margin: 0 auto;
  .bio {
    display: flex;
  }
  .evImg {
    width: 200px;
    height: 200px;
    border-radius: 25px;
  }
  .gallery {
    margin-top: 100px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 50px;
    img {
      width: 200px;
      object-fit: cover;
      height: 200px;
    }
  }
}

/* Typing Logo Effect */
.typing-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(2, start) infinite;
  color: white; /* Forest green to match your theme */
  font-weight: bold;
}

@keyframes blink {
  0% {
    visibility: visible;
  }
  50% {
    visibility: hidden;
  }
  100% {
    visibility: visible;
  }
}


/* Media Queries for smaller screens */
@media (max-width: 768px) {
  .navBar nav {
    flex-direction: column;
  }
  .navLinks {
    justify-content: center;
  }
  .logoHolder {
    justify-content: center;
  }
}
