/* =============== GLOBAL =============== */
body {
  background-color: #5b2cc5; /* purple background */
  color: #333;
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 50px; /* 50px between major sections */
}

/* Ensure spacing doesn’t affect internal spacing */
section,
header,
footer {
  width: 100%;
}


.mouse-anchor {
  width: 10px !important;
  height: 10px !important;
  background: red !important;
  border-radius: 50% !important;
  position: absolute !important;
  z-index: 99999 !important;
}

.mouse-cursor {
  position: absolute !important;
  transform: none !important;
  left: 0;
  top: 0;
}





/* =============== HEADER =============== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  height: 70px;
  width: 100%;
  background-color: red;
  z-index: 1000;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Hidden state (slides up when scrolled past hero) */
.main-header.hidden {
  transform: translateY(-120%); 
}

/* Visible again when scrolling back up */
.main-header.visible {
  transform: translateY(0);
}

/* =============== HERO =============== */


./* =============== Anchors (debug-visible) =============== */

/* avoid clipping */
.hero {
  overflow: visible;
}

.hero-inner {
  overflow: visible;
}

.hero-text {
  overflow: visible;
}


.mouse-anchor {
  display: block;
}


/* IMPORTANT: anchors are positioned relative to their parent containers.
   We place A and B relative to the word-container1 (so they follow the word),
   and C/CTA are relative to .hero-cta (so they follow the button). */

/* word anchors: visible guesses — adjust these using percentages to fine tune */
.word-container1 {
  position: relative;
  display: inline-block;
  z-index: 5;
}

/* A & B: follow the width of the word */
#mouse-point-a {
  top: 0;
  left: 0;
}

#mouse-point-b {
  top: 0;
  right: 0;
}

/* Loop points relative to the word container */
#mouse-point-l1 {
  top: 40px;   /* adjust dramatic curve height */
  left: 20%;
}

#mouse-point-l2 {
  top: -30px;  /* opposite direction for swoop */
  left: 60%;
}

/* C: CTA center */
#mouse-point-c {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* D: offscreen exit */
#mouse-point-d {
  top: 50%;
  left: 120%; /* flies off to the right */
}







.hero {
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: yellow;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 85%;
  max-width: 1200px;
  position: relative;
}

.hero-text {
  flex: 0 0 65%;
  position: relative;
}


.hero-cta {
  flex: 0 0 30%;
  display: flex;
  justify-content: center;
  position: relative;
}

h1 {
  font-size: 3rem;
  position: relative;
  line-height: 1.2;
}

.highlight {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1.2em;
  width: 0;
  background: rgba(100, 150, 255, 0.5);
  z-index: -1;
  transition: width 0.3s ease;
}


.cta-btn {
  padding: 1em 2em;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transform-origin: center;
  transition: all 0.2s ease;
}

.mouse-cursor {
  position: absolute;
  width: 25px;
  height: 40px;
  background: url('../images/mouse.avif') no-repeat center/contain;
  pointer-events: none;
}

.word-container {
  position: relative;
  display: inline-block;
  z-index: 5;
}

.word-container1 {
  position: relative;
  display: inline-block;
  z-index: 5;
}





/* =============== WRAPPER SECTIONS =============== */
.wrapper2 {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 2rem;
  margin-bottom: 50px;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%);
  -webkit-clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%);
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.wrapper2.visible2 {
  opacity: 1;
  transform: translateY(0);
}

.wrapper2::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.inner2 {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.image2 {
  border-radius: 100%;
  width: 22em;
  max-width: 320px;
  overflow: hidden;
  flex: 1;
  min-width: 260px;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease;
}

.wrapper2.visible2 .image2 {
  opacity: 1;
  transform: translateX(0);
}

.image2 img {
  width: 100%;
  display: block;
  border-radius: 100%;
  object-fit: cover;
}

.content2 {
  flex: 2;
  min-width: 260px;
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease;
}

.wrapper2.visible2 .content2 {
  opacity: 1;
  transform: translateX(0);
}

.content2 h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content2 p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.content2 a.special2 {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.content2 a.special2:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Alternating layout */
.sp_light1 .inner2 {
  flex-direction: row;
  text-align: left;
}

.sp_light2 .inner2 {
  flex-direction: row-reverse;
  text-align: right;
}

.sp_light3 .inner2 {
  flex-direction: row;
  text-align: left;
}

/* Backgrounds */
.sp_light1::before {
  background-image: url("../images/background_d.jpg");
}

.sp_light2::before {
  background-image: url("../images/background_d.jpg");
}

.sp_light3::before {
  background-image: url("../images/background_d.jpg");
}

/* Overlay */
.wrapper2::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
  .wrapper2 {
    padding: 3.5rem 1.5rem;
    clip-path: polygon(0 8%, 100% 0, 100% 92%, 0% 100%);
    -webkit-clip-path: polygon(0 8%, 100% 0, 100% 92%, 0% 100%);
  }

  .inner2 {
    flex-direction: column !important;
    text-align: center !important;
  }

  .image2 {
    margin-bottom: 1.5rem;
    width: 12rem;
    max-width: 200px;
    transform: translateY(30px);
  }

  .content2 {
    transform: translateY(30px);
  }
}


/* =============== FOOTER =============== */
.main-footer {
  height: 200px;
  background-color: blue;
  width: 100%;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
  .inner2 {
    flex-direction: column;
    text-align: center;
  }
}

