/* Import Google Fonts for professional typography */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: #f8f8f8;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #16213e 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  font-weight: 400;
}

/* Elegant navigation */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 4vh;
  background: rgba(15, 20, 25, 0.95);
  padding: 1.5rem 2rem;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid #e9c46a;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.navbar a {
  color: #fefefe;
  text-decoration: none;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem;
  margin: 0 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar a:hover {
  background: rgba(233, 196, 106, 0.2);
  color: #fefefe;
  transform: translateY(-1px);
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #e9c46a;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar a:hover::after {
  width: 80%;
}

.navbar a.book-link {
  font-style: italic;
}

/* Main content layout */
.content {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Profile picture styling */
.profile-pic {
  margin-top: 2rem;
  width: 320px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(44, 24, 16, 0.2);
  border: 1px solid #d4a574;
  background: #fff;
  padding: 8px;
  flex-shrink: 0;
}

/* Biography section */
.bio {
  margin-top: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding-left: 3rem;
  border-radius: 0;
  border-left: 6px solid #e9c46a;
}

.bio-inner {
  margin-top: 0.5rem;
  font-size: 1.1em;
  line-height: 1.8;
  color: #e8e8e8;
  font-weight: 400;
}

.bio-inner p {
  margin-bottom: 1.5rem;
  text-align: justify;
  hyphens: auto;
}

.bio-inner p:last-child {
  margin-bottom: 0;
}

/* Typography */
h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.8em;
  font-weight: 600;
  color: #e9c46a;
  margin: 0;
  padding: 0;
  line-height: 1.2;
  letter-spacing: -0.5px;
  border-bottom: 2px solid #e9c46a;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

/* Publications page styling */
.publication {
  background: rgba(26, 35, 50, 0.9);
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 0;
  border-left: 4px solid #e9c46a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.publication h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #f8f8f8;
  line-height: 1.4;
}

.publication h3 a {
  color: #e9c46a;
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.publication h3 a:hover {
  color: #f4a261;
  border-bottom: 1px solid #f4a261;
}

.pub-type {
  font-size: 0.85em;
  color: #e9c46a;
  margin-bottom: 0 !important;
  font-style: italic;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pub-journal {
  font-size: 0.95em;
  color: #f8f8f8;
  margin: 0.5rem 0;
  font-weight: 500;
}

.pub-date {
  font-size: 0.85em;
  color: #e8e8e8;
  margin: 0.5rem 0;
  font-weight: 400;
}

.pub-author {
  font-size: 0.9em;
  color: #f8f8f8;
  margin: 0.5rem 0;
  font-style: italic;
  font-weight: 400;
}

.pub-access {
  font-size: 0.8em;
  color: #e76f51;
  margin: 0.5rem 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Digital Projects page specific styling */
.content[style*="flex-direction: column"] {
  margin-top: 2rem;
  padding-top: 1rem;
}

.content[style*="flex-direction: column"] h1 {
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}

.content[style*="flex-direction: column"] .bio-inner {
  margin-top: 0;
}

.content[style*="flex-direction: column"] .bio-inner:first-of-type {
  margin-top: 0;
}

.content[style*="flex-direction: column"]
  .bio-inner:first-of-type
  .section-header {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Digital project links styling */
.digital-project {
  background: rgba(26, 35, 50, 0.9);
  margin-bottom: 2rem;
  padding: 2rem;
  border-radius: 0;
  border-left: 4px solid #e9c46a;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.digital-project:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.digital-project a {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2em;
  font-weight: 600;
  color: #e9c46a;
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
  line-height: 1.4;
}

.digital-project a:hover {
  color: #f4a261;
  border-bottom: 1px solid #f4a261;
}

/* Book page section headers */
.section-header {
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  color: #e9c46a;
  font-size: 1.9rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  /* border-bottom: 2px solid #e9c46a; */
  padding-bottom: 0.5rem;
}

.section-header.praise {
  margin: 3rem 0 1.5rem 0;
}

/* Praise section styling */
.praise-item {
  margin-bottom: 2.5rem;
  background: rgba(26, 35, 50, 0.8);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}

.praise-item::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #e9c46a;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
  opacity: 0.7;
}

.praise-text {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1.05em;
  position: relative;
  z-index: 1;
}

.praise-author {
  font-style: italic;
  color: #e9c46a;
  margin: 0;
  font-size: 0.95em;
  font-weight: 500;
  text-align: right;
}

/* Book cover styling */
.publication:has(.book-cover) {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.book-cover {
  flex-shrink: 0;
  width: 120px;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(233, 196, 106, 0.3);
}

.book-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.book-image:hover {
  transform: scale(1.05);
}

.book-info {
  flex: 1;
  min-width: 0;
}

/* Responsive design */
@media (max-width: 1200px) {
  .content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .profile-pic {
    width: 280px;
    margin-top: 1rem;
  }

  .bio {
    margin-top: 1rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .navbar a {
    margin: 0.25rem 0;
  }

  .content {
    padding: 1.5rem 1rem;
  }

  .bio {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.2em;
  }

  .profile-pic {
    width: 240px;
  }

  .publication:has(.book-cover) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-cover {
    width: 100px;
    height: 150px;
    margin-bottom: 1rem;
  }
}
