:root {
    --yellow: #ffbf43;
    --red: #ff5449;
    --black: #000000;
}


/* ---------- Reset / Box-sizing ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--black)
}

.btn {
  display: inline-block;
  min-width: auto;
  margin: 0 16px 24px 0;
  padding: 12px 16px 12px 16px;
  background: var(--red); 
  font-family: 'Gaegu', Arial, Helvetica, sans-serif;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 10px;
  box-shadow: 5px 10px 20px rgba(53, 110, 173, 0.2);
  border: none;
  cursor: pointer;

  transform: scale(1);
  transition: transform 0.125s ease;
}

.btn:hover,
.btn:focus {
  transform: scale(1.03);
  outline: none;
  border: none;
}

@media (min-width: 992px) {
  .btn {
    min-width: auto;
  }
}

/* Color variants (modifiers) */
.btn--yellow {
  background: var(--yellow);
  color: #000;
}

.btn--white {
  background: #fff;
  color: #000;
}

.btn--black {
  background: #000;
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .btn-row {
    justify-content: flex-start;
  }

  .btn-row--center {
    justify-content: center;
  }
}

h2 {
    font-weight: normal;
}

/* ---------- Header Container (styled.header) ---------- */
.header-container {
  position: relative;
  background: var(--yellow);
  z-index: 1;
}

/* ---------- Wrapper (styled.div) ---------- */
.wrapper {
  display: block;
  width: 100%;
  max-width: 1212px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Modifier for small wrapper variant (p.small) */
.wrapper--small {
  max-width: 800px;
}

/* ---------- Header Content (Content styled.div) ---------- */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ---------- Logo (styled.img) ---------- */
.header-logo {
  display: block;
  max-width: 80px;
  margin: 16px 0; /* mixins.vh(2, 0) => 8px * 2 = 16px, then 0 */
}

/* ---------- SocialBar Container (styled.div) ---------- */
.social-bar {
  display: flex;
  color: #000; /* colors.primary */
}

/* Alternate color variant */
.social-bar--alternate {
  color: var(--black);
}

/* Responsive (mixins.media.md = min-width 992px) */
@media (min-width: 992px) {
  .social-bar {
    margin: 0 0 0 auto;
  }
}

/* ---------- Social Item Link (styled.a) ---------- */
.social-item-link {
  display: block;
  margin: 0 0 0 8px; /* mixins.vh(0,0,0,1) => 0 0 0 8px */
  font-size: 24px;
  opacity: 1;
  transition: opacity 0.25s ease;
  color: inherit;
  text-decoration: none;
}

.social-item-link:hover {
  opacity: 0.7;
}

@media (min-width: 992px) {
  .social-item-link {
    margin: 0 0 0 16px; /* mixins.vh(0,0,0,2) => 0 0 0 16px */
  }
}

/* ---------- Accessible Text (styled.span) ---------- */
/* Visually hidden but readable by screen readers */
.accessible-text {
  font-size: 0;
  height: 1px;
  overflow: hidden;
  display: block;
}

/* ---------- Skew Wrapper ---------- */
.skew {
  position: relative;
  transform: skewY(-3deg);
  background-color: var(--yellow); 
}

.skew::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 0;
  width: 100%;
  height: 300px;
  background-color: var(--yellow);
  z-index: -1;
}

/* ---------- Hero Container (un-skew the content) ---------- */
.hero-container {
  padding: 16px 0;
  transform: skewY(3deg);
}

@media (min-width: 992px) {
  .hero-container {
    padding: 32px 0;
  }
}

/* ---------- Hero Content (flex layout) ---------- */
.hero-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

@media (min-width: 992px) {
  .hero-content {
    flex-direction: row;
  }
}

/* ---------- Text Content Container ---------- */
.hero-content-container {
  width: 100%;
  order: 2; /* below image on mobile */
}

@media (min-width: 992px) {
  .hero-content-container {
    order: 1; /* left of image on desktop */
  }
}

/* ---------- Image Container ---------- */
.hero-image-container {
  position: relative;
  width: 100%;
  margin: 0 0 32px;
  order: 1; /* above text on mobile */
  display: flex;
  align-content: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-image-container:hover {
  cursor: pointer;
}

@media (min-width: 992px) {
  .hero-image-container {
    margin: 0 0 64px;
    order: 2;
  }
}

/* ---------- Click Indicator Icon (with animation) ---------- */
.click-image-button {
  position: absolute;
  bottom: 10px;
  right: -10px;
  display: block;
  width: 30px;
  height: 30px;
  font-size: 30px;
  color: #000;
  opacity: 0.8;
  transform-origin: center;
  animation: clickAnimation 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite alternate;
  z-index: 2;
}

@keyframes clickAnimation {
  from {
    transform: translateX(0) translateY(0);
  }
  to {
    transform: translateX(-10px) translateY(-10px);
  }
}

/* ---------- Flip Card ---------- */
.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.3s;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
}

.flip-card.flipped {
  transform: rotateY(180deg);
}

.flip-card img {
  object-fit: contain !important;
}

/* ---------- Image Content (the clickable area) ---------- */
.hero-image-content {
  position: relative;
  display: block;
  width: 200px;
  height: 200px;
}

.hero-image-content:focus,
.hero-image-content:active {
  outline: none;
}

@media (min-width: 992px) {
  .hero-image-content {
    width: 320px;
    height: 320px;
  }
}

/* ---------- The Front/Back Images ---------- */
.hero-image {
  position: absolute !important;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background-color: var(--yellow);
}

.hero-image--back {
  transform: rotateY(180deg);
}

/* ---------- Hero Title ---------- */
.hero-title {
  display: inline-block;
  margin: 32px 0 32px 0;
  color: #000;
  font-family: 'Gaegu', arial, helvetica;
  letter-spacing: -0.05em;
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
    line-height: 48px;
  }
}

/* ---------- Hero Subtitle ---------- */
.hero-subtitle {
  display: inline-block;
  margin: 0 0 32px 0;
  font-size: 16px;
  line-height: 24px;
  font-family: 'Inter', 'Roboto', arial, helvetica, sans-serif;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* ============ GAME SECTION ============ */
.game-skew {
  position: relative;
  background-color: var(--red);
  transform: skewY(-3deg);
  z-index: 1;
  overflow: hidden;
}

/* For games with a custom background (e.g. Tiny Stories) */
.game-skew--dark {
  background-color: #000;
  top: -1px;
}

.game-container {
  margin: 0;
  padding: 32px 0;
  transform: skewY(3deg);
}

@media (min-width: 992px) {
  .game-container {
    padding: 64px 0;
  }
}

/* Visually hidden game title (for SEO/a11y) */
.game-title {
  position: absolute;
  top: -999999px;
  left: -9999999px;
}

/* ---------- Row layout ---------- */
.game-row {
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .game-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ---------- Media Column ---------- */
.game-media-col {
  display: flex;
  flex-direction: column;
  order: 2;
}

@media (min-width: 992px) {
  .game-media-col {
    width: calc(50% - 16px);
    padding: 16px 0 0 0;
    order: 1;
  }
}

/* ---------- Image Gallery ---------- */
.image-gallery {
  display: flex;
  justify-content: space-between;
  margin: 16px 0 0 0;
  gap: 16px;
}

.image-gallery-button {
  position: relative;
  display: block;
  width: calc((100% - 32px) / 3);
  cursor: pointer;
}

/* When used as an <img> directly */
img.image-gallery-button {
  border-radius: 8px;
  object-fit: cover;
}

/* Big video preview (full width) */
.image-gallery-button--video {
  width: 100%;
}

.image-gallery-button--video::after {
  content: " ";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  background: var(--yellow);
  opacity: 0.1;
  z-index: 2;
  border-radius: 8px;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.image-gallery-button svg,
.image-gallery-button i {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: 3;
  font-size: 80px;
  color: var(--red);
  transform: scale(1);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.8;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.image-gallery-button:hover::after {
  opacity: 0;
}

.image-gallery-button:hover svg,
.image-gallery-button:hover i {
  transform: scale(1.05);
  opacity: 1;
}

.image-item {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* ---------- Content Column ---------- */
.game-content-col {
  order: 1;
}

@media (min-width: 992px) {
  .game-content-col {
    width: 50%;
    order: 2;
  }
}

.game-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.game-main-image {
  display: block;
  width: 80%;
  max-width: 480px;
  margin: 0 0 32px;
}

.game-description {
  display: inline-block;
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 24px;
  font-family: 'Inter', 'Roboto', arial, helvetica, sans-serif;
  color: #fff;
  letter-spacing: 0.05em;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-content iframe {
  width: 80vw;
  height: 45vw;
  max-width: 1280px;
  max-height: 720px;
  border: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 4px;
  transition: background 0.25s ease;
  font-family: inherit;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================================================
   WORK WITH US SECTION
   ============================================================ */
.work-skew {
    position: relative;
    transform: skewY(-3deg);
    background-color: var(--yellow);
    z-index: 1;
    top: -1px; /* seamless join with game section above */
}

.work-container {
    padding: 32px 0;
    transform: skewY(3deg);
}

@media (min-width: 992px) {
    .work-container {
        padding: 64px 0;
    }
}

.work-title {
    margin: 0 0 48px;
    font-size: 24px;
    line-height: 24px;
    font-family: 'Gaegu', Arial, Helvetica, sans-serif;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    color: var(--black);
}

@media (min-width: 768px) {
    .work-title {
        font-size: 40px;
        line-height: 40px;
    }
}

/* ---------- Row ---------- */
.work-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

@media (min-width: 768px) {
    .work-row {
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
    }
}

/* ---------- Individual item ---------- */
.work-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px 24px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.work-item-icon {
    font-size: 48px;
    color: var(--red);
    margin: 0 0 16px;
}

.work-item-title {
    margin: 0 0 12px;
    font-family: 'Gaegu', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.02em;
}

.work-item-text {
    margin: 0;
    font-size: 15px;
    line-height: 23px;
    font-family: 'Inter', 'Roboto', Arial, Helvetica, sans-serif;
    color: var(--black);
    letter-spacing: 0.03em;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

/* Skew wrapper (same trick as Hero) */
.contact-skew {
  position: relative;
  transform: skewY(-3deg);
  background-color: var(--red); 
}

.contact-skew::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 0;
  width: 100%;
  height: 300px;
  background-color: var(--red);
  z-index: -1;
}

/* Inner container un-skews content */
.contact-container {
  padding: 32px 0;
  transform: skewY(3deg);
}

@media (min-width: 992px) {
  .contact-container {
    padding: 64px 0;
  }
}

/* Content column */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section title */
.contact-section-title {
  margin: 0 0 32px;
  font-size: 24px;
  line-height: 24px;
  font-family: 'Gaegu', Arial, Helvetica, sans-serif;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  color: #fff;
}

@media (min-width: 768px) {
  .contact-section-title {
    font-size: 40px;
    line-height: 40px;
  }
}

/* Message box (the white card) */
.contact-message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  padding: 64px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.contact-message-container p {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 24px;
  font-family: 'Gaegu', Arial, Helvetica, sans-serif;
  letter-spacing: -0.05em;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

.contact-message-container strong {
  display: inline-block;
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 20px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  letter-spacing: -0.05em;
  font-weight: bold;
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  margin: 0;
  padding: 32px 0;
  background: var(--black);
}

/* The ::before extends the black background upward to mask 
   any gap left by the previous skewed (yellow) section */
.footer::before {
  content: " ";
  position: absolute;
  top: -150px;
  left: 0;
  display: block;
  width: 100%;
  height: 150px;
  background: #000;
  z-index: -1;
}

/* Footer content: stacked on mobile, row on desktop */
.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
}

@media (min-width: 992px) {
  .footer-content {
    flex-direction: row;
  }
}

/* Logo (inverted to appear white on black) */
.footer-logo {
  display: block;
  max-width: 80px;
  margin: 0 0 16px 0;
  filter: invert(100%);
}

@media (min-width: 992px) {
  .footer-logo {
    margin: 0 16px 0 0;
  }
}

/* Copyright text */
.footer-copy {
  display: inline-block;
  margin: 16px 0 0 0;
  font-size: 13px;
  line-height: 13px;
  color: #fff;
  order: 3; /* pushed below social bar on mobile */
}

@media (min-width: 992px) {
  .footer-copy {
    margin: 0;
    order: 0; /* back to natural order on desktop */
  }
}

/* Alternate social bar (white icons for dark footer) */
.social-bar--alternate {
  margin-left: 0;
}

@media (min-width: 992px) {
  .social-bar--alternate {
    margin-left: auto; /* pushes social bar to the right */
  }
}

.social-bar--alternate a {
  color: #fff;
}

.social-bar--alternate a:hover {
  color: var(--yellow); 
}
