:root {
    --cube-width: 300px;
    --translateZ: 150px;
}
.typewriter-container {
  display: inline-block;
}

#typewriter-text {
  color: #090b39; /* Highlight color for changing words */
  font-size: 18px;
  font-weight: bold;
}

/* Blinking cursor animation */
.cursor {
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}



header {
  color: #eee;
  display: flex;
  align-items: center;
  height: 100vh;
  justify-content: space-between;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

header h1 {
  margin: 0;
  font-size: 100px;
}

header .sub-heading {
  font-size: 24px;
  margin: 0;
}

.cube-container {
  perspective: 1000px;
}

.cube-container .cube {
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
}

.cube-container .cube-face {
  width: 300px;
  height: 300px;
  position: absolute;
  font-size: 30px;
  background: yellow;
  color: #000;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cube-container .front {
  background: #d63946;
  transform: translateZ(150px);
}

.cube-container .back {
  background: #06d6a0;
  transform: rotateY(180deg) translateZ(150px);
}

.cube-container .left {
  background: #023047;
  color: #fff;
  transform: rotateY(-90deg) translateZ(150px);
}

.cube-container .right {
  background: #3d348b;
  color: #fff;
  transform: rotateY(90deg) translateZ(150px);
}

.cube-container .top {
  background: #a8dadc;
  transform: rotateX(90deg) translateZ(150px);
}

.cube-container .bottom {
  background: #ffd166;
  transform: rotateX(-90deg) translateZ(150px);
}

/*hero*/
.hero-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #0a0a1a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-canvas, #hero-canvas2 {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-tag {
    color: #00d4ff;
    font-family: monospace;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.hero-overlay-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0 0 10px;
    color: #fff;
}

.hero-overlay-content h2 {
    font-size: clamp(1rem, 2.5vw, 1.8rem);
    color: #aaa;
    font-weight: 400;
}

.highlight { color: #6c63ff; }

.hero-sub {
    color: #ccc;
    max-width: 500px;
    margin: 16px auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #6c63ff;
    color: #fff !important;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover { background: #5548d9; }

.btn-outline {
    border: 2px solid #6c63ff;
    color: #6c63ff !important;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #6c63ff;
    color: #fff !important;
}

#frame-section {
  height: 1000vh; /* scroll distance — increase for slower effect */
 
}

#carframe-section {
  height: 1200vh; /* scroll distance — increase for slower effect */
 
}

.frame-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
 
  background: #000;
}

#frame-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#carframe-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.asd{
    position: sticky!important;
    top:0!important;
}

#header{display:none!important;}
#header + hr{ display:none!important;}

/* Default header styles (keep your existing ones) */
#tahefobu-header {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Styles applied once we’ve scrolled ≥480px */
#tahefobu-header.header-scrolled {
  /* ---- CHANGE THESE VALUES TO YOUR DESIRED COLORS ---- */
  background-color: #ffffff;   /* example: white background */
  color: #222222;              /* example: dark text */
  /* If you need to override other properties (e.g., border, box‑shadow) add them here */
}

/*samurai*/
#waterfall {
  position: relative;
  /* give it some height if the image is the only content */
  
}


#waterfall #samurai {
 
 
  /* or use right/bottom, or center it: */
  /* top: 50%; left: 50%; transform: translate(-50%, -50%); */
 padding-top: 140px;
   margin-bottom: -1000px;
 height: 0px;
  width: 800px;
  height: auto;
 position: sticky;
 
  z-index: 3;
}

#samurai{
  /* Default: Always visible on page load */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  
  /* Smooth transition when disappearing */
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0.5s;
}

/* Activated by JavaScript after scrolling past the threshold */
#samurai.samurai-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95); /* Slight shrink effect as it fades out */
}

/*title animation*/
.title{
    animation: imageReaveal both;
    animation-timeline: view(50% 20%);
}

@keyframes imageReaveal{
    from{
        opacity: 0;
        scale: .5;
        translate: 0 4rem;
    }
    to{
        opacity: 1;
        scale: 1;
        translate: 0 0;
    }
}


