/* ==================== GLOBAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #fff8f8 100%);
  color: #1a1a1a;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  margin-left: 140px;
  padding: 2rem;
}

/* ==================== ANIMATED PARTICLES ==================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(128, 0, 0, 0.15);
  border-radius: 50%;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) translateX(0); 
    opacity: 0; 
  }
  10% { 
    opacity: 1; 
  }
  90% { 
    opacity: 1; 
  }
  100% { 
    transform: translateY(-100vh) translateX(50px); 
    opacity: 0; 
  }
}

/* ==================== SIDE NAVIGATION ==================== */
.side-nav {
  position: fixed;
  left: 2rem;
  top: 2rem;
  bottom: 2rem;
  width: 100px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(128, 0, 0, 0.15);
  z-index: 1000;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  margin-bottom: 3rem;
  transition: transform 0.3s ease;
  display: block;
  text-align: center;
  line-height: 1.3;
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.nav-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.6rem;
  text-align: center;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #800000;
  background: rgba(128, 0, 0, 0.08);
  transform: translateX(3px);
}

.nav-links a.active {
  font-weight: 600;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 2000;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.2);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #800000;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ==================== HERO SECTION (INDEX PAGE) ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.name-title {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -3px;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  color: #c41e3a;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.affiliation {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.bio {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  color: #444;
  line-height: 1.9;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.bio p {
  margin-bottom: 1.3rem;
}

.bio strong {
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.contact-info {
  margin-top: 2.5rem;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 2.2rem;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 40px rgba(128, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.email-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.email-link:hover::before {
  left: 100%;
}

.email-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 50px rgba(128, 0, 0, 0.4);
}

.profile-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 0.8s ease-out 0.4s both;
}

@keyframes fadeInRight {
  from { 
    opacity: 0; 
    transform: translateX(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

.profile-image-wrapper {
  position: relative;
}

.profile-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.15;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
    opacity: 0.15; 
  }
  50% { 
    transform: scale(1.05); 
    opacity: 0.25; 
  }
}

.profile-image {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 30px 80px rgba(128, 0, 0, 0.2);
  border: 5px solid white;
  transition: all 0.4s ease;
}

.profile-image:hover {
  transform: scale(1.03);
  box-shadow: 0 35px 90px rgba(128, 0, 0, 0.3);
}

/* ==================== FEATURED PAPER SECTION (INDEX PAGE) ==================== */
.featured-paper {
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.03) 0%, rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(20px);
  padding: 0;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.jmp-banner {
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  color: white;
  padding: 1rem 3rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(128, 0, 0, 0.3);
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.paper-title {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.paper-title a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.paper-title a:hover {
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateX(5px);
}

.paper-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: #666;
  display: block;
  margin-top: 0.5rem;
}

.paper-abstract {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.paper-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 2.8rem;
  background: transparent;
  color: #800000;
  text-decoration: none;
  border: 2px solid #800000;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.05rem;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.6s both;
}

.paper-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  transition: width 0.4s ease;
  z-index: -1;
}

.paper-button:hover::before {
  width: 100%;
}

.paper-button:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(128, 0, 0, 0.3);
}

/* ==================== RESEARCH PAGE ==================== */
.research-page {
  padding: 2rem 1rem 6rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.page-header {
  text-align: center;
  margin-bottom: 5rem;
  padding-top: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.page-title {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.page-subtitle {
  font-size: 1.3rem;
  color: #666;
  font-weight: 300;
}

.papers-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.paper-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3.5rem;
  box-shadow: 0 10px 40px rgba(128, 0, 0, 0.08);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(128, 0, 0, 0.1);
  position: relative;
  animation: fadeInUp 0.8s ease-out both;
}

.paper-card:nth-child(1) { animation-delay: 0.1s; }
.paper-card:nth-child(2) { animation-delay: 0.2s; }
.paper-card:nth-child(3) { animation-delay: 0.3s; }

.paper-card:hover {
  box-shadow: 0 20px 60px rgba(128, 0, 0, 0.15);
  transform: translateY(-8px);
  border-color: rgba(128, 0, 0, 0.2);
}

.paper-card.featured {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 245, 0.95) 100%);
  border: 2px solid rgba(128, 0, 0, 0.15);
}

.paper-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  border-radius: 20px 20px 0 0;
}

.paper-badge {
  position: absolute;
  top: 2.5rem;
  right: 2.5rem;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  color: white;
  padding: 0.6rem 1.3rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(128, 0, 0, 0.3);
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.paper-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}

.paper-heading {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
}

.paper-heading a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.paper-heading a:hover {
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateX(5px);
}

.paper-heading-sub {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  color: #666;
  margin-top: 0.5rem;
}

.paper-meta {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  padding: 0.3rem 0.8rem;
  background: rgba(128, 0, 0, 0.05);
  border-radius: 15px;
}

.paper-desc {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.paper-desc strong {
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: transparent;
  color: #800000;
  text-decoration: none;
  border: 2px solid #800000;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.paper-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  transition: width 0.4s ease;
  z-index: -1;
}

.paper-link:hover::before {
  width: 100%;
}

.paper-link:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(128, 0, 0, 0.3);
}

.paper-link svg {
  transition: transform 0.3s ease;
}

.paper-link:hover svg {
  transform: translateX(4px);
}

.paper-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(128, 0, 0, 0.15);
  transition: all 0.4s ease;
  background: white;
  border: 3px solid rgba(128, 0, 0, 0.1);
}

.paper-card:hover .image-wrapper {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 20px 60px rgba(128, 0, 0, 0.25);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.image-wrapper.placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, rgba(196, 30, 58, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(128, 0, 0, 0.2);
}

.placeholder-content {
  color: rgba(128, 0, 0, 0.3);
  text-align: center;
}

/* ==================== GENERAL PAGE STYLES ==================== */
.content-page {
  padding: 2rem 1rem 6rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.content-page h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #800000 0%, #c41e3a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 3rem;
  letter-spacing: -2px;
  text-align: center;
  padding-top: 2rem;
}

.content-page h2 {
  font-size: 2rem;
  color: #800000;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.content-page p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.content-page ul,
.content-page ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.content-page li {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.content-page a {
  color: #800000;
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.content-page a:hover {
  border-bottom-color: #800000;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  body {
    margin-left: 0;
    padding: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .side-nav {
    left: -100%;
    right: auto;
    width: 250px;
    border-radius: 0 20px 20px 0;
    padding: 3rem 2rem;
    transition: left 0.3s ease;
  }

  .side-nav.active {
    left: 0;
  }

  .logo {
    font-size: 1.3rem;
    margin-bottom: 3rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .hero-right {
    order: -1;
  }

  .name-title {
    font-size: 4rem;
  }

  .profile-image {
    width: 320px;
    height: 320px;
  }

  .paper-content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .page-title {
    font-size: 3rem;
  }

  .paper-heading {
    font-size: 1.7rem;
  }

  .paper-heading-sub {
    font-size: 1.2rem;
  }

  .paper-badge {
    position: static;
    display: inline-block;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .name-title {
    font-size: 3rem;
    letter-spacing: -2px;
  }

  .subtitle {
    font-size: 1.3rem;
  }

  .profile-image {
    width: 280px;
    height: 280px;
  }

  .hero-section {
    padding: 3rem 2rem;
  }

  .section-container {
    padding: 3rem 2rem;
  }

  .research-page {
    padding: 3rem 2rem 4rem;
  }

  .paper-card {
    padding: 2.5rem 2rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .paper-title {
    font-size: 2rem;
  }

  .paper-subtitle {
    font-size: 1.3rem;
  }

  .paper-heading {
    font-size: 1.5rem;
  }

  .paper-heading-sub {
    font-size: 1.1rem;
  }

  .content-page {
    padding: 3rem 2rem 4rem;
  }

  .content-page h1 {
    font-size: 2.5rem;
  }

  .content-page h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1.5rem;
  }

  .name-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .bio {
    font-size: 1rem;
  }

  .profile-image {
    width: 240px;
    height: 240px;
  }

  .section-container {
    padding: 2rem 1.5rem;
  }

  .research-page {
    padding: 2rem 1.5rem 3rem;
  }

  .paper-card {
    padding: 2rem 1.5rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .paper-title {
    font-size: 1.6rem;
  }

  .paper-subtitle {
    font-size: 1.1rem;
  }

  .paper-heading {
    font-size: 1.3rem;
  }

  .paper-heading-sub {
    font-size: 1rem;
  }

  .paper-desc {
    font-size: 1rem;
  }

  .email-link {
    padding: 1rem 1.8rem;
    font-size: 0.95rem;
  }

  .paper-button {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }

  .paper-link {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .content-page {
    padding: 2rem 1.5rem 3rem;
  }

  .content-page h1 {
    font-size: 2rem;
  }

  .content-page h2 {
    font-size: 1.4rem;
  }

  .content-page p,
  .content-page li {
    font-size: 1rem;
  }
}