/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  overflow-x: hidden;
}

/* ===== FONT SYSTEM ===== */
:root {
  --font-xs: 0.8rem;
  --font-sm: 1rem;
  --font-md: 1.3rem;
  --font-lg: 2rem;
  --font-xl: 3rem;
  --accent: #6bb7bf; 
  --gold: #c7a34e; 
}

/* ===== BODY ===== */
body {
  font-family: "Nova Round", system-ui;
  background-color: #0d0d0d;
  background-image: url("images/wingman/background_tile.png");
  background-repeat: repeat;
  background-size: 300px;
  color: #e0e0e0;
  line-height: 1.6;
  padding: 20px;
  font-size: var(--font-sm);
  max-width: 1200px;
  margin: auto;
}

/* ===== HOME BUTTON ===== */
.home-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}
.home-button img {
  width: 100px;
  transition: transform .2s ease;
}
.home-button img:hover {
  transform: scale(1.15);
  content: url("images/home_button.gif");
}

/* ===== HEADERS ===== */
h2, h3 {
  color: var(--gold);
  font-size: var(--font-xl);
  padding: 10px 0;
}

.wingman-header {
  text-align: center;
  margin-bottom: 60px;
}

.wingman-header .title-image {
  max-width: 60%;    
  height: auto;
  margin-bottom: 1px;
}

/* ===== INTRO SECTION ===== */
.wingman-intro {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.wingman-intro-left, .wingman-intro-right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: none;  
}

.wingman-intro-left {
  flex: 1 1 600px;
}

.wingman-intro-right {
  flex: 1 1 400px;
  align-items: center;
}

.wingman-intro-left h2 {
  font-size: var(--font-md);
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: left;
  color: #ffffff; 
}

.wingman-intro-left h2 .highlight-red {
  color: var(--accent);
  font-weight: bold;
}

.wingman-intro-video video {
  width: 100%;
  border-radius: 10px;
}
.intro-gif {
  width: 100%;
  max-width: 550px;
  border-radius: 10px;
}
.project-credits {
  margin-top: 15px;
  text-align: center;
}
.project-credits a {
  color: var(--accent);
  text-decoration: none;
}
.project-credits a:hover {
  text-decoration: underline;
}

/* ===== PLAY NOW / STORE ===== */
.wingman-play-section {
  text-align: center;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.play-label {
  font-size: var(--font-lg);
  color: white;
}

.store-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.store-btn img {
  width: 120px;
  transition: transform .2s ease;
  cursor: pointer;
}
.store-btn img:hover {
  transform: translateY(-4px) scale(1.1);
}

/* ===== GALLERY ===== */
.wingman-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}
.wingman-gallery img,
.wingman-gallery video {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease;
}
.wingman-gallery img:hover,
.wingman-gallery video:hover {
  transform: scale(1.06);
}

/* Section text */
.section-text {
  max-width: 700px;
  margin: 30px auto;
  text-align: left;
  font-size: var(--font-sm);
}

/* Section text links */
.section-text a {
  color: var(--accent);
  text-decoration: none;
}
.section-text a:hover {
  text-decoration: underline;
}

/* ===== PROCESS ===== */
.cutscene-vid {
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cutscene-vid video {
  width: 80%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease;
}
.process-video-row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 80px;
  margin-bottom: 80px;
}
.process-video {
  flex: 0 0 40%;
  max-width: 40%;
}
.process-video video {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .2s ease;
  display: block;
}
.process-video-text {
  flex: 1;
  margin: 0;
}

/* ===== CONCEPT SECTION ===== */
.concept-section {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.concept-left {
  flex: 0 0 520px;
  width: 520px;
  min-width: 0;
}
.concept-right {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.concept-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: 100%;
}
.wingman-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.wingman-carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wingman-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  cursor: pointer;
  transition: transform .2s ease;
}
.wingman-carousel-slide img:hover {
  transform: scale(1.06);
}
.concept-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 10px;
  z-index: 10;
  transition: background 0.2s;
}
.concept-carousel .carousel-btn.prev { left: 10px; }
.concept-carousel .carousel-btn.next { right: 10px; }
.concept-carousel .carousel-btn:hover { background: rgba(0,0,0,0.8); }

.concept-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  gap: 5px;
}
.concept-carousel .carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.concept-carousel .carousel-dots .dot.active {
  background: #ffffff;
}

/* ===== ASSETS CAROUSEL ===== */
.wingman-assets-section {
  margin-top: 20px;
}
.assets-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.assets-carousel-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.assets-carousel-track::-webkit-scrollbar {
  display: none;
}
.assets-carousel-track img {
  flex: 0 0 auto;
  height: 220px;
  width: auto;
  border-radius: 8px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .2s ease;
  object-fit: contain;
  background: transparent;
}
.assets-carousel-track img:hover {
  transform: scale(1.06);
}
.assets-arrow {
  flex: 0 0 auto;
  background: rgba(0,0,0,.6);
  border: none;
  color: white;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 8px;
  transition: background .2s;
  z-index: 2;
}
.assets-arrow:hover {
  background: rgba(107, 183, 191, 0.5);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox-img {
  max-width: 84%;
  max-height: 90%;
  border-radius: 10px;
}
.close {
  position: absolute;
  top: 30px; right: 40px;
  font-size: 50px;
  color: white;
  cursor: pointer;
}
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.6);
  border: none;
  color: white;
  font-size: 28px;
  padding: 14px 18px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10000;
  display: none;
  transition: background .2s;
}
.lb-arrow:hover {
  background: rgba(107, 183, 191, 0.5);
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ===== OTHER PROJECTS ===== */
.other-projects {
  margin-top: 90px;
  text-align: center;
}
.project-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}
.project-card {
  display: block;
  width: 220px;
  background: #1b1b1b;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s ease;
  line-height: 0;
  font-size: 0;
}
.project-card img {
  width: 100%;
  display: block;
}
.project-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* ===== MOBILE ===== */
@media(max-width:768px){
  .wingman-intro, .concept-section {
    flex-direction: column;
  }
  .wingman-intro-right {
    flex: 1 1 100%;
    max-width: 100%;
    align-items: center;
  }
  .concept-left {
    flex: 1 1 100%;
    width: 100%;
  }
  .concept-right {
    flex: 1 1 100%;
  }
  .process-gifs img { width: 90%; }
  .process-video-row {
    flex-direction: column;
  }
  .process-video {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .process-video-text {
    margin: 20px auto 0;
    max-width: 700px;
  }
  .assets-carousel-track img {
    height: 160px;
  }
}