/* =========================
   BASE / GLOBAL
========================= */

html {
  height: 100%;
  background-image: url("imgs/flm-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
}


/* =========================
   LAYOUT CONTAINERS
========================= */

.container {
  max-width: 1000px;
  margin: 10px auto;
  padding: 5px;
  border-radius: 8px;
}

header {
  color: #fff;
  text-align: center;
  padding: 0;
}


/* =========================
   HEADER BANNER
========================= */

.header-banner {
  position: relative;
  width: 100%;
  height: 215px;
  overflow: hidden;
}

.header-banner .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-content {
  position: absolute;
  top: 20px;
  left: 20px;

  display: flex;
  align-items: center;
  gap: 20px;

  flex-wrap: wrap;
  z-index: 10;
}


/* PROFILE + LOGO BLOCK */

.profile-logo-social {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.profile-container {
  position: relative;
  width: 175px;
  height: 175px;
  border-radius: 50%;
  border: 5px solid #FFD700;
  background-color: #FFD700;
  overflow: hidden;
}

.profile-pic {
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: translate(-5%, -5%);
}

.logo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;

  margin-left: -10px;
  margin-top: 50px;
}

.logo-container .logo {
  width: 300px;
  height: auto;
}

.role-text {
  font-style: italic;
  font-family: 'Arial Narrow';
  font-size: 1.5rem;
  color: #FFD700;

  margin: 0;
  margin-left: 20px;
}

/* LINKS */

a:link,
a:visited {
  color: #d4af37;
  text-decoration: none;
}

a:hover,
a:active {
  color: #FFD700
}

/* SOCIAL ICONS */

.social-icons {
  display: flex;
  gap: 1px;
  margin-left: 18px;
  margin-top: -5px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-icons img:hover {
  transform: scale(1.2);
}


/* =========================
   NAVIGATION
========================= */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: #333;
  padding: 5px 20px;
  position: relative;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 50px;
  align-items: center;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;

  padding: 4px 25px;
  transition: color 0.1s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background: #d4af37;

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: #d4af37;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}


/* =========================
   VIDEO
========================= */

video {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  margin: 0 auto;
}

.rounded-video {
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.vid-links {
  position: relative;   /* for absolute children */
  overflow: hidden;     /* prevents strip from spilling outside */
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.vid-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;

  transition: color 0.1s ease;
  z-index: 1;
}

.vid-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background: #d4af37;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.vid-links a:hover {
  color: #d4af37;
}

.vid-links a:hover::after {
  transform: scaleX(1);
}

/* =========================
   SEARCH
========================= */

.nav-search {
  margin-left: auto;
}

.nav-search input {
  padding: 5px 8px;
  font-size: 14px;
  border-radius: 4px;
  border: none;

  width: 200px;
  max-width: 100%;
  transition: width 0.3s ease; /* smooth resizing */
}

.nav-search button {
  padding: 5px 8px;
  font-size: 14px;
  border-radius: 4px;
  border: none;

  cursor: pointer;
  background-color: #d4af37;
  color: #333;
  font-weight: bold;
}

.nav-search button:hover {
  background-color: #ffdb4d;
}


/* HAMBURGER MENU */

.hamburger {
  display: none;
  /*font-size: 26px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;*/
}

.hamburger:hover {
  background: #555;
}


/* =========================
   UPDATES SECTION
========================= */

.updates-wrapper {
  position: relative;
}

.update-nav {
  position: absolute;
  bottom: 15px;
  right: 15px;

  display: flex;
  align-items: center;
  gap: 12px;
}

.update-counter {
  color: #FFD700;
  font-weight: bold;
  font-size: 14px;
  min-width: 40px;
  text-align: center;
  letter-spacing: 1px;
}

.update-nav button {
  background: transparent;
  color: #FFD700;
  border: none;
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.update-page {
  display: none;
  width: 100%;
}

.update-page.active {
  display: block;
}

.update-slide {
  position: relative;
  min-width: 100%;
  box-sizing: border-box;

  padding: 25px 50px;
  background: rgba(0,0,0,0.55);
  color: white;
  border-radius: 8px;
  margin-bottom: 20px;
}

.update-nav button {
  background: transparent;
  color: #FFD700;

  border: none;
  font-size: 26px;

  cursor: pointer;
  transition: opacity 0.2s ease;
}

.update-nav button[style*="hidden"] {
  opacity: 0;
  pointer-events: none;
}

.update-nav button:hover {
  color: #fff;
  transform: scale(1.2);
}


/* =========================
   HERO SECTION
========================= */

.hero-split {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;

  max-width: 1100px;
  margin: 0 auto;
  padding: 25px 50px 25px 50px;

  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: white;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  line-height: 1.7;
  margin-bottom: 20px;
}

.release-date {
  color: #d4af37;
}

.hero-title,
h1,
h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
}

.hero-text {
  flex: 0 0 50%;
  max-width: 50%;
  min-width: 280px;
}

.hero-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.hero-video iframe {
  width: 100%;
  max-width: 400px; /* limits video width */
  height: 225px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.about-split {
  position: relative; /* create stacking context for children */
}

.about-split .hero-image,
.about-split .hero-text {
  position: relative;
  z-index: 1;
}

.about-strip {
  position: absolute; 
  top: 30%;                 /* vertical center */
  left: 50%;                /* horizontal center */
  transform: translate(-50%, -50%); /* center exactly */
  width: 90%;               /* scale */
  opacity: 0.25;            /* subtle visibility */
  z-index: 0;               /* behind content */
  pointer-events: none;     /* allow clicks through */
}

.about-strip img {
  width: 100%;
  height: auto;
  filter: invert(0);        /* invert color */
}


/* BUTTON */

.button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;

  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.button:hover {
  background: #555;
}


/* =========================
   FOOTER
========================= */

footer {
  text-align: center;
  padding: 20px;
  margin-top: 25px;

  background: #333;
  color: #d4af37;
  font-weight: bold;
}

.site-footer {
  padding: 12px 10px;
}

.site-footer p {
  margin: 0;
  line-height: 1.2;
}

#scroll-top {
  position: fixed;       /* Stay fixed on screen */
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 1000;
}

#scroll-top:hover {
  opacity: 1;
  color: white;
  background-color: #d4af37;
  transform: scale(1.2);
}

/* FOOTER SOCIAL */

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.footer-social img:hover {
  transform: scale(1.2);
}

.footer-social a {
  color: inherit;
  text-decoration: none;
}

.footer-social a:visited {
  color: inherit; /* removes purple */
}


/* =========================
   GALLERY
========================= */

.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.about-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  border-radius: 8px;
  box-shadow: 0 5px 5px rgba(0,0,0,0.3);
}


/* =========================
   VIDEOS PAGE
========================= */

.video-year {
  
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}

.videos-split {
  padding: 45px;

  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* horizontal gap between text and video */
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  line-height: 1.7;
}

.video-year h2 {
  color: #d4af37;
}

.video-block {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 20px;
}

.video-text {
  flex: 1 1 300px; /* grows but stays at least 300px */
  color: #fff;
}

.video-text p {
  margin: 5px 0;
}

.video-embed {
  flex: 1 1 400px; /* video will resize */
}

.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: none;
}

.about-split .container {
  position: relative; /* stacking context for absolute children */
}

.film-strip {
  position: absolute;
  top: 50%;                  /* vertical center */
  left: 50%;                 /* center horizontally */
  transform: translate(-50%, -50%); /* center the div exactly */
  width: 91.3%;
  height: 80px;              /* height of film strip */
  background-image: url("imgs/flm-strp2.png");
  background-repeat: repeat-x;  
  background-position: center;
  background-size: auto 75%;  /* scale height */
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}


/* =========================
   IMAGE/VIDEO POPUP
========================= */

.video-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85); /* dim the site */
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-popup video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.close-video {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #FFD700;
  border: none;
  color: black;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.close-video:hover {
  background-color: #fff200;
}

.image-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.image-popup-content {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-popup img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

.close-image {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #FFD700;
  border: none;
  color: black;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.close-image:hover {
  background-color: #fff200;
}


/* =========================
   DOWNLOADS PAGE
========================= */

.download-links {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.download-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;

  transition: color 0.1s ease;
  z-index: 1;
}

.download-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background: #d4af37;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.download-links a:hover {
  color: #d4af37;
}

.download-links a:hover::after {
  transform: scaleX(1);
}

.download-decor {
  transform: 50px;
  width: 100%;
  height: 60px;
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.download-decor img {
  height: 75px;
}

.downloads-page {
  max-width: 1000px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(0,0,0,0.55);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.downloads-header h1 {
  color: #d4af37;
  text-align: center;
  margin-bottom: 10px;
}

.downloads-header p {
  text-align: center;
  margin-bottom: 30px;
}

.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: transform 0.2s ease;
  padding-right: 25px;
}

.download-item:hover {
  transform: scale(1.02);
}

.download-item img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.download-info h3 {
  margin: 0 0 5px;
  color: #d4af37;
}

.download-info p {
  margin: 0 0 10px;
  margin-top: 0;
}

.download-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.08); /* subtle light background */
  padding: 15px;
  border-radius: 10px;

  transition: background 0.2s ease, transform 0.2s ease;

  position: relative;
}

.download-image img {
  width: 50px;
  height: auto;

  filter: invert(1);   /* inverts colors */
  opacity: 0.5;        /* 50% transparency */

  transition: transform 0.2s ease, opacity 0.2s ease;
}

.download-image::after {
  content: "Download";
  position: absolute;
  left: 50%;
  top: 125%;
  transform: translate(-50%, -50%);

  background: rgba(0, 0, 0, 0.75);
  color: #FFD700;
  padding: 6px 10px;
  border-radius: 6px;

  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.5px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.download-image img:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.download-image:hover::after {
  opacity: 0.8;
}

.download-screenshot {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.download-screenshot img {
  width: 180px;
  height: auto;

  border-radius: 8px;
  opacity: 0.9;

  transition: transform 0.2s ease, opacity 0.2s ease;

  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


/* =========================
   CONTACT PAGE
========================= */

.contact-split {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;

  padding: 112px 60px;
  border-radius: 8px;

  background: rgba(0,0,0,0.55);
  color: white;
}

.contact-form {
  flex: 1;
  min-width: 280px;
}

.contact-title {
  color: #d4af37;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form .form-row {
  display: flex;
  gap: 15px;
}

#contact-form input,
#contact-form textarea {
  width: 95%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#contact-form button.send-email {
  background: #d4af37;
  color: #000;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 5px;
}

#contact-form button.send-email:hover {
  background: #ffd700;
}


/* CONTACT RIGHT SIDE */

.contact-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  text-align: right;
}

.contact-info h3 {
  color: #d4af37;
}


/* =========================
   UTILITIES
========================= */

.highlighted {
  background-color: #FFD700;
  color: black;
  padding: 0 2px;
  border-radius: 2px;
}

.footer-divider {
  border: none;
  height: 4px;
  margin: 2px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero-image img.logo {
  border-radius: 0;
  box-shadow: none;
  max-width: 250px;
  width: 100%;
  height: auto;
  background: none;
  transform: scale(1.75);
  transform-origin: center;
}


/* =========================
   MOBILE LAYOUT
========================= */

  /* =========================
      SEARCH BOX WIDTH
  ========================= */

@media (max-width: 1100px) {
  .nav-search input {
    width: 120px;
  }
}

@media (max-width: 950px) {
  .nav-search input {
    width: 60px;   /* minimum usable width */
  }
}

@media (max-width: 850px) {
  .nav-search input {
    width: 30px;   /* minimum usable width */
  }
}

@media (max-width: 768px) {

  /* =========================
     HEADER BANNER
  ========================= */

  .header-banner {
    height: auto;
    min-height: 220px;
    padding-bottom: 10px;
  }

  .header-banner .banner-img {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .header-content {
    position: relative;
    top: 10px;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 15px 10px 5px;
    gap: 8px;
  }

  .profile-logo-social {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .profile-container {
    width: 110px;
    height: 110px;
  }

  .logo-container {
    margin: 0;
    align-items: center;
  }

  .logo-container .logo {
      width: 160px;
      max-width: 80%;
  }

  .role-text {
    margin: 5px 0 0;
    font-size: 1rem;
    text-align: center;
    order: 1;
  }

  .social-icons {
    justify-content: center;
    margin: 0;
  }


  /* =========================
     NAVIGATION
  ========================= */

  .site-nav {
    background-color: #333;
    width: 100%;

    display: grid;
    place-items: center;

    padding: 20px 0px;
  }

  .hamburger {
    align-self: flex-start;
  }

  .nav-search {
    display: none;
    align-self: center;
  }

  .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 20px;
    margin: 0;
    padding: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 8px 0;
    
  }

  .nav-links a::after {
    bottom: 2px;
  }


  /* =========================
     HERO / ABOUT GAP
  ========================= */

  .hero-split {
    flex-direction: column;
    text-align: center;

    padding: 25px;
    gap: 15px;
    margin-bottom: 20px;
  }

  .hero-text {
    max-width: 100%;
    flex: 1;
  }
  
  .hero-image img {
    max-width: 350px;
  }

  .hero-video iframe {
    max-width: 100%;
    height: auto;
  }
  

  /* =========================
     UPDATE SECTION
  ========================= */

  .update-content {
    flex-direction: column;      /* stack text and image vertically */
    align-items: center;         /* center everything */
    gap: 1.5rem;                 /* spacing between text and image */
  }

  .update-content .hero-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 250px;
  }

  .update-content .hero-image img.logo {
    width: 75%;
    height: auto;
    margin: 50px;
  }


  /* =========================
     YOUTUBE / VIDEO
  ========================= */

  .hero-video {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-video iframe {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 175px;
  }

  .hero-split .hero-content {
    flex-direction: column;
    align-items: center;
  }

  .hero-split .hero-image {
    flex: 1 1 100%;
    max-width: 500px;
    margin-top: 20px;
  }  


  /* =========================
     GALLERY (4 COLUMNS)
  ========================= */

  .about-gallery {
    grid-template-columns: repeat(2, 2fr);
    gap: 6px;
  }

  .about-gallery img {
    border-radius: 6px;
  }


  /* =========================
     VIDEOS
  ========================= */

  .video-page {
    grid-template-columns: 1fr;
  }

  .vid-links {
    flex-direction: column;  /* stack the links vertically */
    gap: 15px;               /* spacing between each link */
    padding: 10px;           /* add some padding so text doesn't touch edges */
    width: 100%;             /* ensure full width */
    box-sizing: border-box;  /* include padding in width */
    text-align: center;      /* center the links */
  }

  .vid-links a {
    flex: none;
    display: block;
  }

  .film-strip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    position: center;
    width: 280px;
    opacity: 0.25;
  }

  /* =========================
     DOWNLOADS
  ========================= */

.download-item {
  flex-direction: column;   /* stack everything */
  align-items: center;
  text-align: center;
  padding: 20px 10px;
}

.download-info {
  order: 1;
}

.download-screenshot {
  order: 2;
  margin: 15px 0;
}

.download-screenshot img {
  width: 100%;
  max-width: 300px;
}

.download-image {
  order: 3;
  margin-top: 10px;
}

.download-image::after {
  content: "Download";
  display: block;
  font-size: 12px;
  margin-top: 5px;
  color: #d4af37;
}

.download-image img {
  width: 60px; /* bigger tap target */
}

.download-links {
    flex-direction: column;
    gap: 15px;
  }


  /* =========================
     CONTACT
  ========================= */

  .contact-split {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .contact-info {
    text-align: center;
  }

  #contact-form .form-row {
    flex-direction: column;
  }
}