:root {
  /* --- Digital Nexus Theme Palette --- */
  --bg-core: #050505;
  /* Deepest Void */
  --bg-glass: rgba(10, 10, 12, 0.6);
  --bg-card: rgba(20, 20, 25, 0.4);

  --accent-primary: #00f0ff;
  /* Cyber Blue */
  --accent-secondary: #7000ff;
  /* Electric Purple */
  --accent-glow: rgba(0, 240, 255, 0.15);

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #505050;

  --font-display: 'Outfit', sans-serif;
  --font-code: 'IBM Plex Mono', monospace;

  --border-glass: rgba(255, 255, 255, 0.05);
  --border-accent: rgba(0, 240, 255, 0.3);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.display-text {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 0%, #aaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mono-label {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-full {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 100px 0;
}

/* --- 3D Canvas Container --- */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  /* Let clicks pass through */
  opacity: 0.6;
  /* Slight fade to keep text readable */
}

/* --- UI Components --- */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
}

.btn-cyber {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  font-family: var(--font-code);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.btn-cyber::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  z-index: -1;
  transition: transform 0.4s var(--ease-out-expo);
}

.btn-cyber:hover {
  color: var(--bg-core);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-cyber:hover::before {
  transform: translateX(100%);
}

/* --- Component: Hero Nexus --- */
.hero-nexus {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

.hero-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.role-text {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-family: var(--font-code);
  font-weight: 400;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* --- Component: Data Panel (Glass) --- */
.hero-data {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-data:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.8rem;
}

.data-value {
  font-weight: 600;
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #00ff88;
  font-family: var(--font-code);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 10px #00ff88;
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 20px #00ff88;
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 10px #00ff88;
  }
}

/* --- Component: Floating Navbar --- */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1200px;
  z-index: 1000;
  padding: 1rem 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 100px;
  /* Pill shape */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.navbar-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Features Grid --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.feature-card {
  padding: 2.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
}

.feature-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

/* --- Component: Mobile Menu Overlay --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-links a {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.mobile-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.mobile-links a:hover::after {
  width: 100%;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .display-text {
    font-size: 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-main {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-data {
    margin-top: 1rem;
    transform: none;
    /* Disable 3D tilt on mobile */
  }

  .navbar-menu,
  .navbar-actions .btn-cyber {
    display: none;
    /* Simple hide for now, JS toggles mobile menu */
  }

  .menu-toggle {
    display: block;
  }
}