/* 
Gw tutup console bukan buat maksud jahat ya bang, tapi buat ngurangin bocah yang iseng. Soalnya yang punya web store ini agak awam masalah web, jadinya gw secure. Debug nya juga gw nyalain
*/

/* 
Kalo ada apa apa ke gw aja omonginnya
* WEB = naufaladityayahya.me
* IG = @nv_xfal
* EMAIL = contact@naufaladityayahya.me  
*/

:root {
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-border: #93c5fd;
  --white: #ffffff;
  --surface: #f8fafc;
  --text: #111827;
  --bg: #fffdf5;
  --bg-dark: var(--text);
  --muted: #6b7280;
  --border: #e5e7eb;
  --whatsapp: #25d366;
  --radius: 20px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  scroll-behavior: smooth;
  scroll-margin-top: 90px;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

::selection {
  background: transparent;
  color: var(--primary);
}

html {
  overflow-x: clip;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

html[lock-scroll],
body[lock-scroll] {
  overflow: hidden !important;
}

a {
  text-decoration: none;
  color: var(--text);
}

a,
button {
  cursor: pointer;
}

.pointer {
  cursor: pointer;
}

.hiro {
  color: var(--primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.text-ellipse {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  z-index: 9999;
  transition: 0.7s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 140px;
  animation: logoReveal 0.8s ease;
}

.loading-bar {
  width: 140px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.loading-bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--primary);
  animation: loading 1.2s infinite;
}

@keyframes loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(350%);
  }
}

@keyframes pop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

nav *:focus {
  outline: none;
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 70px;
}

.logo-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
}

.logo-subtext {
  font-size: 13px;
  color: var(--muted);
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--muted);
  font-size: 15px;
  transition: 0.2s;
  margin: auto;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  width: 33px;
  height: 33px;
}

.line {
  stroke: #111827;
  stroke-width: 2.5;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease;
}

.menu-btn.active .line-top {
  transform: translateY(5px) rotate(45deg);
}

.menu-btn.active .line-middle {
  opacity: 0;
}

.menu-btn.active .line-bottom {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 10px 20px;
  }

  .menu-btn {
    display: grid;
  }

  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .menu a {
    font-size: 20px;
  }

  .menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.hero {
  max-width: 1100px;
  margin: auto;
  padding: 90px 20px 70px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-width: 0;
}

.hero-title {
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-description {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin: 26px 0;
  max-width: 90%;
}

.atropos {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.atropos-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.atropos-scale,
.atropos-rotate,
.my-atropos {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.my-atropos {
  overflow: hidden;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

.threed-component {
  position: absolute;
}

.threed-component img {
  display: block;
  width: 100%;
  height: auto;
  will-change: transform;
}

.threed-component[data-component="cakaran"] {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.threed-component[data-component="cakaran"] img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.threed-component[data-component="gamepad"] {
  top: 27.5%;
  left: 14%;
  width: 14%;
}

.threed-component[data-component="gamepad"] img {
  --rotate: 10deg;
  animation: float-left 3.5s ease-in-out infinite;
}

.threed-component[data-component="paper"] {
  top: 31.5%;
  right: 8.9%;
  width: 14%;
}

.threed-component[data-component="paper"] img {
  --rotate: -13deg;
  animation: float-right 4.2s ease-in-out infinite;
  animation-delay: 0.3s;
}

.threed-component[data-component="speaker"] {
  bottom: 17%;
  left: 15%;
  width: 17%;
}

.threed-component[data-component="speaker"] img {
  --rotate: 6.5deg;
  animation: float-circle 4.8s ease-in-out infinite;
  animation-delay: 0.8s;
}

.threed-component[data-component="verif"] {
  bottom: 23%;
  right: 14%;
  width: 13%;
}

.threed-component[data-component="verif"] img {
  --rotate: 0deg;
  animation: float 4s ease-in-out infinite;
  animation-delay: 0.5s;
}

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

  50% {
    transform: translateY(-10px) rotate(var(--rotate));
  }
}

@keyframes float-left {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(var(--rotate));
  }

  50% {
    transform: translateY(-8px) translateX(-6px)
      rotate(calc(var(--rotate) + 2deg));
  }
}

@keyframes float-right {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(var(--rotate));
  }

  50% {
    transform: translateY(-8px) translateX(6px)
      rotate(calc(var(--rotate) - 2deg));
  }
}

@keyframes float-circle {
  0% {
    transform: translate(0, 0) rotate(var(--rotate));
  }

  25% {
    transform: translate(4px, -6px) rotate(calc(var(--rotate) + 1deg));
  }

  50% {
    transform: translate(0, -10px) rotate(var(--rotate));
  }

  75% {
    transform: translate(-4px, -6px) rotate(calc(var(--rotate) - 1deg));
  }

  100% {
    transform: translate(0, 0) rotate(var(--rotate));
  }
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;

  order: 3;
}

@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-content {
    display: contents;
  }

  .hero-text {
    display: contents;
    text-align: center;
  }

  .my-atropos {
    order: 1;
  }

  .hero-title,
  .hero-description {
    order: 2;
    text-align: center;
  }

  .hero-description {
    margin: 10px auto 30px auto;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    order: 4;
  }

  .hero-wrapper {
    order: 2;
  }
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary), transparent 60%);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
}

.btn-outline:hover {
  border-color: var(--primary-border);
  color: var(--primary);
}

.section {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

.timeline {
  overflow-x: clip;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  color: var(--text);
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 16px;
}

.products-tab {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.products-tab::-webkit-scrollbar {
  display: none;
}

.products-tab-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--white) !important;
  color: var(--muted);
  transition: all 0.3s ease;
  font-size: 15px;
  font-weight: 500;
}

.products-tab-btn.active,
.products-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: #eff6ff !important;
  cursor: pointer;
}

.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));

  justify-content: start;
  gap: 24px;
}

@media (max-width: 687px) {
  .products-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  background-color: var(--white) !important;
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  width: 100%;
}

.product-badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.05);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.3;
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-details {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.product-details li + li {
  margin-top: 6px;
}

.price {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: 12px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
}

.card-actions {
  margin-top: 18px;
}

.buy-btn {
  width: 100%;
  border: none;
  justify-content: center;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  background: var(--white);
  color: var(--muted);
}

.floating-wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  right: 20px;
  text-align: center;
  z-index: 1000;
  border-radius: 999px;
  overflow: hidden;
  width: fit-content;
  padding: 14px;
  background: var(--whatsapp);
  color: var(--white);
  border: none;
  display: flex;
  transition: 0.2s ease;
  border: 2px solid var(--whatsapp);
}

.floating-wa:hover {
  background: var(--white);
  color: var(--whatsapp);
  border: 2px solid var(--whatsapp);
}

.floating-wa svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.floating-wa button:hover svg {
  fill: var(--whatsapp);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-content {
  background: var(--white);
  padding: 0;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.wa-popup {
  padding: 24px;
}

.wa-popup-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.wa-popup-kicker {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.wa-popup-header h3 {
  font-size: 20px;
}

.wa-popup-close {
  border: none;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 32px;
  line-height: 1;
}

.wa-popup-label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
}

.wa-popup-input {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fafafa;
}

.wa-popup-input:focus {
  border-color: var(--primary);
}

.wa-popup-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.wa-popup-secondary,
.wa-popup-primary {
  flex: 1;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: none;
}

.wa-popup-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.wa-popup-primary {
  background: var(--primary);
  color: var(--white);
}

.wa-popup-primary:hover {
  background: var(--primary-hover);
}

.timeline-list {
  margin-top: 40px;
}

.timeline-item {
  list-style-type: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding-top: 50px;
  background: var(--border);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  z-index: 2;
  background: var(--primary);
}

.timeline-box {
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.timeline-index {
  position: absolute;
  top: -15px;

  background: var(--primary);
  color: var(--white);

  width: 80px;
  height: 30px;

  border-radius: 5px;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
}

.timeline-content {
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.timeline-content {
  margin-right: 10px;
}

.timeline-text {
  text-align: center;
  margin-top: 12px;
}

.timeline-item:nth-of-type(odd) .timeline-box {
  left: 45px;
  transform: translate3d(100px, -10px, 0) rotate(10deg);
}

.timeline-item:nth-of-type(even) .timeline-box {
  left: -439px;
  transform: translate3d(-100px, -10px, 0) rotate(10deg);
}

.timeline-item.in-view .timeline-box {
  transform: none;
  visibility: visible;
  opacity: 1;
}

.timeline-item:nth-of-type(odd) .timeline-index {
  left: 27px;
}

.timeline-item:nth-of-type(even) .timeline-index {
  right: 27px;
}

@media screen and (max-width: 900px) {
  .timeline-box {
    width: 250px;
    flex-direction: column;
  }

  .timeline-content,
  .timeline-scientist {
    width: 80%;
    margin: 10px;
  }

  .timeline-item:nth-of-type(even) .timeline-box {
    left: -289px;
  }
}

@media screen and (max-width: 600px) {
  .timeline-item {
    margin-left: 20px;
  }

  .timeline-box {
    width: calc(100vw - 110px);
    max-width: none;
  }

  .timeline-item:nth-of-type(even) .timeline-box {
    left: 45px;
  }
}

@media screen and (max-width: 360px) {
  .timeline-box {
    height: 200px;
  }
}

@media screen and (max-width: 310px) {
  .timeline-box {
    height: 220px;
  }
}
