:root {
  --bg-main: #f5f7fa;
  --bg-section-1: #ffffff;
  --bg-section-2: #f0f4f8;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 70px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

header {
  background: var(--bg-section-1);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  z-index: 1001;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.nav-menu a:hover { color: var(--accent); }

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-menu a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.profile-hero {
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  padding: 5rem 2rem;
}

.profile-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
}

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.profile-photo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: transparent;
  z-index: 10;
  pointer-events: none;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.profile-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
  letter-spacing: -1px;
}

.affiliation {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.researcher-profiles {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.profile-badge:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.profile-badge strong { font-weight: 600; }

.profile-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.intro-text {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
}

.section-card { padding: 2rem 0; }
.section-card:nth-child(odd) { background: var(--bg-section-1); }
.section-card:nth-child(even) { background: var(--bg-section-2); }

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.section-card p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.publications-list { list-style: none; }

.pub-item {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-left: 4px solid #10b981;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.pub-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
}
.pub-item:last-child { margin-bottom: 0; }

.pub-item .apa-citation {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.pub-item .apa-citation a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-all;
}

.pub-item .apa-citation a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.load-more-btn {
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.project-item {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-left: 4px solid var(--accent);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.project-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow);
}

.project-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.project-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.course-card {
  padding: 2rem;
  padding-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.course-card-link {
  text-decoration: none;
  display: block;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.course-card:hover::before { transform: scaleX(1); }

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.course-type {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.course-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}

.contact-info {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
}

.contact-info strong {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.contact-profiles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-profiles h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

footer {
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.pub-status {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.pub-error {
  color: #ef4444;
  background: #fee2e2;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.pub-load-more,
.projects-load-more {
  text-align: center;
  margin-top: 2rem;
  display: none;
}

.profile-badge--contact {
  background: rgba(59, 130, 246, 0.1);
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.profile-badge-icon--contact { 
  background: var(--accent);
  border-radius: 50%;
  overflow: hidden;
}

.profile-badge-icon-img--invert { filter: brightness(0) invert(1); }
.profile-badge-strong--accent { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  body { padding-top: 60px; }

  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem 0;
    gap: 0;
  }

  .nav-menu.active { left: 0; }

  .nav-menu li { padding: 1rem 0; }

  .nav-menu a::after { display: none; }

  .profile-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .profile-photo { margin: 0 auto; }

  .profile-info h1 { font-size: 2.25rem; }

  .researcher-profiles { justify-content: center; }

  .section-card { padding: 3rem 0; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .courses-grid { grid-template-columns: 1fr; }

  .section-title { font-size: 1.75rem; }
}
