body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
}

div {
  font-family: "Inter", Arial, sans-serif;
}

a {
  all: unset;
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s infinite;
  margin-left: 2px;
}

.typing-active {
  background-color: rgba(0, 0, 0, 1) !important;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.welcome-text {
  font-size: 2em;
  color: white;
}

.main-content {
  opacity: 0;
  padding: 0;
  transition: opacity 1s ease-in;
  pointer-events: none;
  user-select: none;
}

.main-content.show {
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

.video-background {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.video_text {
  position: relative;
  z-index: 3;
  margin-left: 10px;
  margin-top: 10px;
}

.hi_text,
.hi_bottom {
  background-color: rgba(0, 0, 0, 0);
  padding: 10px 15px;
  margin: 0px;
  width: fit-content;
  border-radius: 0px;
  transition: background-color 0.3s ease;
}

.hi_bottom {
  margin-top: 5px;
}

.links {
  position: fixed;
  right: 10px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
  z-index: 2000;
  border-style: solid;
  border-color: transparent;
  border-width: 2px;
  transition: border-color 0.3s ease, border-width 0.1s ease, font-size 0.1s ease;
}

.links:hover {
  border-width: 10px;
  font-size: 30px;
}

.links.typing-active {
  border-color: white !important;
}

.yellow {
  position: fixed;
  top: 100vh;
  left: 0;
  width: 100%;
  height: 300px;
  background-color: yellow;
  z-index: 2;
}

.black,
.blue,
.red {
  position: relative;
  width: 100%;
  height: 30px;
  z-index: 4;
}

.red {
  background-color: red;
}

.blue {
  background-color: blue;
}

.black {
  background-color: black;
  height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 10px;
  position: relative;
  overflow: visible;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.projects-carousel {
  position: relative;
  width: 90%;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.projects-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  align-items: center;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  z-index: 10;
  transition: all 0.1s ease;
  backdrop-filter: blur(10px);
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.9);
}

.nav-button.prev {
  left: 20px;
}

.nav-button.next {
  right: 20px;
}

.project_card_wrapper {
  position: relative;
  width: 500px;
  height: 100%;
  transition: 0.3s ease;
  margin-right: -70px;
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  flex-shrink: 0;
}

.project_card {
  position: relative;
  width: 500px;
  height: 100%;
  transition: 0.3s ease;
  overflow: hidden;
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  background: #333;
}

.project_card_wrapper:first-child {
  clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 0% 100%);
}

.project_card_wrapper:first-child .project_card {
  clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 0% 100%);
}

.project_card_wrapper:hover {
  width: 1100px;
  margin-right: -70px;
  clip-path: polygon(0% 0%, 100% 0%, 91% 100%, 0% 100%);
}

.project_card_wrapper:hover .project_card {
  width: 1000px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  margin-left: 100px;
}

.project_card_wrapper:hover .expansion_pane {
  opacity: 1;
}

.project_card_wrapper:hover .project_title {
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  left: 250px;
}

.card_gif, .card_video {
  position: absolute;
  top: 0;
  left: 0;
  width: 500px;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.card_gif {
  opacity: 1;
  z-index: 1;
}

.card_video {
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.project_title {
  background-color: rgba(0, 0, 0, 1);
  color: white;
  padding: 10px 40px;
  bottom: 50px;
  position: absolute;
  font-weight: 500;
  font-size: 40px;
  left: 200px;
  transform: translateX(-46%);
  width: fit-content;
  z-index: 10;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  transition: clip-path 0.3s ease, left 0.3s ease;
  text-align: center;
}

.expansion_pane {
  position: absolute;
  top: 0;
  left: 500px;
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  color: white;
  padding: 40px;
  padding-right: 60%;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  display: flex;
  flex-direction: column;
  justify-content: start;
  z-index: 5;
}

.expansion_pane h3, h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}

.expansion_pane h4 {
  margin: 10px 0px;
}

.expansion_pane h2 {
  font-size: 30px;
}

.expansion_pane p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

.custom-bullets {
  list-style: none;
  padding-left: 1em;
  margin: 0px;
}

.custom-bullets li::before {
  content: "■";
  color: white;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.expansion_pane li {
  margin-bottom: 10px;
}

.about_me {
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: start;
  height: fit-content;
  align-items: center;
}

.about_me p {
  text-align: center;
  margin: 10px 200px;
  line-height: 23px;
  font-size: 18px;
}

.about_me_title {
  font-size: 60px;
}

.main_about_text {
  font-weight: bold;
}

.carousel-indicators {
  position: relative;
  margin-top: 40px;
  display: flex;
  gap: 15px;
  z-index: 10;
}

.indicator {
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.bottom-nav {
  background-color: black;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.bottom-nav-button {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: "Inter", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bottom-nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.bottom-nav-button:active {
  transform: scale(0.95);
}

.mpdo {
  display: none;
}

@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;
    width: 100vw;
    max-width: 100vw;
  }

  .mpdo {
    display: block;
  }

  .welcome-screen {
    flex-direction: column;
  }

  .links {
    transform: scale(80%);
    right: 0.1vh;
    top: 0.05vh;
    position: fixed;
  }

  .video_text {
    display: block !important;
    position: relative !important;
    text-align: center !important;
    align-items: center;
    color: white !important;
    margin-top: 10px !important;
    margin-left: 0px !important;
    font-family: "Inter", Arial, sans-serif !important;
    order: 2;
  }

  .video-background {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .video-background video {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 50vh;
    z-index: 1;
  }

  .video_text .hi_text,
  .video_text .hi_bottom {
    margin: 0 auto !important;
    padding: 0 10px !important;
    font-size: 1.3em !important;
    white-space: normal !important;
  }

  .video_text .hi_bottom {
    font-size: 1.1em !important;
  }

  .mobile-hit-text {
    display: none !important;
  }

  .black {
    height: auto !important;
    padding: 20px 10px !important;
    overflow-x: visible !important;
  }

  .nav-button,
  .carousel-indicators {
    display: none !important;
  }

  .projects-carousel {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding-bottom: 10px !important;
    margin-top: 10px;
    overscroll-behavior-x: contain !important;
  }

  .projects-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    transition: none !important;
    transform: none !important;
  }

  .project_card_wrapper {
    position: relative !important;
    width: 200px !important;
    height: 300px !important;
    margin-right: 20px !important;
    clip-path: none !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
  }

  .project_card {
    width: 200px !important;
    height: 300px !important;
    clip-path: none !important;
    overflow: hidden !important;
    background: #222 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-end !important;
    position: relative !important;
    border: none !important;
    flex-direction: column !important;
  }

  .project_title {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 6px 12px !important;
    font-size: 1.0em !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: white !important;
    background: black !important;
    pointer-events: none !important;
    user-select: none !important;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  .card_gif {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .card_video {
    display: none !important;
  }

  .expansion_pane {
    display: none !important;
  }

  .bottom-nav {
    display: none !important;
  }

  .about_me {
    height: auto !important;
    padding: 20px 10px !important;
  }

  .about_me p {
    margin: 10px 15px !important;
    font-size: 16px !important;
    line-height: 1.4em !important;
  }

  .about_me_title {
    font-size: 32px !important;
  }

  .welcome-text {
    font-size: 1.5em !important;
    text-align: center !important;
    margin: 0 10px !important;
  }

  #mobileProjectDetailOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #111;
    color: white;
    z-index: 5000;
    overflow-y: auto;
    font-family: "Inter", Arial, sans-serif;
    flex-direction: column;
  }

  #mobileProjectDetailOverlay.show {
    display: flex;
  }

  #mobileProjectVideo {
    width: 140px;
    height: 240px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: black;
    margin: 30px auto 15px auto;
    max-width: 90vw;
    border-radius: 6px;
  }

  #mobileProjectDetailContent {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }

  #mobileProjectBackButton {
    position: fixed;
    top: 30px;
    left: 15px;
    background: transparent;
    border: 2px solid white;
    color: white;
    font-size: 16px;
    padding: 8px 16px;
    cursor: pointer;
    z-index: 6000;
    user-select: none;
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
  }

  #mobileProjectBackButton:hover {
    background: white;
    color: black;
  }
}
