/* IAG - Modern Academic Theme */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #3498db 0%, #fe82cf 100%);
  --accent-color: #667eea;
  --accent-secondary: #3498db;
  --text-dark: #1a1a2e;
  --text-light: #4a4a6a;
  --bg-light: #f8f9fc;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Base Styles */
body {
  font-family: 'Google Sans', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Conference venue ribbon */
.venue-ribbon {
  position: relative;
  z-index: 900;
  padding: 0.75rem 1rem;
  padding-right: min(280px, 32vw);
  padding-top: calc(3.25rem + 0.35rem);
  background: linear-gradient(105deg, rgba(102, 126, 234, 0.14) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(52, 152, 219, 0.08) 100%);
  border-bottom: 1px solid rgba(26, 26, 46, 0.08);
  animation: venueIn 0.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.venue-ribbon-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.venue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4c1d95;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(76, 29, 149, 0.12);
}

.venue-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  opacity: 0.92;
}

@keyframes venueIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .venue-ribbon {
    padding-right: 1rem;
    padding-top: calc(3rem + 0.25rem);
  }

  .venue-text {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .venue-ribbon {
    animation: none;
  }
}

/* Project Navigation */
.project-nav-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  animation: projectNavIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes projectNavIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-nav-container {
    animation: none;
  }
}

.project-select-shell {
  display: inline-flex;
  align-items: stretch;
  max-width: min(92vw, 320px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid rgba(102, 126, 234, 0.22);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(102, 126, 234, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.project-select-shell:hover {
  border-color: rgba(102, 126, 234, 0.4);
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.06),
    0 16px 44px rgba(102, 126, 234, 0.16);
}

.project-select-shell:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.project-select-icon {
  display: flex;
  align-items: center;
  padding-left: 14px;
  color: #667eea;
  font-size: 0.88rem;
  opacity: 0.9;
  flex-shrink: 0;
}

.project-select {
  flex: 1;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 11px 36px 11px 6px;
  margin: 0;
  font-family: 'Google Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dark);
  cursor: pointer;
  min-width: 168px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  box-shadow: none;
  transition: color 0.2s ease;
}

.project-select:focus {
  outline: none;
}

.project-select:focus-visible {
  outline: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
  padding: 2.75rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(118, 75, 162, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.publication-title {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: 1.5rem !important;
}

.rainbow-text {
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.publication-authors {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.publication-authors a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.publication-authors a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.publication-links {
  margin-top: 1.5rem;
}

.publication-links .button {
  margin: 0.3rem;
  transition: all 0.3s ease;
  border: none;
  background: var(--primary-gradient) !important;
}

.publication-links .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

/* Abstract Section */
.abstract-section {
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
  padding: 4rem 0;
}

.abstract-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.04);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.highlight {
  background: linear-gradient(120deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--accent-color);
}

/* Section Headers */
.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--primary-gradient);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Figures */
.figure-container {
  margin: 2rem 0;
}

.figure-frame {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.figure-frame:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.figure-frame img {
  border-radius: var(--radius-sm);
  width: 100%;
}

.figure-caption {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.caption-number {
  font-weight: 600;
  color: var(--accent-color);
  margin-right: 0.5rem;
}

/* Results Section */
.results-section {
  background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 100%);
  padding: 4rem 0;
}

/* BibTeX Section */
.bibtex-section {
  background: var(--bg-light);
  padding: 4rem 0;
}

.bibtex-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}

.bibtex-card pre {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.9rem;
  margin: 0;
}

.copy-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.copy-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0;
}

.footer a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section spacing */
.section {
  padding: 4rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .project-nav-container {
    top: 12px;
    right: 12px;
  }

  .project-select-shell {
    max-width: min(94vw, 300px);
  }

  .project-select {
    min-width: 140px;
    font-size: 12px;
    padding: 10px 32px 10px 4px;
  }

  .publication-title {
    font-size: 1.75rem !important;
  }

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

  .section {
    padding: 3rem 0;
  }
}

/* Button styles */
.button {
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* Link hover effects */
a {
  transition: all 0.2s ease;
}

/* Image hover effects */
img {
  transition: all 0.3s ease;
}

.figure-frame:hover img {
  transform: scale(1.01);
}
