:root {
  --text: #ffffff;
  --muted: #a5acc2;
  --line: rgba(255, 255, 255, 0.15);
}


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  min-height: 100vh;

  color: var(--text);

  font-family: var(--vp-font);

  background:
    radial-gradient(
      ellipse 80% 70% at 0% 0%,
      #142e9a 0%,
      #0b1b61 30%,
      #05091f 65%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 70% 60% at 100% 100%,
      #07164e 0%,
      #020510 65%,
      transparent 100%
    ),
    linear-gradient(
      135deg,
      #02030a 0%,
      #030615 45%,
      #000105 100%
    );

  background-attachment: fixed;

  overflow-x: hidden;
}


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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 140px 24px 80px;
  isolation: isolate;
}

.hero-content {
  width: min(1180px, 100%);
  text-align: center;

  /* Move TEAM VAYUPUTRA slightly upward */
  transform: translateY(-25px);
}


/* =========================
   TYPING ANIMATION
========================= */

#typingTitle {
  position: relative;
  white-space: pre-line;
  color: #ffffff;

  font-size: clamp(2.5rem, 6.5vw, 6rem);

  line-height: 0.9;
  font-weight: 650;
  letter-spacing: -0.085em;
  text-align: center;
}

.typing-cursor {
  display: inline-block;
  position: absolute;

  width: 4px;
  height: 0.85em;

  margin-left: 0;

  background: #ffffff;

  /* Cursor follows the smaller + raised text */
  transform: translate(8px, 35px);

  animation: blinkCursor 0.8s steps(1) infinite;
}

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

  51%,
  100% {
    opacity: 0;
  }
}

/* =========================
   SCROLL HINT
========================= */

.scroll-hint {
  position: absolute;

  bottom: 32px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;

  align-items: center;

  gap: 10px;

  color: #8b95b5;

  font-size: 0.66rem;

  letter-spacing: 0.18em;

  text-transform: uppercase;
}

.scroll-line {
  width: 34px;
  height: 1px;

  background: #77809a;
}


/* =========================
   ABOUT THE TEAM (bottom of home)
========================= */

.home-about {
  padding: 100px 40px 120px;
}

.home-about-card {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 48px 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(35, 48, 115, 0.28), rgba(5, 8, 23, 0.72));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.home-about-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 13px;
  border: 1px solid rgba(150, 175, 255, 0.35);
  border-radius: 20px;
  background: rgba(25, 35, 85, 0.35);
  color: rgba(219, 226, 246, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.home-about-card h2 {
  margin-bottom: 24px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
}

.home-about-card h3 {
  margin: 38px 0 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.home-about-card p {
  max-width: 860px;
  font-size: 18px;
  line-height: 1.7;
  color: #dbe2f6;
}

.home-about-card p + p {
  margin-top: 16px;
}

.home-about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.home-about-item {
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-about-item h4 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
}

.home-about-card .home-about-item p {
  font-size: 15.5px;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .home-about {
    padding: 20px 16px 80px;
  }

  .home-about-card {
    padding: 28px 22px;
    border-radius: 20px;
  }

  .home-about-card p {
    font-size: 16px;
  }

  .home-about-grid {
    grid-template-columns: 1fr;
  }
}



/* =========================
   RESPONSIVE
========================= */

/* Navbar sizing for every screen lives in navbar.css. */


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition: none !important;
  }

}


/* =========================
   MOUSE POSITION TRACKER
========================= */

.mouse-point {
  position: fixed;

  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.95);

  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.7),
    0 0 18px rgba(120, 150, 255, 0.45);

  pointer-events: none;

  z-index: 9999;

  transform: translate(-50%, -50%);

  opacity: 0;

  transition: opacity 0.2s ease;
}

.mouse-coordinates {
  position: fixed;

  pointer-events: none;

  z-index: 9999;

  color: rgba(255, 255, 255, 0.7);

  font-family: var(--vp-font);

  font-size: 10px;

  letter-spacing: 0.04em;

  white-space: nowrap;

  opacity: 0;

  transform: translate(12px, -18px);

  transition: opacity 0.2s ease;
}

.mouse-point.active,
.mouse-coordinates.active {
  opacity: 1;
}

/* =========================
   STATIC HERO POLAROID
========================= */

.mouse-polaroid {
  position: absolute;

  width: 220px;
  height: auto;

  left: 110px;
  top: 221px;

  pointer-events: none;

  z-index: 20;

  transform: rotate(-30deg);

  opacity: 0;

  filter:
    drop-shadow(
      0 12px 18px rgba(0, 0, 0, 0.35)
    );

  transition:
    opacity 0.2s ease;
}

.mouse-polaroid.active {
  opacity: 1;
}


/* =========================
   MOBILE
   Phones and small tablets only. Every rule below is inside the
   mobile breakpoint, so the desktop layout above is untouched.
========================= */

@media (max-width: 860px) {

  /* A bigger hero title now that the navbar is out of the way */
  #typingTitle {
    font-size: clamp(3rem, 14.5vw, 4rem);
  }

  /* Phones use different fonts (SF Pro on iPhone, Roboto on
     Android), and each sits at a different height in its line, so
     a fixed nudge lined the caret up on one phone and not another.
     Here the caret is part of the text instead: drawn right after
     the last typed letter, standing on the same baseline and as
     tall as a capital letter in whichever font the phone uses. */
  .typing-cursor {
    display: none;
  }

  #typedText::after {
    content: "";

    display: inline-block;
    vertical-align: baseline;

    width: 4px;
    height: 0.7em;   /* fallback for older browsers */
    height: 1cap;    /* exact capital height of the font in use */
    margin-left: 0.18em;  /* clears the title's tight letter-spacing */

    background: #ffffff;

    animation: blinkCursor 0.8s steps(1) infinite;
  }

  /* Centred across the full width. Anchoring it at the halfway
     mark left it only half the screen to sit in, so the words
     wrapped and sat off to one side. */
  .scroll-hint {
    left: 0;
    right: 0;

    transform: none;

    justify-content: center;
    text-align: center;
  }

  /* There is no mouse to move here, so the polaroid is simply
     shown: small, tucked into the top-left, at the same angle. */
  .mouse-polaroid {
    left: 34px;
    top: 92px;

    width: 140px;

    opacity: 1;
  }

}
