/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Lora&family=Merriweather:wght@400;700&display=swap');


/* Base Styles */
body {
  margin: 0;
  font-family: 'Lora', serif; /* Default font for all body text */
  background-color: #fdfbf9;
  color: #333;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 900px;
  width: 100%;
  padding: 2rem;
  text-align: center; /* Center all content by default */
}

/* Centered content helper */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Page title */
.page-title {
  font-family: 'Merriweather', serif; /* Merriweather for titles */
  font-weight: 700;
  font-size: 2rem; /* Adjust as needed */
  color: #800020;
  margin-bottom: 1.5rem;
  text-align: center; /* Center on start page */
  width: 100%;
}

/* Headings (h1-h6) use Merriweather */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: #800020;
  margin: 0 0 0.5rem 0;
}


/* Navigation Buttons */
.page-buttons {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  width: 100%;
  border-bottom: 2px solid #800020; /* Horizontal line */
  padding-bottom: 1rem;             /* Space between buttons and line */
}

.btn {
  background-color: #fdfbf9;
  color: #800020;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'Lora', serif; /* Optional: match headings */
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  flex: 1 1 150px;
  margin: 0.5rem;
  text-align: center;
}

.btn:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: bold;
}

.btn.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: bold;
}

.btn.active:hover {
  transform: none;
}

/* Profile Section */
.profile-section {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.profile-pic {
  width: 260px;
  height: 340px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.3s;
}

.profile-text {
  max-width: 500px;
  text-align: left;
}

.profile-text p {
  font-size: 1.1rem;
  color: #555;
  margin: 0;
  font-family: 'Lora', serif; /* Ensure body text uses Lora */
}

/* Responsive: Stack picture and text on small screens */
@media (max-width: 600px) {
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-text {
    text-align: center;
  }
}

/* Experience Page*/
.experience-section {
  width: 100%;
  text-align: left;
  margin-bottom: 3rem;
}

/* Timeline vertical line */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 2px solid #800020;
}

/* Individual experience entries */
.experience-item {
  position: relative;
  padding: 1rem 0 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

/* Experience content (left side) */
.experience-content h3 {
  margin: 0;
  font-family: 'Merriweather', serif;
  color: #800020;

}

.experience-content h3 a {
  text-decoration: none !important;
  color: inherit;
}

.experience-content h3 a:hover {
  text-decoration: none;        /* optional: underline on hover */
}

.experience-content p a:hover {
  text-decoration: none;        /* optional: underline on hover */
}

.experience-content p {
  margin: 0.25rem 0;
  font-family: 'Lora', serif;
  color: #333;
}

/* Timeframe (right side) */
.timeframe {
  font-style: italic;
  color: #666;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
  font-family: 'Lora', serif;
}

/* Responsive layout */
@media (max-width: 700px) {
  .experience-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeframe {
    margin-top: 0.3rem;
    text-align: left;
  }
}


/* Projects Cards */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  width: 100%;
  justify-items: center;
}

.project-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 300px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-card h3 {
  margin-top: 0;
  font-family: 'Merriweather', serif; /* Headings in cards */
  color: #800020;
}

.project-card p {
  color: #555;
  font-family: 'Lora', serif; /* Body text in cards */
}

/* Contact Links */
.contact {
  display: flex;
  flex-direction: column;     /* Stack links vertically */
  align-items: flex-start;    /* Left-align links */
  justify-content: flex-start;
  width: 100%;
  text-align: left;           /* Force text left-alignment */
  margin-top: 2rem;
  gap: 0.7rem;                /* Space between links */
  padding-left: 7rem; /* Move links slightly to the right */
}

.contact a {
  font-weight: bold;
  color: #800020;
  text-decoration: none;
  transition: color 0.3s;
  font-family: 'Merriweather', serif; /* Optional: match headings/buttons */
}

.contact a:hover {
  color: #b22222;
}

@media (max-width: 600px) {
  .contact {
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }
}

/* Footer */
footer {
  margin-top: 8rem;
  color: #888;
  font-style: italic;
  font-family: 'Lora', serif; /* Footer uses Lora */
}

/* Responsive Adjustments */
@media (max-width: 500px) {
  .page-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Links in <p> */
p a {
  color: inherit;            /* Inherit text color from parent */
  text-decoration: none;     /* Remove underline */
  font-weight: normal;       /* Optional: match normal text weight */
  font-style: italic;
}

p a:hover {
  text-decoration: underline; /* Optional: show underline on hover */
  color: inherit;             /* Keep color same on hover */
}
