:root {
  --white: #fff;
  --black: #000;
  --brand-green: #A1F66E;
  --dark-grey-1: #1E1E1E;
  --dark-grey-2: #181818;
  --text-grey: rgba(255, 255, 255, 0.7);
  --instagram-pink: #CE3BA1;
  --spotify-green: #1ED760;
  --dribbble-pink: #FE51A3;
  --linkedin-blue: #1C92FE;
}

/* TV Static Transition Effect */
.tv-static-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: var(--black);
  overflow: hidden;
}

.tv-static-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.tv-static-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.2) brightness(1.1);
}

.tv-static-audio {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.tv-static-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: staticFlicker 0.03s infinite;
  pointer-events: none;
}

@keyframes staticFlicker {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

/* Entrance Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@font-face {
  font-family: 'Thunder LC';
  src: url('fonts/Thunder LC/Thunder-LC.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Thunder LC';
  src: url('fonts/Thunder LC/Thunder-BoldLC.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Didact Gothic', sans-serif;
  margin: 0;
  overflow: hidden;
}

.background-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 400px;
  background-color: var(--brand-green);
  z-index: -2;
}

.container {
  position: relative;
  height: 700px;
  margin: 144px 36px;
  background-color: var(--dark-grey-1);
  border-radius: 8px;
  padding: 18px;
}

.inner-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--black);
  border-radius: 8px;
  overflow: hidden;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 15px;
}

.time {
  position: fixed;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  letter-spacing: 2%;
  z-index: 1000;
}

.blinking-colon {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

nav {
  position: fixed;
  top: 64px;
  right: 50px;
  display: flex;
  gap: 1.5em;
  z-index: 1000;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

nav.nav-hidden {
  transform: translateY(-100px);
  opacity: 0;
}

nav a {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 2%;
  color: var(--white);
  text-decoration: none;
  filter: blur(1.5px);
  transition: filter 0.3s ease;
}

nav a:hover {
  filter: none;
}

nav a.active {
  color: var(--brand-green);
  filter: none;
}

main {
  padding: 0 112px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

main::-webkit-scrollbar {
  display: none;
}

.hero {
  display: flex;
  align-items: center;
}

.hero-text {
  position: absolute;
  top: 106px;
  left: 106px;
  width: 395px;
  height: auto;
}

h1 {
  position: absolute;
  top: 200px;
  left: 88px;
  font-family: 'Thunder LC', sans-serif;
  font-size: 136px;
  line-height: 1em;
  text-transform: uppercase;
  margin: 0;
  z-index: 1;
}

.project-page h1 {
  position: static;
}

p.description {
  position: absolute;
  top: 357px;
  left: 101px;
  font-size: 18px;
  line-height: 1.5em;
  max-width: 370px;
}

.hero-image {
  position: absolute;
  top: 40px;
  left: 1000px;
  width: 455px;
  height: 453px;
}

.hero-image img {
  width: 100%;
  height: 100%;
}

.footer-content {
  position: absolute;
  bottom: 40px;
  right: 88px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.availability {
  width: 221px;
}

.availability p {
  font-family: 'Thunder LC', sans-serif;
  font-size: 16px;
  font-weight: 400; 
  text-align: right;
}

.social-images {
  display: flex;
  gap: 1rem;
}

.social-images img {
  width: 46px;
  height: 46px;
}

.rotating-disc {
  animation: rotate linear infinite;
}

#disc1 {
  animation-duration: 5s;
}

#disc2 {
  animation-duration: 7s;
}

#disc3 {
  animation-duration: 6s;
}

main.about-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 0;
}

/* Resume link style */
.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: var(--brand-green);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-top: 1em;
}

.resume-link:hover {
  color: var(--white);
}

.resume-link .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.resume-link:hover .arrow {
  transform: translateX(3px) translateY(-3px);
}

/* About Page Styles */
.about-top-container {
  position: relative;
  margin: 144px 36px 4rem 36px;
  background-color: var(--dark-grey-1);
  border-radius: 8px;
  padding: 18px;
}

.about-top-container .inner-container {
  padding: 80px 120px;
  background-color: var(--black);
  border-radius: 8px;
}

.about-page-wrapper .section-title-large {
  font-family: 'Thunder LC', sans-serif;
  font-size: 120px;
  text-align: center;
  margin: 4rem 0 2rem 0;
  font-weight: 700;
}

.about-page-wrapper .about-me-content {
  max-width: 750px;
  margin: 2rem auto;
  text-align: center;
}

.about-page-wrapper .mentions,
.about-page-wrapper .resume {
  max-width: 800px;
  margin: 0 auto;
}

.mention-item, .resume-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 18px;
  align-items: start;
}

.mention-title, .resume-title {
  font-family: 'Didact Gothic', sans-serif;
  text-align: right;
  color: var(--text-grey);
}

.resume-item .date {
  font-size: 16px;
  color: var(--text-grey);
  margin-bottom: 1rem;
}

.contact-footer p {
  font-family: 'Thunder LC', sans-serif;
  font-size: 64px;
  text-align: center;
  line-height: 1.2em;
  margin: 6rem auto;
  max-width: 650px;
  color: var(--white);
}

.contact-footer span {
  color: var(--white);
  transition: color 0.2s;
}

.contact-footer p:hover span {
  color: var(--brand-green);
}

.contact-footer a {
  text-decoration: none;
  color: inherit;
}

.social-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 4rem auto 0 auto;
  padding: 0 1rem;
}

.social-cards .card {
  flex: 0 1 240px;
}

.social-cards a.card,
.social-cards a.card:hover,
.social-cards a.card:focus,
.social-cards a.card:active,
.social-cards a.card:visited {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--dark-grey-2);
  border-radius: 24px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
  min-height: 220px;
  position: relative;
  overflow: hidden;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}

.card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-title {
  font-family: 'Thunder LC', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.card-handle {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 1rem;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}

.card-action {
  font-family: 'DM Mono', monospace;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--brand-green);
  border-radius: 16px;
  padding: 0.4em 1.2em;
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.7rem;
  align-self: flex-start;
  transition: background 0.2s, color 0.2s;
}

.card-track {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  margin-top: 0.5rem;
  opacity: 0.8;
}

.card.spotify .card-handle {
  color: var(--spotify-green);
}

.card.instagram .card-handle {
  color: var(--instagram-pink) !important;
}

.card.instagram .card-action {
  font-family: 'Didact Gothic', sans-serif;
  border-radius: 999px;
}

.card.instagram .card-action .arrow {
  display: inline-block;
  font-size: 1.1em;
  margin-left: 0.3em;
  vertical-align: middle;
  color: var(--white);
  transform: translateY(-2px);
}

.back-to-top {
  display: block;
  text-align: center;
  margin: 4rem auto;
  color: var(--white);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 2%;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 1.4s forwards;
}

.back-to-top:hover {
  color: var(--brand-green);
}

.credits-frame-container {
  position: relative;
  width: 90vw;
  height: 80vh;
  max-width: 1800px;
  max-height: 900px;
  margin: 0;
}

.frame-rect {
  position: absolute;
  border: 1px solid rgba(217, 217, 217, 0.5);
  background-color: var(--black);
}

.rect1 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.rect2 {
  width: calc(100% - 112px);
  height: calc(100% - 64px);
  top: 32px;
  left: 56px;
}

.rect3 {
  width: calc(100% - 256px);
  height: calc(100% - 64px);
  top: 32px;
  left: 128px;
}

.rect4 {
  position: relative;
  width: calc(100% - 360px);
  height: calc(100% - 64px);
  top: 32px;
  left: 180px;
  overflow-y: auto;
  background-color: var(--black);
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.rect4::-webkit-scrollbar {
  display: none;
}
.rect4::before {
  display: none !important;
}

.rect4-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.95) 0%,
    rgba(0,0,0,0) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.rect4-content {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-y: auto;
}

.credits-frame-container .section-title-large {
  font-family: 'Thunder LC', sans-serif;
  font-size: 120px;
  text-align: center;
  margin: 4rem 0 2rem 0;
  font-weight: 700;
}

.credits-frame-container .about-me-content {
  max-width: 750px;
  margin: 2rem auto;
  text-align: center;
}

.credits-frame-container .mentions,
.credits-frame-container .resume {
  max-width: 800px;
  margin: 0 auto;
}

.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
}
.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: rgba(217,217,217,0.3);
}
.crosshair::before {
  left: 50%; top: 0;
  width: 2px; height: 100%;
  transform: translateX(-50%);
}
.crosshair::after {
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}

.mentions {
  text-align: center;
  margin-bottom: 3rem;
}
.mention-group {
  margin-bottom: 2.5rem;
}
.mention-label {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 28px;
  color: #D9D9D9;
  margin-bottom: 0.5em;
}
.mention-detail {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 28px;
  color: #D9D9D9;
  margin-bottom: 0.5em;
}
.mentions .section-title-large {
  text-align: center;
  font-size: 7vw;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.mentions-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.2rem 2.5rem;
  justify-content: center;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.mentions-grid .mention-label {
  font-size: 18px;
  opacity: 0.7;
}
.mentions-grid .mention-detail {
  font-size: 18px;
  opacity: 1;
}
.mention-label {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 24px;
  color: #D9D9D9;
  text-align: right;
  align-self: start;
  margin-top: 0.5em;
}
.mention-detail {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 24px;
  color: #D9D9D9;
  text-align: left;
  align-self: start;
  margin-top: 0.5em;
}
.mentions .section-title-large {
  text-align: center;
  font-size: 7vw;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.about-me-content p,
.focus-columns p,
.mentions-grid .mention-detail,
.resume-item p,
.resume-item .date {
  font-size: 18px;
}

.focus-columns ul {
  margin: 0;
  padding-left: 1.2em;
  list-style-type: disc;
  align-self: flex-start;
}
.focus-columns li {
  font-size: 18px;
  line-height: 1.6;
  font-family: 'Didact Gothic', sans-serif;
}
.focus-columns .column {
  align-self: flex-start;
}

.focus-columns .column:first-child {
  text-align: left;
}

.focus-columns .column:last-child {
  text-align: left;
}

.resume-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 18px;
  align-items: start;
}
.resume-title {
  display: flex;
  align-items: flex-start;
  height: 100%;
  font-family: 'Didact Gothic', sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-align: right;
  color: var(--text-grey);
  padding-top: 0.2em;
  justify-content: flex-end;
}
.resume-item > div > p:first-child {
  margin-top: 0;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Didact Gothic', sans-serif;
  color: var(--brand-green);
}

.resume-item > div p:not(.date) {
  color: var(--brand-green);
}

.resume-list {
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.position-title {
  color: var(--brand-green);
  font-weight: 700;
  font-size: 18px;
  font-family: 'Didact Gothic', sans-serif;
  margin-top: 0;
}

.focus-columns {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  text-align: right;
  transform: translateX(46px);
}

.focus-columns .column p:not(:last-child) {
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .focus-columns {
    transform: none;
  }
}

.card.instagram {
  background: linear-gradient(135deg, rgba(194,53,176,0.10) 0%, rgba(146,54,198,0.10) 100%);
  color: var(--white);
  border-color: rgba(132,60,201,0.15);
}
.card.instagram:hover {
  background: linear-gradient(135deg, rgba(194,53,176,0.28) 0%, rgba(146,54,198,0.28) 100%);
  border-color: rgba(132,60,201,0.45);
  box-shadow: 0 8px 32px rgba(132,60,201,0.20);
}
.card.instagram .card-title,
.card.instagram .card-handle,
.card.instagram .card-action {
  color: var(--white);
}
.card.instagram .card-action {
  background: rgba(132,60,201,0.2);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--white);
  font-weight: 700;
}

.card.dribbble {
  background: linear-gradient(135deg, rgba(254,81,163,0.10) 0%, rgba(133,42,85,0.10) 100%);
  color: var(--white);
  border-color: rgba(254,81,163,0.15);
}
.card.dribbble:hover {
  background: linear-gradient(135deg, rgba(254,81,163,0.28) 0%, rgba(133,42,85,0.28) 100%);
  border-color: rgba(254,81,163,0.45);
  box-shadow: 0 8px 32px rgba(254,81,163,0.20);
}
.card.dribbble .card-title,
.card.dribbble .card-handle,
.card.dribbble .card-action {
  color: var(--white);
}
.card.dribbble .card-handle {
  color: var(--dribbble-pink) !important;
}
.card.dribbble .card-action {
  background: rgba(254,81,163,0.2);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  font-family: 'Didact Gothic', sans-serif;
}

.card.linkedin {
  background: linear-gradient(135deg, rgba(28,146,254,0.10) 0%, rgba(15,76,133,0.10) 100%);
  color: var(--white);
  border-color: rgba(28,146,254,0.15);
}
.card.linkedin:hover {
  background: linear-gradient(135deg, rgba(28,146,254,0.28) 0%, rgba(15,76,133,0.28) 100%);
  border-color: rgba(28,146,254,0.45);
  box-shadow: 0 8px 32px rgba(28,146,254,0.20);
}
.card.linkedin .card-title,
.card.linkedin .card-handle,
.card.linkedin .card-action {
  color: var(--white);
}
.card.linkedin .card-handle {
  color: var(--linkedin-blue) !important;
}
.card.linkedin .card-action {
  background: rgba(28,146,254,0.2);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--white);
  font-weight: 700;
  border-radius: 999px;
  font-family: 'Didact Gothic', sans-serif;
} 

/* Prevent outer frame from showing scrollbar; keep scrolling to inner content */
.rect4 { overflow: hidden; }

/* Hide scrollbar on inner scroll container */
.rect4-content {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rect4-content::-webkit-scrollbar { display: none; } 

/* Projects Page Styles */
.projects-page {
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  overflow: visible;
  padding-top: 144px;
  padding-bottom: 2rem;
  padding-left: 64px;
  padding-right: 64px;
}

@media (max-width: 1200px) {
  .projects-page {
    padding-top: 128px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .projects-page {
    padding-top: 112px;
    padding-left: 0;
    padding-right: 0;
  }
}

body.projects-page-body {
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.projects-page-body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbars on projects page elements */
.projects-page {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-page::-webkit-scrollbar {
  display: none;
}

.projects-grid {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.projects-grid::-webkit-scrollbar {
  display: none;
}

.projects-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  padding: 0 1rem;
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  margin: 0 auto 4rem auto;
  height: 220px;
  flex-direction: row !important;
  gap: 0;
}

.projects-header .projects-title {
  position: static;
  top: auto;
  left: auto;
}

.projects-title {
  font-family: 'Thunder LC', sans-serif;
  font-weight: 700;
  font-size: 120px;
  line-height: 1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  width: 504px;
  height: 211px;
  text-align: left;
  flex-shrink: 0;
  flex-basis: 504px;
  order: 1;
}

.projects-title br {
  display: block;
  content: "";
  margin-top: 0.1em;
}

.projects-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.projects-title .line:nth-child(1) { animation-delay: 0.2s; }
.projects-title .line:nth-child(2) { animation-delay: 0.4s; }

/* Animated titles for about page */
.animated-title {
  line-height: 1.1em;
}

.animated-title .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: none; /* Initially no animation */
}

/* Scroll-triggered animations */
.animated-title.scroll-animate .line {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animated-title.scroll-animate .line:nth-child(1) { animation-delay: 0.2s; }
.animated-title.scroll-animate .line:nth-child(2) { animation-delay: 0.4s; }

/* Body text animations */
.about-me-content,
.focus-columns,
.resume-list,
.mentions-grid,
.contact-footer,
.social-cards {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-me-content.scroll-animate,
.focus-columns.scroll-animate,
.resume-list.scroll-animate,
.mentions-grid.scroll-animate,
.contact-footer.scroll-animate,
.social-cards.scroll-animate {
  opacity: 1;
  transform: translateY(0);
}

.projects-description {
  font-family: 'Didact Gothic', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5em;
  color: var(--white);
  text-align: right;
  width: 490px;
  height: 108px;
  margin: 0;
  margin-top: 112px;
  align-self: flex-end;
  flex-shrink: 0;
  flex-basis: 490px;
  order: 2;
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s ease-out 0.4s forwards;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 2.5rem;
  row-gap: 3.5rem;
  padding: 0 1rem;
  margin-bottom: 4rem;
}

/* Additional spacing and debugging for project cards */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease-out forwards;
  margin-bottom: 2rem; /* Increased spacing between cards */
  border: 1px solid transparent; /* Debug border */
}

.project-card:hover {
  border-color: #666; /* Debug border on hover */
}

.project-card:nth-child(1) { animation-delay: 0.6s; }
.project-card:nth-child(2) { animation-delay: 0.7s; }
.project-card:nth-child(3) { animation-delay: 0.8s; }
.project-card:nth-child(4) { animation-delay: 0.9s; }
.project-card:nth-child(5) { animation-delay: 1.0s; }
.project-card:nth-child(6) { animation-delay: 1.1s; }

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  border-radius: 16px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.8); /* Fallback background */
backdrop-filter: blur(8px);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Enhanced dynamic color overlay */
.project-overlay[style*="background"] {
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-description {
  font-family: 'Didact Gothic', sans-serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4em;
  color: var(--white);
  text-align: left;
  margin: 0;
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.project-card:hover .project-description {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-8px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image {
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  background: #2a2a2a; /* Fallback background color */
  z-index: 1; /* Ensure proper stacking */
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block; /* Ensure proper display */
  min-height: 100%; /* Ensure minimum height */
  opacity: 1 !important; /* Force visibility */
  visibility: visible !important; /* Force visibility */
  z-index: 1; /* Ensure proper stacking */
}

.project-card:hover .project-image img {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.1);
}

.project-title {
  font-family: 'Didact Gothic', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5em;
  color: var(--white);
  margin: 1.5rem 0 0 0;
  padding-left: 1rem;
  margin-bottom: 1rem; /* Add bottom margin for spacing */
}

.projects-contact {
  text-align: center;
  padding: 4rem 2rem;
  margin-top: 4rem;
}

.projects-contact p {
  font-family: 'Thunder LC', sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.2em;
  color: var(--white);
  margin: 6rem auto;
  max-width: 650px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 1.3s forwards;
}

.projects-contact a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.projects-contact a:hover {
  color: var(--brand-green);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .projects-header {
    max-width: 100%;
    padding: 0 2rem;
  }
  
  .projects-title {
    font-size: 80px;
    width: 400px;
    height: auto;
  }
  
  .projects-description {
    font-size: 20px;
    width: 400px;
    height: auto;
    margin-top: 80px;
  }
  
  .projects-contact p {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .projects-header {
    flex-direction: column;
    padding: 0 2rem;
    gap: 2rem;
    height: auto;
    align-items: center;
  }
  
  .projects-title {
    font-size: 60px;
    text-align: center;
    width: 100%;
    height: auto;
  }
  
  .projects-description {
    font-size: 18px;
    text-align: center;
    width: 100%;
    height: auto;
    margin-top: 0;
    align-self: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 2rem;
  }
  
  .project-image {
    height: 400px;
  }
  
  .projects-contact p {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .projects-title {
    font-size: 48px;
  }
  
  .projects-description {
    font-size: 16px;
  }
  
  .project-title {
    font-size: 20px;
  }
  
  .projects-contact p {
    font-size: 24px;
  }
} 

@media (max-width: 1200px) {
  .project-image {
    height: 420px;
  }
} 

/* Project Pages Styles */
body.project-page-body {
  overflow: auto;
}

.project-page {
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  overflow: visible;
  padding: 128px 64px 2rem 64px;
}

.back-to-projects {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 2%;
  margin-bottom: 3rem;
  transition: color 0.2s ease;
}

.back-to-projects:hover {
  color: var(--brand-green);
}

.project-header {
  margin-bottom: 4rem;
}

.project-header .project-title {
  font-family: 'Thunder LC', sans-serif;
  font-size: 120px;
  font-weight: 700;
  line-height: 1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 1rem 0;
  position: relative;
  top: 48px;
}

.project-header .project-subtitle {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 24px;
  color: var(--brand-green);
  margin: 0;
}

.project-hero {
  margin-bottom: 4rem;
}

.project-hero img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.project-content {
  max-width: 800px;
  margin-bottom: 4rem;
}

.project-section {
  margin-bottom: 3rem;
}

.project-section h2 {
  font-family: 'Thunder LC', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 1rem 0;
}

.project-section p {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
  margin: 0;
}

.project-gallery {
  margin-bottom: 4rem;
}

.project-gallery h2 {
  font-family: 'Thunder LC', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.next-project {
  margin-bottom: 4rem;
}

.next-project h2 {
  font-family: 'Thunder LC', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 2rem 0;
}

.next-project-link {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-decoration: none;
  color: inherit;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: background 0.3s ease;
}

.next-project-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.next-project-preview {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border-radius: 12px;
}

.next-project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.next-project-info h3 {
  font-family: 'Thunder LC', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem 0;
}

.next-project-info p {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 18px;
  color: var(--brand-green);
  margin: 0;
}

/* Updated Project Cards with Hover Effects */
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* Responsive Design for Project Pages */
@media (max-width: 1200px) {
  .project-page {
    padding: 128px 2rem 2rem 2rem;
  }
  
  .project-header .project-title {
    font-size: 80px;
  }
  
  .project-section h2,
  .project-gallery h2,
  .next-project h2 {
    font-size: 36px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-page {
    padding: 96px 1rem 2rem 1rem;
  }
  
  .project-header .project-title {
    font-size: 60px;
  }
  
  .project-section h2,
  .project-gallery h2,
  .next-project h2 {
    font-size: 28px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .next-project-link {
    flex-direction: column;
    text-align: center;
  }
  
  .next-project-preview {
    width: 100px;
    height: 100px;
  }
} 

/* Propel Project Page Specific Styles */
.exit-button {
  position: fixed;
  top: 128px;
  right: 64px;
  color: var(--white);
  text-decoration: none;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  letter-spacing: 2%;
  z-index: 1000;
}

.exit-button:hover {
  color: var(--brand-green);
}

.project-header {
  margin-bottom: 0;
  position: relative;
  height: 761px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  perspective: 400px;
}

.project-title .word-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.project-title .word {
  display: inline-block;
}

.project-header .project-title {
  font-family: 'Thunder LC', sans-serif;
  font-size: 120px;
  font-weight: 700;
  line-height: 1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
  margin-top: 0;
  margin-left: -54px;
  width: 654px;
}

.project-header .project-subtitle {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 48px;
  line-height: 1.5em;
  color: var(--white);
  margin: 0;
  max-width: 854px;
  margin-top: 200px;
  margin-left: 54px;
  bottom: 0px;
}

.project-subtitle .word {
  display: inline-block;
  overflow: hidden;
}

.scroll-indicator {
  position: absolute;
  bottom: 66px;
  right: 51px;
  font-family: 'Didact Gothic', sans-serif;
  font-size: 18px;
  color: var(--white);
  margin: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-header .scroll-indicator {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-page-body .project-title,
.project-page-body .project-subtitle,
.project-page-body .video-title,
.project-page-body .about-section .section-title,
.project-page-body .credits-section .section-title,
.project-page-body .styleframes-section .section-title {
    opacity: 0;
}

/* ---------------------------------- */
/* ----------- Video Player --------- */
/* ---------------------------------- */

/* Video Section */
.video-section {
  margin-bottom: 6rem;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.video-frame {
  background: #1E1E1E;
  border-radius: 8px;
  padding: 18px;
  margin: 0 36px;
}

.video-content {
  background: #6C7B76;
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-info {
  position: absolute;
  top: 66px;
  left: 102px;
  z-index: 10;
}

.now-playing {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  color: var(--white);
  margin: 0 0 0.5rem 0;
}

.video-title {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  line-height: 1em;
  letter-spacing: 2%;
  color: var(--white);
  margin: 0;
}

.video-player {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  position: relative;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: none;
}

.video-player.video-started video {
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: 2px solid #F9F9F9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) scale(1.05);
}

.play-icon {
  margin-left: 4px;
}

.pause-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 2;
}

.video-player.is-playing:hover .pause-button {
  opacity: 1;
  visibility: visible;
}

.pause-icon {
  display: flex;
  gap: 8px;
}

.pause-icon .pause-line {
  width: 4px;
  height: 24px;
  background: var(--white);
}

/* Video Controls Section */
.video-controls-section {
  margin-top:-4rem;
  margin-bottom: 128px;
}

.controls-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
}

.controls-content {
  padding: 0;
  min-height: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Left side: Rotating shape and marquee */
.controls-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}

.rotating-shape {
  width: 80px;
  height: 80px;
  border: 2px solid var(--white);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 4s linear infinite;
  flex-shrink: 0;
}

.rotating-shape.paused {
  animation-play-state: paused;
}

.shape-inner {
  width: 55px;
  height: 15px;
  background: var(--brand-green);
  border-radius: 8px;
  position: absolute;
  left: 12px;
  transform-origin: center;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.marquee-container {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  position: relative;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #000 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #000 0%, transparent 100%);
}

.marquee-text {
  display: flex;
  white-space: nowrap;
  animation: marquee 20s linear infinite;
}

.marquee-text.paused {
  animation-play-state: paused;
}

.marquee-text span {
  font-family: 'DM Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-right: 100px;
  letter-spacing: 2%;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Right side: CD icon and controls */
.controls-right {
  display: grid;
  place-items: center;
}

.cd-icon {
  grid-area: 1 / 1;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cdRotate 3s linear infinite;
}

.cd-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@keyframes cdRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.video-controls {
  grid-area: 1 / 1;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-pause-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.play-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid var(--white);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.pause-lines {
  display: flex;
  gap: 4px;
}

.pause-line {
  width: 3px;
  height: 16px;
  background: var(--white);
}

/* Section Dividers */
.section-divider {
  width: 100%;
  height: 1px;
  background: #D9D9D9;
  margin: 2rem 0;
}

/* About Section */
.about-section {
  margin-bottom: 6rem;
  padding: 0 64px;
}

.about-section .section-title {
  font-family: 'Thunder LC', sans-serif;
  font-size: 120px;
  font-weight: 700;
  line-height: 1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 2rem 0;
}

.about-content {
  max-width: 1249px;
}

.about-content p {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 18px;
  line-height: 1.5em;
  color: var(--white);
  margin: 0 0 1rem 0;
}

/* Credits Section */
.credits-section {
  margin-bottom: 6rem;
  padding: 0 64px;
}

.credits-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.credits-left {
  position: sticky;
  top: 2rem;
}

.credits-section .section-title {
  font-family: 'Thunder LC', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.credits-right {
  padding-left: 2rem;
}

.credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
}

.credit-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.credit-label {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 18px;
  color: #808080;
  margin: 0;
}

.credit-name {
  font-family: 'Didact Gothic', sans-serif;
  font-size: 18px;
  color: var(--white);
  margin: 0;
}

/* Styleframes Section */
/* Styleframes Section */
.styleframes-section {
  margin-bottom: 6rem;
  padding: 0 64px;
}

.styleframes-section .section-title {
  font-family: 'Thunder LC', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1em;
  text-transform: uppercase;
  perspective: 400px;
  color: var(--white);
  margin: 0 0 3rem 0;
}

.styleframes-grid {
  display: grid;
  max-width: 1440px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-areas: 
    "top top top top"
    "left left right right"
    "half half half half"
    "quarter-left quarter-left quarter-right quarter-right"
    "fifth-box1 fifth-box2 fifth-box3 fifth-box4";
}

.styleframe-item {
  border-radius: 8px;
  overflow: hidden;
  border: 12px solid var(--black);
  background-color: #f0f0f0;
  margin: -8px;
}

.styleframe-item video,
.styleframe-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grid area assignments */
.styleframe-item.full-width:first-of-type {
  grid-area: top;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 1080px;
}

.styleframe-item.left-half {
  grid-area: left;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 540px;
}

.styleframe-item.right-half {
  grid-area: right;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 540px;
}

.styleframe-item.half-height {
  grid-area: half;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 540px;
}

.styleframe-item.left-quarter {
  grid-area: quarter-left;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 320px;
}

.styleframe-item.right-quarter {
  grid-area: quarter-right;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 320px;
}



.styleframe-item.right-quarter2 {
  grid-area: quarter-right2;
  height: 25vw;
  max-height: 320px;
}

.styleframe-item.left-eighth {
  grid-area: eighth-left;
  height: 25vw;
  max-height: 320px;
}

.styleframe-item.left-eighth2 {
  grid-area: eighth-left2;
  height: 25vw;
  max-height: 320px;
}

.styleframe-item.fifth-box1 {
  grid-area: fifth-box1;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 320px;
}

.styleframe-item.fifth-box2 {
  grid-area: fifth-box2;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 320px;
}

.styleframe-item.fifth-box3 {
  grid-area: fifth-box3;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 320px;
}

.styleframe-item.fifth-box4 {
  grid-area: fifth-box4;
  aspect-ratio: 16/9;
  width: 100%;
  max-height: 320px;
}

/* Desktop layout for larger screens */
@media (min-width: 1200px) {
  .styleframes-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-areas: 
      "top top top top"
      "left left right right"
      "half half half half"
      "quarter-left quarter-left quarter-right quarter-right"
      "fifth-box1 fifth-box2 fifth-box3 fifth-box4";
    gap: 4px;
  }
}





/* Placeholder image styling */
.placeholder-image {
  width: 100%;
  height: 100%;
  background-color: #d0d0d0;
  border: 2px solid #000;
  display: block;
}



/* Contact Section */
.contact-section {
  text-align: center;
  padding: 4rem 2rem;
  margin: 6rem 0;
}

.contact-section p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 1.21em;
  color: var(--white);
  margin: 0 auto;
  max-width: 650px;
}

.contact-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-section a:hover {
  color: var(--brand-green);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  color: var(--brand-green);
}

.back-to-top svg {
  transition: transform 0.3s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* Responsive Design for Propel Page */
@media (max-width: 1200px) {
  .project-header {
    height: auto;
    min-height: 600px;
  }
  
  .project-header .project-title {
    font-size: 80px;
    width: 100%;
    max-width: 600px;
  }
  
  .project-header .project-subtitle {
    font-size: 36px;
    max-width: 700px;
  }
  
  .scroll-indicator {
    bottom: 40px;
    right: 40px;
  }
  
  .about-section .section-title,
  .credits-section .section-title,
  .styleframes-section .section-title {
    font-size: 48px;
  }
  
  .video-content {
    padding: 32px;
    min-height: 500px;
  }
  
  .controls-content {
    min-height: 100px;
  }
  
  .marquee-text span {
    font-size: 36px;
  }
  
  .rotating-shape {
    width: 70px;
    height: 70px;
  }
  
  .shape-inner {
    width: 48px;
    height: 13px;
    left: 11px;
  }
  
  .cd-icon {
    width: 70px;
    height: 70px;
  }
  

  
  .credits-container {
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
  }
  
  .credits-right {
    padding-left: 1rem;
  }
}

@media (max-width: 768px) {
  .exit-button {
    top: 96px;
    right: 32px;
  }
  
  .project-page {
    padding: 96px 1rem 2rem 1rem;
  }
  
  .project-header {
    height: auto;
    min-height: 500px;
    padding: 0 32px;
  }
  
  .project-header .project-title {
    font-size: 60px;
    width: 100%;
    margin-top: 0;
  }
  
  .project-header .project-subtitle {
    font-size: 28px;
    max-width: 100%;
    margin-bottom: 32px;
  }
  
  .scroll-indicator {
    bottom: 20px;
    right: 32px;
  }
  
  .about-section .section-title,
  .credits-section .section-title,
  .styleframes-section .section-title {
    font-size: 36px;
  }
  
  .video-frame {
    margin: 0 16px;
  }
  
  .video-content {
    padding: 24px;
    min-height: 400px;
  }
  
  .controls-container {
    padding: 0 32px;
  }
  
  .controls-content {
    min-height: 80px;
    flex-direction: column;
    gap: 32px;
  }
  
  .controls-left {
    align-items: center;
    text-align: center;
  }
  
  .marquee-text span {
    font-size: 28px;
  }
  
  .rotating-shape {
    width: 60px;
    height: 60px;
  }
  
  .shape-inner {
    width: 40px;
    height: 12px;
    left: 10px;
  }
  
  .cd-icon {
    width: 60px;
    height: 60px;
  }
  
  .play-triangle {
    border-left-width: 10px;
    border-top-width: 6px;
    border-bottom-width: 6px;
  }
  
  .pause-line {
    width: 2px;
    height: 14px;
  }
  
  .credits-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .credits-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .credits-left {
    position: static;
  }
  
  .credits-right {
    padding-left: 0;
  }
  
  .contact-section p {
    font-size: 32px;
  }
  
  .about-section,
  .credits-section,
  .styleframes-section {
    padding: 0 32px;
  }
}

@media (max-width: 480px) {
  .exit-button {
    top: 80px;
    right: 16px;
  }
  
  .project-page {
    padding-top: 80px;
  }

  .project-header {
    height: auto;
    min-height: 400px;
    padding: 0 16px;
  }
  
  .project-header .project-title {
    font-size: 48px;
    margin-top: 0;
  }
  
  .project-header .project-subtitle {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .scroll-indicator {
    bottom: 16px;
    right: 16px;
    font-size: 16px;
  }
  
  .about-section .section-title,
  .credits-section .section-title,
  .styleframes-section .section-title {
    font-size: 28px;
  }
  
  .video-frame {
    margin: 0 8px;
  }
  
  .video-content {
    padding: 16px;
    min-height: 300px;
  }
  
  .controls-container {
    padding: 0 16px;
  }
  
  .controls-content {
    min-height: 70px;
  }
  
  .marquee-text span {
    font-size: 24px;
  }
  
  .rotating-shape {
    width: 50px;
    height: 50px;
  }
  
  .shape-inner {
    width: 35px;
    height: 10px;
    left: 8px;
  }
  
  .cd-icon {
    width: 50px;
    height: 50px;
  }
  
  .play-triangle {
    border-left-width: 8px;
    border-top-width: 5px;
    border-bottom-width: 5px;
  }
  
  .pause-line {
    width: 2px;
    height: 12px;
  }
  
  .contact-section p {
    font-size: 24px;
  }
  
  .about-section,
  .credits-section,
  .styleframes-section {
    padding: 0 16px;
  }
} 

.projects-page-body.project-open {
    overflow: hidden; /* Prevent scrolling when project is open */
}

/* --- Play Page Styles --- */
.play-page-body {
    background-color: #f0f0f0;
    background-image: radial-gradient(#cccccc 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--black);
    overflow: auto; /* Allow scrolling */
}

.play-page {
    padding: 25vh 0vw 15vh 0; /* Removed left padding */
    max-width: 1600px;
    margin: 0 auto;
}

.play-header {
    margin-bottom: 10vh;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 88px;
}

.play-header h1 {
    font-family: 'Thunder LC', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--black);
    position: static;
    left: auto;
    margin-left: 0;
    padding-left: 0;
}

.play-header p {
    font-family: 'DM Mono', monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.6;
    color: #333;
    margin-left: 0;
    padding-left: 0;
}

@media (max-width: 768px) {
  .play-header {
    padding-left: 4vw;
  }
}

.playground-wrapper {
    padding: 0 8vw;
}

.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem 2rem;
    justify-items: center;
    align-items: center;
}

.playground-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 3px 6px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.playground-item img {
    max-width: 100%;
    display: block;
    border-radius: 2px;
}

.item-title {
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    color: #333;
    margin-top: 1rem;
    text-align: center;
}

.playground-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

/* Add varied rotation to items for a scattered look */
.playground-item:nth-child(6n+1) {
    transform: rotate(-2.5deg);
}
.playground-item:nth-child(6n+2) {
    transform: rotate(3deg);
}
.playground-item:nth-child(6n+3) {
    transform: rotate(1.5deg);
}
.playground-item:nth-child(6n+4) {
    transform: rotate(-3.5deg);
}
.playground-item:nth-child(6n+5) {
    transform: rotate(4deg);
}
.playground-item:nth-child(6n+6) {
    transform: rotate(-1deg);
}

.playground-item:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15), 0 5px 10px rgba(0,0,0,0.12);
    z-index: 10;
}

/* Ensure nav and time are visible on the light background of the play page */
.play-page-body .time,
.play-page-body nav a {
    color: var(--black);
}

/* Mobile experience notice */
#mobile-notice {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 99999;
    padding: 2rem;
    box-sizing: border-box;
    flex-direction: column;
}

#mobile-notice-content {
    max-width: 400px;
}

#mobile-notice h2 {
    font-family: 'Thunder LC', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--brand-green);
}

#mobile-notice p {
    font-family: 'Didact Gothic', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#close-mobile-notice {
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    color: var(--black);
    background: var(--brand-green);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}

#close-mobile-notice:hover {
    background: #8ee062;
}

@media (max-width: 1024px) {
    #mobile-notice {
        display: flex;
    }

    body.mobile-notice-active {
        overflow: hidden;
    }
} 