@font-face {
  font-family: "CloisterBlack";
  src: url('./fonts/CloisterBlack.ttf');
}

@font-face {
  font-family: "PTMono";
  src: url('./fonts/PTMono-Regular.ttf');
}

@font-face {
  font-family: "AileronBlack";
  src: url('./fonts/Aileron-Black.otf');
}

@font-face {
  font-family: "AileronRegular";
  src: url('./fonts/Aileron-Regular.otf');
}

@font-face {
  font-family: "KremlinPremier";
  src: url('./fonts/Kremlin-Premier.ttf');
}

:root {
  /* Dimensions & Spacings */
  --header-height: 80px;

  /* Fonts */
  --font-base: "AileronRegular", sans-serif;
  --font-mono: "PTMono", monospace;
  --font-title: "AileronBlack", sans-serif;

  --text-size-base: clamp(12px, 1.5vw, 14px);
  --text-size-h1: clamp(32px, 5vw, 50px);
  --text-size-h2: clamp(20px, 3vw, 25px);

  /* Light Theme */
  --bg-color: #f0f0f0;
  --bg-color-alt: #ffffff;
  --bg-menu: #D5D2C9;
  --text-color: #000000;
  --border-color: #000000;

  --link-color: #000000;
  --menu-border: 1px solid #000000;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-color: #0f0f0f;
  --bg-color-alt: #1b1b1b;
  --bg-menu: #3B3B38;
  --text-color: #ffffff;
  --border-color: #ffffff;

  --link-color: #ffffff;
  --menu-border: 1px solid #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  color: var(--text-color);
  background-color: var(--bg-color-alt);
  font-family: var(--font-base);
  cursor: crosshair;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1 {
  font-size: var(--text-size-h1);
  line-height: 1.2;
  font-weight: bold;
  font-family: var(--font-title);
  margin-bottom: 20px;
}

h2 {
  font-size: var(--text-size-h2);
  line-height: 1.5;
  margin-bottom: 10px;
}

h3,
h4,
h6 {
  font-size: var(--text-size-base);
  line-height: 2;
}

/* ----- LOADER ----- */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  background-color: #0f0f0f;
  display: flex;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  justify-content: center;
  align-items: center;
}

/* ----- HEADER ----- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-color);
  font-size: var(--text-size-base);
  z-index: 666;
  transition: background-color 0.4s ease;
}

.header-left,
.header-middle,
.header-right {
  padding: 1vh 2vw;
}

.header-middle {
  font-family: var(--font-mono);
}

.header-left-logo {
  height: 3vh;
  min-height: 60px;
  cursor: pointer;
}

.header-middle-network-logo,
.header-right-logo {
  height: 3vh;
  min-height: 30px;
  cursor: pointer;
}

/* ----- FOOTER ----- */
#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-color);
  z-index: 666;
  font-size: var(--text-size-base);
  transition: background-color 0.4s ease;
}

.footer-left,
.footer-middle-left,
.footer-middle-right,
.footer-right {
  padding: 1vh 2vw;
  flex: 1;
}

.footer-left {
  font-family: var(--font-mono);
  text-align: left;
}

.footer-middle-left {
  text-align: center;
}

.footer-middle-right {
  font-family: var(--font-mono);
  text-align: center;
}

.footer-right {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-right-link {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 20px;
  font-family: var(--font-mono);
  font-weight: bold;
  transition: opacity 0.3s ease, color 0.4s ease;
}

.footer-right-link:hover {
  opacity: 0.6;
}

@media only screen and (max-width: 1260px) {

  .footer-left,
  .footer-middle-left {
    display: none;
  }

  .footer-middle-right,
  .footer-right {
    flex: none;
    width: 50vw;
  }

  .footer-middle-right {
    text-align: left;
  }
}

/* ----- MENU ----- */
#menu {
  z-index: 667;
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-menu);
  color: var(--text-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.menu-header,
.menu-footer {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
}

.menu-header-left,
.menu-header-middle,
.menu-header-right,
.menu-footer-left,
.menu-footer-middle,
.menu-footer-right {
  padding: 1vh 2vw;
}

.menu-header-left-logo {
  height: 3vh;
  min-height: 60px;
  cursor: pointer;
}

.menu-header-right-logo,
.menu-header-middle-network-logo {
  height: 3vh;
  min-height: 30px;
  cursor: pointer;
}

.menu-content {
  display: flex;
  flex-direction: row;
  width: 90vw;
  max-width: 1200px;
  margin: auto;
  min-height: calc(100vh - 160px);
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.menu-content table {
  width: 100%;
  border-collapse: collapse;
}

.menu-content table tr td {
  padding: 15px 10px;
  border-bottom: var(--menu-border);
  transition: border-color 0.4s ease, background-color 0.3s ease;
}

.menu-content table tr td:last-child {
  font-family: var(--font-mono);
  text-align: right;
}

.menu-content table tr:hover td {
  cursor: pointer;
  background-color: rgba(128, 128, 128, 0.1);
}

/* ----- PROJECT ----- */
.project {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-breadcrumb {
  display: none;
}

.project-content {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 160px);
  max-width: 1600px;
  margin: 0 auto;
}

.project:last-child .project-content {
  margin-bottom: var(--header-height);
}

.project-content-left {
  display: flex;
  width: 60vw;
  height: calc(100vh - 160px);
  min-height: 480px;
}

.project-content-right {
  display: flex;
  flex-direction: column;
  width: 40vw;
  min-height: 480px;
  padding: 2vw;
}

.project-content-right-up {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  /* Replace height: 90% with flex-grow */
  text-align: center;
}

.project-content-right-down {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding-bottom: 20px;
  margin-top: 20px;
}

.project-content-right-down-icon {
  height: 25px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-content-right-down-icon:hover {
  transform: scale(1.1);
}

/* HOME SPECIFIC */
.home-content {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 160px);
  margin-top: var(--header-height);
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.home-content-vid {
  object-fit: cover;
  width: 100vw;
  height: 100%;
}

.home-content-logo {
  position: absolute;
  width: 30vw;
  min-width: 200px;
  height: auto;
}

/* BIO SPECIFIC */
.bio-content {
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.bio-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.bio-image-wrapper img {
  width: 100%;
  max-width: 256px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bio-overlay-text {
  margin-top: 30px;
  max-width: 600px;
  text-align: center;
  line-height: 1.6;
}

/* SLIDER */
.slider {
  position: relative;
  height: 100%;
  width: 100%;
  min-height: 480px;
}

.slider-item {
  height: 100%;
  width: 100%;
  display: none;
}

.slider-item img,
.slider-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prev,
.next {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  transition: background-color 0.3s ease;
  cursor: w-resize;
  z-index: 10;
}

.next {
  right: 0;
  cursor: e-resize;
}

/*
.prev:hover, .next:hover {
  background-color: rgba(128, 128, 128, 0.05);
}
*/

.fade {
  animation: fade 1.2s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* RESPONSIVE */
@media only screen and (max-width: 960px) {
  .project {
    height: auto !important;
    min-height: 100vh;
  }

  .project-content-even {
    flex-direction: column;
  }

  .project-content-odd {
    flex-direction: column-reverse;
  }

  .project-content-left,
  .project-content-right {
    width: 100vw;
    height: auto;
    min-height: 50vh;
  }

  .project-content-right {
    padding-bottom: 100px;
    /* Prevent links from hiding behind footer */
    padding-top: 40px;
  }

  .slider {
    min-height: 50vh;
  }

  .menu-content table tr td {
    display: block;
    width: 100%;
    text-align: center !important;
    border-bottom: none;
  }

  .menu-content table tr {
    border-bottom: var(--menu-border);
    display: block;
    padding: 15px 0;
  }
}