/* full page */
  
body {
  font-family: "League Spartan";
  font-display: block; /* Gives the font a short block period and no swap period */
  color: #333;
  background: #f9f9f9;
  background-size: 125%;
}

.section-anchor {
  display: block;
  height: 20px; /* navbar height */
  margin-top: -20px; /* navbar height, negative value */
  visibility: hidden;
}

.content-container {
  position: relative;
  background-color: transparent;
}

/* navbar */

#navbar-container {
  background-color: #f9f9f9;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-section {
  display: flex;
  flex-wrap: wrap;
  background-color: #f9f9f9;
  margin-top: 20px;
  align-items: center;
  height: 100px;
}

.header-box {
  flex-grow: 1;
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  height: 100%;
  margin-bottom: 40px;
  margin-left: 5.5%;
  margin-right: 5.5%;
  position: relative; /* Added for positioning context */
}

.header-box a {
  color:inherit;
  text-decoration: none;
  text-align: center;
}

.logo {
  width: 65px;
  height: 65px;
  min-height: 50px;
  min-width: 50px;
  padding: 5px 20px 5px 10px;
  text-align: center;
  z-index: 2; /* Ensure logo stays above other elements */
}

.logo img {
  width: 63px;
  height: 63px;
  display: block;
  text-align: center;
}

.navbar-links {
  align-content: flex-end;
}

/* Keep the header text container to stay in place */
.header-box .text-container:first-of-type {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap; /* Allow wrapping */
}

/* Horizontal rule for mobile menu */
.mobile-nav-links::after {
  content: '';
  display: block;
  height: 1px;
  background-color: #ddd;
  margin-top: 10px;
  width: 100%;
  margin-top: auto;
}


/* about section */

.about-section {
  background-color: #f9f9f9;
  margin: 70px 5% 100px 5%;
  display: flex;
  flex-wrap: wrap;
}

span.email b {
  display: none;
}

/* link buttons */

.link-button-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0px 6% 0px 6%;
}

.link-button {
  width: 33%;
  height: 75px;
  padding: 5px 10px 5px 10px;
  text-align: center;
  filter: drop-shadow(0px 2px 5px rgba(0,0,0,.15));
  /*filter: drop-shadow(0px 2px 5px rgba(0,0,0,.35));*/
  /*border: 2.5px solid #333;*/
  color: inherit;
  /*text-decoration: none;*/
  background-color:#f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}

.link-button-left {
  margin-right: 15px;
}

.link-button-center {
  margin: 0px 15px 0px 15px;
}

.link-button-right {
  margin-left: 15px;
}

.link-button:hover {
  filter: drop-shadow(0px 2px 5px rgba(0,0,0,.3));
  transform: scale(1.03);
}

.inline-icon-button {
  display:inline-block;
  transform: translate(0, -.05em); /*adjust as needed for different fonts*/
  width: 1rem;
  height: 1rem;
  margin-left: 7px;
}

.inline-icon-button-dl {
  display:inline-block;
  transform: translate(0, -.05em); /*adjust as needed for different fonts*/
  width: 1.15rem;
  height: 1.15rem;
  margin-left: 7px;
}

/* content exceptions */

.inline-icon-project {
  display:inline-block;
  transform: translate(0, 0.075em); /*adjust as needed for different fonts*/
  width: 1rem;
  height: 1rem;
  margin-left: 7px;
}

/*projects and work */

.wrapper {
  display:flex;
}

.section { /*also see .nav-section and .about-section */
  background-color: #f9f9f9;
  margin: 100px 5% 100px 5%;
  display: flex;
  flex-wrap: wrap;
}

.section-heading-text{
  padding-bottom: 20px;
}

.project-wrapper {
  display:flex;
  margin:0px;
  align-items: center;
  display: flex;
}

/* Use aspect ratio approach for all screen sizes */
.project-image {
  width: 300px;
  height: 0;
  padding-bottom: 300px; /* Creates square aspect ratio */
  position: relative;
  margin: 20px;
  align-content: center;
  transition: all 0.2s ease-in-out;
  filter: drop-shadow(0px 2px 5px rgba(0,0,0,.15));
}

.project-image:hover {
  filter: drop-shadow(0px 2px 5px rgba(0,0,0,.3));
  transform: scale(1.02);
}

.project-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-container {
  margin: 20px;
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.5;
  font-style: normal;
  font-variation-settings:
    "HEXP" 0;
  }

  .navbar-text-link {
    margin-left: auto;
    padding-left: 20px;
  }

h1 {
  font-size: 1.75rem;
  margin:0px;
  padding:0px;
  font-weight: 400;
}

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

.link-button-text {
  font-size: 1.6rem;
  font-weight: 400;
}

p {
  font-size: 1.25rem;
  font-weight: 400;
}

a {
  color:inherit;
}

.line {
  padding: 40px;
}

/* skills */

.skill-category {
padding-top:20px;
}

.skill-category-container {
padding-bottom:20px;
}

/* footer */

.footer {
  align-content: center;
  text-align: center;
  color: #333;
  margin: 100px 5% 100px 5%;
}

.footer p {
  font-weight: 400;
}

.center-logo {
  width: 78px;
  height: 78px;
  margin: 20px;
  filter: drop-shadow(0px 2px 5px rgba(0,0,0,.25));
}

.center-logo img {
  max-width: 100%;
  max-height: 100%;
  padding-top:2.5px;
}

/* Default state - Hamburger hidden on larger screens */
.hamburger-menu {
  display: none; /* Hidden by default on large screens */
}

/* Mobile navigation links hidden by default, shown on screens max 900px */
.mobile-nav-links {
  display: none;
  position: absolute;
  top: 100%; /* Position below the header */
  left: 0;
  width: 100%;
  background-color: #f9f9f9;
  z-index: 5;
  /* Removed box-shadow as requested */
  /*padding-bottom: 10px;  Space for the horizontal rule */
}


/* Media queries */
/* Screen under 1100px*/
@media (max-width: 1100px) {

  .navbar-text-link {
    margin-left: auto;
    padding-left: 10px;
  }

  h1 {
    font-size: 1.5rem;
  }
  
  .text-container p {
    font-size: 1.1rem;
  }

  .logo {
    width: 55px;
    height: 55px;
    min-height: 50px;
    min-width: 50px;
    padding: 5px 20px 5px 10px;
    text-align: center;
    z-index: 2; /* Ensure logo stays above other elements */
  }
  
  .logo img {
    width: 53px;
    height: 53px;
    display: block;
    text-align: center;
  }

  .about-section {
    background-color: #f9f9f9;
    margin: 40px 5% 70px 5%;
    display: flex;
    flex-wrap: wrap;
  }

  .section {
    margin: 40px 5% 40px 5%;
  }

  .section-anchor {
    height: 50px; /* navbar height */
    margin-top: -50px; /* navbar height, negative value */
  }

}

/* Screen 1000px-700px: Reduce project image size */
@media (max-width: 1000px) {
  .project-image {
    width: 270px;
    padding-bottom: 270px;
  }
}

/* Start to show hamburger menu */
@media (max-width: 900px) {
  
  .about-section {
    margin: 30px 5% 50px 5%;
  }

  .project-image {
    width: 240px;
    padding-bottom: 240px;
  }
  
  .link-button {
    font-size: 1.4rem;
  }

  /* Hide desktop navigation links */
  .header-box .text-container.navbar-text-link {
    display: none;
  }

  .header-box {
    height: auto;
    padding: 15px 0;
    min-height: 80px; /* Slightly reduced to save space */
  }

  /* Show hamburger menu */
  .hamburger-menu {
    display: block;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2; /* Ensure it stays above other elements */
  }

  .hamburger-menu img {
    width: 30px;
    height: 30px;
    padding-top: 5px;
  }

  /* Mobile navigation styling */
  .mobile-menu-expanded .header-box {
    flex-wrap: wrap;
    height: auto;
  }

  /* Keep the mobile-nav-links outside the flow */
  .mobile-menu-expanded .mobile-nav-links {
    display: block;
  }

  /* Mobile nav links styling */
  .mobile-nav-links a {
    display: block;
    padding-bottom: 20px;
    margin-left: 105px; /* Match alignment with "Kate Sweeney:" */
    font-size: 1.25rem;
    text-decoration: none;
    color: #333;
    text-align: left;
  }

}

@media (max-width: 800px) {
  .project-image {
    width: 210px;
    padding-bottom: 210px;
  }
  
  .link-button-container {
    margin: 0px 4% 0px 4%;
  }
}

@media (max-width: 700px) {

  .header-box {
    min-height: 50px; /* Slightly reduced to save space */
  }

  .about-section {
    margin: 20px 5% 50px 5%;
  }

  .section-heading-text{
    padding-bottom: 20px;
  }

  .wrapper {
    flex-direction: column;
  }

  .project-image-container  {
    margin: 20px;
  }

  .project-image {
    width: 100%;
    padding-bottom: 100%;
    margin: 0px;
  }

  .line {
    padding: 40px 40px 50px 40px;
  }
  
  .link-button-container {
    flex-direction: column;
    gap: 15px;
  }
  
  .link-button {
    width: 80%;
    margin: 0 auto !important;
  }
  
  .link-button-left,
  .link-button-center,
  .link-button-right {
    margin: 5px 0;
  }
  
  h2 {
    font-size: 1.3rem;
  }

  .section-anchor {
    height: 50px; /* navbar height */
    margin-top: -50px; /* navbar height, negative value */
  }
}

@media (max-width: 550px) {
  .logo {
    padding: 5px 10px 5px 10px;
  }

  .mobile-nav-links a {
    margin-left: 95px; /* Match alignment with "Kate Sweeney:" */
  }

}

@media (max-width: 500px) {
  
  .header-box {
    margin: 0px 4% 10px 4%;
    min-height: 50px; /* Slightly reduced to save space */
  }
  
  .line {
    padding: 30px 40px 50px 40px;
  }

  .logo {
    width: 40px;
    height: 40px;
   /* padding: 5px 10px 5px 5px;*/
    padding: 5px 20px 5px 0px;
  }

  .hamburger-menu {
    right: 0px;
  }

  .hamburger-menu img {
    width: 27px;
    height: 27px;
  }

  .mobile-nav-links a {
    margin-left: 80px; /* Match alignment with "Kate Sweeney:" */
  }

  .project-image-container  {
    margin: 12px;
    padding-bottom:15px;
  }

  .text-container {
    margin: 10px;
  }
  
  .section-anchor {
    height: 50px; /* navbar height */
    margin-top: -50px; /* navbar height, negative value */
  }
}

@media (max-width: 480px) {

  .title-split {
    display: block;
  }

  .mobile-nav-links a {
    padding: 10px 0;
  }


  .header-box {
    margin: 0px 4% 10px 4%;
    padding: 0;
    min-height: 40px; /* Slightly reduced to save space */
  }

  .logo {
    padding: 5px 20px 5px 0px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .hamburger-menu img {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 258px) {

  .mobile-nav-links a {
    margin-left: 10px; /* Match alignment with "Kate Sweeney:" */
  }

}