/* Clean, minimal CSS for HiRo Lab website */

:root {
  --primary-color: #000000;
  --text-color: #000000;
  --link-color: #1a73e8;
  --border-color: #e0e0e0;
  --bg-light: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Noto Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 16px;
}

/* Navigation */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  margin-left: 0;
  gap: 1rem;
}

.nav-logo a {
  display: inline-block;
  line-height: 0;
}

.nav-logo img {
  height: 50px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  transition: opacity 0.3s;
  display: block;
}

.nav-logo a:hover img {
  opacity: 0.8;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 1000;
  outline: none;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  padding-left: 2rem;
}

.nav-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--link-color);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Homepage Hero */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-links a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s;
}

.hero-links a:hover {
  color: var(--link-color);
}

.hero-media {
  flex: 1;
  min-width: 300px;
}

.hero-media img,
.hero-media video {
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
}

/* Funding Section */
.funding-section {
  margin-top: 5rem;
  padding: 3rem 0;
}

.funding-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.funding-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.funding-carousel::before,
.funding-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.funding-carousel::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.funding-carousel::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.carousel-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  will-change: transform;
}

.funding-logo {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.funding-logo img {
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Lab/People Page */
.lab-section,
.people-section {
  max-width: 1200px;
  margin: 0 auto;
}

.people-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.lab-section h2,
.people-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 3rem 0 2rem 0;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.person-card {
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 200px;
  margin: 0 auto;
}

.person-card:hover {
  transform: translateY(-5px);
}

.person-image-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.person-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s;
}

.person-image-link:hover img {
  opacity: 0.8;
}

/* Research/Publications Section Styles */
.research-section {
  max-width: 1000px;
  margin: 0 auto;
}

.research-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--link-color);
  background: white;
  color: var(--link-color);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s;
  font-family: "Noto Sans", sans-serif;
}

.filter-btn:hover {
  background: var(--link-color);
  color: white;
}

.filter-btn.active {
  background: var(--link-color);
  color: white;
}

.publications-list {
  margin-top: 2rem;
}

.year-header {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 2.5rem 0 0.8rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-color);
}

.publication-item {
  margin-bottom: 0;
  padding-bottom: 0;
  padding-top: 0.6rem;
  border-bottom: none;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.publication-item:last-child {
  border-bottom: none;
}

.pub-thumbnail {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #f5f5f5;
}

.pub-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pub-venue-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pub-content {
  flex: 1;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.pub-authors {
  color: #666;
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.pub-venue {
  font-style: italic;
  color: #555;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.pub-links {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.pub-links a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--link-color);
  border-radius: 4px;
  transition: all 0.3s;
}

.pub-links a:hover {
  background: var(--link-color);
  color: white;
  text-decoration: none;
}

a.pub-link-text {
  cursor: pointer;
}

.pub-link-text {
  color: #888;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: not-allowed;
}

.person-card .name {
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.person-card .role {
  font-size: 0.9rem;
  color: #666;
}

.person-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.person-links a {
  color: var(--link-color);
  font-size: 1rem;
  transition: color 0.3s;
}

.person-links a:hover {
  color: var(--primary-color);
}

/* Research Page */
.research-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.publication-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.publication-item:last-child {
  border-bottom: none;
}

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.pub-authors {
  color: #666;
  margin-bottom: 0.5rem;
}

.pub-venue {
  font-style: italic;
  color: #555;
  margin-bottom: 0.75rem;
}

.pub-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-links a {
  color: var(--link-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--link-color);
  border-radius: 4px;
  transition: all 0.3s;
}

.pub-links a:hover {
  background: var(--link-color);
  color: white;
}

.pub-preview {
  margin-top: 1rem;
  max-width: 300px;
}

.pub-preview img,
.pub-preview video {
  width: 100%;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 0;
  }

  .nav-container {
    padding: 0 1rem;
    gap: 1rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    gap: 0.5rem;
  }

  .nav-logo img {
    height: 35px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    max-height: 300px;
    padding: 1rem 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .main-content {
    padding: 2rem 1rem;
  }

  .people-section h1,
  .research-section h1 {
    font-size: 2rem;
  }

  .people-section h2,
  .research-section h2,
  .lab-section h2 {
    font-size: 1.5rem;
  }

  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
  }

  .publication-item {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .pub-thumbnail {
    width: 100%;
    height: 220px;
  }

  .pub-title {
    font-size: 1rem;
  }

  .pub-authors,
  .pub-venue {
    font-size: 0.9rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .research-area {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

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

  .research-area-content p {
    font-size: 0.95rem;
  }

  .research-area-image {
    flex: 1;
    max-width: 100%;
  }

  .hero-section {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-image {
    max-width: 100%;
  }

  .hero-media {
    max-width: 100%;
  }

  .hero-media img,
  .hero-media video {
    max-width: 100%;
  }

  .funding-section {
    padding: 2rem 0;
    margin-top: 3rem;
  }

  .funding-section h2 {
    font-size: 1.5rem;
  }

  .funding-logo {
    flex: 0 0 250px;
    padding: 1.5rem;
  }

  .funding-logo img {
    max-width: 150px;
    max-height: 80px;
  }

  .funding-carousel::before,
  .funding-carousel::after {
    width: 50px;
  }

  .year-header {
    font-size: 1.5rem;
    margin: 2rem 0 0.8rem 0;
  }

  .contact-page {
    max-width: 100%;
    padding: 1rem;
  }

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

/* Links */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Research Page Styles */
.research-page {
  max-width: 1200px;
  margin: 0 auto;
}

.research-header-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

.research-header-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.research-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: #555;
}

.research-areas {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.research-area {
  display: flex;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.research-area:last-child {
  border-bottom: none;
}

.research-area-content {
  flex: 1;
  min-width: 300px;
}

.research-area-content h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.research-area-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #666;
}

.research-area-image {
  flex: 0 0 400px;
  max-width: 400px;
}

.research-area-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .research-area {
    flex-direction: column;
  }

  .research-area-image {
    flex: 1;
    max-width: 100%;
  }
}

/* Contact Page Styles */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-section {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.contact-section:last-child {
  border-bottom: none;
}

.contact-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-section p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 0.5rem;
}

.contact-section ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.contact-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-links a {
  padding: 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  transition: background 0.3s;
}

.contact-links a:hover {
  background: #e9ecef;
  text-decoration: none;
}
