
:root {
  --bg: #070b14;
  --surface: #0c1321;
  --text: #eaf4ff;
  --muted: #8494aa;
  --neon: #45caff;
  --blue: #176bff;
  --line: rgba(69, 202, 255, 0.16);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background:
    radial-gradient(
      ellipse at 15% 15%,
      rgba(0, 100, 255, 0.18),
      transparent 42%
    ),
    radial-gradient(
      ellipse at 85% 65%,
      rgba(0, 220, 255, 0.10),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 50% 100%,
      rgba(30, 60, 180, 0.12),
      transparent 50%
    ),
    var(--bg);

  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

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

::selection {
  background: var(--neon);
  color: var(--bg);
}

/* CYBERPUNK GRID */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(69, 202, 255, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(69, 202, 255, 0.055) 1px,
      transparent 1px
    );

  background-size: 55px 55px;
  opacity: 0.7;

  mask-image: linear-gradient(
    to bottom,
    black 0%,
    rgba(0, 0, 0, 0.8) 65%,
    transparent 100%
  );
}

/* SUBTLE NEON GLOW */

body::before {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  top: 15%;
  left: -200px;
  border-radius: 50%;
  background: rgba(0, 102, 255, 0.12);
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  width: 350px;
  height: 350px;
  bottom: 5%;
  right: -150px;
  border-radius: 50%;
  background: rgba(0, 220, 255, 0.10);
  filter: blur(110px);
  pointer-events: none;
  z-index: -1;
}

/* NAVBAR */

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -2px;
}

.logo span,
.footer-logo span {
  color: var(--neon);
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
  animation: pulse 2s infinite;
}

/* HERO */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 8% 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-content {
  max-width: 950px;
  margin: auto 0;
}

.eyebrow {
  color: var(--neon);
  font-size: 11px;
  letter-spacing: 3px;
  line-height: 1.8;
}

.hero h1 {
  margin: 25px 0;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.085em;
  font-weight: 600;
}

.hero h1 span,
.section h2 span {
  color: var(--neon);
  text-shadow: 0 0 35px rgba(69, 202, 255, 0.22);
}

.hero-description {
  color: var(--muted);
  font-size: clamp(14px, 2vw, 18px);
  margin-top: 30px;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.scroll-line {
  width: 35px;
  height: 1px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.arrow {
  color: var(--neon);
  font-size: 16px;
  animation: float 1.5s ease-in-out infinite;
}

.hero-index {
  position: absolute;
  bottom: 35px;
  right: 8%;
  color: #56677e;
  font-size: 9px;
  letter-spacing: 1.5px;
}

/* GENERAL SECTIONS */

.section {
  padding: 130px 8%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  border-top: 1px solid var(--line);
  position: relative;
}

.section-label {
  color: var(--neon);
  font-size: 10px;
  letter-spacing: 2px;
}

.section-content {
  max-width: 750px;
}

.section h2 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.065em;
  font-weight: 500;
}

.section-content > p:not(.eyebrow) {
  max-width: 530px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* SERVICES */

.service-list {
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 45px 1fr 25px;
  align-items: center;
  gap: 15px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease;
}

.service-item:hover {
  padding-left: 10px;
}

.service-number {
  color: var(--neon);
  font-size: 11px;
}

.service-item h3 {
  font-size: 18px;
  font-weight: 500;
}

.service-item p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.service-arrow {
  color: var(--neon);
  transition: transform 0.3s ease;
}

.service-item:hover .service-arrow {
  transform: translate(3px, -3px);
}

/* PROJECTS */

.project-placeholder {
  position: relative;
  margin-top: 45px;
  min-height: 300px;
  border: 1px solid var(--line);

  background:
    radial-gradient(
      ellipse at center,
      rgba(69, 202, 255, 0.13),
      transparent 65%
    ),
    linear-gradient(
      135deg,
      rgba(10, 30, 60, 0.9),
      rgba(7, 11, 20, 0.95)
    );

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  overflow: hidden;
}

.project-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(69, 202, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(69, 202, 255, 0.08) 1px,
      transparent 1px
    );

  background-size: 35px 35px;
}

.project-symbol {
  position: relative;
  font-size: clamp(50px, 8vw, 85px);
  font-weight: 700;
  letter-spacing: -8px;
  text-shadow: 0 0 30px rgba(69, 202, 255, 0.25);
}

.project-symbol span {
  color: var(--neon);
}

.project-caption {
  position: relative;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.project-cross {
  position: absolute;
  color: var(--neon);
  font-size: 20px;
  opacity: 0.7;
}

.cross-one {
  top: 20px;
  left: 25px;
}

.cross-two {
  right: 25px;
  bottom: 20px;
}

/* CONTACT */

.contact {
  background:
    radial-gradient(
      ellipse at 70% 80%,
      rgba(0, 135, 255, 0.10),
      transparent 55%
    );
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 35px;
  margin-top: 35px;
  padding: 15px 0;
  border-bottom: 1px solid var(--neon);
  color: var(--neon);
  font-size: 14px;
  transition: gap 0.3s ease;
}

.contact-link:hover {
  gap: 50px;
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 8%;
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.65);
}

.footer-logo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.footer p,
.back-top {
  color: var(--muted);
  font-size: 10px;
}

.back-top {
  transition: color 0.3s;
}

.back-top:hover {
  color: var(--neon);
}

/* SCROLL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* KEYFRAMES */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 12px var(--neon);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px var(--neon);
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* MOBILE */

@media (max-width: 700px) {
  .navbar {
    padding: 25px 6%;
  }

  .hero {
    padding: 110px 6% 90px;
  }

  .hero h1 {
    font-size: clamp(54px, 12vw, 82px);
  }

  .hero-index {
    right: 6%;
    font-size: 8px;
  }

  .section {
    padding: 85px 6%;
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section h2 {
    font-size: clamp(42px, 10vw, 65px);
  }

  .service-item {
    grid-template-columns: 30px 1fr 20px;
    gap: 10px;
  }

  .service-item h3 {
    font-size: 16px;
  }

  .project-placeholder {
    min-height: 230px;
  }

  .footer {
    padding: 25px 6%;
  }
}


/* CROSS-PAGE MORPH TRANSITION */

@view-transition {
  navigation: auto;
}

/* Elemen yang menyambungkan kedua halaman */
.morph-button,
.morph-target {
  view-transition-name: morph-element;
}

/* Tombol halaman pertama */
.morph-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 35px;
  margin-top: 35px;
  padding: 16px 22px;
  overflow: hidden;

  color: #06101b;
  background: #45caff;
  border: 1px solid #45caff;
  border-radius: 8px;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;

  box-shadow: 0 0 20px rgba(69, 202, 255, 0.15);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.morph-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.morph-button:hover::before {
  transform: translateX(120%);
}

.morph-button:hover {
  box-shadow:
    0 0 20px rgba(69, 202, 255, 0.4),
    0 0 60px rgba(69, 202, 255, 0.15);
}

.button-arrow {
  position: relative;
  transition: transform 0.3s ease;
}

.morph-button:hover .button-arrow {
  transform: translate(3px, -3px);
}

/* Morph animation antarhalaman */

::view-transition-old(morph-element) {
  animation: morph-out 0.45s ease-in both;
}

::view-transition-new(morph-element) {
  animation: morph-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

::view-transition-old(root) {
  animation: page-out 0.35s ease-in both;
}

::view-transition-new(root) {
  animation: page-in 0.55s ease-out both;
}

@keyframes morph-out {
  from {
    opacity: 1;
    filter: brightness(1);
  }
  to {
    opacity: 0;
    filter: brightness(2.5);
  }
}

@keyframes morph-in {
  from {
    opacity: 0;
    filter: brightness(2.5);
  }
  to {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes page-out {
  to {
    opacity: 0;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hormati pengaturan pengurangan animasi */

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation-duration: 0.01ms !important;
  }
}


/* PAGE 2 — DIRECTORY */

.menu-hero {
  min-height: 65vh;
  padding: 160px 8% 65px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.menu-hero h1 {
  margin-top: 28px;
  font-size: clamp(55px, 9vw, 105px);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.menu-hero h1 span {
  color: var(--neon);
  text-shadow: 0 0 35px rgba(69, 202, 255, 0.25);
}

.menu-description {
  margin-top: 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.menu-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 55px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--neon);
  font-size: 9px;
  letter-spacing: 2px;
}

.directory {
  padding: 60px 8% 120px;
  border-top: 1px solid var(--line);
}

.directory-list {
  margin-top: 35px;
  border-top: 1px solid var(--line);
}

.directory-item {
  display: grid;
  grid-template-columns: 55px 1fr 35px;
  align-items: center;
  gap: 20px;
  padding: 30px 20px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition:
    background 0.35s ease,
    padding 0.35s ease,
    border-color 0.35s ease;
}

.directory-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(69, 202, 255, 0.10),
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.directory-item:hover {
  padding-left: 30px;
  border-color: rgba(69, 202, 255, 0.5);
  background: rgba(69, 202, 255, 0.025);
}

.directory-item:hover::before {
  opacity: 1;
}

.directory-number,
.directory-arrow,
.directory-info {
  position: relative;
}

.directory-number {
  color: var(--neon);
  font-size: 12px;
}

.directory-info h2 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -1px;
  transition: color 0.3s ease;
}

.directory-item:hover h2 {
  color: var(--neon);
}

.directory-info p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.directory-arrow {
  color: var(--neon);
  font-size: 23px;
  transition: transform 0.3s ease;
}

.directory-item:hover .directory-arrow {
  transform: translate(4px, -4px);
  text-shadow: 0 0 12px var(--neon);
}

.menu-bottom {
  padding: 70px 8%;
  border-top: 1px solid var(--line);
}

.menu-bottom p {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
}

.home-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--neon);
  font-size: 14px;
  transition: transform 0.3s ease;
}

.home-link:hover {
  transform: translateX(-5px);
}

/* MOBILE */

@media (max-width: 700px) {
  .menu-hero {
    min-height: 58vh;
    padding: 140px 6% 50px;
  }

  .directory {
    padding: 55px 6% 80px;
  }

  .directory-item {
    grid-template-columns: 30px 1fr 25px;
    gap: 12px;
    padding: 25px 8px;
  }

  .directory-item:hover {
    padding-left: 14px;
  }

  .directory-info p {
    font-size: 11px;
  }

  .menu-bottom {
    padding: 60px 6%;
  }
}

/* Deskripsi menu saat hover */
.directory-item {
    position: relative;
    display: block;
    text-decoration: none;
}

.menu-description {
    display: block;
    color: #53d8ff;
    font-size: 0.85rem;
    line-height: 1.6;

    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        max-height 0.3s ease,
        margin 0.3s ease;

    pointer-events: none;
}

.directory-item:hover .menu-description,
.directory-item:focus-visible .menu-description {
    opacity: 1;
    max-height: 120px;
    transform: translateY(0);
    margin-top: 10px;
}

.directory-item:hover .menu-arrow,
.directory-item:focus-visible .menu-arrow {
    color: #53d8ff;
    transform: translate(3px, -3px);
}

.menu-arrow {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .menu-description,
    .menu-arrow {
        transition: none;
    }
}


/* DESKRIPSI DIREKTORI SAAT HOVER */

.directory-description {
    display: block;
    color: var(--neon);
    font-size: 12px;
    line-height: 1.8;

    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(8px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        max-height 0.3s ease,
        margin 0.3s ease;
}

.directory-item:hover .directory-description,
.directory-item:focus-visible .directory-description {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
    margin-top: 10px;
}

/* Efek neon pada judul dan panah */
.directory-item:hover .directory-info h2 {
    color: var(--neon);
}

.directory-item:focus-visible {
    outline: 1px solid var(--neon);
    outline-offset: -1px;
}

@media (prefers-reduced-motion: reduce) {
    .directory-description {
        transition: none;
    }
}

.directory-item.is-active .directory-description {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
    margin-top: 10px;
}


/* =====================================
   ABOUT US — EMPLOYEE HISTORY
   ===================================== */

.history-heading {
    margin-top: 22px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
    font-weight: 500;
}

.history-heading span {
    color: var(--neon);
    text-shadow: 0 0 30px rgba(69, 202, 255, 0.2);
}

.history-intro {
    max-width: 650px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

.history-timeline {
    margin-top: 55px;
    border-top: 1px solid var(--line);
}

.history-entry {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 32px 12px;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}

.history-entry:hover {
    background: rgba(69, 202, 255, 0.035);
}

.history-marker {
    color: var(--neon);
    font-size: 12px;
}

.history-content h3 {
    margin-top: 8px;
    font-size: 23px;
    font-weight: 500;
}

.history-content > p:last-child {
    max-width: 650px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.employee-section {
    border-top: 1px solid var(--line);
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 45px;
}

.employee-card {
    padding: 24px;
    border: 1px solid var(--line);
    background: rgba(12, 19, 33, 0.65);
    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.employee-card:hover {
    border-color: var(--neon);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(69, 202, 255, 0.08);
}

.employee-number {
    color: var(--neon);
    font-size: 9px;
    letter-spacing: 1.5px;
}

.employee-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 28px 0 22px;
    border: 1px solid var(--line);
    background: rgba(69, 202, 255, 0.06);
    color: var(--neon);
    font-size: 24px;
}

.employee-card h3 {
    font-size: 20px;
    font-weight: 500;
}

.employee-role {
    margin-top: 7px;
    color: var(--neon);
    font-size: 11px;
}

.employee-divider {
    height: 1px;
    margin: 20px 0;
    background: var(--line);
}

.employee-history {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
}

@media (max-width: 700px) {
    .employee-grid {
        grid-template-columns: 1fr;
    }

    .history-entry {
        grid-template-columns: 35px 1fr;
        gap: 12px;
        padding: 26px 4px;
    }

    .employee-card {
        padding: 22px;
    }
}
