/* Filename: style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: #222;
  background-color: #fff;
  overflow-x: hidden;
}

.announcement-banner {
  background-color: #e6f4fb; /* soft light blue */
  color: #3E88EF;            /* deep blue text */
  text-align: center;
  padding: 12px 20px;
  font-size: 1em;
  font-weight: 500;
  font-family: "Segoe UI", Roboto, sans-serif;
  border-bottom: 1px solid #d0e7f6;
}

.announcement-banner a {
  color: #3E88EF;
  text-decoration: underline;
  margin-left: 8px;
}

.announcement-banner a:hover {
  color: #1D63DC;
}

/* Containers */
.container {
  max-width: 800px;
  margin: auto;
  padding: 40px 20px;
}

/* Header */
header {
  text-align: center;
  padding: 60px 20px 40px;
  border-bottom: 1px solid #eee;
}

.profile-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
  margin-bottom: 15px;
}

header h1 {
  font-size: 2.2em;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 15px;
}

/* Navigation */
nav {
  margin-top: 30px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

nav a {
  text-decoration: none;
  color: #1D63DC;
  font-weight: 500;
}

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

/* Button */
.cv-button, .cv-submit {
  padding: 10px 22px;
  font-size: 1em;
  /* background-color: #0077cc; */
  background-color: #1D63DC;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.cv-button:hover, .cv-submit:hover {
  background-color: #3E88EF;
}

/* Main Content */
main section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  margin-bottom: 80px;
}

main section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-size: 1.6em;
  color: #222;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

ul, ol {
  padding-left: 20px;
  margin-top: 10px;
}

a {
  color: #1D63DC;
}

/* Footer */
footer {
  text-align: center;
  font-size: 0.9em;
  color: #888;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  margin: 10% auto;
  padding: 30px 40px;
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.modal-content input[type="text"] {
  padding: 10px;
  width: 80%;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 1em;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}
.close:hover {
  color: #333;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #1D63DC;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: none;
  z-index: 1001;
}

#backToTop:hover {
  background-color: #3E88EF;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .container {
    padding: 30px 16px;
  }

  .modal-content {
    padding: 20px;
  }
}

.prompt {
  font-size: 1em;
  margin-top: 15px;
  color: #444;
}

#publications {
  margin-top: 60px;
}

.publication-entry {
  margin-bottom: 30px;
}

.pub-meta {
  line-height: 1.6;
}

.pub-title a {
  color: #3E88EF;
  text-decoration: none;
  font-weight: 500;
}

.pub-title a:hover {
  text-decoration: underline;
}

.pub-authors {
  margin: 0;
  font-size: 1em;
  color: #444;
}

.pub-venue {
  margin: 0;
  font-size: 0.95em;
  color: #666;
}
