@import url(https://fonts.bunny.net/css?family=alatsi:400);

@media (pointer: fine) and (hover: hover) {
  * {
    cursor: none;
  }
}

::selection {
  background: #ffffff;
  color: #000000;
}

::-moz-selection {
  background: #ffffff;
  color: #000000;
}

.main-content ::selection,
.projects-content ::selection {
  background: #ffffff;
  color: #000000;
}

.main-content ::-moz-selection,
.projects-content ::-moz-selection {
  background: #ffffff;
  color: #000000;
}

.about-content ::selection {
  background: #000000;
  color: #ffffff;
}

.about-content ::-moz-selection {
  background: #000000;
  color: #ffffff;
}

body {
  font-family: Atlasi, sans-serif;
  /* transition: background-color 0.5s ease; */
}

.container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  position: relative;
  overflow: hidden;
}

.intro-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1000;
}

.black-circle {
  position: fixed;
  width: 400vw;
  height: 400vh;
  background-color: #000000;
  border-bottom-left-radius: 50%;
  border-bottom-right-radius: 50%;
  top: -400vh;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: transform 0.5s ease-in;
  z-index: 100;
}

.black-circle.fall {
  transform: translateX(-50%) translateY(400vh);
  opacity: 1;
}

.section-progress {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  z-index: 1000;
  mix-blend-mode: difference;
}

.progress-bar {
  width: 50px;
  height: 5px;
  background-color: #ffffff;
  /* border-radius: 2.5px; */
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-container {
  width: 100%;
  height: 300vh;
  opacity: 0;
  transition: opacity 0.25s ease-in-out, transform 0.75s ease-in-out;
  position: relative;
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  align-items: center;
  color: #ffffff;
  /* background: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        url('/static/images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; */
  background: #000000;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.button-container a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 2rem;
  outline: white solid 2px;
}

.title {
  font-size: 4rem;
  font-weight: 400;
  margin: 0;
  color: #ffffff;
  /* text-shadow: 2px 2px 4px rgba(0,0,0,0.3); */
}

.motto {
  font-size: 1.2rem;
  margin: 1rem 0 2rem 0;
  color: #ffffff;
  opacity: 0.9;
  text-align: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 3rem;
  background: #ffffff;
  height: 100vh;
  color: #000000;
}

.about-container {
  max-width: 600px;
  text-align: center;
}

.about-container h2 {
  font-size: 2.5rem;
  margin: 0 0 2rem 0;
  color: #000000;
}

.about-container p {
  font-size: 1.2rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  color: #000000;
}

.about-container p:last-child {
  margin-bottom: 0;
}

.about-container a {
  color: #000000;
  text-decoration: underline;
}

.about-container a:hover {
  text-decoration: none;
}

.projects-content {
  background: #000000;
  height: 100vh;
  color: #ffffff;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
}

.projects-content .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: visible;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.project-preview {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.project-card:hover .project-preview img {
  filter: grayscale(0%);
}

.project-name {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 2;
  margin: 0;
}

.project-info {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  padding: 1.5rem;
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  visibility: hidden;
}

.project-card:hover .project-info {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.project-description {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem 0;
  line-height: 1.4;
  font-size: 0.9rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: transparent;
  color: #ffffff;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  font-size: 0.75rem;
  border: 1px solid #ffffff;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  background: #ffffff;
  color: #000000;
  transform: scale(1.05);
}

.project-link {
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.project-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
}

.github-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  z-index: 3;
}

.project-card:hover .github-icon {
  color: #ffffff;
  transform: scale(1.1);
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: visible;
}

.projects-carousel {
  position: relative;
  border-radius: 15px;
  width: 100%;
  height: 300px;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: height 0.3s ease;
  touch-action: pan-x;
}

.projects-carousel:hover {
  height: 460px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: visible;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.carousel-slide .project-card {
  margin: 0;
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: visible;
  z-index: 10;
}

.carousel-slide .project-card .project-info {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  padding: 1.5rem;
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  visibility: hidden;
}

.carousel-slide .project-card:hover .project-info,
.carousel-slide:hover .project-card .project-info {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  visibility: visible !important;
  z-index: 9999 !important;
}

.carousel-slide:hover .project-card {
  z-index: 9999 !important;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* background: rgba(255, 255, 255, 0.1); */
  background: #000;
  border: 2px solid rgba(255, 255, 255);
  color: #ffffff;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  /* border-radius: 50%; */
  cursor: none;
  transition: all 0.3s ease;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  /* background: rgba(255, 255, 255, 0.2); */
  border-color: #ffffff;
}

.prev-btn {
  left: -70px;
}

.next-btn {
  right: -70px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  z-index: 15;
}

.indicator {
  width: 12px;
  height: 12px;
  /* border-radius: 50%; */
  background: rgba(255, 255, 255, 0.3);
  cursor: none;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #ffffff;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

.projects-content .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  overflow: visible;
}

.projects-content h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-align: center;
}

.dashes {
  position: absolute;
  display: flex;
  justify-content: space-between;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background-size: 20px 100%;
  background-repeat: repeat-x;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  z-index: 1;
  mix-blend-mode: difference;
}

.dash1,
.dash2 {
  width: 20px;
  height: 100vh;
  background-image: repeating-linear-gradient(
    to bottom,
    white 0,
    white 40px,
    transparent 40px,
    transparent 50px
  );
  margin: 0 10px;
  background-repeat: repeat-y;
  background-size: 100% 50px;
}

.dash1 {
  animation: dashUp 2s linear infinite;
}

.dash2 {
  animation: dashDown 2s linear infinite;
}

@keyframes dashUp {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 -50px;
  }
}

@keyframes dashDown {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 50px;
  }
}

.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  background-color: white;
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease,
    opacity 0.2s ease;
  transform: translate(-50%, -50%);
  display: none;
}

.custom-cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
}

@media (pointer: fine) and (hover: hover) {
  .custom-cursor {
    display: block;
  }
}

@media (pointer: coarse), (hover: none) {
  .carousel-btn,
  .indicator {
    cursor: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .intro-video {
    width: auto;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (min-aspect-ratio: 16/9) {
  .intro-video {
    width: 100%;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-aspect-ratio: 21/9) {
  .intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: none;
    top: 0;
    left: 0;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .intro-video {
    width: auto;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .intro-video {
    width: 100%;
    height: auto;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }
}

@media (max-width: 480px) {
  .main-content .content {
    scale: 0.75;
  }

  .about-content {
    padding: 0 1.5rem;
  }

  .about-container {
    scale: 0.75;
  }

  .about-container h2 {
    margin: 0 0 1.5rem 0;
  }

  .about-container p {
    margin: 0 0 1rem 0;
  }

  .projects-content {
    padding: 0 3rem;
  }

  .carousel-btn {
    display: none;
  }
}

@media (max-width: 645px) {
  .carousel-container {
    display: none;
  }

  .projects-content h2 {
    white-space: pre-wrap;
  }

  .projects-content h2::after {
    content: "ur screen width is too small for me to display my projects";
    /* white-space: pre; */
    display: block;
    margin: 1rem 0 0;
    font-size: 16px;
    font-weight: 500;
  }

  .carousel-indicators {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .about-container h2 {
    margin: 0 0 1.5rem 0;
  }

  .about-container p {
    margin: 0 0 1rem 0;
  }

  .projects-content {
    padding: 0 3rem;
  }

  .carousel-btn {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .projects-content .content {
    scale: 0.8;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) {
}

@media (min-width: 1441px) {
}

@media (orientation: portrait) {
}

@media (orientation: landscape) {
}
