/* --- Global Styles & Variables --- */
:root {
  --primary-color: #1a2a4c; /* Deep Navy Blue */
  --accent-color: #3498db; /* Bright Blue */
  --light-gray: #f4f7f6;
  --dark-text: #333;
  --body-font: 'Inter', sans-serif;
  --heading-font: 'Poppins', sans-serif;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--dark-text);
  background-color: var(--light-gray);
  scroll-behavior: smooth;
}

/* --- Header and Navigation --- */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Updated rule for the navigation menu */
nav ul.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

nav a {
  display: block;
  padding: 20px 25px;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: calc(100% - 20px);
}

/* --- Main Content and Sections --- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

section.section-card {
  margin-bottom: 3rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

section h1 {
  font-family: var(--heading-font);
  font-size: 3em;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

section h2 {
  font-family: var(--heading-font);
  font-size: 2em;
  color: var(--primary-color);
}

section h3 {
  font-family: var(--heading-font);
  font-size: 1.5em;
  color: #555;
}

.project-descriptions, .descriptions {
  list-style-type: none;
  padding: 0;
}

/* --- Profile Section --- */
.intro {
  text-align: center;
  padding-top: 4rem;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.pfp {
  border-radius: 50%;
  border: 5px solid var(--accent-color);
  max-width: 150px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.pfp:hover {
  transform: scale(1.05) rotate(5deg);
}

.descriptionMain {
  max-width: 700px;
  font-size: 1.1em;
  color: #555;
}

/* --- Projects Gallery --- */
.projects-gallery h2 {
  font-family: var(--heading-font);
  font-size: 2em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.projects-container a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 1;
  transform: none;
}

.projects-container a:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.projects-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

/* --- Resume Download Section --- */
.resume-download {
  text-align: center;
}

.download-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  background-color: var(--accent-color);
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .profile {
    flex-direction: column;
    text-align: center;
  }
  .descriptionMain {
    text-align: center;
  }
}

@media (min-width: 768px) {
  .profile {
    flex-direction: row;
    justify-content: center;
  }
  .descriptionMain {
    text-align: left;
  }
}

/* New classes from resume.html */
.section-card {
    margin-bottom: 3rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-title {
    text-align: center;
}

.job-entry {
    margin-bottom: 2rem;
}

.project-entry {
    margin-bottom: 2rem;
}

.cert-entry {
    margin-bottom: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left; /* Align text to the left */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 1rem;
}

.project-info h3 {
    margin: 0 0 0.5rem; /* Adjust margin for spacing */
    font-size: 1.25em;
    color: var(--primary-color);
}

.project-info p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

/* Ensure the link inside the card doesn't show an underline on hover */
.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.projects-container a:hover {
    /* Remove the old hover effect on the link itself */
    transform: none;
    box-shadow: none;
}