@import url("https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap");

:root {
  --black: #000;
  --white: #fff;
  --green: #00ff41;
  --font-default: "IBM Plex Mono", monospace;
  --border-radius-16: 16px;
}

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}
/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

body,
html {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-default);
  font-weight: 200;
  height: 100%;
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizespeed;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  border-bottom: 1px solid var(--green);
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

#matrixContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.header {
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 0 0.5rem;
}
.header header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  pointer-events: auto; /* enable interaction */
}
.header header .header-logo {
  width: 320px;
  height: auto;
}

.header header h1 {
  font-size: 2.5rem;
  margin: 0 0.5rem 0;
}
.header header nav {
  display: none;
  margin-top: 1rem;
  padding: 0.25rem 1rem;
}
.header header nav a {
  color: var(--green);
  margin: 0 1rem;
  text-decoration: none;
  text-transform: uppercase;
}
.header header nav a:hover {
  border-bottom: 1px solid var(--green);
}
.beat-hover:hover {
  animation: fa-beat 1s infinite ease-in-out;
}
@keyframes text-beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

.beat-text {
  display: inline-block; /* allow scaling */
  transition: transform 0.3s ease-in-out;
}

.beat-text:hover {
  animation: text-beat 1s infinite ease-in-out;
}


.header header nav a.icon-link {
  font-size: 1.25rem;
}
.header header nav a.icon-link:hover {
  border: 0;
}

.header header nav .space {
  display: inline-block;
  width: 1rem; /* space between links */
}

.header header nav.open {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  margin: 0;
  z-index: 200; /* ensure it appears above other content */
}
.header header nav.open a {
  font-weight: 500;
  margin: 0.5rem 0;
}
.header header nav.open a.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem;
  font-size: 1.5rem;
  z-index: 201;
}
.header header nav.open a.close-button:hover {
  border: 0;
}

.header header nav.open .space {
  height: 2rem;
}

.mobile-toggle {
  background: none;
  border: none;
  color: var(--green);
  cursor: pointer;
  height: 40px;
  padding: 0 .75rem;
}

@media screen and (min-width: 768px) {
  .header {
    height: 80px;
  }
  .header header nav a {
    margin: 0 0.5rem;
  }
}

@media screen and (min-height: 768px) and (min-width: 912px) {
  .header {
    height: 140px;
    padding: 0;
  }
  .header header {
    flex-direction: column;
    flex-basis: auto;
    align-items: center;
  }
  .header header h1 {
    font-size: 3rem;
    margin: 0 0.5rem;
  }
  .header header nav {
    display: inline-block;
  }
  .header header nav a.close-button {
    display: none;
  }

  .mobile-toggle {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .header header {
    width: 960px;
  }
}

.footer {
  align-items: center;
  display: flex;
  font-family: "Courier New", Courier, monospace;
  height: 40px;
  justify-content: center;
  text-align: center;
}
.footer footer {
  width: 100%;
  margin: 0 auto;
  pointer-events: auto; /* enable interaction */
}

.footer footer span {
  display: inline-block;
  padding: 0.5rem 1rem;
}

@media screen and (min-height: 768px) and (min-width: 912px) {
  .footer {
    height: 60px;
  }
}

@media screen and (min-width: 1024px) {
  .footer {
    height: 60px;
  }
  .footer footer {
    width: 960px;
  }
}

.centered-box {
  box-sizing: border-box;
  display: block;
  height: calc(100% - 188px); /* subtract header + footer height */
  overflow: auto;
  pointer-events: auto; /* enable interaction */
  position: relative;
}

@media screen and (min-width: 344px) {
  .centered-box {
    height: calc(100% - 103px);
  }
}

@media screen and (min-width: 768px) {
  .centered-box {
    height: calc(100% - 120px);
  }
}

@media screen and (min-height: 768px) and (min-width: 912px) {
  .centered-box {
    height: calc(100% - 200px);
  }
}

#body-wrapper {
  margin: 0 auto;
  padding: 1rem 0.5rem;
  width: 100%;
}

@media screen and (min-width: 768px) {
  #body-wrapper {
    padding: 0 2rem;
  }
}

@media screen and (min-width: 1024px) {
  #body-wrapper {
    margin: 0 auto;
    padding: 0;
    width: 960px;
  }
}

#home {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#home .left-column,
#home .right-column {
  width: 100%;
  padding: 0.5rem;
}
#home .right-column {
  min-width: 0; /* allow it to shrink */
}
#home section {
  margin-bottom: 1.5rem;
}
#home section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
@media screen and (min-width: 768px) {
  #home {
    flex-direction: column;
  }
  #home .left-column,
  #home .right-column {
    padding: 1rem;
  }
  #home section {
    margin-bottom: 1rem;
  }
  #home section h2 {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 1024px) {
  #home {
    flex-direction: row;
  }
  #home .left-column {
    flex: auto;
    padding: 1rem;
  }
  #home .right-column {
    flex: 1;
    min-width: 320px;
    padding: 1rem;
  }
  #home section {
    margin-bottom: 4rem;
  }
  #home section h2 {
    font-size: 1.5rem;
  }
}

.video-content {
  margin-bottom: 2rem;
  padding: 1rem;
}

.video-content iframe {
  border: none;
  height: 240px;
  width: 100%;
  border-radius: var(--border-radius-16);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media screen and (min-width: 768px) {
  .video-content iframe {
    height: 450px;
  }
}

@media screen and (min-width: 1024px) {
  .video-content {
    padding: 3rem;
  }
  .video-content iframe {
    height: 450px;
  }
}

.soundtrack-main {
  padding: 1rem;
}

.soundtrack-main iframe {
  border: none;
  height: 65vh;
  width: 100%;
  border-radius: var(--border-radius-16);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media screen and (min-height: 540px) and (min-width: 375px) {
  .soundtrack-main iframe {
    height: 29vh;
    box-shadow: none;
  }
}

@media screen and (min-height: 667px) and (min-width: 375px) {
  .soundtrack-main iframe {
    height: 60vh;
  }
}

@media screen and (min-height: 720px) and (min-width: 375px) {
  .soundtrack-main iframe {
    height: 65vh;
  }
}

@media screen and (min-height: 896px) and (min-width: 375px) {
  .soundtrack-main iframe {
    height: 70vh;
  }
}

@media screen and (min-width: 768px) {
  .soundtrack-main {
    padding: 1.5rem;
  }
}

@media screen and (min-width: 1024px) {
  .soundtrack-main {
    padding: 3rem;
  }
}

@media screen and (min-height: 768px) and (min-width: 1024px) {
  .soundtrack-main {
    padding: 1.5rem;
  }
}

.synopsis-main {
  padding: 1rem;
}
.synopsis-main section {
  margin: 1rem 0;
}
.synopsis-main section:first-child {
  margin-top: 0;
}
.synopsis-main section:last-child {
  margin-bottom: 0;
}
.synopsis-main p {
  line-height: 1.5;
  margin-bottom: 1rem;
}

@media screen and (min-width: 1024px) {
  .synopsis-main {
    padding: 3rem;
  }
  .synopsis-main section {
    margin: 2rem 0;
  }
}

.gallery-main {
  padding: 1rem;
}

.gallery-note {
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.gallery-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 1rem 0;
}

.gallery-wrapper a {
  display: block;
  border-radius: var(--border-radius-16);
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}
.gallery-wrapper a:hover {
  border: 0;
}

.gallery-wrapper img {
  display: block;
  height: auto;
  width: 100%;
  border-radius: var(--border-radius-16);
  object-fit: cover;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gallery-wrapper img:hover {
  transform: scale(1.05);
}
@media screen and (min-width: 768px) {
  .gallery-main {
    padding: 1.5rem;
  }
  .gallery-wrapper img {
    height: 120px;
    width: auto;
  }
  .gallery-wrapper a:nth-child(3n + 1) img {
    height: 200px;
  }
  .gallery-wrapper a:nth-child(3n + 2) img {
    height: 140px;
  }
  .gallery-wrapper a:nth-child(3n + 3) img {
    height: 160px;
  }
  .gallery-wrapper a img.portrait {
    height: 240px;
  }
}

@media screen and (min-width: 1024px) {
  .gallery-main {
    padding: 3rem;
  }
  .gallery-wrapper img {
    height: 120px;
    width: auto;
  }
  .gallery-wrapper a:nth-child(3n + 1) img {
    height: 160px;
  }
  .gallery-wrapper a:nth-child(3n + 2) img {
    height: 140px;
  }
  .gallery-wrapper a:nth-child(3n + 3) img {
    height: 200px;
  }
  .gallery-wrapper a:nth-child(4n + 1) img {
    height: 180px;
  }
  .gallery-wrapper a:nth-child(4n + 2) img {
    height: 240px;
  }
  .gallery-wrapper a img.portrait {
    height: 320px;
  }
}

.glass {
  border-radius: var(--border-radius-16);
  background: rgba(255, 255, 255, 0.1); /* semi-transparent background */
  backdrop-filter: blur(8px); /* frosted effect */
  -webkit-backdrop-filter: blur(8px); /* for Safari */
  border: 1px solid rgba(255, 255, 255, 0.2); /* subtle edge */
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.1); /* optional neon-style glow */
}
