@font-face {
  font-family: "BolotaVariable";
  src: url("fonts/BolotaVariable.ttf") format("truetype");
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat.ttf") format("truetype");
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #232323;
  color: #f7f7f7;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  font-weight: normal;
}

html {
  scroll-behavior: smooth;
}

.layout {
  display: flex;
}

/* Sidebar */
aside {
  position: fixed;
  top: 20px;
  left: 0;
  width: 450px;
  bottom: 0;
  background-color: #232323;
  color: #f7f7f7;
  border: 2px solid #f7f7f7;
  border-left: none;
  border-bottom: none;
  border-start-end-radius: 60px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-logo {
  align-items: center;
  text-align: center;
  width: 300px;
  height: auto;
  border-radius: 50%;
}

.sidebar-title {
  color: #ef0ad9;
  font-family: "BolotaVariable", sans-serif;
  font-weight: normal;
  font-size: 2rem;
  margin-bottom: -0.5rem;
  letter-spacing: 0.75px;
}

.sidebar-pronoums {
  padding-bottom: 2rem;
}

.sidebar-subtitle {
  background: url("/assets/icons/PillButton2.png");
  background-size: 195px 40px;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  width: 220px;
  height: 53px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-icons {
  display: flex;
  gap: 0.75rem;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 2.5rem;
}

.sidebar-icon {
  width: 50px;
  height: auto;
}

/* Main content */
main {
  margin-left: 450px;
  padding: 3rem;
  margin-right: 100px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  font-size: 1.2rem;
}

section {
  margin-bottom: 1rem;
}

.hero-container {
  display: flex;
  margin-top: 75px;
  margin-left: -50px;
  flex-direction: row;
  justify-content: flex-start;
  padding: 3rem;
  border: 2px solid #f7f7f7;
  border-left: none;
  border-start-end-radius: 60px;
  max-width: 1400px;
}

.hero-left {
  flex: 0 0 auto;
  align-items: start;
  padding-left: 2rem;
}

.hero-title {
  color: #ef0ad9;
  font-family: "BolotaVariable", sans-serif;
  font-weight: normal;
  line-height: 4rem;
  font-size: 3.5rem;
  letter-spacing: 0.75px;
  width: 300px;
}

.hero-right {
  max-width: 950px;
  align-items: center;
  color: #f7f7f7;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  line-height: normal;
  flex-wrap: wrap;
}

.bold {
  color: #00e1ff;
  font-weight: 600;
}

.projects-title {
  color: #ef0ad9;
  font-family: "BolotaVariable", sans-serif;
  font-weight: normal;
  font-size: 2rem;
  letter-spacing: 0.75px;
  text-align: center;
  padding-bottom: 1.75rem;
}

/* Projects section with animated flipping cards */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.project-card {
  width: 400px;
  height: 250px;
  perspective: 1000px;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: transform 0.5s ease, width 0.5s ease, height 0.5s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:not(.flipped):hover {
  animation: pulse 2s infinite ease-in-out;
}

.project-card.flipped {
  animation: none;
}

.project-card.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90vw;
  height: 90vh;
  transform: translate(-50%, -50%);
  z-index: 999;
  will-change: transform;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s;
}

.project-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-back {
  transform: rotateY(180deg);
  background-color: #232323;
  color: #f7f7f7;
  padding: 2rem;
  overflow-y: auto;
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
}

.card-back a {
  color: #00e1ff;
  text-decoration: underline;
  display: inline-block;
  margin-top: 1rem;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.close-btn img {
  width: 30px; /* or whatever size you prefer */
  height: auto;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 998;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.thumbnail {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, border 0.2s;
}

.thumbnail-wrapper.active .thumbnail {
  opacity: 1;
  border: 2px solid #00e1ff;
}

.thumbnail:hover {
  opacity: 1;
}

.main-media-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.main-media {
  flex-grow: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.nav img {
  width: 40px; /* or adjust to match your design */
  height: auto;
  filter: drop-shadow(0 0 4px #000);
}

.main-display {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  background-color: black;
}

@media (max-width: 768px) {
  .thumbnail {
    width: 50px;
    height: 30px;
  }

  .main-media-container {
    max-width: 90vw;
    height: auto;
  }
}

.thumbnail-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  object-fit: contain;
}

.media-gallery {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.project-title {
  width: 100%;
  max-width: 800px;
  margin-top: 10px;
  font-family: "BolotaVariable", sans-serif;
  font-weight: normal;
  letter-spacing: 0.75px;
  text-align: center;
  font-size: 2rem;
  color: #00e1ff;
}

.project-description {
  width: 100%;
  max-width: 800px;
  text-align: left;
  font-size: 1.2rem;
  color: #f7f7f7;
}

.project-bullets {
  width: 100%;
  max-width: 800px;
  list-style: disc;
  padding-left: 1.5rem;
  font-size: 1.1rem;
  color: #f7f7f7;
}

.project-bullets li {
  margin-bottom: 0.4rem;
}

.project-play-button {
  background: url("/assets/icons/PillButton.png");
  background-size: contain;
  border: none;
  color: #00e1ff;
  font-family: "BolotaVariable", sans-serif;
  font-weight: normal;
  font-size: 1.2rem;
  letter-spacing: 0.75px;
  padding: 0;
  width: 180px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-align: center;
  flex-shrink: 0;
}

.project-play-button:hover {
  transform: scale(1.05);
  color: #00e1ff;
}

.project-play-button.coming-soon {
  opacity: 0.5;
  pointer-events: none;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  z-index: 1;
}

.custom-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  z-index: 2;
}

@media screen and (width < 1350px) {
  .hero-container {
    flex-direction: column;
  }
}

@media screen and (width < 950px) {
  aside {
    position: relative;
    flex-direction: column;
    border: none;
    width: auto;
    min-width: 450px;
    padding: 2rem;
    align-items: center;
    border-bottom: 1px dashed #f7f7f7;
  }

  main {
    margin: auto;
    padding: auto;
    align-items: center;
    min-width: 450px;
  }

  .hero-container {
    border: none;
    width: auto;
    margin-top: 0;
    margin-left: 0;
    padding: 2rem;
    min-width: 450px;
    border-bottom: 1px dashed #f7f7f7;
  }

  .hero-left {
    padding-left: 0;
    width: auto;
    min-width: 450px;
  }

  .hero-right {
    min-width: 450px;
    padding: 1.5rem;
  }

  .hero-title {
    width: auto;
    text-align: center;
  }
}
