:root {
  --primary: #8030cc;
  --primary-dark: #6322a3b2;
  --accent: #d97706;
  --gold: #d97706;
  --bg: #ffffff;
  --bg2: #f4f6fa;
  --card-bg: #ffffff;
  --border: rgba(80, 48, 204, 0.2);
  --text: #1a202c;
  --text-muted: #4a5568;
  --glow: 0 0 20px rgba(155, 81, 224, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] {
  --primary: #9b51e0;
  --primary-dark: #7b3bbbdc;
  --accent: #f59e0b;
  --gold: #ffd700;
  --bg: #020810;
  --bg2: #050f1a;
  --card-bg: rgba(155, 81, 224, 0.04);
  --border: rgba(155, 81, 224, 0.15);
  --text: #e8f4ff;
  --text-muted: #7a9bb5;
  --glow: 0 0 30px rgba(155, 81, 224, 0.3);
  --nav-bg: rgba(2, 8, 16, 0.95);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(155, 81, 224, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 81, 224, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-scroll 20s linear infinite;
}

[data-theme="dark"] .hero-grid-overlay {
  background-image: linear-gradient(rgba(155, 81, 224, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 81, 224, 0.04) 1px, transparent 1px);
}

.hero-title,
.page-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1a202c 0%, #8741c9e1 50%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .page-title {
  background: linear-gradient(135deg, #ffffff 0%, #9b51e0 50%, #f59e0b 100%);
}

/* Removed to consolidate with main definition */

.tech-node {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(155, 81, 224, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tech-node::after {
  background: #fff;
  color: #1a202c;
  border: 1px solid var(--border);
}

[data-theme="dark"] .tech-node {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tech-node::after {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#bg-canvas {
  filter: invert(0.9) hue-rotate(180deg) opacity(0.8);
}

[data-theme="dark"] #bg-canvas {
  filter: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Page State Transitions */
.page-transition {
  animation: pageFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── CANVAS ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  filter: invert(0.9) hue-rotate(180deg) opacity(0.8);
}

[data-theme="dark"] #bg-canvas {
  filter: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--primary), 0 0 30px rgba(155, 81, 224, 0.5);
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(155, 81, 224, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  height: 70px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  transition: transform 0.3s ease;
  mix-blend-mode: multiply;
  /* Removes white backgrounds in light mode */
  display: block;
  border: none;
  background: transparent;
}

[data-theme="dark"] .nav-logo-img {
  mix-blend-mode: screen;
  /* Removes black backgrounds in dark mode */
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-logo-icon {
  display: none;
  /* Hide old icon logo if replacing with image */
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 900;
  color: var(--primary);
  box-shadow: var(--glow);
  background: rgba(155, 81, 224, 0.07);
  animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(155, 81, 224, 0.3);
  }

  50% {
    box-shadow: 0 0 25px rgba(155, 81, 224, 0.7);
  }
}

.nav-logo-text {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  line-height: 1.2;
}

.nav-logo-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 9px;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 5px;
}

.nav-links a {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  position: relative;
  overflow: hidden;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 10px 22px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: rgba(155, 81, 224, 0.05);
}

/* Improved buttons & hovers */
.nav-cta:hover,
.btn-primary:hover,
.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg) !important;
  box-shadow: 0 0 25px rgba(155, 81, 224, 0.8), 0 0 45px rgba(155, 81, 224, 0.4);
  transform: translateY(-2px) scale(1.02);
}

.btn-primary::after,
.btn-secondary::after,
.nav-cta::after {
  content: " \2192";
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
  display: inline-block;
  white-space: pre;
}

.btn-primary:hover::after,
.btn-secondary:hover::after,
.nav-cta:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  padding-top: 70px;
}

/* Duplicate removed */

@keyframes grid-scroll {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 1000px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(155, 81, 224, 0.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--primary);
  background: rgba(155, 81, 224, 0.07);
  margin-bottom: 28px;
  box-shadow: var(--glow);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: blink 1.5s steps(1) infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Duplicate removed */

.hero-subtitle {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 16px 36px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  background: linear-gradient(135deg, #b882ee 0%, #9b51e0 100%);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(155, 81, 224, 0.6);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 16px 36px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid rgba(155, 81, 224, 0.4);
  color: var(--text);
  background: rgba(155, 81, 224, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

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

.hero-stat-num {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── SECTIONS ── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 4vw;
}

.section-tag {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--primary);
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
  font-size: 1rem;
  margin-bottom: 40px;
}

/* Components */
.about-grid,
.capabilities-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 1000px;
  display: block;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(155, 81, 224, 0.1) 0%, transparent 70%);
  transition: opacity 0.5s;
}

.product-card:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(-4deg) scale(1.05);
  border-color: rgba(155, 81, 224, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow);
  z-index: 2;
  background: var(--primary) !important;
  color: #fff !important;
  cursor: pointer;
}

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

.product-card:hover .product-name {
  color: #fff !important;
}

.product-card:hover .product-desc {
  color: rgba(255, 255, 255, 0.9) !important;
}

.product-card:hover .product-icon,
.product-card:hover .card-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}

.product-card:hover .client-chip {
  background: rgba(0, 0, 0, 0.2) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.product-card:hover .metric-value {
  color: #fff !important;
}

.product-card:hover .metric-label {
  color: rgba(255, 255, 255, 0.8) !important;
}

.product-card:hover .card-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: #fff !important;
}

.card-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--primary);
}

.product-icon {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  justify-content: flex-start;
  margin-bottom: 10px;
  display: flex;
  transition: color 0.4s;
}

.card-subtitle {
  font-size: 0.75rem;
  font-family: 'Orbitron', monospace;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  transition: color 0.4s;
}

.product-name {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.4s;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  transition: color 0.4s;
}

.metric-value {
  margin-top: 40px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  transition: color 0.4s;
}

.metric-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color 0.4s;
}

.scanline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.product-card:hover .scanline {
  transform: scaleX(1);
}

.clients-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.client-chip {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 100px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s;
  margin: 0;
}

.client-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
  transition: all 0.3s;
}

.portfolio-card:hover {
  border-color: rgba(155, 81, 224, 0.5);
  box-shadow: var(--glow);
  transform: translateY(-5px);
}

.portfolio-content {
  padding: 40px;
}

.portfolio-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.portfolio-stack {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.portfolio-box {
  background: rgba(155, 81, 224, 0.03);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(155, 81, 224, 0.1);
}

.portfolio-box h4 {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 10px;
}

.portfolio-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.portfolio-results {
  margin-top: 30px;
  padding: 20px;
  background: rgba(0, 255, 136, 0.05);
  border-left: 4px solid #00ff88;
  border-radius: 0 8px 8px 0;
}

.portfolio-results h4 {
  color: #00ff88;
  font-family: 'Orbitron', monospace;
  margin-bottom: 10px;
}

/* Contact Form */
.contact-form-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  position: relative;
  box-shadow: var(--glow);
  z-index: 2;
}

.form-title {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

label {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(155, 81, 224, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(155, 81, 224, 0.15);
  background: rgba(155, 81, 224, 0.1);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

select option {
  background: var(--bg2);
}

/* Capability / Features Grid */
.capability-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s;
  cursor: default;
}

.capability-item:hover {
  border-color: rgba(155, 81, 224, 0.4);
  background: rgba(155, 81, 224, 0.06);
  transform: translateX(6px);
}

.capability-num {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  min-width: 40px;
  opacity: 0.5;
}

.capability-title {
  font-family: 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.capability-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.specs-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  position: sticky;
  top: 100px;
  box-shadow: var(--glow);
}

.specs-title {
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(155, 81, 224, 0.08);
}

.specs-key {
  color: var(--text-muted);
}

.specs-val {
  color: var(--text);
  text-align: right;
}

.specs-val.highlight {
  color: var(--primary);
}

.cad-widget {
  background: rgba(155, 81, 224, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
}

.cad-widget-header {
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cad-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cad-dot.green {
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}

.cad-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(155, 81, 224, 0.07);
  color: var(--text-muted);
  font-size: 10px;
}

.cad-row span:last-child {
  color: var(--text);
}

/* Page Header for inner pages */
.page-header {
  padding: 180px 4vw 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  position: relative;
  z-index: 1;
}

.page-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #9b51e0 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── SCROLL REVEAL STAGGERED ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
}

.footer-logo {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #A548D9;
}

.footer-logo span {
  color: #D98008;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  text-transform: uppercase;
}

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

/* Tech Stack Image */
.tech-image-wrapper {
  margin: 60px auto;
  max-width: 600px;
  position: relative;
  border-radius: 0.1px;
  box-shadow: 0 0 60px rgba(155, 81, 224, 0.2);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(155, 81, 224, 0.05), transparent);
  padding: 0.1px;
  transition: all 0.4s;
}

[data-theme="dark"] .tech-image-wrapper {
  box-shadow: 0 0 60px rgba(155, 81, 224, 0.4);
  background: radial-gradient(circle at center, rgba(155, 81, 224, 0.1), transparent);
  border-color: rgba(155, 81, 224, 0.3);
}

.tech-image-wrapper:hover {
  transform: scale(1.02) translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 0 80px rgba(155, 81, 224, 0.4);
}

.tech-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.1));
  border-radius: 12px;
  border: 1px solid rgba(155, 81, 224, 0.1);
}

[data-theme="dark"] .tech-image-wrapper img {
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.5));
  border-color: rgba(255, 255, 255, 0.1);
}

/* ── RADIAL ORBITAL TIMELINE ── */
.radial-orbital-panel {
  margin-top: 60px;
  padding: 60px 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--glow);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.orbital-container {
  width: 500px;
  height: 500px;
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg);
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radial-orbital-panel:hover .orbital-container {
  transform: rotateX(45deg) rotateY(10deg);
}

/* Redundant moved to bottom */

/* Redundant moved to bottom */

@keyframes pulseCore {
  0% {
    box-shadow: 0 0 40px var(--primary), inset 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) translateZ(60px) scale(1);
  }

  100% {
    box-shadow: 0 0 80px var(--primary), inset 0 0 40px rgba(255, 255, 255, 0.8);
    transform: translate(-50%, -50%) translateZ(60px) scale(1.1);
  }
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: ringSpin 20s linear infinite;
}

@keyframes ringSpin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.orbit-1 {
  width: 220px;
  height: 220px;
  border: 1px dashed rgba(155, 81, 224, 0.6);
  animation-duration: 15s;
}

.orbit-2 {
  width: 360px;
  height: 360px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  animation-duration: 25s;
  animation-direction: reverse;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.orbit-3 {
  width: 500px;
  height: 500px;
  border: 1px dotted rgba(245, 158, 11, 0.5);
  animation-duration: 35s;
}

.orbit-node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.3s;
}

.orbit-node::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: inherit;
  border-radius: 50%;
  filter: blur(5px);
  opacity: 0.6;
}

/* Tech Nodes */
.tech-node {
  position: absolute;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 50%;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.3s;
  transform: rotate(var(--angle)) translateY(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.orbit-1 .tech-node {
  --orbit-radius: -110px;
}

.orbit-2 .tech-node {
  --orbit-radius: -180px;
}

.orbit-3 .tech-node {
  --orbit-radius: -250px;
}

.tech-node img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.orbit-1 .tech-node img {
  animation: counterSpin 40s linear infinite reverse;
}

.orbit-2 .tech-node img {
  animation: counterSpin 50s linear infinite;
}

.orbit-3 .tech-node img {
  animation: counterSpin 60s linear infinite reverse;
}

@keyframes counterSpin {
  100% {
    transform: rotate(360deg);
  }
}

.tech-node::after {
  content: attr(data-title);
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  top: -45px;
  left: 50%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  transform: translateX(-50%) rotateX(-90deg);
  text-wrap: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.tech-node:hover {
  transform: rotate(var(--angle)) translateY(var(--orbit-radius)) rotate(calc(-1 * var(--angle))) scale(1.6) translateZ(10px);
  z-index: 10;
  background: var(--bg);
  border-color: var(--primary);
}

.tech-node:hover::after {
  opacity: 1;
  transform: translateX(-50%) rotateX(-90deg) scale(0.65);
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block !important;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .nav-links.nav-open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 24px;
  }

  .about-grid,
  .capabilities-grid,
  .contact-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    gap: 30px;
  }

  /* Mobile adjustments for Orbital Timeline */
  .orbital-container {
    width: 300px;
    height: 300px;
    transform: rotateX(60deg) rotateY(0deg) scale(0.8);
  }

  .orbit-1 {
    width: 140px;
    height: 140px;
  }

  .orbit-2 {
    width: 220px;
    height: 220px;
  }

  .orbit-3 {
    width: 300px;
    height: 300px;
  }

  .tech-node::after {
    opacity: 1;
    transform: translateX(-50%) rotateX(-90deg) scale(0.65);
  }

  .tech-node {
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
  }

  .orbit-1 .tech-node {
    --orbit-radius: -70px;
  }

  .orbit-2 .tech-node {
    --orbit-radius: -110px;
  }

  .orbit-3 .tech-node {
    --orbit-radius: -150px;
  }

  .tech-node img {
    width: 22px;
    height: 22px;
  }

  /* Keep labels visible on mobile since no hover */

  /* Ensure tech image fits */
  .tech-image-wrapper {
    margin: 40px 20px;
  }
}

@media (max-width: 400px) {
  .orbital-container {
    transform: rotateX(60deg) rotateY(0deg) scale(0.65);
  }
}

body.menu-open {
  overflow: hidden;
}

/* ── FLOATING CONTACT ── */
.floating-contact-btn {
  position: fixed;
  bottom: 80px;
  right: 25px;
  background: var(--primary);
  border-radius: 50px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  box-shadow: 0 10px 30px rgba(155, 81, 224, 0.4);
  z-index: 10000;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none !important;
  color: #ffffff !important;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none !important;
  cursor: pointer;
}

.floating-contact-btn span {
  display: inline-block;
  color: #ffffff !important;
}

.floating-contact-btn svg {
  color: #fff;
  transition: transform 0.3s;
}

.floating-contact-btn:hover {
  transform: scale(1.05) translateY(-5px);
  background: #8030cc;
  box-shadow: 0 15px 35px rgba(155, 81, 224, 0.6);
}

.floating-contact-btn:hover svg {
  transform: rotate(15deg);
}

[data-theme="light"] .floating-contact-btn {
  box-shadow: 0 10px 25px rgba(155, 81, 224, 0.2);
}

@media (max-width: 800px) {
  .floating-contact-btn {
    bottom: 130px;
    /* Increased to stay above potentially tall footers */
    right: 20px;
    padding: 14px;
    border-radius: 50%;
    aspect-ratio: 1/1;
    justify-content: center;
    gap: 0;
    box-shadow: 0 8px 30px rgba(155, 81, 224, 0.5);
  }

  .floating-contact-btn span {
    display: none !important;
  }
}

/* Mobile-specific adjustments are now handled in the 800px media query above */

/* ── DEVELOPMENT PROCESS TIMELINE ── */
.dp-timeline-panel {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 40px;
}

.dp-container {
  position: relative;
  width: 400px;
  height: 400px;
}

/* Redundant moved to bottom */

.dp-center:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 0 30px rgba(155, 81, 224, 0.6), inset 0 0 20px rgba(155, 81, 224, 0.3);
}

.dp-center .core-node {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--text);
}

.dp-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(155, 81, 224, 0.3);
  border-radius: 50%;
  animation: slow-spin 60s linear infinite;
}

@keyframes slow-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.dp-orbit-nodes {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: slow-spin 60s linear infinite;
}


.dp-node.dimmed {
  opacity: 0.3;
  filter: grayscale(1);
}

@keyframes dp-counter-spin {
  0% {
    transform: rotate(var(--angle)) translateY(var(--orbit-radius)) rotate(calc(-1 * var(--angle))) rotate(0deg);
  }

  100% {
    transform: rotate(var(--angle)) translateY(var(--orbit-radius)) rotate(calc(-1 * var(--angle))) rotate(-360deg);
  }
}

.dp-node {
  position: absolute;
  top: 50%;
  left: 50%;
  --orbit-radius: -200px;
  width: 65px;
  height: 65px;
  margin: -32.5px 0 0 -32.5px;
  transform: rotate(var(--angle)) translateY(var(--orbit-radius)) rotate(calc(-1 * var(--angle)));
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 5;
  animation: dp-counter-spin 60s linear infinite;
}

.dp-node:hover {
  transform: rotate(var(--angle)) translateY(var(--orbit-radius)) rotate(calc(-1 * var(--angle))) scale(1.15);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(155, 81, 224, 0.5);
  z-index: 6;
}

.dp-icon {
  font-size: 22px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dp-node:hover .dp-icon {
  transform: scale(1.3);
}

.dp-label {
  position: absolute;
  top: 75px;
  white-space: nowrap;
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  color: var(--text-muted);
  transition: color 0.3s;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 4px;
}

.dp-node:hover .dp-label {
  color: var(--primary);
  border: 1px solid var(--primary);
}

.dp-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 40px rgba(155, 81, 224, 0.1);
  z-index: 20;
  text-align: left;
  opacity: 1;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: all;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .dp-popup {
  background: rgba(2, 8, 16, 0.95);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(155, 81, 224, 0.3);
}

.dp-popup.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

.dp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
}

.dp-close:hover {
  color: var(--primary);
}

.dp-badge {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--primary);
  border-radius: 100px;
  color: var(--primary);
  margin-bottom: 15px;
}

.dp-popup h3 {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text);
}

.dp-popup p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .dp-container {
    width: 280px;
    height: 280px;
  }

  .dp-node {
    --orbit-radius: -140px;
  }

  .dp-timeline-panel {
    height: 450px;
  }

  .dp-label {
    top: 65px;
    font-size: 10px;
  }
}


/* Theme Overrides */
/* Theme Overrides (Dark) */
[data-theme="dark"] .hero-title,
[data-theme="dark"] .page-title {
  background: linear-gradient(135deg, #ffffff 0%, #9b51e0 50%, #f59e0b 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(60px);
  background: radial-gradient(circle at center, var(--primary), #e2d5f0);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(155, 81, 224, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transform-style: preserve-3d;
  animation: pulseCore 3s infinite alternate;
}

[data-theme="dark"] .orbital-center {
  background: radial-gradient(circle at center, var(--primary), #3b156b) !important;
  box-shadow: 0 0 40px var(--primary), inset 0 0 20px rgba(255, 255, 255, 0.5) !important;
}

.dp-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(155, 81, 224, 0.2), inset 0 0 15px rgba(155, 81, 224, 0.1);
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s;
}

[data-theme="dark"] .dp-center {
  background: var(--nav-bg) !important;
  box-shadow: 0 0 20px rgba(155, 81, 224, 0.4), inset 0 0 15px rgba(155, 81, 224, 0.2) !important;
}

.core-node {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: #1a202c;
  text-shadow: none;
}

[data-theme="dark"] .core-node {
  color: var(--text) !important;
  text-shadow: 0 0 10px rgba(155, 81, 224, 0.3) !important;
}


/* ── INTERACTIVE LOGO FOR ABOUT PAGE ── */
.about-visual {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  overflow: hidden !important;
}

.hero-logo-interactive {
  position: relative !important;
  width: 100% !important;
  max-width: 350px !important;
  /* Slightly smaller for better balance */
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  perspective: 1000px;
}

.about-hero-logo {
  width: 100% !important;
  max-width: 350px !important;
  max-height: 350px !important;
  height: auto !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  filter: drop-shadow(0 0 15px rgba(155, 81, 224, 0.1));
  z-index: 2;
}

[data-theme="dark"] .about-hero-logo {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 20px rgba(155, 81, 224, 0.2));
}

.logo-glow-effect {
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  opacity: 0;
  filter: blur(40px);
  transition: all 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.hero-logo-interactive:hover .about-hero-logo {
  transform: scale(1.1) rotateY(10deg) rotateX(5deg);
  filter: drop-shadow(0 0 40px rgba(155, 81, 224, 0.6));
}

.hero-logo-interactive:hover .logo-glow-effect {
  opacity: 0.4;
  transform: scale(1.5);
}

@media (max-width: 768px) {
  .hero-logo-interactive {
    max-width: 300px;
  }
}