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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #000000;
  overflow-x: hidden;    /* biar cuma horizontal yang disembunyikan */
  position: relative;
  min-height: 100vh;     /* opsional: agar minimal setinggi 1 layar, tapi tetap bisa nambah ke bawah */
}

/* Container untuk globe */
#globeContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#globe {
    width: 100%;
    height: 100%;
}

/* Header section */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.title-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.brand {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFFF00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 215, 0, 0.9);
    text-shadow: 1px 1px 4px rgba(255, 215, 0, 0.3);
}

/* Controls hint */
.globe-hint { display: none; }


.controls-hint span {
    display: inline-block;
    margin: 0 8px;
    color: rgba(255, 215, 0, 0.9);
}

/* Loading screen */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFD700;
    font-size: 24px;
    z-index: 100;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Globe layout ---- */
.globe-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:40px auto 0;
}

.globe-shell{
  position:relative;
  width:min(720px, 90vw);   /* ubah besar kecil di sini */
  aspect-ratio:1 / 1;       /* selalu bulat */
  margin-inline:auto;

}

#globe{
  width:100%;
  height:100%;
  position:relative;
}

/* pastikan canvas mengikuti container, bukan window */
#globe canvas{
  width:100% !important;
  height:100% !important;
  display:block;
  border-radius:50%;
}

/* hint (opsional) */
.globe-hint{
  position:absolute;
  right:12px;
  bottom:-14px;
  padding:8px 12px;
  border:1px solid rgba(255,215,0,.35);
  border-radius:12px;
  backdrop-filter: blur(6px);
  background: rgba(20,20,20,.55);
  color:#ffd700;
  font-size:12px;
}

/* kecilkan di mobile */
@media (max-width:768px){
  .globe-shell{ width:min(560px, 92vw); }
}


/* Responsive design */
@media (max-width: 768px) {
    .brand {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
        padding: 0 20px;
    }

    .controls-hint {
        display: none;
    }
}
