/* General Reset */
body {
  padding: 0 15px;
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #F0FAF7;
}

/* Navigation Bar Styling */
nav {
  background-color: #0c4c30; /* Dark green background for navbar */
  color: white;
  padding: 15px 0; /* Padding around the links */
  position: sticky;
  top: 0; /* Makes the navbar stick to the top */
  width: 100%;
  z-index: 1000; /* Ensures navbar is always on top */
}

nav ul {
  list-style: none; /* Remove bullet points */
  margin: 0;
  padding: 0;
  display: flex; /* Align items in a row */
  justify-content: center; /* Center the links */
}

nav ul li {
  margin: 0 25px; /* Add spacing between links */
}

nav ul li a {
  color: white; /* White text for links */
  text-decoration: none; /* Remove underline */
  font-weight: bold;
  font-size: 20px;
}

nav ul li a:hover {
  text-decoration: underline; /* Underline on hover */
}



/* Home Page Header Styling */
.home-header {
  display: flex;
  align-items: flex-start; /* Align items to the top */
  justify-content: flex-start; /* Left-align the items */
  margin-top: 30px; /* Adjust the top margin */
}

/* Headshot Styling */
.headshot {
  margin-right: 30px; /* Space between the profile image and the text */
  margin-bottom: 20px;
}

.headshot img {
  width: 100%; /* Make image responsive */
  max-width: 250px; /* Limit the maximum width of the image */
  height: auto; /* Adjust height to maintain aspect ratio */
  border-radius: 10px; /* Optional: give a slight rounded corner to the headshot */
  object-fit: cover; /* Ensure the image fits well within the square */
}





/* Text and Links Block Styling */
.text-and-links {
  display: flex;
  flex-direction: column; /* Stack the text and links vertically */
  justify-content: flex-start; /* Align the content to the top */
}

/* Links Styling */
.links ul {
  list-style: none; /* Remove bullet points */
  padding: 0;
  display: flex; /* Align links in a row */
  justify-content: start; /* Left-align the links */
  margin: 0;
}

.links ul li {
  margin: 5px 15px; /* Add space between the links */
}

.links ul li a {
  color: #000; /* Black text for links */
  text-decoration: none; /* Remove underline */
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  background-color: #add8e6; /* Light blue background */
}

.links ul li a:hover {
  text-decoration: underline; /* Underline on hover */
}



/* Styling for the Resume Page */
h1 {
  text-align: center;
  margin-bottom: 30px;
}

/* Container for both resumes */
.resume-container {
  display: flex;
  justify-content: center; /* Center the items horizontally */
  gap: 40px; /* Add spacing between the two resumes */
  align-items: flex-start; /* Align the items to the top */
  margin-bottom: 40px;
}

/* Each resume item styling */
.resume-item {
  text-align: center;
  max-width: 300px;
}

/* Resume title styling */
.resume-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* Styling for the resume images */
.resume-image {
  width: 100%;
  border: 1px solid black;
  max-width: 300px;
  height: auto;
  border-radius: 8px; /* Rounded corners for the image */
}

/* Hover effect for images ? */
.resume-image:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}


/* Styling for Contact Page Links */
.contact-link {
  display: inline-block;
  background-color: #add8e6; /* Light blue background */
  padding: 5px; /* Padding around the text */
  border-radius: 5px; /* Rounded corners */
  text-decoration: none; /* Remove underline */
  color: black; /* Text color */
}

.contact-link:hover {
  text-decoration: underline; /* Underline on hover */
}

.contact-link:focus {
  outline: none; /* Remove focus outline if you want to customize it later */
}

.github-link a {
  color: #000; /* Ensures the link text is black */
  text-decoration: none; /* Removes the underline */
  font-weight: bold;
  padding: 5px 10px; /* Smaller padding to make the blue box tighter around the text */
  border-radius: 8px; /* Rounded corners */
  background-color: #add8e6; /* Light blue background */
}

.github-link a:hover {
  text-decoration: underline; /* Underline on hover */
}


/* Styling for the project images */
.project-image {
  width: 100%;
  border: 1px solid black;
  max-width: 500px; /* Adjust the max-width as per your preference */
  height: auto;
  border-radius: 8px; /* Rounded corners for the image */
}

/* Hover effect for project images */
.project-image:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease-in-out;
}



/* --- HOMEPAGE STYLING (place near the end of style.css) --- */
.homepage-content {
  text-align: center;
  margin: 40px auto 100px auto; /* top, auto left/right, bottom space */
  padding: 0 12px; /* small page padding */
}

/* Controlled square headshot */
.homepage-headshot {
  width: 180px;       /* exact square size on desktop */
  height: 200px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin: 0 auto 22px auto;
}

/* Make sure no older selector overrides this — increase specificity if needed */
img.homepage-headshot {
  width: 180px;
  height: 200px;
  object-fit: cover;
}

/* Intro text wider so it isn't too narrow on larger screens */
.intro-text {
  max-width: 980px;   /* wider: less narrow feeling */
  margin: 0 auto 36px auto;
  text-align: left;
  line-height: 1.65;
  font-size: 18px;
}

/* Center text on small screens and reduce size slightly */
@media (max-width: 900px) {
  .intro-text {
    text-align: center;
    font-size: 16px;
    padding: 0 12px;
  }
}

/* scale down headshot for small screens */
@media (max-width: 768px) {
  .homepage-headshot, img.homepage-headshot {
    width: 140px;
    height: 140px;
  }
}

/* The green skill + education boxes */
.green-box {
  background-color: #94C79D;
  padding: 12px 18px;
  max-width: 880px;
  margin: 0 auto 22px auto;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}



/* --- PROJECTS PAGE GRID --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.project-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 20px;
  transition: transform 0.2s ease-in-out;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-thumb {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: transform 0.2s ease-in-out;
}

.project-thumb:hover {
  transform: scale(1.05);
}

.project-card h3 {
  font-size: 20px;
  margin-top: 15px;
  color: #0c4c30;
}

.project-card p {
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}
