/* GMDI - Dark Theme (bridata-inspired) */

/* ===== Base Reset & Globals ===== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #0d0d14;
  color: #c8ccd4;
}

::selection {
  background: rgba(77, 211, 200, 0.3);
  color: #fff;
}

/* ===== Color System ===== */
:root {
  --bg-primary: #0d0d14;
  --bg-secondary: #12121c;
  --bg-card: #161622;
  --bg-card-hover: #1c1c2e;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(77, 211, 200, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #a0a6b4;
  --text-muted: #6b7280;
  --accent: #4dd1c8;
  --accent-dim: rgba(77, 211, 200, 0.15);
  --accent-glow: rgba(77, 211, 200, 0.4);
  --gold: #f0b429;
}

/* ===== Navigation ===== */
#main-nav {
  background: rgba(13, 13, 20, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: none !important;
}

/* ===== Hero Section ===== */
.hero-gradient {
  background: radial-gradient(ellipse at 50% 50%, #151528 0%, #0d0d14 70%);
  position: relative;
  overflow: hidden;
}

/* Particle canvas sits behind hero content */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ===== Section Tag (green bar + label) ===== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== Section Divider ===== */
.section-gradient {
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  height: 1px;
  opacity: 0.3;
}

/* ===== Dark Cards ===== */
.card-dark {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.35s ease;
}
.card-dark:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Legacy card-hover support */
.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* ===== Buttons ===== */
.btn-accent {
  background: var(--accent);
  color: #0d0d14;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-accent:hover {
  background: #5ee0d7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 211, 200, 0.3);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(77, 211, 200, 0.05);
}

/* Legacy gradients */
.btn-gradient {
  background: var(--accent);
  color: #0d0d14;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-gradient:hover {
  background: #5ee0d7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 211, 200, 0.3);
}
.btn-gold {
  background: var(--accent);
  color: #0d0d14;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-gold:hover {
  background: #5ee0d7;
  transform: translateY(-2px);
}

/* ===== Language Switcher ===== */
.lang-btn {
  transition: color 0.2s ease;
  color: var(--text-muted);
}
.lang-btn.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.lang-btn:hover {
  color: var(--accent);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color) !important;
}
.mobile-menu.open {
  max-height: 500px;
}

/* ===== Stats ===== */
.stat-number {
  background: linear-gradient(135deg, var(--accent), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Stats Bar ===== */
.stats-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* ===== Icon Container ===== */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== Timeline ===== */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-line {
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(77, 211, 200, 0.1));
}

/* ===== "View More" Link ===== */
.view-more {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.view-more:hover {
  color: var(--accent);
}

/* ===== News Card ===== */
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.35s ease;
}
.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

/* ===== Form Styles ===== */
.form-input {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: #fff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(77, 211, 200, 0.1) !important;
}
.form-input::placeholder {
  color: var(--text-muted) !important;
}

/* ===== Footer ===== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

/* ===== Network / Decorative Background ===== */
.network-bg {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(77, 211, 200, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(77, 211, 200, 0.03) 0%, transparent 50%);
}

/* ===== Process / Steps ===== */
.step-connector {
  position: relative;
}
.step-connector::after {
  content: '→';
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: bold;
}
.step-connector:last-child::after {
  display: none;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(77, 211, 200, 0.2); }
  50% { box-shadow: 0 0 20px rgba(77, 211, 200, 0.4); }
}

/* ===== Partner Grid ===== */
.partner-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
}
.partner-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
