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

html, body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -9999999999;
}

.bg-code {
  max-width: 900px;
  max-height: 65px;
  height: 60px;
  width: 355px;
  border-radius: 12px;
  background: #2121217d;
  overflow-x: auto;
  border: 1px solid white;
  line-height: 30px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.title {
  font-size: 3.5rem;
  color: #4a5568;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
  font-size: 1.2rem;
  color: #718096;
  margin-bottom: 20px;
}

.control-panel {
  background: white;
  padding: 30px;
  border-radius: 15px;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.control-panel h2 {
  color: #4a5568;
  margin-bottom: 20px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(102, 126, 234, 0.4);
}

.btn:hover {
  background: #5a67d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(102, 126, 234, 0.5);
}

.section-title {
  font-size: 2.5rem;
  color: white;
  margin: 60px 0 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.test-section {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.test-section h3 {
  color: #4a5568;
  font-size: 1.8rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.test-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.test-card:hover {
    transform: translateY(-5px) scale(1.05); /* Ganti scale(2) jadi scale(1.05) */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.card-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 15px;
}

.test-card code {
  display: block;
  background: #f7fafc;
  padding: 10px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #2d3748;
  margin-top: 10px;
}

.delay-test {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.delay-test .test-card {
  width: 200px;
}

.footer {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 40px 20px;
  margin-top: 60px;
  text-align: center;
}

.footer-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #fff;
}

.footer-content p {
  color: #cbd5e0;
  margin-bottom: 10px;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #667eea;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: #5a67d8;
  transform: translateY(-5px);
}

@media (max-width: 1762px) {
  .bg-code {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 10px;
    overflow-y: hidden;
    line-height: 60px;
  }
  
  .stats p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .bg-code {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 1px 10px;
    line-height: 30px;
  }
  
  .stats p {
    text-align: start;
  }
  
  .title {
    font-size: 2.5rem;
  }
  
  .test-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .delay-test .test-card {
    width: 100%;
    max-width: 250px;
  }
  
  .controls {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .test-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 2rem;
  }
}
