:root {
  --black: #171717;
  --white: #ffffff;
  --pixel-size: min(12vw, 12vh);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html {
}
body {
  background: var(--black);
  color: #fff;
  font-family: "Inter", "Arial", sans-serif;
  z-index: -11;
  position: relative;
}

.section-dark {
  background-color: var(--black);
}

a {
  text-decoration: none;
  color: inherit;
}

.in-text-link {
  border-bottom: 3px solid white;
  transition: all 0.3s ease;
  opacity: 1;
}
.in-text-link:hover {
  opacity: 0.5;
}

/*////////////////*/
/* Cursor Styles */
/*////////////////*/

.cursor {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.cursor-small {
  width: 20px;
  height: 20px;
  background-color: white;
  mix-blend-mode: difference;
  transition: transform 0.4s ease;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
}

.cursor-large {
  width: 60px;
  height: 60px;
  border: 2px solid white;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease;
}

.cursor-small,
.cursor-large {
  display: none; /* completely hidden at start */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
/*////////////////*/
/* Button Styles */
/*////////////////*/
.styled-button-container {
  width: min-content;
}

.styled-button,
.styled-button-dark {
  position: relative;
  font-size: 16px;
  padding: 1.5rem 4rem;
  border: 0px solid var(--white);
  width: min-content;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
  color: rgb(255, 255, 255);
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.arrow-down-button {
  height: 1rem;
  transform: rotate(180deg);
}
.arrow-right-button {
  height: 1rem;
  width: 1rem;
}

.styled-button:hover,
.styled-button-dark:hover {
  background-color: rgba(255, 255, 255, 1);
  color: rgb(0, 0, 0);
}

.styled-button::after,
.styled-button-dark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 2px solid white;
  transform: translate(-50%, -50%) scaleX(1) scaleY(1);
  transition: all 0.3s ease;
  z-index: -1;
  opacity: 1;
}

.styled-button-dark::after {
  border: 2px solid black;
}

.styled-button:hover::after,
.styled-button-dark:hover::after {
  transform: translate(-50%, -50%) scaleX(1.07) scaleY(1.3);
  opacity: 0.5;
}

.styled-button-dark {
  color: var(--black);
}

.styled-button-dark:hover {
  color: var(--white);
  background-color: rgb(0, 0, 0);
}

/*////////////////*/
/* Animation Styles */
/*////////////////*/

.fade-slide-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-slide-up.visible:not(.not-ready) {
  opacity: 1;
  transform: translateY(0);
}

.reveal-wrapper {
  overflow: hidden;
}

.slide-up-reveal-inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 1s ease;
  will-change: transform;
}

.reveal-wrapper.visible .slide-up-reveal-inner:not(.not-ready) {
  transform: translateY(0);
}

.image-reveal {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(0.9);
  clip-path: inset(100% 0 0 0); /* top to bottom reveal */
  transition: transform 0.7s ease, clip-path 0.7s ease;
  will-change: transform, clip-path;
}

.image-reveal-wrapper.visible .image-reveal {
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}

.image-reveal-wrapper:hover .image-reveal {
  transform: scale(1.05);
}

/*////////////////*/
/* Header layout */
/*////////////////*/

/* Header layout */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--black);
  border-bottom: 1px solid #ffffff1f;
  position: relative;
  z-index: 10;
  height: 60px;
  position: fixed;
  width: 100%;
  padding: 0rem 2rem;
}

.site-header-container {
  max-width: 1440px;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Header sections */
.header-left {
  width: 25%;
}

.header-nav {
  display: flex;
  gap: 40px;
  width: 25%;
}

.header-nav a,
.header-right a {
  position: relative;
  text-decoration: none;
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* Hover underline effect */
.header-nav a::after,
.header-right a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

.header-nav a:hover,
.header-right a:hover {
  color: #fff;
}

.header-nav a:hover::after,
.header-right a:hover::after {
  width: 100%;
}

/* Right section */
.header-right {
  font-size: 1rem;
  width: 25%;
  text-align: right;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #fff;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-header {
  display: none;
  background: #111; /* adjust as needed */
  color: white;
  padding: 1rem;
  position: relative;
  z-index: 15;
  height: 60px;
  border-bottom: 1px solid #ffffff1f;
  background: var(--black);
  padding: 0rem 2rem;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  position: fixed;
}

/* Layout styles */
.mobile-header-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.mobile-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Navigation hidden by default */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  height: 100%;
  background: var(--black);
  z-index: 10;
  padding: 0rem 2rem;
  padding-top: 7rem;
  transition: all 0.6s ease;
  transform: translateY(-100vh);
  position: fixed;
}

.mobile-nav.open {
  display: flex;
  position: fixed;
  transform: translateY(0);
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 1001;
}

.line {
  width: 100%;
  height: 1.5px;
  background-color: white; /* or your preferred color */
  transition: all 0.2s ease;
  transform-origin: center;
}

.hamburger-btn.open {
  transform: translateX(3px);
}

.hamburger-btn.open .line-top {
  transform: rotate(45deg) translateY(5px) translateX(0px);
  height: 1.5px;
}

.hamburger-btn.open .line-bottom {
  transform: rotate(-45deg) translateY(-5px) translateX(0px);
  height: 1.5px;
}

@media (max-width: 860px) {
  .site-header-container {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .mobile-nav .nav-link {
    font-size: 1.6rem;
  }

  .mobile-nav {
    display: flex;
  }
}

/*////////////////*/
/* Loader Overlay */
/*////////////////*/
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: transform 1s ease-in-out;
}

.loader-text {
  display: flex;
  gap: 0.1em;
  font-size: 2rem;
  font-family: "Major Mono Display", monospace;
}

.loader-text span {
  opacity: 0;
  transform: translateY(0.5em);
  animation: waveIn 0.6s ease-out forwards;
}




@keyframes copyright {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  75% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
.copyright{
  animation: copyright 1.5s ease-out forwards;
    font-family: "Major Mono Display", monospace;
  font-size: 1.5rem;
}

@keyframes waveIn {
  0% {
    opacity: 0;
    transform: translateY(0.5em);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.2em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered delay */
.loader-text span:nth-child(1) {
  animation-delay: 0s;
}
.loader-text span:nth-child(2) {
  animation-delay: 0.1s;
}
.loader-text span:nth-child(3) {
  animation-delay: 0.2s;
}
.loader-text span:nth-child(4) {
  animation-delay: 0.3s;
}
.loader-text span:nth-child(5) {
  animation-delay: 0.4s;
}
.loader-text span:nth-child(6) {
  animation-delay: 0.5s;
}
.loader-text span:nth-child(7) {
  animation-delay: 0.6s;
}
.loader-text span:nth-child(8) {
  animation-delay: 0.7s;
}
.loader-text span:nth-child(9) {
  animation-delay: 0.8s;
}
.loader-text span:nth-child(10) {
  animation-delay: 0.9s;
}
@keyframes peckii {
  0% {
    transform: translateX(-200px);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

/* Slide overlay off screen when loaded */
.loader-overlay.hide {
  transform: translateY(-100%);
}

.pecki-image {
  width: 128px; /* 32 × 4 scale, or 64px for 2x, etc. */
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges; /* fallback for some browsers */
  image-rendering: -moz-crisp-edges; /* Firefox */
  animation: peckii 1.5s ease-out forwards;
}

/*////////////////*/
/* Line Overlay */
/*////////////////*/

.line-overlay {
  position: fixed;
  width: calc(100% - 2rem);
  height: 100%;
  top: 0;
  left: 0;
  border-left: 0.5px solid white;
  border-right: 0.5px solid white;
  margin: 0rem 1rem;
  display: flex;
  opacity: 0.1;
  max-width: 1440px;
  justify-self: anchor-center;
  pointer-events: none;
}

.line-overlay-section {
  width: 25%;
  border-left: 0.5px solid white;
  border-right: 0.5px solid white;
}

.line-overlay2 {
  position: fixed;
  width: calc(100% - 2rem);
  height: 100%;
  top: 0;
  left: 0;
  border-left: 0.5px solid rgb(0, 0, 0);
  border-right: 0.5px solid rgb(0, 0, 0);
  margin: 0rem 1rem;
  display: flex;
  opacity: 0.1;
  max-width: 1440px;
  justify-self: anchor-center;
  pointer-events: none;
  z-index: -5;
}

.line-overlay-section2 {
  width: 25%;
  border-left: 0.5px solid rgb(0, 0, 0);
  border-right: 0.5px solid rgb(0, 0, 0);
}

/*////////////////*/
/*Main content container */
/*////////////////*/

.main-content {
  padding: 0rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--black);
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  overflow: hidden;
}

/*////////////////*/
/* Contact Section */
/*////////////////*/

.contact-section-space {
  height: 75vh;
  pointer-events: none;
}

.contact-section {
  height: 85vh;
  padding-top: 10vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: var(--black);
  position: fixed;
  bottom: 0;
  z-index: -10;
  gap: 2rem;
}

.contact-text-other {
  font-size: 1.5rem;
}

.contact-text {
  font-size: 5vw;
  text-align: center;
  white-space: nowrap;
}

.contact-button {
}

.contact-word {
  height: 5vw;
  font-family: "Major Mono Display", monospace;
}

/*////////////////*/
/*Ambient Status */
/*////////////////*/

.ambient-status {
  position: fixed;
  bottom: 1rem;
  font-size: 13px;
  z-index: 10;
  mix-blend-mode: difference;
  color: white;
  max-width: 1440px;

  width: 100%;
  justify-self: anchor-center;
  display: flex;
  justify-content: flex-end;
}

.ambient-status-elements {
  width: 50%;
  display: flex;
  justify-content: flex-end;
}

.status-group {
  width: calc(50%);
  display: flex;
}

#ambient-status span {
  display: inline-block;
  width: 50%;
  pointer-events: none;
}

#ambient-status .location {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: 0.5s;
  margin-left: 1rem;
}

#time-spent {
  margin-left: 1rem;
}

#ambient-status .location.visible {
  opacity: 1;
}

.bottom-link {
  text-decoration: none;
  color: inherit;
  width: 50%;
  pointer-events: visiblePainted;
}

/*////////////////*/
/*Scroll Top Status */
/*////////////////*/

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  /* right: 15px; */
  width: 100%;
  display: flex;
  justify-self: anchor-center;
  max-width: 1440px;
  height: 15px;
  justify-content: flex-end;
  cursor: pointer;
  z-index: 1000;
  mix-blend-mode: difference;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.scroll-to-top:hover {
}

svg {
  height: 100%;
  display: block;
}

.arrow-up {
  padding-right: 1rem;
  pointer-events: all;
}

/* VIDEO STYLES */

.video-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1440px;
  padding: 5rem 10rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

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

.video-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  max-width: 1080px;
  background-color: #000;
}

.smart-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.no-controls {
  pointer-events: none;
}

/* Fade overlay as cue */
.control-fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.video-wrapper:hover .control-fade {
  opacity: 1;
}

.video-wrapper:hover .smart-video {
  pointer-events: auto;
  z-index: 1;
}

@media (max-width: 860px) {
  #ambient-status .location {
    margin-left: 0;
  }

  .status-group {
    font-size: 0.7rem;
    font-weight: 300;
    width: calc(100% - 2rem);
    margin: 0rem 1rem;
  }

  .styled-button-dark {
    padding: 1.5rem 0rem;
    width: 100%;
  }

  .contact-button {
    width: calc(100% - 2rem - 5px);
    margin: 0rem 1rem;
  }


  .sp-row {
    flex-direction: column;
    gap: 3rem;
  }

  .sp-card-large {
    width: 100%;
  }

  .sp-card-small {
    width: 100%;
  }

  .contact-text {
    font-size: 7vw;
  }

  .contact-word {
    height: 7vw;
  }
  .status-group-2 {
    display: none;
  }

  .scroll-to-top {
    display: none;
  }

  .ambient-status-elements {
    width: 100%;
  }

  .video-container {
    padding: 0;
    padding-bottom: 2rem;
    padding-top: 2rem;
  }
}

/*ANIMATED GRAPHIC */
.sprite_profile {
  width: 100%; /* Scales the image to fill the container */
  height: 100%; /* Scales the image to fill the container */
  image-rendering: pixelated; /* Ensures the image is scaled without blurring */
}

.profile_pic_container {
  display: flex;
  height: 400px;
  width: 400px;
  height: auto;
  max-width: 100%;
}

.profile_pic_container:hover {
  display: flex;
  height: 400px;
  width: 400px;
  cursor: pointer;
  height: auto;
  max-width: 100%;
}
