/* ===== RESET & BASE ===== */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #03050a;
}
section, footer, nav, .hero-full {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ===== HERO SECTION ===== */
.hero-full {
  min-height: 100vh;
  background-image: url('server.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.gradient-hosting {
  background: linear-gradient(135deg, #c084fc 0%, #e9d5ff 30%, #ffffff 70%, #d8b4fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-game {
  color: #ffffff;
  letter-spacing: -0.03em;
}

/* ===== TYPING ANIMATION ===== */
.typing-container {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #c084fc;
  font-weight: 300;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(17, 20, 28, 0.5);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.glass-card:hover {
  background: rgba(17, 20, 28, 0.7);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 20px 40px -15px rgba(139,92,246,0.2);
  transform: translateY(-4px);
}
.border-glow {
  border: 1px solid rgba(168,85,247,0.25);
}
.border-section {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ===== BUTTONS ===== */
.btn-glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}
.btn-glass:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(192,132,252,0.7);
  box-shadow: 0 0 25px rgba(192,132,252,0.3);
  transform: translateY(-2px);
}
.btn-primary-gradient {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}
.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  box-shadow: 0 8px 30px rgba(168,85,247,0.5);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.5);
}

/* ===== TAB BUTTON ===== */
.tab-btn {
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #9ca3af;
  border-left: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  outline: none;
}
.tab-btn.active {
  border-bottom-color: #a855f7;
  color: white;
  background: rgba(168,85,247,0.1);
  border-left-color: rgba(168,85,247,0.3);
  border-right-color: rgba(168,85,247,0.3);
}
.tab-btn:hover:not(.active) {
  color: #e5e7eb;
  border-bottom-color: rgba(168,85,247,0.4);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 62vh;
  background: rgba(3, 5, 10, 0.99);
  backdrop-filter: blur(25px);
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6rem;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  border-bottom: 2px solid rgba(168, 85, 247, 0.5);
}
.mobile-menu-overlay.active {
  transform: translateY(0);
}
.mobile-menu-link {
  transition: all 0.3s ease;
  padding: 0.75rem 0;
  display: block;
}
.mobile-menu-link:hover {
  color: #c084fc;
}
.hamburger-line {
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: block;
  width: 26px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  margin: 5px 0;
}
.hamburger-active .line1 { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-active .line2 { opacity: 0; }
.hamburger-active .line3 { transform: rotate(-45deg) translate(5px, -5px); }
.menu-backdrop {
  position: fixed;
  top: 62vh;
  left: 0;
  width: 100%;
  height: 38vh;
  background: rgba(0,0,0,0.5);
  z-index: 39;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.menu-backdrop.active { opacity: 1; pointer-events: auto; }

/* ===== INFRASTRUKTUR ===== */
.infra-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.infra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.infra-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.infra-processor {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(168,85,247,0.3);
  background: rgba(17,20,28,0.6);
  backdrop-filter: blur(10px);
}

.infra-storage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.infra-storage-card {
  background: rgba(17, 20, 28, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.35s ease;
  min-height: 120px;
}

.infra-storage-card:hover {
  border-color: rgba(168,85,247,0.5);
  background: rgba(17, 20, 28, 0.8);
  transform: translateY(-3px);
}

.infra-global {
  aspect-ratio: 1 / 1;
  border-radius: 1.75rem;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(168,85,247,0.3);
  background: rgba(17,20,28,0.6);
  backdrop-filter: blur(10px);
}

.infra-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ===== SERVER LOCATIONS SECTION (RATA TENGAH) ===== */
.locations {
  background: #03050a;
  padding: 80px 0;
  position: relative;
  width: 100%;
}

.locations .container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  width: 100%;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c084fc;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: white;
}

.text-gradient {
  background: linear-gradient(135deg, #c084fc, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  color: #9ca3af;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* LOCATION CARDS - 2 CARD SEJAJAR RATA TENGAH */
.server-locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.server-location-card {
  background: rgba(17, 20, 28, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 24px;
  padding: 28px;
  transition: all 0.35s ease;
  position: relative;
}

.server-location-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.6);
  background: rgba(22, 26, 36, 0.8);
  box-shadow: 0 20px 35px -12px rgba(139, 92, 246, 0.25);
}

.server-location-card.featured {
  border-color: #a855f7;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(139, 92, 246, 0.05));
}

.card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 40px;
  white-space: nowrap;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.location-flag-img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.location-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.location-status.online {
  color: #22c55e;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.location-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: white;
}

.location-datacenter {
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.location-stats {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  font-size: 1.2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.stat-label {
  font-size: 0.7rem;
  color: #9ca3af;
}

.location-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 40px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.location-features span i {
  color: #a855f7;
  font-size: 0.7rem;
}

/* NETWORK FEATURES - 3 CARD RATA TENGAH */
.network-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.network-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: rgba(17, 20, 28, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.network-feature:hover {
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateX(6px);
  background: rgba(22, 26, 36, 0.7);
}

.network-icon {
  width: 56px;
  height: 56px;
  background: rgba(168, 85, 247, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a855f7;
  font-size: 1.4rem;
}

.network-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: white;
}

.network-info p {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* ===== GALLERY ===== */
.scroll-horizontal {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-horizontal::-webkit-scrollbar {
  display: none;
}
.gallery-item {
  flex: 0 0 auto;
  width: 520px;
  cursor: pointer;
}
.gallery-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 15px 30px -10px rgba(0,0,0,0.5);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border: 2px solid rgba(168,85,247,0.3);
}
.gallery-item:hover .gallery-img {
  border-color: #a855f7;
  box-shadow: 0 20px 35px -12px rgba(139,92,246,0.4);
}
.gallery-caption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #cbd5e1;
}
.click-hint {
  font-size: 0.85rem;
  color: #a855f7;
  letter-spacing: 0.5px;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .infra-grid {
    gap: 20px;
  }
  
  .server-locations-grid {
    gap: 24px;
    max-width: 700px;
  }
  
  .network-features {
    gap: 20px;
    max-width: 700px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Infrastruktur */
  .infra-wrapper {
    padding: 0 16px;
  }
  
  .infra-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .infra-left {
    gap: 20px;
  }
  
  .infra-processor {
    aspect-ratio: 1 / 1;
  }
  
  .infra-global {
    aspect-ratio: 1 / 1;
  }
  
  .infra-storage {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Location */
  .locations {
    padding: 60px 0;
  }
  
  .locations .container {
    padding: 0 16px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .server-locations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
    margin-bottom: 40px;
  }
  
  .location-stats {
    flex-direction: row;
    justify-content: space-between;
  }
  
  /* Network features mobile - 1 kolom */
  .network-features {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 100%;
  }
  
  .network-feature {
    padding: 16px;
  }
  
  .network-icon {
    width: 48px;
    height: 48px;
  }
  
  /* Gallery */
  .gallery-item {
    width: 300px;
  }
  .gallery-img {
    height: 190px;
  }
  
  /* Mobile menu */
  .hero-full { min-height: 100vh; padding: 2rem 1rem; }
  .mobile-menu-overlay { height: 58vh; padding-top: 5rem; }
  .menu-backdrop { top: 58vh; height: 42vh; }
}

/* Mobile kecil */
@media (max-width: 480px) {
  .location-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .stat {
    justify-content: space-between;
  }
  
  .infra-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .location-name {
    font-size: 1.3rem;
  }
  
  .location-flag-img {
    width: 40px;
    height: 30px;
  }
}

/* ===== FOOTER ===== */
footer {
  background: #020308;
  border-top: 2px solid rgba(168, 85, 247, 0.3);
}

html {
  scroll-behavior: smooth;
}

/* ===== UTILITY ===== */
.bg-img-cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.overlay-dark {
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.9) 100%);
}
.terminal-font {
  font-family: 'JetBrains Mono', monospace;
}