@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-gradient: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
  --bg-color: #0a0a0f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --primary: #10b981; /* Emerald 500 */
  --primary-glow: rgba(16, 185, 129, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(16, 185, 129, 0.3);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: var(--bg-color);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.scroll-wrapper {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-gradient);
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.scroll-wrapper::-webkit-scrollbar {
  width: 8px;
}
.scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Navbar */
header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.7);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #000;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
  color: var(--primary);
}

/* Glass Cards */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
  transform: translateY(-4px);
}

/* Feature Specific */
.minecraft-block {
  width: 56px;
  height: 56px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Animation: Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stats */
.stat-number {
  font-family: var(--font-mono);
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
}

/* IP Copy Container */
.ip-box-container {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ip-box-container:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

/* Page Transitions */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* History Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem; /* center on line */
  top: 0.5rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Commands */
.command-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.command-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-secondary);
}

.command-item code {
  color: var(--primary);
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.95em;
}

/* Ranks */
.rank-card {
  border-left: 4px solid transparent;
}

/* Toast */
#toast {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(16, 185, 129, 0.9);
  color: #000;
  transform: translate(-50%, 20px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem !important;
  }
}

