/* =========================
   COMPONENTS / PAGES
   style2.css (clean full)
   ========================= */

/* =========================
   CV card & modal
   ========================= */
.cv-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.cv-card{
  display: flex;
  gap: 1rem;
  align-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(230,240,255,0.12);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  padding: 1rem 1.25rem;
}

.cv-thumb,
.cv-thumb-img{
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(230,240,255,0.12);
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cv-thumb-img{
  object-fit: cover;
}

.cv-info{
  flex: 1;
  min-width: 0;
}

.cv-title{
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  color: rgba(230,240,255,0.95);
}

.cv-sub{
  margin: 0 0 0.75rem;
  color: rgba(184,199,217,0.95);
}

.cv-actions{
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cv-btn{
  appearance: none;
  border: 1px solid rgba(230,240,255,0.14);
  border-radius: 999px;
  background: rgba(79,209,197,0.18);
  color: rgba(230,240,255,0.95);
  font-weight: 800;
  padding: 0.6rem 1rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  transition: transform .12s ease, opacity .2s ease, background .2s ease;
}

.cv-btn:hover{
  transform: translateY(-2px);
  opacity: 0.9;
}

.cv-btn.outline{
  background: rgba(255,255,255,0.04);
}

.cv-modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,0.55);
  padding: 1rem;
  z-index: 1000;
}

.cv-modal[hidden]{ display:none; }

.cv-modal__dialog{
  width: min(100%, 1200px);
  height: 95vh;
  background: rgba(12,25,40,0.98);
  border-radius: 14px;
  border: 1px solid rgba(230,240,255,0.12);
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (min-width: 1400px){
  .cv-modal__dialog{ width: 1300px; height: 96vh; }
}

.cv-close{
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(230,240,255,0.16);
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  color: rgba(230,240,255,0.95);
  font-size: 22px;
  line-height: 36px;
}

.cv-close:hover{ background: rgba(0,0,0,0.65); }

.cv-frame{
  flex: 1;
  background: rgba(255,255,255,0.02);
  display: block;
  height: 100%;
  padding: 0;
}

.cv-frame embed,
.cv-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

.cv-modal__bar{
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.8rem;
  border-top: 1px solid rgba(230,240,255,0.10);
  background: rgba(255,255,255,0.03);
}

@media (max-width: 600px){
  .cv-modal__dialog{ width: 95vw; height: 90vh; }
}

/* =========================
   Contact page form
   ========================= */
.contact-form{
  margin-top: 3rem;
  max-width: 720px;
}

.contact-form form{
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(230,240,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(230,240,255,0.95);
  margin-bottom: 1rem;
  font-size: 1rem;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color: rgba(184,199,217,0.7);
}

.contact-form button{
  border: 1px solid rgba(230,240,255,0.14);
  background: rgba(96,165,250,0.22);
  color: rgba(230,240,255,0.95);
  font-weight: 900;
  padding: 12px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  transition: transform .12s ease, opacity .2s ease;
}

.contact-form button:hover{
  transform: translateY(-2px);
  opacity: 0.9;
}

/* tagline text (if used under logo / headings) */
.tagline{
  font-size: 1.05rem;
  color: rgba(184,199,217,0.95);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* =========================
   Two-column images helper
   ========================= */
.two-column{
  display: flex;
  gap: 10px;
}

.two-column img{
  width: 50%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(230,240,255,0.12);
}

/* Force specific interface images to same height if needed */
.project-media .interface-images img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* =========================
   HRB: more videos section
   ========================= */
.more-videos{
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.more-videos h2{
  margin-bottom: 1.5rem;
}

.video-grid-two{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.placeholder{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(230,240,255,0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.coming-soon{
  color: rgba(184,199,217,0.85);
  font-style: italic;
}

@media (max-width: 768px){
  .video-grid-two{ grid-template-columns: 1fr; }
}

/* =========================
   Vanilla Carousel (clean)
   ========================= */
.wm-carousel{
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  border: 1px solid rgba(230,240,255,0.12);
  background: rgba(255,255,255,0.03);
}

.wm-carousel-track{
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 300ms ease;
}

.wm-slide{
  min-width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
}

.wm-slide img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

/* nav arrows */
.wm-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(230,240,255,0.14);
  background: rgba(0,0,0,0.35);
  color: rgba(230,240,255,0.95);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.wm-prev{ left: 10px; }
.wm-next{ right: 10px; }

.wm-nav:hover{
  background: rgba(0,0,0,0.55);
}

/* dots */
.wm-dots{
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.wm-dots button{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(230,240,255,0.22);
  cursor: pointer;
}

.wm-dots button.active{
  background: rgba(230,240,255,0.62);
}

/* =========================
   PROJECT PAGE (clean)
   ========================= */
body.project{
  background: #0b2438;
  color: #fff;
  padding-top: 90px; /* space for fixed nav */
}

/* Hero */
.project-hero{
  position: relative;
  height: 50vh;
  min-height: 320px;
  width: 100%;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 45%;
  background-repeat: no-repeat;
  background-color: #0b2438;
  overflow: hidden;
  border: 0;

  animation: heroFloat 12s ease-in-out infinite;
}

@keyframes heroFloat {
  0% {
    background-position: center 45%;
  }
  50% {
    background-position: center 55%;
  }
  100% {
    background-position: center 45%;
  }
}
/* .project-hero{
  position: relative;
  height: 32vh;
  width: 100%;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  background-color: #0b2438;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  outline: 0;
} */

.project-hero__shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11,36,56,0) 0%,
    rgba(11,36,56,0.25) 55%,
    rgba(11,36,56,0.85) 82%,
    rgba(11,36,56,1) 100%
  );
}

/* Title */
.project-title{
  background: #0b2438;
  text-align: center;
  padding: 22px 20px 0px;
  margin-top: -6px;
}

.project-title h1{
  margin: 0;
  font-size: clamp(34px, 4vw, 34px);
  font-weight: 800;
}

.project-title .project-sub{
  margin-top: 14px;
  opacity: 0.8;
  font-size: 16px;
}

/* Main */
.project-main{
  max-width: 1100px;
  margin: 0 auto;
   padding-top: 8px; 
}


.project-block{
  margin: 0 0 44px;
}

/* Late-studio style text column centered */
.project-text,
body.project .project-block > h2,
body.project .project-block > p.muted{
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.project-text h2,
.project-text h3,
.project-text p{
  text-align: center;
}

.muted{
  opacity: 0.75;
}

/* Gallery sizing: keep 2 photos similar size to 3 photos */
.gallery-grid{
  margin-top: 18px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;

  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

/* Gallery item base: NOT clickable */
.gallery-item{
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;          /* no rounding */
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  cursor: default;
}

/* Only clickable ones */
.gallery-item.is-clickable{
  cursor: zoom-in;
}

.gallery-item img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
}

/* Video */
.video-small{
  max-width: 820px;
  margin: 0 auto;
}

.video-container{
  width: 100%;
  aspect-ratio: 16 / 9; /* rectangle */
  position: relative;
}

.video-container iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lightbox */
.lightbox[hidden]{ display: none; }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
}

.lightbox__panel{
  position: relative;
  z-index: 1;
  width: min(900px, 90vw);     /* 👈 整體細啲 */
  margin: 100px auto 0;       /* 👈 關鍵：避開 fixed nav */
  max-height: calc(100vh - 140px); /* 👈 唔會頂到上面 */
  overflow: auto;
  background: rgba(10,18,26,0.85);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}


.lightbox__img{
  width: 100%;
  height: auto;
  display: block;
}

.lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.35);
  color: #fff;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 820px){
  .gallery-grid{
    max-width: 92vw;
    grid-template-columns: 1fr;
  }
  .gallery-grid--3{
    grid-template-columns: 1fr;
  }
}


/* ===============================
   FORCE disable ALL hover effects on gallery images
   (including clickable User Flow / Storyboard)
   =============================== */

/* stop any zoom/transform/transition from ANY css file */
body.project .gallery-item,
body.project .gallery-item img,
body.project .gallery-item:hover,
body.project .gallery-item:hover img,
body.project button.gallery-item:hover img{
  transform: none !important;
  transition: none !important;
  filter: none !important;
  opacity: 1 !important;
}

/* keep clickable cursor if you want, but no hover effect */
body.project .gallery-item.is-clickable{
  cursor: zoom-in !important;
}
body.project .gallery-item.is-clickable:hover img{
  transform: none !important;
}

/* single image but same visual size as one image in 2-column grid */
.gallery-grid--half{
  max-width: 400px; /* same as one column of 720px grid */
}



/* webgame- FIVE DOORS */
.tech-list {
  list-style: none;        /* 拎走預設黑點 */
  padding: 0;
  margin: 1.5rem 0 0;
  text-align: center;
}

.tech-list li {
  margin: 0.6rem 0;
  position: relative;
}

.tech-list li::before {
  content: "•";
  margin-right: 0.6rem;
  color: rgba(255,255,255,0.7);
}



