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

@font-face{
  font-family: "space-age";
  src: url(../font/space-age.ttf);
  font-weight: 700;
  font-style: normal;
}

/* BODY */
html, body {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, #0a0f2c, #02030a);
  overflow: hidden;
  font-family: Arial, sans-serif;
}


/* NAVBAR */
.navbar {
  width: 100%;
  height: 4vw;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: #050b1e;
  z-index: 1001;
}

.logo img {
  width: 3vw;
  min-width: 40px;
}

.nav {
  width: 50%;
  height: 100%;
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 5vw;
}

.nav-link {
  color: #CEE0F4;
  text-decoration: none;
  font-size: 1vw;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -0.5vw;
  left: 0;
  width: 100%;
  height: 2px;
  background: #315381;
}

.bahasa {
  display: flex;
  gap: 0.5vw;
  align-items: center;
}

.lang {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.active-lang {
  color: #315381;
}

.line {
  width: 1px;
  height: 1vw;
  background: rgba(255,255,255,0.5);
}

section{
  width: 100%;
  height: 95%;
}

.container-utama{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.isi-kiri{
  display: flex;
  flex-direction: column;
  width: 25%;
  height: 100%;
  justify-content: flex-end;
  align-items: center;
  padding: 2vw;
}

.isi-kiri .read-more{
  width: 5vw;
  height: 2vw;
  font-size: 0.7vw;
  border-radius: 5vw;
  margin-top: 2vw;
  border: 2px solid #315381;
  background: transparent;
  color: #cee0f4;
  cursor: pointer;
  
}

.read-more:hover {
  background: rgb(133, 159, 192, 0.3);
  box-shadow: 0 0 20px rgba(206, 224, 244, 0.6);
}

.isi-kanan{
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 2vw;
}

.isi-tengah{
  display: flex;
  width: 50%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

/* CANVAS */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

/* PARALLAX LAYERS */
.layer {
  position: fixed;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

.layer.back {
  background-image: radial-gradient(circle, rgba(5, 11, 30, 0.3), transparent 70%);
  z-index: 0;
}

.layer.front {
  background-image: radial-gradient(circle, rgba(49, 83, 129, 0.5), transparent 60%);
  z-index: 2;
}

/* CONTENT */
.content {
  width: 100%;
  flex-direction: column;
  position: relative;
  z-index: 3;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CEE0F4;
  text-align: center;
}

.sub-kiri h1 {
  font-size: 3vw;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(133, 159, 192, 0.3);
  font-family: "space-age";
}

.isi-kiri p{
  font-size: 0.1vw;
}

.content h2{
  color: #CEE0F4;
  font-size: 0.7vw;
}

.sub-kanan h1 {
  margin-top: 2vw;
  font-size: 2.3vw;
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(133, 159, 192, 0.3);
  font-family: "space-age";
}

.content h1 span{
  color: #315381;
}

.content p {
  color: #CEE0F4;
  opacity: 0.7;
  margin-top: 10px;
  font-size: 1vw;
}

.canggih {
  width: 50vw;
  height: 50vw;
  clip-path: inset(0 0 0 0);
	-webkit-animation: scale-down-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
	        animation: scale-down-center 0.4s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes scale-down-center {
  0% {
    -webkit-transform: scale(2);
            transform: scale(2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes scale-down-center {
  0% {
    -webkit-transform: scale(2);
            transform: scale(2);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

/* ===== RIGHT MENU CLEAN TEXT ===== */
.right-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4vw;
  margin-top: 3vw;
}

/* TEXT BUTTON */
.menu-item {
  background: none;
  border: none;
  padding: 0;
  font-size: 2vw;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(206,224,244,.65);
  cursor: pointer;
  position: relative;
  transition: .3s ease;
}

/* subtle futuristic line */
.menu-item::before {
  content: "";
  position: absolute;
  left: -1.2vw;
  top: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #315381, transparent);
  transition: .3s ease;
  transform: translateY(-50%);
}

/* hover */
.menu-item:hover {
  color: #315381;
  transform: translateX(4px);
}

.menu-item:hover::before {
  width: 0.9vw;
}

.menu-item:active {
  color: #315381;
  text-shadow: 0 0 12px rgba(0,200,255,.6);
}



/* ===== POPUP OVERLAY ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,11,30,.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: .4s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== POPUP BOX ===== */
.popup-box {
  position: relative;
  width: 36vw;
  padding: 3vw;
  background:
    linear-gradient(180deg,#050b1e,#050b1e) padding-box,
    linear-gradient(120deg,#315381,#cee0f4,#315381) border-box;
  border: 2px solid transparent;
  border-radius: 1.5vw;
  box-shadow:
    0 0 40px rgba(0,200,255,.35),
    inset 0 0 25px rgba(255,255,255,.05);
  transform: scale(.85) translateY(30px);
  transition: .4s ease;
}


.popup-overlay.active .popup-box {
  transform: scale(1) translateY(0);
}

/* ===== POPUP TEXT ===== */
.popup-box h2 {
  font-size: 1.6vw;
  color: #315381;
  margin-bottom: 1vw;
}

.popup-box p {
  color: #fff;
  font-size: 0.95vw;
  line-height: 1.7;
  opacity: .85;
}

/* ===== CLOSE BUTTON ===== */
.popup-close {
  position: absolute;
  top: 1.2vw;
  right: 1.2vw;
  background: transparent;
  border: none;
  color: #315381;
  font-size: 1.2vw;
  cursor: pointer;
}

.popup-box::before,
.popup-box::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid #315381;
  opacity: .6;
}

.popup-box::before {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.popup-box::after {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 25px rgba(0,200,255,.25); }
  50% { box-shadow: 0 0 45px rgba(0,200,255,.45); }
  100% { box-shadow: 0 0 25px rgba(0,200,255,.25); }
}

.popup-overlay.active .popup-box {
  animation: pulseGlow 3s infinite;
}



/* FOOTER TOGGLE – AI CONTROL */
.footer-toggle {
  position: fixed;
  bottom: 2vw;
  right: 2vw;
  width: 2.8vw;
  height: 2.8vw;
  border-radius: 50%;
  border: none;
  background: rgba(5,11,30,.65);
  color: #315381;
  font-size: 1.3vw;
  cursor: pointer;
  z-index: 99;
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 20px rgba(0,200,255,.35),
    inset 0 0 10px rgba(255,255,255,.05);
  transition: .35s ease;
}

.footer-toggle:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 30px rgba(0,200,255,.6),
    inset 0 0 15px rgba(255,255,255,.08);
}

.footer-slide {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 28%;
  background: rgba(5,11,30,.75);
  backdrop-filter: blur(14px);
  z-index: 98;
  padding: 3vw 4vw;
  transform: translateY(110%);
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  box-shadow:
    0 -20px 60px rgba(0,200,255,.25);
}

/* Neon top line */
.footer-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #315381,
    transparent
  );
  box-shadow: 0 0 15px rgba(0,200,255,.8);
}

.footer-slide {
  pointer-events: none;
}

/* ===== SCAN LINE EFFECT ===== */
.footer-slide::after {
  content: "";
  position: absolute;
  left: 0;
  top: -30%;
  width: 100%;
  height: 30%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0,200,255,.15),
    transparent
  );
  animation: scanLine 6s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  from { top: -30%; }
  to   { top: 100%; }
}


.footer-slide.active {
  pointer-events: auto;
  transform: translateY(0);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 4vw;
  color: rgba(206,224,244,.85);
}

/* Column */
.footer-col h4 {
  font-size: 0.95vw;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.8vw;
  color: #315381;
}

.footer-col p {
  font-size: 0.8vw;
  line-height: 1.7;
  opacity: .75;
}

.footer-col a {
  font-size: 0.8vw;
  color: #315381;
  text-decoration: none;
  position: relative;
}

/* subtle underline animation */
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #315381;
  transition: .3s ease;
}

.footer-col a:hover::after {
  width: 100%;
}


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

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

.layer,
.canggih,
canvas{
  will-change: transform;
}


.section-1 *{
  opacity: 0;
  transform: translateY(40px);
  animation: intro 1s ease forwards;
}

.section-1 .isi-tengah{
  animation-delay: .2s;
}

.section-1 .isi-kiri{
  animation-delay: .4s;
}

.section-1 .isi-kanan{
  animation-delay: .6s;
}

/* ===============================
   LOADING SCREEN ADVANCED
================================ */
#loadingScreen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #0a0f2c, #02030a);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}

.loader-container {
  text-align: center;
}

/* LOGO */
.loader-logo {
  font-family: "space-age";
  font-size: 3vw;
  letter-spacing: 4px;
  color: #315381;
  text-shadow: 0 0 30px rgba(0,200,255,.6);
  margin-bottom: 2vw;
}

/* PROGRESS BAR */
.loader-line {
  width: 22vw;
  height: 3px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
  margin: 0 auto 1vw;
  position: relative;
}

.loader-line span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #315381,
    #cee0f4,
    #315381
  );
  box-shadow: 0 0 20px rgba(49, 83, 129, 1);
  transition: width .3s ease;
}

/* TEXT */
.loader-text {
  font-size: 0.85vw;
  letter-spacing: 2px;
  color: rgba(206,224,244,.7);
}

.loader-percent {
  margin-top: .5vw;
  font-size: 0.8vw;
  color: #315381;
}

/* HIDE */
#loadingScreen.hide {
  opacity: 0;
  visibility: hidden;
}

/* MOBILE */
@media (max-width:768px){
  .loader-logo { font-size: 8vw; }
  .loader-line { width: 65vw; }
  .loader-text,
  .loader-percent { font-size: 3vw; }
}


@keyframes intro{
  to{
    opacity:1;
    transform: translateY(0);
  }
}


@media (max-width:1024px){

  .container-utama{
    flex-direction: column;
  }

  .isi-kiri,
  .isi-kanan{
    width: 100%;
    height: auto;
    align-items: center;
    text-align: center;
  }

  .isi-tengah{
    width: 100%;
    margin: 3vw 0;
  }

  .btn{
    width: 18vw;
    height: 18vw;
    font-size: 1.6vw;
  }
}


@media (max-width:600px){


  .content h1{
    font-size: 6vw;
  }

  .content p{
    font-size: 3.5vw;
  }

  .btn{
    width: 22vw;
    height: 22vw;
    font-size: 3vw;
  }

  .canggih{
    width: 70vw;
    height: 70vw;
  }
}

@media (max-width: 768px) {

  .footer-slide {
    height: 100vh;
    padding: 10vw 6vw;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 8vw;
  }

  .footer-col h4 {
    font-size: 4vw;
  }

  .footer-col p,
  .footer-col a {
    font-size: 3.5vw;
  }

  .footer-toggle {
    width: 12vw;
    height: 12vw;
    font-size: 6vw;
  }
}

.hamburger {
  position: relative;
  right: 4vw;
  top: 2.5%;
  transform: translateY(-0%);
  cursor: pointer;
  z-index: 1002;
  display: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #CEE0F4;
  margin: 5px 0;
}


.mobile-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #050b1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 90px 0 40px;
  transform: translateY(-100%);
  transition: 0.4s ease;
  z-index: 1000;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu a {
  color: #CEE0F4;
  text-decoration: none;
  font-size: 18px;
}

.mobile-lang {
  display: flex;
  gap: 20px;
}

.mobile-lang .lang {
  color: rgba(255,255,255,0.5);
}

.mobile-lang .active-lang {
  color: #315381;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .side-nav {
    align-items: center;
    justify-content: center;
  }
}

