/* ========================
   Base Styles
======================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

/* ========================
   Header
======================== */
header {
  background-color: #0d47a1;
  color: white;
  padding: 0;
  text-align: center;
}

.header-container {
  padding: 20px;
}

.profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #fff;
  transition: transform 0.3s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}

.profile-photo:hover {
  transform: scale(3) translateY(30%);
}

header h1 {
  margin: 10px 0 5px;
  font-size: 1.8em;
}

header p {
  margin: 0;
  font-size: 1em;
}

/* ========================
   Navigation Bar
======================== */
nav {
  background-color: #1565c0;
  width: 100%;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  display: block;
  padding: 16px 20px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.2s ease;
}

nav a:hover,
nav a:focus {
  background-color: #1565c0;
  transform: scale(1.15);
}

nav a.active {
  background-color: #0d47a1;
}

@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }

  nav a {
    text-align: center;
  }
}

/* ========================
   Main Content
======================== */
main {
  width: 90%;
  max-width: 1200px;
  text-align: justify;
  margin: 20px auto;
  padding: 0 20px;
}

.intro {
  text-align: center;
  margin-bottom: 40px;
}

.intro h2 {
  font-size: 1.5em;
}

.intro p {
  font-size: 1.1em;
}

.content-wrapper {
  max-width: 800px; /* or 60ch if you want character-based line length */
  margin: 0 auto;    /* center the block */
  padding: 0 1rem;   /* some side padding */
  line-height: 1.6;
}

section p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ========================
   Reusable Button
======================== */
.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 10px 20px;
  background-color: #1565c0;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.button:hover {
  background-color: #0d47a1;
  transform: scale(1.1);
}

/* ========================
   Highlight Projects
======================== */
.highlights {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
}

.project {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.project-media-container {
  width: 300px;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, z-index 0.3s;
  position: relative;
  z-index: 1;
}

.project-media:hover {
  transform: scale(2.5)translateX(20%);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-info {
  flex: 1;
  min-width: 250px;
}

.project-info h3 {
  margin-top: 0;
}

.badge {
  background-color: #275ca1f3;
  color: white;
  font-size: 0.65em;
  padding: 3px 6px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}



@media (max-width: 700px) {
  .project {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-media-container {
    width: 100%;
    aspect-ratio: 3 / 2;
  }

  .project-info {
    min-width: unset;
  }
}

/* ========================
   Card Grid (Deprecated)
======================== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.card {
  background-color: white;
  padding: 20px;
  flex: 1 1 250px;
  max-width: 300px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card h3 {
  margin-top: 0;
}

.card p {
  font-size: 0.95em;
}

/* ========================
   Footer
======================== */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  background-color: #eeeeee;
  margin-top: 40px;
}

/* ========================
   Contact
======================== */
.contact-details ul {
  list-style: none;
  padding: 0;
  text-align: center;
  font-size: 1.1em;
}

.contact-details li {
  margin-bottom: 12px;
}


.life-outside {
  background: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
}

.life-outside h2 {
  margin-bottom: 1rem;
  color: #0d47a1;
}

.life-outside p {
  font-size: 1.05em;
  max-width: 700px;
  margin: 0 auto 1rem;
}

.life-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 1.1em;
  color: #444;
}

.hero-image img {
  width: 200px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.life-beyond ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1.1em;
  margin-top: 1rem;
}
.biography {
  position: relative;
  padding-bottom: 4rem; /* Ensure space for buttons */
}

.cta-buttons {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem; /* Space between buttons */
}

.button {
  padding: 0.5rem 1rem;
  background-color: #007BFF; /* Change as needed */
  color: white;
  text-decoration: none;
  border-radius: 5px;
}


/* ========================
   Social Links
======================== */
.social-links {
  margin: 2rem auto;
  max-width: 600px;
  text-align: center;
}

.social-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links a {
  text-decoration: none;
  color: #0077b6;
  font-weight: 500;
}

.social-links a:hover {
  text-decoration: underline;
}

.info-icon {
  font-size: 0.8em;
  cursor: help;
  margin-left: 6px;
}

