/* Collage CSS Animation for smooth infinite scroll */
.media-collage-row {
  display: flex;
  width: max-content;
}
.media-collage-animate {
  animation: collage-scroll 60s linear infinite;
}
@keyframes collage-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Media Collage Scroll Styles */
.media-collage-scroll {
  display: flex;
  gap: 2.2rem;
  overflow-x: hidden;
  padding: 1.2rem 0 1.5rem 0;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.collage-img-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 420px;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 32px 0 rgba(80,0,120,0.13), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  background: #23234a;
  transition: transform 0.25s cubic-bezier(.76,0,.24,1), box-shadow 0.25s;
}
.collage-img-wrap img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 1.5rem;
  transition: filter 0.2s;
}
.collage-img-wrap:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 48px 0 rgba(120,80,255,0.18);
}
.collage-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(30,30,60,0.72);
  color: #fff;
  font-size: 1.08rem;
  padding: 0.7rem 1.2rem;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}
.collage-img-wrap:hover .collage-caption {
  opacity: 1;
}
/* Hide scrollbar for all browsers */
.media-collage-scroll::-webkit-scrollbar { display: none; }
.media-collage-scroll { -ms-overflow-style: none; scrollbar-width: none; }
@media (max-width: 600px) {
  .collage-img-wrap { width: 80vw; }
  .collage-img-wrap img { height: 160px; }
}
body {
  background: linear-gradient(120deg, #181829 0%, #23234a 100%);
  min-height: 100vh;
  color: #f3f3fa;
  font-family: 'Rajdhani', 'Orbitron', sans-serif;
}
.project-banner {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-height: 340px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #23234a;
  box-shadow: 0 8px 48px 0 rgba(80, 0, 120, 0.18);
}
.project-banner img, .project-banner video {
  width: 100vw;
  max-height: 340px;
  object-fit: cover;
  filter: brightness(0.85) saturate(1.1);
}
.banner-title {
  position: absolute;
  left: 2.5rem;
  bottom: 2.2rem;
  font-size: 2.6rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 2px;
  color: #fff;
  background: rgba(30,30,60,0.82);
  border-radius: 1.2rem;
  padding: 0.7rem 2.2rem 0.7rem 1.5rem;
  box-shadow: 0 2px 24px 0 rgba(80,0,120,0.18);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1.5px solid rgba(160,132,238,0.18);
  text-shadow: 0 2px 24px #7f53ac44, 0 1px 2px #000a;
  z-index: 2;
  animation: titlePop 1.1s cubic-bezier(.76,0,.24,1);
}
@keyframes titlePop {
  0% { opacity: 0; transform: translateY(-40px) scale(0.8); }
  80% { opacity: 1; transform: translateY(8px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.project-main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4.5rem 1rem 2rem 1rem;
}
.info-cards {
  display: flex;
  gap: 2rem;
  margin-top: -3.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.info-card {
  background: rgba(30, 30, 60, 0.65);
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(120,80,255,0.10);
  padding: 2rem 2.2rem;
  min-width: 260px;
  max-width: 420px;
  flex: 1 1 320px;
  border: 1.5px solid rgba(160,132,238,0.13);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  animation: fadeIn 1.2s cubic-bezier(.76,0,.24,1);
}
.info-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  color: #a084ee;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.info-list li {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.info-list .icon {
  font-size: 1.1em;
  color: #a084ee;
}
.section-title {
  font-size: 1.7rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  margin: 2.5rem 0 1.2rem 0;
  background: linear-gradient(90deg, #a084ee 30%, #7f53ac 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.media-item {
  background: rgba(40, 40, 80, 0.65);
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px 0 rgba(120,80,255,0.10);
  padding: 1.2rem 1.2rem 1.5rem 1.2rem;
  border: 1.5px solid rgba(160,132,238,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.2s cubic-bezier(.76,0,.24,1);
}
.media-item img, .media-item video {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px 0 rgba(120,80,255,0.10);
}
@media (max-width: 900px) {
  .info-cards { flex-direction: column; gap: 1.5rem; }
  .project-banner img, .project-banner video { max-height: 180px; }
  .banner-title { font-size: 2rem; left: 1.2rem; bottom: 1.2rem; }
}
@media (max-width: 600px) {
  .project-main-content { padding: 1rem 0.2rem; }
  .media-grid { gap: 1rem; }
}
/* Projects Section */
.project-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  margin: 60px 0;
}
.project-card {
  background: rgba(20, 20, 40, 0.85);
  border-radius: 20px;
  box-shadow: 0 0 30px #a56fff, 0 0 10px #222 inset;
  border: 2px solid #a56fff;
  padding: 32px 24px;
  width: 320px;
  transition: transform 0.2s, box-shadow 0.2s;
  color: #eee;
  position: relative;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 50px #d1aaff, 0 0 20px #a56fff inset;
}
.project-card h2 {
  color: #a56fff;
  font-size: 2rem;
  margin-bottom: 12px;
}
.project-card p {
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.project-card a {
  display: inline-block;
  margin-right: 12px;
  margin-top: 8px;
  color: #fff;
  background: #a56fff;
  padding: 8px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 10px #a56fff;
  transition: background 0.2s, color 0.2s;
}
.project-card a:hover {
  background: #d1aaff;
  color: #222;
}

/* Slow scroll on hover */
.media-collage-animate:hover {
  animation-duration: 180s;
}

/* Modal for expanded image */
.collage-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,20,40,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
  animation: fadeInModal 0.2s;
}
.collage-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0;
  box-shadow: 0 8px 48px 0 rgba(120,80,255,0.18);
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.76,0,.24,1), opacity 0.35s cubic-bezier(.76,0,.24,1);
}
.collage-modal.show img {
  transform: scale(1);
  opacity: 1;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}