/* ---------- Global Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
}
body {
  cursor: none;
  height: 100vh;
  background-color: #e0e0e0;
  background-image: url('https://www.transparenttextures.com/patterns/dark-circles.png');
}

/* ---------- Custom Cursor ---------- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 2px solid red;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out;
}

/* ---------- Splash Screen ---------- */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  width: 100vw;
  height: 100%;
  overflow: hidden;
  background-color: #e0e0e0;
  background-image: url('https://www.transparenttextures.com/patterns/dark-circles.png');
}
#splash-screen .splash-content {
  transform: translateY(-3vh);
}

.tagline {
  display: block;
  font-size: clamp(35px, 5vw, 80px);
  text-align: center;
  line-height: 1.2;
  width: 100%;
}
.skip-link {
  position: absolute;
  bottom: 10%;
  right: 10%;
}
.skip-link a {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
  color: grey;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(14px, 4vw, 20px);
}

/* ---------- Typing Cursor ---------- */
.typing-cursor {
  display: inline-block;
  vertical-align: baseline;
  line-height: 1;
}

.typing-cursor span.char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.1s ease;
  white-space: pre;
  vertical-align: baseline;
}
.typing-cursor span.char.red {
  color: red;
}

.typing-cursor .typing-cursor-span {
  display: inline-block;
  vertical-align: baseline;
  font-weight: 300;
  align-items: flex-start;
  font-size: 1em;
  margin-left: 0.07em;
  animation: blink 0.4s steps(1) infinite;
  color: red;
  will-change: opacity;
}

.experience-block {
  text-align: center;
  margin: -5% auto auto auto;
  width: 100%;
}

.experience-text {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.experience-text img {
  width: clamp(100px, 90%, 700px);
  height: auto;
  display: block;
}

.exp-years {
  font-size: clamp(25px, 5vw, 65px);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  opacity: 0;
}

.exp-years span {
  color: red;
}

.exp-tagline {
  font-size: clamp(16px, 3vw, 32px);
  color: #646464;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  line-height: 2;
  width: 100%;
  letter-spacing: 1px;
  opacity: 0;
}

.logo-stage {
  margin: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
#logo-stage {
  position: relative;
  max-width: 90%;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
}
#letter-container {
  position: relative;
  pointer-events: none;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
#logo-content {
  display: flex;
  align-items: flex-start;
  width: auto;
  height: clamp(50px, 15vw, 100px);
  margin: 0 auto;
}
#red-square {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  height: 100%;
  width: clamp(100px, 18%, 150px);
  min-width: 4rem;
  min-height: 6rem;
  margin-right: 0.2rem;
  opacity: 1;
}
.square-piece {
  background-color: #dd2227;
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 0;
  /* margin: -1px; */
}
#text-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}
#letter-container > div {
  margin: 0;
}
.anim-letter {
  display: inline-block;
  will-change: transform, opacity;
}
.since-line {
  display: flex;
  margin: 0 0 0 0.3vw;
  justify-content: space-between;
  width: 100%;
}
.since {
  letter-spacing: -0.2em;
}
.since,
.tm {
  color: #000;
  font-weight: 500;
  font-size: clamp(12px, 2vw, 16px);
}
.space {
  max-width: 0.5rem;
  display: inline-block;
  opacity: 1;
}
.brain {
  color: #dd2227;
  font-weight: 800;
  font-size: clamp(14px, 2vw, 18px);
}
.brain-line {
  margin: 0 0 0 0.3vw;
  display: flex;
  justify-content: space-between;
  letter-spacing: 1;
  width: 100%;
}
.redbuds {
  color: #dd2227;
  font-family: 'Times New Roman', serif;
  font-weight: 900;
  font-size: clamp(35px, 8vw, 75px);
  letter-spacing: -0.1em;
}

.redbuds-line {
  white-space: nowrap;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.website-line {
  margin: 0 auto;
  display: flex;
  justify-content: space-between !important;
  width: calc(100% - 0.5rem - 70px);
}

.website {
  color: #dd2227;
  font-weight: 600;
  font-size: clamp(16px, 4vw, 30px);
  text-transform: lowercase;
}
.website-line {
  display: flex;
  margin: auto;
  width: 100%;
}
#stacked-images,
#stacked-images2 {
  display: none;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  max-width: 300px;
  min-width: 100px;
  z-index: 1000;
  pointer-events: none;
}

#stacked-images .stacked-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}
#stacked-images2 .stacked-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.stacked-img.bottom-layer {
  z-index: 100;
}

.stacked-img.top-layer {
  z-index: 110;
}
#bamboo-splash {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  max-width: 200px;
  min-width: 150px;
  z-index: 100;
  pointer-events: none;
  filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.5));
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0.5s;
}
.top-right-fixed {
  position: absolute;
  top: 30%;
  margin-right: 20px;
  right: 20%;
  transform: translateY(-50%);
  max-width: 40vw;
  z-index: 1000;
}
.splash-img {
  opacity: 0;
  transition: opacity 1s ease;
}
.splash-img.show {
  opacity: 1;
}
#frog-splash {
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease, visibility 0.5s;
  transform: translate(0, 0);
  pointer-events: none;
  width: 30%;
  max-width: 250px;
  min-width: 180px;
}
#frog-splash.visible {
  opacity: 1;
  visibility: visible;
}

/* section1 starts here  */
.section1 {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center; 
  justify-content: center;
}

.custom-header {
  padding-top: 100px;
  z-index: 10;
  position: relative;
  height: 10vh;
}

.bamboo-img {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(90px, 20vw, 200px);
  z-index: 100;
  pointer-events: none;
  filter: drop-shadow(1px 1px 10px rgba(0, 0, 0, 0.5));
}

.sec1-p {
  display: flex;
  flex-direction: column;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 2;
  font-weight: 500;
  width: 90%;
  text-align: justify;
  margin: 0 auto; 
  color: rgb(96, 95, 95);
}
.site-logo {
  position: absolute;
  height: 10vh;
  bottom: 6%;
  right: 8%;
  width: clamp(120px, 15vw, 180px);
}
.site-logo img {
  width: 100%;
  height: auto;
}

/* mediaquery starts here  */
@media (max-width: 992px) {
  #stacked-images,
  #stacked-images2 {
    top: 35%;
  }
}
@media (max-width: 768px) {
  #red-square {
    min-width: 3rem;
    min-height: 4rem;
  }

  .logo-img {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: auto;
    max-width: 30%;
    z-index: 10;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .logo-img img {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 576px) {
  .top-right-fixed {
    width: 200px;
    max-width: 60vw;
    top: 40%;
    right: 5%;
  }
}

/* blinking */
@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
@keyframes slideOutIn {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  50% {
    opacity: 0;
    transform: translateY(-20px);
  }
  51% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideLeft {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}
