:root {
  --ink: #172033;
  --muted: #64748b;
  --paper: #ffffff;
  --line: rgba(15, 23, 42, 0.12);
  --teal: #0f9f9a;
  --cobalt: #2457c5;
  --amber: #f2a93b;
  --coral: #df6c5f;
}

* {
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 159, 154, 0.11), rgba(242, 169, 59, 0.1) 38%, rgba(36, 87, 197, 0.08)),
    #f7f9fc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #1856b8;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 23, 42, 0.9);
  backdrop-filter: blur(14px);
}

.navbar-brand,
.nav-link {
  color: #fff;
}

.navbar-brand:hover,
.navbar-brand:focus,
.nav-link:hover,
.nav-link:focus {
  color: #c7f8f4;
}

.nav-link {
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 7rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(10, 20, 38, 0.92) 0%, rgba(10, 20, 38, 0.78) 42%, rgba(10, 20, 38, 0.2) 100%),
    url("../assets/hero-lab.png") center right / cover no-repeat;
  color: #fff;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  content: "";
  background: linear-gradient(180deg, rgba(247, 249, 252, 0), #f7f9fc);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #082f36;
  background: rgba(199, 248, 244, 0.9);
  border-radius: 999px;
}

.hero-title {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.08;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--cobalt));
  border: 0;
  box-shadow: 0 16px 30px rgba(36, 87, 197, 0.28);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
}

main {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  margin-bottom: 0.7rem;
  font-size: 2rem;
  font-weight: 800;
}

.section-lead {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

.card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.card-body {
  padding: 1.4rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.96);
}

.icon-badge {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  color: #fff;
  place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--cobalt));
  border-radius: 8px;
}

.profile-card h3,
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.profile-card p,
.feature-card p {
  color: var(--muted);
  line-height: 1.75;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-item {
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-item span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-item strong {
  display: block;
  font-size: 1.03rem;
  line-height: 1.65;
}

.timeline {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.timeline li {
  padding-left: 1rem;
  border-left: 3px solid var(--amber);
}

.accent-band {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbfa 48%, #fff6e6 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.side-nav {
  position: sticky;
  top: 88px;
}

.list-group {
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.list-group-item {
  border-color: var(--line);
  color: var(--ink);
  font-weight: 700;
}

.photo-panel {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 51, 0.08);
}

.photo-panel .form-label {
  color: var(--ink);
  font-weight: 700;
}

.photo-panel .form-control,
.photo-panel .form-select {
  border-color: rgba(15, 23, 42, 0.16);
  border-radius: 8px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-card {
  overflow: hidden;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e7eef8;
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.gallery-meta .badge {
  color: #123244;
  background: #dff8f5;
  border-radius: 999px;
}

.gallery-empty {
  display: grid;
  min-height: 260px;
  color: var(--muted);
  text-align: center;
  place-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 8px;
}

.gallery-empty i {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--teal);
  font-size: 2rem;
}

footer {
  color: rgba(255, 255, 255, 0.72);
  background: #0d172a;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 6.5rem 0 4rem;
    background:
      linear-gradient(90deg, rgba(10, 20, 38, 0.94) 0%, rgba(10, 20, 38, 0.8) 100%),
      url("../assets/hero-lab.png") center / cover no-repeat;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .side-nav {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 6rem 0 3.5rem;
  }

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

  .hero-lead {
    font-size: 1rem;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }
}
