body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #181c2b;
  color: #eaf6ff;
  transition: background 0.4s, color 0.4s;
}
.collab-hero {
  width: 100%;
  padding: 64px 0 32px 0;
  background: none;
}
.collab-hero-flex {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.collab-heading-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.collab-title {
  font-family: 'Montserrat', 'Bree Serif', serif;
  font-size: 2.8rem;
  margin: 0;
  text-align: center;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ff512f, #1fa2ff, #a6ffcb);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: collabGradientMove 3s ease-in-out infinite alternate, collabScale 2.5s infinite alternate cubic-bezier(.4,0,.2,1);
  text-shadow: 2px 4px 16px #0005, 0 1px 2px #fff3;
  filter: drop-shadow(0 2px 8px #00eaff44);
}

@keyframes collabGradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes collabScale {
  0% { transform: scale(1);}
  100% { transform: scale(1.06);}
}
.collab-img-col {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.collab-img-frame {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #00eaff 100%);
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 32px #0004;
  transition: background 0.4s;
  margin-top: 30px;
}
.collab-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: transparent;
  display: block;
}
body.light-theme {
  background: #f7fafc;
  color: #233554;
}
body.light-theme .navbar {
  background: #e3e6ee;
  box-shadow: 0 2px 12px #aaa2;
}
body.light-theme .navbar-title {
  color: #003b5e;
}
body.light-theme .collab-title {
  background: linear-gradient(90deg, #035086, #0c1fc7, #02682c, #ff512f, #dd2476);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
body.light-theme .collab-img-frame {
  background: linear-gradient(135deg, #00eaff 0%, #ffd700 100%);
  box-shadow: 0 4px 24px #ffd70022;
}
body.light-theme .collab-img {
  background: #fff;
}
body.dark-theme .collab-img {
  background: #000000;
}

@media (max-width: 800px) {
  .collab-hero-flex {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .collab-heading-col, .collab-img-col {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .collab-img-frame {
    width: 140px;
    height: 140px;
  }
  .collab-title {
    font-size: 2rem;
    text-align: center;
  }
}

.collab-cards-section {
  width: 100%;
  overflow: hidden;
  margin: 48px 0 0 0;
  padding: 32px 20px 32px 20px;
  background: none;
}
.collab-carousel-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  margin: 40px 0;
}
.collab-carousel-viewport {
  overflow: hidden;
  width: 900px;
  max-width: 98vw;
}
.collab-carousel {
  display: flex;
  gap: 32px;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.collab-card {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  min-height: 340px;
  background: #232946;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0003;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 18px 0;
  transition: transform 0.4s, box-shadow 0.4s, opacity 0.4s;
  opacity: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.collab-card:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 32px #ffd70088, 0 2px 12px #00eaff55;
  z-index: 2;
}

.collab-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
  border: none;
  box-shadow: none;
}

.collab-card-img-wrap {
  width: 100%;
  height: 100%;
  min-height: 160px;
  max-height: 180px;
  overflow: hidden;
  background: #111;
}

.collab-card-info {
  padding: 18px 18px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.collab-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.collab-card-title {
  font-size: 1.2em;
  color: #fad70f;
  font-family: 'Montserrat', 'Bree Serif', serif;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px #ffd70055;
  text-align: center;
}

.collab-card-designation {
  font-size: 1em;
  color: maroon;
  font-weight: 600;
  text-align: left;
}
body.dark-theme .collab-card-designation {
  color: #91ec1a;
}

.collab-card-workplace {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.collab-card-workplace-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 6px #0002;
}

.collab-card-link {
  margin-top: 6px;
  color: #00eaff;
  text-decoration: none;
  font-size: 0.98em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.collab-card-link:hover {
  color: #ffd700;
}

body.light-theme .collab-card {
  background: #ddf1f1;
  color: #233554;
  box-shadow: 0 4px 24px #1fa2ff33, 0 2px 8px #ffd70022;
  border: 1px solid #e3e6ee;
}
body.light-theme .collab-card-designation {
  color: #800000;
}
body.light-theme .collab-card-title {
  color: #043253;
  text-shadow: 0 2px 8px #ffd70033;
}
body.light-theme .collab-card-img {
  border-color: #1fa2ff;
  box-shadow: 0 2px 12px #1fa2ff44;
  background: #f7fafc;
}

body.light-theme .collab-card-link {
  color: #1fa2ff;
}
body.light-theme .collab-card-link:hover {
  color: #ff512f;
}

@media (max-width: 768px) {
  .collab-carousel {
    gap: 18px;
  }
  .collab-card {
    min-width: 220px;
    max-width: 220px;
    padding: 18px 8px 12px 8px;
  }
}
.carousel-arrow {
  background: #232946;
  color: #ffd700;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 12px;
  box-shadow: 0 2px 8px #0003;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.carousel-arrow:hover {
  background: #ffd700;
  color: #232946;
}

body.light-theme .carousel-arrow {
  background: #fff;
  color: #1fa2ff;
  box-shadow: 0 2px 8px #1fa2ff33;
}
body.light-theme .carousel-arrow:hover {
  background: #1fa2ff;
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .collab-carousel-viewport {
    width: 98vw;
  }
}
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.carousel-dot.active {
  background: #333;
}
@media (max-width: 600px) {
  .carousel-cards {
    display: flex;
    overflow-x: hidden;
  }
  .carousel-card {
    min-width: 100%;
    flex: 0 0 100%;
    display: none;
  }
  .carousel-card.active {
    display: block;
  }
    .collab-carousel-wrapper {
    overflow: hidden;
    width: 100vw;
    position: relative;
  }
  #collab-carousel {
    display: flex;
    transition: transform 0.7s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    width: 100vw;
  }
  .collab-card {
    min-width: 100vw;
    max-width: 100vw;
    flex: 0 0 100vw;
    box-sizing: border-box;
    margin: 0;
  }
  .carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    z-index: 2;
  }
}
