:root {
  --cyan: #00b7ff;
  --magenta: #e51eff;
  --yellow: #fff01e;
  --cubeSize: 100px;

  --cyan-translucent: #00b7ffb6;
  --magenta-translucent: #e51effb5;
  --yellow-translucent: #fff01ebc;
}

.side-areas {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 600px;
  height: 40px;
  margin: 2rem auto 0 auto;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.side-area {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 100%;
  transition: width 0.3s;
}
.side-area.tech {
  background: var(--cyan);
}
.side-area.art {
  background: var(--magenta);
}
.side-area.edu {
  background: var(--yellow);
}
main {
  position: relative;
}
/* Minimal CSS for fast loading */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #fafafa;
  color: #222;
}
/* Responsive Navigation Menu */
.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}
.nav-list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1.8rem;
  transition: color 0.2s;
}
.nav-list li a:hover {
  color: var(--magenta);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 1rem;
}
.hamburger {
  display: block;
  width: 28px;
  height: 3px;
  background: #222;
  position: relative;
  transition: background 0.3s;
}
.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: #222;
  position: absolute;
  left: 0;
  transition: transform 0.3s;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}
.hamburger.open {
  background: transparent;
}
.hamburger.open::before {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.open::after {
  transform: rotate(-45deg) translate(5px, -6px);
}
.hamburger.open,
.hamburger.open::before,
.hamburger.open::after {
  background: #222;
}
.hamburger.open {
  /* Hide the middle bar */
  height: 0;
}

.noscroll{
  margin: 0; 
  height: 100%; 
  touch-action: none;
}

.prevent-select {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

@media (max-width: 600px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .main-nav {
    margin-left: 0;
  }
  .nav-list {
    flex-direction: column;
    position: absolute;
    top: 20px; /* Show menu a bit lower below header */
    right: 0;
    left: auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    gap: 0;
    display: none;
    z-index: 10;
    align-items: flex-end;
    padding-left: 10px;
    padding-right: 10px;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
}

main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cube {
  position: relative;
  width: var(--cubeSize);
  height: var(--cubeSize);
  transform-style: preserve-3d;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
}

.cube:hover {
  cursor: grab;
}

.cube.grabbing {
  cursor: grabbing;
}

.cube:active {
  cursor: grabbing;
}

.cube div {
  position: absolute;
  width: var(--cubeSize);
  height: var(--cubeSize);
  box-sizing: border-box;

  font-size: calc(var(--cubeSize)*0.4);
  font-weight: 900;
  color: white;
  line-height: 0.8;
  padding-top: 0%;
  overflow: hidden;
}

/* Position each face of the cube */
.front {
  transform: translateZ(calc(var(--cubeSize)/2));
  background: var(--cyan-translucent);
}

.back {
  transform: rotateY(180deg) translateZ(calc(calc(var(--cubeSize)/2) + 0.01px));
  background: var(--cyan-translucent);
}

.left {
  transform: rotateY(-90deg) translateZ(calc(var(--cubeSize)/2));
  background: var(--magenta-translucent);
}

.right {
  transform: rotateY(90deg) translateZ(calc(var(--cubeSize)/2));
  background: var(--magenta-translucent);
}

.top {
  transform: rotateX(90deg) translateZ(calc(var(--cubeSize)/2));
  background: var(--yellow-translucent);
}

.bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--cubeSize)/2));
  background: var(--yellow-translucent);
}



.googly-eyes {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(var(--cubeSize) / 2) !important;
}
.googly-svg {
  width: calc(var(--cubeSize) * 0.6);
  height: calc(var(--cubeSize) * 0.3);
  display: block;
}
.pupil {
  transition: cx 0.1s, cy 0.1s; 
}

.cube-container{
  position: relative;
}

.cubehitbox {
  width: calc(var(--cubeSize) * 1.42) !important;
  height: calc(var(--cubeSize) * 1.8) !important;
  position: absolute;
  top: calc(var(--cubeSize) * -0.4);
  left: calc(var(--cubeSize) * -0.21);
  /* background-color: rgba(0, 255, 255, 0.467); */
  background-color: none;
}

.cubehitbox:hover {
  cursor: grab;
}

.cubehitbox.grabbing {
  cursor: grabbing;
}

.cubehitbox:active {
  cursor: grabbing;
}

.card-container {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  overflow-y: auto;
  padding: 2px;
}

.card-thumb {
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3.5 / 3;
  overflow: hidden;
  display: block;
}

.card-info{
  height: 100%;
  aspect-ratio: 3.25/3;
  padding: 0.83em;
}

@media (min-width: 700px) {
  :root{
    --cubeSize: 150px;
  }

  .side-areas {
    margin-top: 45px;
  }

  .card-container {
    grid-template-columns: 1fr 1fr;
  }

    .card-thumb {
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    display: block;
  }

  .card-info{
    height: 100%;
    aspect-ratio: 1.75/3;
    padding: 0.83em;
  }

}

@media (min-width: 1500px) {
  .card-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.card {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  overflow: hidden;
  aspect-ratio: 2.25 / 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-link{
  text-decoration: none;
  color: inherit;
  display: flex;
  height: calc(100% - 5px);
  width: 100%;
}

.card-title{
  font-size: 1.25em;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.card-desc{
  font-size: 1em;
  margin: 0.5em 0 0;
  line-height: 1.3;
  font-weight: 600;
  color: rgb(150, 150, 150);
}

.card-dna-bar {
  top: 0px;
  display: flex;
  width: 100%;
  height: 5px;
  overflow: hidden;
}
.card-dna-segment {
  height: 100%;
  transition: width 0.3s;
}
.card-dna-segment.tech {
  background: var(--cyan);
}
.card-dna-segment.art {
  background: var(--magenta);
}
.card-dna-segment.edu {
  background: var(--yellow);
}


.spin-text-circle {
  width: calc(var(--cubeSize) * 2.3) !important;
  height: calc(var(--cubeSize) * 2.3) !important;
  position: absolute;
  top: calc(var(--cubeSize) * -0.65);
  left: calc(var(--cubeSize) * -0.65);
  z-index: -10;
  font-size: 18px;
  font-weight: 600;
}

.spin-svg{
  width: calc(var(--cubeSize) * 2.3) !important;
  height: calc(var(--cubeSize) * 2.3) !important;
}