/* === GENERAL PAGE STYLES === */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: 'Georgia', serif;
  background-color: #fff8f0;
  color: #1e3d59;
}

body {
  font-size: 20px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #d95d39;
  text-align: left;
}

p {
  font-size: 20px;
}

/* === NAVIGATION BAR === */

nav {
  background-color: #d95d39;
  padding: 10px;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  padding: 0;
  font-size: 20px;
  font-family: 'Georgia', serif;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: #fff8f0;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* === HEADER SECTION === */

header {
  text-align: center;
  padding: 50px 20px;
  background-color: #f5f0e1;
}

/* === PUBLICATIONS SECTION === */

.publications-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.publications-section ul {
  flex: 1;
  font-size: 20px;
  font-family: 'Georgia', serif;
  padding-left: 40px;
}

.publications-section li {
  margin-bottom: 12px;
}

.publications-section img {
  width: 750px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === SCHOLAR LINK BUTTON === */

a.scholar-link {
  display: inline-block;
  padding: 10px 16px;
  background-color: #1e3d59;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
  font-weight: bold;
}

a.scholar-link:hover {
  background-color: #d95d39;
}

/* === CONTACT SECTION === */

.contact-box {
  margin-top: auto;
  margin-top: 50px;
  background-color: #f5f0e1;
  padding: 30px;
  text-align: center;
  border-top: 3px solid #d95d39;
  font-family: Arial, sans-serif;
}

.contact-box h3 {
  color: #1e3d59;
  margin-bottom: 10px;
  font-size: 24px;
}

.contact-box p {
  color: #1e3d59;
  margin: 8px 0;
}

.contact-box a {
  color: #d95d39;
  text-decoration: none;
  font-weight: bold;
}

.contact-box a:hover {
  text-decoration: underline;
}

/* === HOBBIES SECTION === */

.hobby-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
  background-color: #f5f0e1;
}

.card {
  width: 260px;
  text-align: center;
  margin-bottom: 40px;
}

.card img {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 15px;
  border: 5px solid #fff8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.card img:hover {
  transform: scale(1.25);
}

.card h3 {
  margin-top: 15px;
  color: #1e3d59;
  font-size: 20px;
}

.card a {
  text-decoration: none;
  color: inherit;
}

/* === DETAILS SECTION === */

.details-section {
  padding: 40px 20px;
  background-color: #fff;
  color: #333;
}

.details-section h3 {
  color: #d95d39;
}

/* === GALLERY SECTION === */

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.gallery img {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* === BOOK SECTION === */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.book-card {
  background: #f5f0e1;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.book-card img {
  width: 150px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* === MOVIE SECTION === */

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.movie-card {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  background: #f5f0e1;
  padding: 20px;
  border-radius: 10px;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.movie-card img {
  width: 150px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.movie-text {
  flex: 1;
}

.movie-text h4 {
  margin: 0 0 10px;
  color: #1e3d59;
}

.movie-text p {
  font-size: 1.05em;
  color: #333;
  margin: 0 0 8px;
}

/* === MAIN CONTENT === */

main {
  padding: 20px;
}

/* === PROFILE PHOTO === */

.profile-photo {
  width: 200px;
  height: auto;
  border-radius: 50%;
  display: block;
  margin: 20px auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-toggle {
  background-color: #d95d39;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 10px;
}

.project-toggle:hover {
  background-color: #b7442b;
}

.project-content {
  padding: 10px 20px;
  background-color: #f5f0e1;
  border-left: 4px solid #d95d39;
  margin-top: 10px;
  border-radius: 4px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.project-item {
  background-color: #fff8f0;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.project-item img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.project-item p {
  font-size: 1em;
  color: #1e3d59;
}

.project-toggle {
  background-color: #d95d39;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  width: 100%;
  text-align: left;
  cursor: pointer;   
  border-radius: 8px;
  margin-top: 10px;
}

.project-toggle:hover {     
  background-color: #b7442b;  
}

.project-content {
  padding: 10px 20px;
  background-color: #f5f0e1;
  border-left: 4px solid #d95d39;
  margin-top: 10px;  
  border-radius: 4px;
}
  

.text-image-pair {
  display: flex;  
  flex-wrap: wrap;
  margin: 20px 0; 
  gap: 20px;
}
 
.text-image-pair.reverse {
  flex-direction: row-reverse;
}
 
.text-block, .image-block {
  flex: 1 1 45%;
}
 
.image-block img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #ccc;
}



  .zoom-gallery {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .zoom-container {
    cursor: zoom-in;
    transition: transform 0.3s ease;
    max-width: 300px;
    margin: 5px;
  }

  .zoom-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, width 0.3s ease;
    border-radius: 6px;
    pointer-events: none;
    user-select: none;
  }

  .zoom-container.zoomed {
    position: relative;
    z-index: 1000;
    cursor: zoom-out;
    max-width: none;
  }

  .zoom-container.zoomed img {
    width: 1000px; /* or whatever size you want when zoomed */
    transform: none;
  }

