/* Reset và Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00ff41;
  --secondary-color: #0066cc;
  --accent-color: #ff0040;
  --bg-dark: #0a0a0a;
  --bg-darker: #000000;
  --text-primary: #00ff41;
  --text-secondary: #ffffff;
  --text-muted: #888888;
  --border-color: #333333;
  --glow-color: #00ff4180;
}

body {
  font-family: 'Courier New', monospace;
  background: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Matrix Background */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg-darker);
  opacity: 0.2;
  overflow: hidden;
}

.matrix-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background-image: 
    linear-gradient(90deg, transparent 98%, var(--primary-color) 100%),
    linear-gradient(0deg, transparent 98%, var(--primary-color) 100%);
  background-size: 50px 50px;
  animation: matrix-scroll 20s linear infinite;
}

.scan-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    transparent 50%,
    rgba(0, 255, 65, 0.02) 50%
  );
  background-size: 100% 4px;
  animation: scan-lines 0.1s linear infinite;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-lock {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 1.2rem;
  animation: logo-pulse 2s ease-in-out infinite;
}

.logo-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--glow-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.api-test {
  background: var(--accent-color);
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 4px;
}

.api-test:hover {
  background: #ff1a5a;
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 1s ease-out;
}

.loading-content {
  text-align: center;
}

.loading-lock {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  animation: loading-lock-spin 2s ease-in-out infinite;
}

.loading-text {
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: loading-pulse 1.5s ease-in-out infinite;
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: var(--primary-color);
  width: 0%;
  animation: loading-progress 3s ease-out forwards;
  box-shadow: 0 0 10px var(--glow-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}