/* Advanced Premium Theme */
:root {
  --bg-color: #030712;
  --surface-color: #111827;
  --surface-hover: #1f2937;
  --primary-color: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.4);
  --secondary-color: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.4);
  --accent-color: #10b981;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-color: #374151;
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-family: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Utils */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 50px;
  /* Increased slightly for impact */
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(79, 70, 229, 0.4));
  /* Add glow */
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

nav a:hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
  background: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--glass-border);
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.1);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* Particle Canvas */
#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 24px;
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Stats Section */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 60px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number,
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Live Ticker */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  padding: 10px 0;
}

.ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ticker-item span {
  color: var(--primary-color);
  font-weight: 600;
}

@keyframes ticker {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Cards (Glassmorphism) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  /* 3D Tilt */
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #fff;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.9rem;
}

.data-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #fff;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.blur-text {
  color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  user-select: none;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: #fff;
}

/* Trusted Partners Marquee */
.partners-section {
  padding: 40px 0;
  background: var(--surface-color);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.marquee-content {
  display: flex;
  gap: 60px;
  animation: marquee 20s linear infinite;
  width: fit-content;
}

.partner-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
  white-space: nowrap;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  background: #000;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 200px;
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--text-muted);
}

.dropdown-menu a:hover {
  background: var(--surface-hover);
  color: #fff;
}

.menu-toggle {
  display: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--surface-color);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-150%);
    transition: var(--transition);
  }

  nav.active {
    transform: translateY(0);
  }

  .menu-toggle {
    display: block;
  }
}

/* --- Advanced Features --- */

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Typing Effect Cursor */
.typing-cursor::after {
  content: '|';
  animation: blink 1s step-start infinite;
  color: var(--primary-color);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Live Terminal */
.terminal-section {
  padding: 80px 0;
  background: black;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  position: relative;
}

.terminal-window {
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', monospace;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 2;
  position: relative;
}

.terminal-header {
  background: #1a1a1a;
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #333;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.terminal-body {
  padding: 20px;
  height: 300px;
  overflow-y: hidden;
  color: #10b981;
  font-size: 0.9rem;
  position: relative;
}

.log-entry {
  margin-bottom: 5px;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.log-timestamp {
  color: #6b7280;
  margin-right: 10px;
}

.log-action {
  color: #3b82f6;
}

.log-status {
  color: #ec4899;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Excel Sheet Modal */
.excel-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.excel-modal.active {
  display: flex;
  opacity: 1;
}

.excel-window {
  width: 90%;
  max-width: 1000px;
  height: 80vh;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #000;
}

.excel-modal.active .excel-window {
  transform: scale(1);
}

.excel-title-bar {
  background: #217346;
  color: #fff;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.excel-controls {
  display: flex;
  gap: 10px;
}

.excel-close {
  cursor: pointer;
  padding: 4px;
}

.excel-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.excel-toolbar {
  background: #f3f2f1;
  padding: 8px 16px;
  border-bottom: 1px solid #e1dfdd;
  display: flex;
  gap: 20px;
  align-items: center;
}

.excel-formula-bar {
  background: #fff;
  padding: 4px 16px;
  border-bottom: 1px solid #e1dfdd;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: monospace;
  font-size: 0.9rem;
  color: #333;
}

.excel-sheet-container {
  flex: 1;
  overflow: auto;
  background: #fff;
  position: relative;
}

.excel-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  font-size: 14px;
}

.excel-table th,
.excel-table td {
  border: 1px solid #d4d4d4;
  padding: 4px 8px;
  white-space: nowrap;
}

.excel-table th {
  background: #f8f9fa;
  color: #666;
  font-weight: normal;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.excel-table td {
  color: #333;
}

.excel-table tr:hover td {
  background: #f0f0f0;
}

.excel-footer {
  background: #f3f2f1;
  padding: 4px 16px;
  border-top: 1px solid #e1dfdd;
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: #666;
}

.sheet-tab {
  background: #fff;
  padding: 4px 12px;
  color: #217346;
  border-bottom: 2px solid #217346;
  font-weight: 600;
  cursor: pointer;
}