* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #1a202c; background: #ffffff; }

:root {
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #374151;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --background: #ffffff;
  --background-gray: #f9fafb;
  --background-dark: #111827;
  --border-color: #e5e7eb;
  --success-color: #059669;
  --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 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);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.navbar { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); z-index: 1000; padding: 1rem 0; transition: all 0.3s ease; }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 2rem; }
.logo { font-size: 1.75rem; font-weight: 800; color: var(--primary-color); text-decoration: none; letter-spacing: -0.025em; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--secondary-color); font-weight: 500; font-size: 0.95rem; padding: 0.5rem 0; position: relative; transition: all 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -2px; left: 0; background: var(--primary-color); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.section { padding: 6rem 2rem; max-width: 1400px; margin: 0 auto; }
.section:first-of-type { padding-top: 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 3rem; font-weight: 800; margin-bottom: 1.5rem; color: var(--text-dark); letter-spacing: -0.025em; }
.section-subtitle { font-size: 1.25rem; color: var(--text-light); max-width: 700px; margin: 0 auto; line-height: 1.7; }

.home { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, var(--background-dark) 0%, #1e293b 50%, var(--primary-dark) 100%); color: white; padding: 0 2rem; position: relative; overflow: hidden; }
.home::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(37,99,235,0.1)"/><stop offset="100%" stop-color="rgba(37,99,235,0)"/></radialGradient></defs><circle cx="200" cy="200" r="150" fill="url(%23a)"/><circle cx="800" cy="300" r="200" fill="url(%23a)"/><circle cx="400" cy="700" r="180" fill="url(%23a)"/></svg>') no-repeat center center; background-size: cover; pointer-events: none; }
.hero-content { position: relative; z-index: 1; }
.hero-content h1 { font-size: 5rem; margin-bottom: 2rem; font-weight: 900; letter-spacing: -0.05em; background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-content p { font-size: 1.4rem; margin-bottom: 3rem; opacity: 0.9; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; font-weight: 400; }

.cta-button { display: inline-block; padding: 1rem 2.5rem; background: var(--primary-color); color: white; text-decoration: none; border-radius: 12px; font-weight: 600; font-size: 1.1rem; transition: all 0.3s ease; margin: 0 0.75rem 1rem 0; box-shadow: var(--shadow-lg); border: 2px solid transparent; }
.cta-button:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); background: var(--primary-dark); }
.cta-button.secondary { background: transparent; border: 2px solid rgba(255,255,255,0.3); color: white; backdrop-filter: blur(10px); }
.cta-button.secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.cta-button.tertiary { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.cta-button.tertiary:hover { background: rgba(255,255,255,0.2); }

.hero-subtitle { font-size: 1.35rem !important; font-weight: 700 !important; opacity: 0.9 !important; max-width: 750px; margin-left: auto; margin-right: auto; margin-bottom: 1rem !important; line-height: 1.7; letter-spacing: 0.01em; }
.authors-list { font-size: 0.95rem !important; font-weight: 700 !important; opacity: 0.85; margin-bottom: 0.5rem; margin-top: 0.25rem; letter-spacing: 0.04em; color: #93c5fd; }
.affiliation { font-size: 1.15rem !important; font-weight: 800 !important; opacity: 1 !important; margin-bottom: 2.5rem !important; margin-top: 0 !important; letter-spacing: 0.12em; text-transform: uppercase; color: #ffffff; text-shadow: 0 0 20px rgba(147,197,253,0.8), 0 0 40px rgba(37,99,235,0.5); }

.content-section { background: var(--background); border-radius: 20px; padding: 0; box-shadow: var(--shadow); }

.video-grid-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; justify-items: center; }
.video-grid-wrapper .video-item:nth-last-child(1):nth-child(3n+1) { grid-column: 2/3; }
.video-grid-wrapper .video-item:nth-last-child(2):nth-child(3n+1) { grid-column: 1/2; }
.video-grid-wrapper .video-item:nth-last-child(1):nth-child(3n+2) { grid-column: 3/4; }

.video-item { background: var(--background); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); transition: all 0.3s ease; border: 1px solid var(--border-color); width: 100%; max-width: 450px; }
.video-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.video-wrapper { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; overflow: hidden; background: var(--background-gray); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-content { padding: 2rem; }
.video-content h4 { color: var(--text-dark); font-weight: 700; font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.3; }

.step { margin: 2.5rem 0; padding: 2.5rem; background: var(--background-gray); border-radius: 16px; border-left: 4px solid var(--primary-color); transition: all 0.3s ease; }
.step:hover { background: #f3f4f6; box-shadow: var(--shadow); }
.step h3 { color: var(--text-dark); margin-bottom: 1.5rem; font-weight: 700; font-size: 1.4rem; }
.step p { color: var(--secondary-color); margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.6; }
.step ul { margin-left: 2rem; color: var(--secondary-color); margin-bottom: 1rem; }
.step li { margin-bottom: 0.5rem; line-height: 1.6; }

.code-block { background: #0f172a; color: #e2e8f0; padding: 2rem; border-radius: 12px; margin: 1.5rem 0; overflow-x: auto; font-family: 'Monaco','Menlo','Ubuntu Mono',monospace; position: relative; border: 1px solid #334155; box-shadow: var(--shadow-lg); }
.code-block pre { margin: 0; font-size: 0.9rem; line-height: 1.6; }
.code-block code { font-family: inherit; }

.button-container { display: flex; justify-content: center; margin-top: 2rem; padding: 2rem 0; }

.dataset-button { display: inline-block; padding: 1.25rem 3rem; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); color: white; text-decoration: none; border-radius: 12px; font-weight: 600; font-size: 1.15rem; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 4px 15px rgba(37,99,235,0.3); position: relative; overflow: hidden; letter-spacing: 0.5px; animation: pulse 2s ease-in-out infinite; }
.dataset-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.dataset-button:hover::before { left: 100%; }
.dataset-button:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 25px rgba(37,99,235,0.5); animation: none; }

.paper-button { display: inline-block; padding: 1.25rem 3rem; background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); color: white; text-decoration: none; border-radius: 12px; font-weight: 600; font-size: 1.15rem; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 4px 15px rgba(37,99,235,0.3); position: relative; overflow: hidden; letter-spacing: 0.5px; animation: pulse 2s ease-in-out infinite; }
.paper-button::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s ease; }
.paper-button:hover::before { left: 100%; }
.paper-button:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 8px 25px rgba(37,99,235,0.5); animation: none; }

@keyframes pulse { 0%,100% { box-shadow: 0 4px 15px rgba(37,99,235,0.3); } 50% { box-shadow: 0 4px 25px rgba(37,99,235,0.5); } }

.bibtex-section { max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.bibtex-title { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 1.5rem; text-align: center; letter-spacing: -0.025em; }
.bibtex-section .code-block { max-width: 1200px; margin-left: auto; margin-right: auto; }
.bibtex-section .code-block pre { white-space: pre-wrap; word-wrap: break-word; line-height: 1.8; }

.authors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 1rem; }

.authors-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 2.5rem;
  margin-top: 1rem;
  justify-content: center;
}
.author-card { background: var(--background); border: 1px solid var(--border-color); border-radius: 20px; padding: 2rem 1.5rem; text-align: center; transition: all 0.3s ease; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.author-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(135deg, var(--primary-color), var(--primary-light)); }
.author-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--primary-color); }
.author-photo-wrapper { width: 110px; height: 110px; margin: 0 auto 1.25rem; position: relative; }
.author-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); box-shadow: 0 4px 15px rgba(37,99,235,0.25); }
.author-avatar-fallback { width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); display: none; align-items: center; justify-content: center; color: white; font-size: 1.75rem; font-weight: 800; box-shadow: 0 4px 15px rgba(37,99,235,0.25); position: absolute; top: 0; left: 0; }
.author-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.35rem; }
.author-role { font-size: 0.85rem !important; font-weight: 600 !important; color: var(--primary-color) !important; margin-bottom: 0.25rem !important; text-transform: uppercase; letter-spacing: 0.05em; }
.author-dept { font-size: 0.82rem !important; color: var(--text-light) !important; margin-bottom: 0.75rem !important; line-height: 1.4; }
.author-links { display: flex; justify-content: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; margin-bottom: 0.25rem; }
.author-link { padding: 0.4rem 0.85rem; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 600; text-decoration: none; transition: all 0.25s ease; letter-spacing: 0.02em; border: 1px solid transparent; }
.author-link.linkedin { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
.author-link.github { background: #f3f4f6; border-color: #d1d5db; color: #111827; }
.author-link.scholar { background: #f0fdf4; border-color: #86efac; color: #166534; }
.author-link.website { background: #faf5ff; border-color: #d8b4fe; color: #6b21a8; }
.author-link.linkedin:hover { background: #2563eb; border-color: #1d4ed8; color: white; transform: translateY(-2px); }
.author-link.github:hover { background: #111827; border-color: #111827; color: white; transform: translateY(-2px); }
.author-link.scholar:hover { background: #16a34a; border-color: #15803d; color: white; transform: translateY(-2px); }
.author-link.website:hover { background: #7c3aed; border-color: #6d28d9; color: white; transform: translateY(-2px); }
.author-email-display { display: flex; align-items: center; justify-content: space-between; background: #0f172a; border-radius: 8px; padding: 0.5rem 0.75rem; margin-top: 0.85rem; cursor: pointer; border: 1px solid #334155; transition: all 0.3s ease; gap: 0.5rem; }
.author-email-display:hover { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.author-email-display span { color: #93c5fd; font-family: 'Monaco','Menlo',monospace; font-size: 0.72rem; user-select: all; text-align: left; word-break: break-all; }
.email-copy-mini { background: var(--primary-color); color: white; border: none; padding: 0.2rem 0.55rem; border-radius: 5px; font-size: 0.68rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s ease; flex-shrink: 0; }
.email-copy-mini:hover { background: var(--primary-dark); }

.contact-single { display: flex; justify-content: center; margin-top: 1rem; }
.contact-card { background: var(--background-gray); border: 1px solid var(--border-color); border-radius: 16px; padding: 2.5rem; text-align: center; transition: all 0.3s ease; max-width: 480px; width: 100%; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-color); }
.contact-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.75rem; }
.contact-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.email-copy-box { display: flex; align-items: center; justify-content: space-between; background: #0f172a; border-radius: 10px; padding: 0.85rem 1.25rem; cursor: pointer; transition: all 0.3s ease; border: 1px solid #334155; gap: 1rem; }
.email-copy-box:hover { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.email-text { color: #e2e8f0; font-family: 'Monaco','Menlo',monospace; font-size: 0.9rem; user-select: all; }
.copy-icon-btn { background: var(--primary-color); color: white; border: none; padding: 0.35rem 0.85rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s ease; }
.copy-icon-btn:hover { background: var(--primary-dark); }
.copy-feedback { display: block; color: var(--success-color); font-size: 0.85rem; font-weight: 600; margin-top: 0.5rem; height: 1rem; opacity: 0; transition: opacity 0.3s ease; }
.copy-feedback.show { opacity: 1; }

.footer { background: var(--background-dark); color: #e5e7eb; text-align: center; padding: 3rem 2rem; margin-top: 6rem; }
.footer-links { display: flex; justify-content: center; gap: 3rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: #e5e7eb; text-decoration: none; transition: color 0.3s ease; font-weight: 500; font-size: 1.05rem; }
.footer-links a:hover { color: var(--primary-light); }
.footer p { color: #9ca3af; font-size: 1rem; }

.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.skip-link { position: absolute; top: -40px; left: 6px; background: var(--primary-color); color: white; padding: 8px; text-decoration: none; border-radius: 4px; z-index: 10000; transition: top 0.2s ease; }
.skip-link:focus { top: 6px; }
.scroll-to-top { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; border-radius: 50%; background: var(--primary-color); color: white; border: none; font-size: 1.5rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000; box-shadow: var(--shadow-xl); }
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { transform: scale(1.1); background: var(--primary-dark); }

#publications .button-container { display: flex; justify-content: center; margin: 2rem 0 3rem 0; padding: 1rem 0; }

@media (max-width: 1024px) { .authors-grid { grid-template-columns: repeat(2, 1fr); } .authors-grid-3 { grid-template-columns: repeat(2, minmax(0, 340px)); } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block !important; }
  .hero-content h1 { font-size: 3rem; }
  .section-title { font-size: 2.5rem; }
  .section { padding: 4rem 1.5rem; }
  .video-grid-wrapper { grid-template-columns: 1fr; }
  .video-grid-wrapper .video-item:nth-last-child(1):nth-child(3n+1),
  .video-grid-wrapper .video-item:nth-last-child(2):nth-child(3n+1),
  .video-grid-wrapper .video-item:nth-last-child(1):nth-child(3n+2) { grid-column: auto; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
  .step { padding: 2rem; }
  .code-block { padding: 1.5rem; }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .authors-grid-3 { grid-template-columns: repeat(2, minmax(0, 340px)); }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .cta-button { display: block; margin: 1rem auto; width: fit-content; }
  .nav-container { padding: 0 1rem; }
  .section { padding: 3rem 1rem; }
  .authors-grid { grid-template-columns: 1fr; }
  .authors-grid-3 { grid-template-columns: 1fr; }
}