@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap");

#content {
  position: relative;
}

body {
  background-image: url("./03-Dashboard-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 100vh;
  margin: 0;
  overflow: hidden; /* no scrollbars */
}

/* Hover Image */
.hover-image {
  position: fixed;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  transition: right 0.4s ease;
  z-index: 1000;
}

.hover-image img {
  height: 150px;
  display: block;
  cursor: pointer;
}

.hover-image:hover {
  right: -20px;
}

/* Top Bar */
.top-bar {
  height: 60px;
  background-color: #000e47;
  color: #fff;
  overflow: hidden;
  padding: 0 20px;
  box-sizing: border-box;
  border: 2px dotted #fedf08;
  border-radius: 4px;
  display: flex;
  align-items: center;
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 600;
  flex: 1;
}

.top-bar marquee {
  line-height: 24px;
}

/* Scrolling Text */
.scrolling-text-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.scrolling-text {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-left 30s linear infinite;
  font-size: 16px;
  line-height: 60px;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Exit Button */
.img-only-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 0px;
}

.img-only-button img {
  width: 85px;
  height: auto;
  display: block;
  border-radius: 0px;
}

.exit-button:hover {
  box-shadow: 0 0 12px 4px rgba(0, 255, 0, 0.6);
}

/* Grid + Cards */
.top-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.top-wrapper {
  position: fixed;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  gap: 20px;
  transition: opacity 0.3s linear; /* so it fades smoothly */
}

.exit-button {
  height: 60px;
  display: flex;
  align-items: center;
}

.now-showing-bar {
  position: fixed;
  top: 120px; /* sits under your top-wrapper */
  left: 50%; /* ✅ move to center horizontally */
  transform: translateX(-50%); /* ✅ correct centering */
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: url("./nowshowingbg.png") no-repeat center/cover;
  padding: 40px 40px;
  width: 90%;
  max-width: 900px;
  height: 60px;
  transition: opacity 0.3s linear;
  opacity: 1;
}

.now-showing {
  font-family: "AmericanTypewriter", sans-serif;
  font-weight: 600;
  font-size: 20px;
}

.portfolio-label {
  font-family: "AmericanTypewriter", sans-serif;
  font-weight: 600;
  font-size: 30px;
}

/* Container for all project cards */
.projects-container {
  overflow-x: visible; /* remove horizontal scroll */
  white-space: normal; /* reset wrapping */
  padding: 10px 0;
  margin-top: 280px;
}

.project-card {
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
  max-width: 280px;
  max-height: 70vh;
  margin-right: 20px;
  position: relative; /* optional but useful */
}

.project-card img {
  display: block;
  width: 100%; /* ensure image fills card width */
  height: auto;
  object-fit: cover; /* or contain, depending on your preference */
  border-radius: inherit;
  transition: transform 0.6s ease-in-out;
  will-change: transform;
  transform-origin: center center; /* zoom from center */
}

.project-card img:hover {
  transform: scale(1.05);
}

/* Slow down marquee animation */
.marquee-inner {
  display: flex;
  animation: marqueeMove 40s linear infinite;
  width: max-content; /* important for marquee */
  will-change: transform;
}

.marquee-inner > * {
  flex-shrink: 0;
}

.marquee {
  overflow: hidden;
  width: 100%;
}

@keyframes marqueeMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
