/* reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Space Mono', monospace;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #fff;
  text-decoration: none;
}

/* scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 0%;
  background: #fff;
  z-index: 1000;
  transition: height 0.1s linear;
}

/* navigation */
.nav {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 100;
}

.nav-link {
  font-size: 0.7rem;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  writing-mode: horizontal-tb;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-link.active {
  opacity: 1;
}

/* sections */
.section {
  min-height: 100vh;
  padding: 8rem 2rem 2rem 7rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* hero / landing page */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  max-width: none;
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 100vh;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('GITHUB ASSETS/landing page thumbnail.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-name {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  font-weight: 400;
  opacity: 0.5;
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  opacity: 0.3;
  animation: bounce 2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* section headings */
.section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* projects */
.project {
  margin-bottom: 5rem;
}

#experiments .project {
  margin-bottom: 5rem;
}

.section .project:last-child {
  margin-bottom: 1rem;
}

#experiments .project:last-child {
  margin-bottom: 1rem;
}

#experiments .project-role {
  margin-bottom: 0;
}

.project-info {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: lowercase;
}

.project-meta {
  font-size: 0.8rem;
  opacity: 0.4;
  text-transform: lowercase;
}

.project-role {
  font-size: 0.75rem;
  opacity: 0.45;
  margin-bottom: 2.5rem;
  text-transform: lowercase;
}

/* video embed */
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #111;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}

.video-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-wrap .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-wrap:hover .play-btn {
  opacity: 1;
}

.video-wrap .play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.8);
  margin-left: 4px;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* info section */
.info-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.3;
  margin-bottom: 0.25rem;
}

.info-link {
  font-size: 0.9rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  text-transform: lowercase;
}

.info-link:hover {
  opacity: 1;
}

.info-text {
  font-size: 0.8rem;
  opacity: 0.5;
  text-transform: lowercase;
  line-height: 1.8;
}

/* responsive */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 200;
  }

  .section {
    padding: 5rem 1.25rem 6rem 1.25rem;
  }

  .hero {
    padding: 0 1.25rem;
  }

  .hero-name {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .hero-title {
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
  }

  .scroll-progress {
    top: auto;
    bottom: 0;
    right: auto;
    left: 0;
    width: 0%;
    height: 2px;
    transition: width 0.1s linear;
  }

  .project {
    margin-bottom: 3.5rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .project-meta {
    font-size: 0.7rem;
  }

  .project-info {
    gap: 0.35rem;
  }

  .section-heading {
    margin-bottom: 2.5rem;
  }

  .video-wrap .play-btn {
    width: 50px;
    height: 50px;
    opacity: 0.7;
  }

  .video-wrap .play-btn::after {
    border-width: 8px 0 8px 14px;
    margin-left: 3px;
  }

  .info-text {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 1rem;
    padding: 0.85rem 0.5rem;
  }

  .nav-link {
    font-size: 0.6rem;
  }

  .section {
    padding: 4.5rem 1rem 5.5rem 1rem;
  }

  .project-title {
    font-size: 0.9rem;
  }

  .project-meta {
    font-size: 0.65rem;
  }

  .project-role {
    font-size: 0.65rem;
  }

  .hero-scroll-hint {
    bottom: 5rem;
  }
}
