html {
  height: 100%;
  overflow-y: auto;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #fdfdfd;
  color: #333;
  overflow-x: hidden;
  height: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
  display: none;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR STYLES */
.navbar {
  background-color: #2c3e50;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  transition: background-color 0.3s;
  border-radius: 40px;
}

.nav-link:hover {
  background-color: #34495e;
}

.nav-link.active {
  background-color: #2c3e50;
}

/* MAIN CONTENT */
main {
  padding: 0px 20px;
  text-align: center;
  flex: 1;
}

/*animated underling for heading*/
#main-heading {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

#main-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #34495e; /* accent color */
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

#main-heading:hover::after {
  width: 100%;
}

.about p {
  margin-bottom: 1.5em;
  line-height: 1.6;
}

/*about me and pictures*/
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/*smooth fade the images*/
.intro-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease-in-out;
    display: block; /* Add this to remove any inline spacing */
    flex-shrink: 0; /* Prevents the image from being compressed */
}

.intro-img-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    flex-shrink: 0;
    border: 8px solid #34495e;
}

.intro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.intro-img.active {
    opacity: 1;
    z-index: 2;
}

.intro-img.fade {
  opacity: 0;
}

.intro-text {
  max-width: 600px;
  text-align: center;
}

@media (min-width: 700px) {
  .intro {
    flex-direction: row;
    text-align: left;
  }

  .intro-text {
    text-align: left;
  }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 10px;
  background-color: #2c3e50;
  color: white;
  width: 100%;
  box-sizing: border-box;
}

/*removes underlines and link olor in footer*/
footer a {
    color: white; /* e.g., #333 for dark gray */
    text-decoration: none; /* optional: removes underline */
}

/*#####################this is for resume page#########################*/

.resume {
  max-width: 900px;
  margin: 0px auto 80px; /* space for navbar and footer */
  padding: 0 40px;
  text-align: left;
}

/* Fixed name + contact header */
.title-header {
  padding: 10px 0 0 0;
  text-align: center;
}

/* Make title sticky ONLY on resume page */
.resume .title-header {
  position: sticky;
  top: 0;
  background-color: #fdfdfd;
  z-index: 5;
  margin-bottom: -10px;
}

.title-header h1 {
  color: #2c3e50;
  margin-bottom: 0;
  font-size: 2em;
}

.title-header .contact {
  color: #555;
  font-size: 0.95rem;
}

/* Section headings */
.resume h2 {
  position: sticky;
  top: 100px;
  color: #34495e;
  background-color: #fdfdfd;
  border-bottom: 2px solid #34495e;
  padding-bottom: 5px;
  padding-top: 5px;
  margin: 0px;
  font-size: 1.3em;
  z-index: 4;
  box-shadow: 0px -10px 10px 5px #fdfdfd;
}

/* Mobile adjustment for sticky headings */
@media (max-width: 768px) {
  .resume h2 {
    top: 100px; /* Adjust this value based on your mobile header height */
    padding-top: 10px;
  }
  
  .title-header h1 {
    font-size: 1.5em; /* Also make the name smaller on mobile if needed */
  }
  
  .title-header .contact {
    font-size: 0.85rem;
  }
}

/* Job entries */
.job {
  margin-bottom: 25px;
}

.job h3 {
  color: #2c3e50;
  margin-bottom: 2px;
}

.job p {
  margin: 3px 0 8px;
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}

/* Lists */
.resume ul {
  margin: 0;
  padding-left: 20px;
}

.resume ul li {
  margin-bottom: 6px;
}

/* Links */
.resume a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: bold;
}

.resume a:hover {
  color: #34495e;
  text-decoration: underline;
}


/*#####################projects page#########################*/
/* Projects page styling */
.projects-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 5vw;
  text-align: left;
}

.photo-gallery, .notes, .woodworking {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 5vw;
  text-align: left;
}

/* Responsive image grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.projects h2 {
  text-align: left;
  position: sticky;
  top: 0px;
  color: #34495e;
  background-color: #fdfdfd;
  border-bottom: 2px solid #34495e;
  padding-bottom: 5px; 
  padding-top: 10px;
  margin-top: 0; 
  margin-bottom: 20px; 
  font-size: 1.3em;
  z-index: 4;
  box-shadow: 0 10px 10px 5px #fdfdfd;
}



