:root {
    --purple: #3e2ece;
    --greyblack: #312F37;
    --creme: #fdf7f9;
    --dustylav: #BFBAD0;
  }
  
  @font-face {
    font-family: 'Roboto Mono';
    src: url('./fonts/RobotoMono-Regular.ttf');
  }

  @font-face {
    font-family: 'Roboto Mono Medium';
    src: url('./fonts/RobotoMono-Medium.ttf');
    font-weight: 500;
  }
  
  @font-face {
    font-family: 'Roboto Mono Italic';
    src: url('./fonts/RobotoMono-Italic.ttf');
    font-style: italic, oblique;
  }
  
  @font-face {
    font-family: 'Roboto Mono Light';
    src: url('./fonts/RobotoMono-Light.ttf');
    font-weight: 300;
  }
  
  @font-face {
    font-family: 'Roboto Mono LightItalic';
    src: url('./fonts/RobotoMono-LightItalic.ttf');
    font-weight: 300;
    font-style: italic, oblique;
  }

  @font-face {
    font-family: 'Roboto Mono Bold';
    src: url('./fonts/RobotoMono-Bold.ttf');
    font-weight: 600;
  }

  @font-face {
    font-family: 'Roboto Mono Bold Italic';
    src: url('./fonts/RobotoMono-BoldItalic.ttf');
    font-weight: 600;
    font-style: italic, oblique;
  }

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

  @font-face {
    font-family: 'Archivo Light';
    src: url('./fonts/Archivo-Light.ttf');
    font-weight: 300;
  }

  @font-face {
    font-family: 'Archivo Bold';
    src: url('./fonts/Archivo-Bold.ttf');
    font-weight: 600;
    font-style: bold;
  }

  @font-face {
    font-family: 'Archivo Italic';
    src: url('./fonts/Archivo-Italic.ttf');
    font-weight: 600;
    font-style: italic;
  }

  body {
    background: radial-gradient(
      circle at 20% 30%,
      #FBECCF 0%,       /* Cream center */
      #e8d9b5 30%,      /* Light tan */
      #BFBAD0 70%,      /* Lavender mid */
      #9f99b0 100%      /* Darker lavender edge */
    );
    background-attachment: fixed;
    margin: 0;
    min-height: 100vh;
  }
  

  canvas {
    position: fixed;
    top: 0;
    left: 0;
  }

  main {
    position: absolute;
    /* absolute position on main body is impt for threejs; */
    width: 80vw;
    color: var(--greyblack);
    z-index: 99;
    margin: 0px auto;
    padding: 40px 40px;
    font-family: 'Roboto Mono';
    display: flex;
    flex-direction: column;
    /* max-width: 1080px; */
    /* grid-template-columns: repeat(12, 1fr); */
    /* gives 12 equally sized columns for positioning children */
  }

  nav {
    /* grid-column: 2 / span 5; */
    /* start at 2nd col, take up 5 cols */
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    top: 0;
    height: 36px;
    padding: 16px;
    margin-top: 20px;
    background: var(--creme);
    /* border: 1px solid rgba(0, 0, 0, 0.4); */
    box-shadow: 4px 4px 18px var(--dustylav);
    border-radius: 16px;
    align-items: center;
    z-index: 1000;
    /* -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; */

  }

  .navigation .links {
    display: flex;
    list-style-type: none;
    gap: 16px;
    margin-left: 20px;
}

.navigation .links li {
  display: inline-block !important; /* Makes list items horizontal */
}

a {
    text-decoration: none;
    font-weight: 500;
    color: var(--purple);
    font-weight: bold;
}

a:hover {
    color: var(--greyblack);
    /* padding-bottom: 8px; */
    cursor: pointer;
}


  h2 {
    font-size: 1.2rem;
    color: var(--greyblack);
    font-weight: 600;
  }

  p {
    font-family: 'Archivo';
    font-size: 1rem;
    color: var(--greyblack);
    font-weight: 400;
    line-height: 1.2rem;
  }



audio {
  margin-left: 20px;
  height: 40px;
}


  /* section, footer {
    /* grid-column: 2 / 8;  */
    /* start at 2nd col, end at 8th col 
  } */

#hero {
  height: 40rem;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

#hero-tagline {
  width: fit-content;
  max-width: 50%;
  margin-right: 5%;
  background-color: rgba(253,247,249, 0.9);
  border-radius: 20px;
  /* border: 1px solid rgba(0, 0, 0, 0.4); */
  padding: 1rem;
  box-shadow: 4px 4px 18px var(--dustylav);
}

#hero-tagline > h2 {
  color: var(--greyblack);
}

/* Projects section container */
.projects-container {
  min-height: 40rem;
  /* padding: 2rem; */
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Filter buttons */
.tags-filter {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tags-filter button {
  padding: 0.5rem 1rem;
  background: var(--creme);
  color: var(--greyblack);
  border: 1px solid var(--dustylav);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Roboto';
  font-weight: 600;
}

.tags-filter button:hover {
  background: var(--purple);
  color: var(--creme);
}

.tags-filter button.active {
  background: var(--greyblack);
  color: var(--creme);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: 100%;

  aspect-ratio: 1 / 1.5; /* Adjust ratio to fit your content */
  min-height: 0;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Media container - unchanged */
.project-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  flex-shrink: 0;
  /* margin-bottom: 1rem; */
}

/* Image styling */
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-video {
width: 100%;
height: 100%;
object-fit: fill;
}

/* Caption area */
.project-caption {
  flex: 1; /* Takes remaining space */
  min-height: 0; /* Allows shrinking */
  background-color: rgba(255, 255, 255, 0.8);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

/* Description overlay - now perfectly contained */
.project-description {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 47, 55, 0.8);
  color: var(--creme);
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: scale 0.3s ease;
  z-index: 2;

  box-sizing: border-box;
}

.description {
  color: var(--creme);
  padding: 2rem;
}

/* Hover effects */
.project-card:hover .project-description {
  opacity: 1;
}

.project-card:hover {
  box-shadow: 4px 4px 18px var(--dustylav);
  transform: scale(1.05, 1.05);
}

/* Optional: Add subtle scale effect without layout shift */
.project-media {
  transition: transform 0.3s ease;
}


/* Case studioes */


/* #case-study-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 100;
  padding: 2rem;
  overflow-y: auto;
  display: none; /* Start hidden */
/* }

.case-study {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-height: 100vh;
  overflow-y: auto;
} */ 

/* Case study popups
.popup {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
  display: none;
} */

.popup-content {
  background: white;
  max-width: 900px;
  /* margin: 2rem auto; */
  padding: 2rem;
  border-radius: 8px;
  position: relative;
}

.popup:not(.hidden) {
  display: block;
}

/* Homepage content when popup is open */
body.popup-open main {
  filter: brightness(0.7); /* Slightly dim the content */
  transition: filter 0.3s ease;
}

/* Close button */
.close-text {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  color: white;
}



/* Hide projects grid when viewing case study */
body.showing-case-study #tags {
  display: none;
}
/* Responsive adjustments */
/* @media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
} */

.grid {
  height: 24rem;
  width: 24rem;

}

  .popup {
    background-color: white;
    border-radius: 16px;
    border: solid 1px black;
    padding: 20px;
    max-width: 1080px;
    max-height: 720px;
    z-index: 110;
    position: fixed;
    width: 80vw;
    margin: 40px;
    top: 35%;
    left: 45%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }

  .close-text {
    font-size: 12px;
    color: gray;
    cursor: pointer;
    text-align: right;
  }

  .hidden {
    display: none !important;
  }

  .teaser {
    height: 600px; 
    display: flex;

  }

  .row {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 600px;
  }


  .portfolio-item > img {
    height: 480px;
    width: auto;
  }

  #cmm-video {
    width: 1080px;
    height: 720px;
  }


  .container {
    position: relative;
    overflow: hidden;
    width: 50%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  }

  /* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

  /* width */
::-webkit-scrollbar {
  width: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #e3dcf1;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #cec7db;
}

#paintings > * {
  width: 100vw;
  max-width: 1080px;
}

#moth-website {
  margin-top: 240px;
}

/* Make React output match your existing styles */
.react-filter .tags {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.react-filter .tag {
  /* Copy styles from your existing .tag class */
  padding: 8px 16px;
  background: #f0f0f0;
  border: none;
  cursor: pointer;
}
.react-filter .tag.active {
  background: #646cff;
  color: white;
}
/*.projects-grid {*/
/*  display: grid;*/
/*  grid-template-columns: repeat(3, 1fr);*/
/*  gap: 20px;*/
/*}*/
.grid {
  /* Your existing .grid styles */
  border: 1px solid #ddd;
  transition: transform 0.2s;
}
.grid:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {

}


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

  body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

  main {
    width: auto;
    padding: 0;
    box-sizing: border-box;
    flex-direction: column;
    justify-content: center;
    margin: 1rem;
  }

  #hero-tagline {
    max-width: 100%;
  }

  /* nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 14px;
    max-width: 100vw;
    box-sizing: border-box;
    left: 50%; 
    transform: translateX(-50%);
    height: auto;
  } */

  nav .logo {
    margin-bottom: 10px; /* Add spacing for the logo */
}

nav .links {
    padding: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul a {
    text-decoration: none;
    display: block; /* Ensure links stack vertically */
    padding: 8px 0;
}

audio {
  align-self: flex-start;
}

.projects-grid {
  display: flex;
  flex-direction: column;
  max-width: 100vw;
}


  #portfolio {
    margin-top: 80px;
  }



  .container {
    position: relative;
    overflow: hidden;
    width: 380px;
    height: auto;
    /* padding-top: 56.25%; 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
  }
}