@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-dark: #06060c;
  --bg-deep: #0b0b16;
  --bg-card: rgba(13, 13, 29, 0.5);
  --bg-card-hover: rgba(20, 20, 43, 0.7);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --color-cyan: #00f2fe;
  --color-cyan-rgb: 0, 242, 254;
  --color-violet: #d946ef;
  --color-violet-rgb: 217, 70, 239;
  --color-green: #10b981;
  --color-green-rgb: 16, 185, 129;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-glow: rgba(0, 242, 254, 0.15);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --cursor-size: 8px;
  --cursor-glow-size: 40px;
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Selection */
::selection {
  background: rgba(0, 242, 254, 0.3);
  color: #fff;
}

/* Hide default scrollbar and style custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #1e1e38;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
}

/* --- Ambient Backgrounds & Grid --- */
#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

.tech-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
}

.ambient-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.12;
}

.ambient-cyan {
  top: -10vw;
  right: -10vw;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
}

.ambient-violet {
  bottom: -15vw;
  left: -10vw;
  background: radial-gradient(circle, var(--color-violet) 0%, transparent 70%);
}

/* Subtle scanline effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  opacity: 0.3;
}

/* --- Custom Glowing Cursor --- */
.custom-cursor {
  width: var(--cursor-size);
  height: var(--cursor-size);
  background-color: var(--color-cyan);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  box-shadow: 0 0 10px var(--color-cyan), 0 0 20px var(--color-cyan);
}

.custom-cursor-glow {
  width: var(--cursor-glow-size);
  height: var(--cursor-glow-size);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.03) 0%, transparent 80%);
  box-shadow: inset 0 0 8px rgba(0, 242, 254, 0.1);
}

/* Cursor hover states */
.cursor-hover .custom-cursor {
  width: 12px;
  height: 12px;
  background-color: var(--color-violet);
  box-shadow: 0 0 12px var(--color-violet), 0 0 24px var(--color-violet);
}

.cursor-hover .custom-cursor-glow {
  width: 60px;
  height: 60px;
  border-color: rgba(217, 70, 239, 0.5);
  background: radial-gradient(circle, rgba(217, 70, 239, 0.05) 0%, transparent 80%);
  box-shadow: inset 0 0 12px rgba(217, 70, 239, 0.15);
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-glow {
    display: none; /* Disable cursor elements on tablets and mobiles */
  }
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 10;
}

section {
  padding: 8rem 0;
  position: relative;
  z-index: 10;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Shared Components & Animations --- */

/* Glow Text & Gradients */
.gradient-text {
  background: linear-gradient(135deg, #fff 30%, var(--color-cyan) 70%, var(--color-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

.glow-cyan {
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* Cyber Badge */
.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.cyber-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-cyan);
  animation: pulse-glow 2s infinite alternate;
}

.cyber-badge.badge-green {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--color-green);
}
.cyber-badge.badge-green::before {
  background-color: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
}

.cyber-badge.badge-violet {
  background: rgba(217, 70, 239, 0.05);
  border-color: rgba(217, 70, 239, 0.2);
  color: var(--color-violet);
}
.cyber-badge.badge-violet::before {
  background-color: var(--color-violet);
  box-shadow: 0 0 8px var(--color-violet);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan) 0%, #00b8ff 100%);
  color: #030308;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5), 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  color: var(--color-cyan);
  transform: translateY(-2px);
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(6, 6, 12, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-cyan);
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: #fff;
}

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

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Implement mobile slideout or overlay if desired */
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  overflow: hidden;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-cyan);
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-tagline::before {
  content: '';
  width: 20px;
  height: 1px;
  background-color: var(--color-cyan);
  box-shadow: 0 0 5px var(--color-cyan);
}

.hero-title {
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

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

/* Hero Interactive Graphic */
.hero-visual {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-sphere {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(217, 70, 239, 0.02) 60%, transparent 100%);
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-sphere::before {
  content: '';
  position: absolute;
  width: 105%;
  height: 105%;
  border: 1px dashed rgba(217, 70, 239, 0.15);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.hero-sphere-core {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, transparent 70%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 40px rgba(0, 242, 254, 0.2), inset 0 0 20px rgba(0, 242, 254, 0.1);
  border-radius: 50%;
  position: relative;
}

.hero-tag {
  position: absolute;
  background: rgba(11, 11, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: float infinite ease-in-out;
}

.hero-tag svg {
  width: 16px;
  height: 16px;
}

.hero-tag-1 {
  top: 15%;
  left: -5%;
  border-color: rgba(0, 242, 254, 0.3);
  animation-duration: 5s;
}

.hero-tag-2 {
  bottom: 25%;
  right: -10%;
  border-color: rgba(217, 70, 239, 0.3);
  animation-duration: 7s;
}

.hero-tag-3 {
  bottom: 10%;
  left: 10%;
  border-color: rgba(16, 185, 129, 0.3);
  animation-duration: 6s;
}

.hero-tag-4 {
  top: 30%;
  right: -5%;
  border-color: rgba(0, 242, 254, 0.3);
  animation-duration: 8s;
}

.hero-tag-5 {
  top: 55%;
  left: -12%;
  border-color: rgba(16, 185, 129, 0.3);
  animation-duration: 5.5s;
}

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

@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-tagline {
    justify-content: center;
  }
  .hero-tagline::before {
    display: none;
  }
  .hero-description {
    margin: 0 auto 3rem auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    height: 350px;
    margin-top: 2rem;
  }
  .hero-sphere {
    width: 250px;
    height: 250px;
  }
}

/* --- Section Title Header --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

/* --- Traditional vs Partner (Why Us) --- */
.why-us-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.comp-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.comp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.comp-card.traditional {
  opacity: 0.65;
  filter: grayscale(40%);
}

.comp-card.traditional::before {
  background-color: var(--text-muted);
}

.comp-card.partner {
  border-color: rgba(0, 242, 254, 0.15);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.03);
}

.comp-card.partner::before {
  background: linear-gradient(90deg, var(--color-cyan), var(--color-violet));
}

.comp-card.partner:hover {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 15px 45px rgba(0, 242, 254, 0.08), 0 0 20px rgba(0, 242, 254, 0.03);
  transform: translateY(-4px);
}

.comp-header {
  margin-bottom: 2rem;
}

.comp-header h3 {
  margin-bottom: 0.5rem;
}

.comp-header .status {
  font-size: 0.85rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.comp-card.traditional .status { color: var(--text-muted); }
.comp-card.partner .status { color: var(--color-cyan); text-shadow: 0 0 10px rgba(0, 242, 254, 0.2); }

.comp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comp-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.comp-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
}

.comp-card.traditional svg { color: var(--text-muted); }
.comp-card.partner svg { color: var(--color-cyan); filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.5)); }

.comp-card.partner li strong {
  color: #fff;
}

@media (max-width: 900px) {
  .why-us-comparison {
    grid-template-columns: 1fr;
  }
  .comp-card {
    padding: 2rem;
  }
}

/* --- Capabilities (Services) Section: Cyber-Console Redesign --- */
.cyber-console {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}

.console-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.console-tab {
  background: rgba(11, 11, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.console-tab::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  transition: all 0.3s ease;
}

.tab-index {
  font-family: monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.tab-status-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tab-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

/* Hover State */
.console-tab:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.console-tab:hover .tab-label {
  color: #fff;
}

/* Active State */
.console-tab.active {
  background: rgba(0, 242, 254, 0.03);
  border-color: rgba(0, 242, 254, 0.15);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.02), inset 0 0 10px rgba(0, 242, 254, 0.02);
}

.console-tab.active::after {
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
}

.console-tab.active .tab-index {
  color: var(--color-cyan);
}

.console-tab.active .tab-status-dot {
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
}

.console-tab.active .tab-label {
  color: #fff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Viewport Styling */
.cap-viewport {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  height: 520px; /* Locked height to prevent content jumps */
}

.viewport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(3, 3, 7, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.viewport-status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--color-green);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.viewport-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  padding: 2.5rem;
  align-items: center;
  height: calc(100% - 45px);
  box-sizing: border-box;
}

.viewport-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.viewport-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Reusable card image elements in console */
.cap-viewport .cap-image {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 5;
}

.cap-viewport .cap-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Bullet list override inside console viewport */
.cap-viewport .cap-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cap-viewport .cap-bullets li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cap-viewport .cap-bullets li svg {
  width: 14px;
  height: 14px;
  color: var(--color-cyan);
  flex-shrink: 0;
}

/* Flicker/Transition Effects */
.cap-viewport.flicker-transition #console-viewport-content {
  animation: console-flicker 0.25s ease-out;
}

@keyframes console-flicker {
  0% { opacity: 0.3; filter: brightness(1.5) blur(1px); }
  50% { opacity: 0.7; filter: brightness(0.8); }
  100% { opacity: 1; filter: none; }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
  .cyber-console {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .console-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    gap: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.05) transparent;
  }
  
  .console-tab {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.25rem;
  }
  
  .console-tab::after {
    width: 100%;
    height: 3px;
    top: auto;
    bottom: 0;
    left: 0;
  }
  
  .tab-index {
    display: none;
  }
  
  .tab-status-dot {
    display: none;
  }
  
  .cap-viewport {
    height: auto;
    min-height: 480px;
  }
  
  .viewport-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .cap-viewport .cap-image {
    height: 220px;
    order: -1; /* Place image on top on smaller screens */
  }
}

/* --- Interactive Calculator Section --- */
.calc-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 242, 254, 0.1);
  border-radius: 24px;
  padding: 4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 242, 254, 0.02);
  backdrop-filter: blur(10px);
}

.calc-title {
  margin-bottom: 1.5rem;
}

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 500;
}

.slider-label span:last-child {
  color: var(--color-cyan);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

/* Custom Range Input styling */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1e1e38;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-cyan), 0 0 20px rgba(0, 242, 254, 0.5);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Result panel */
.calc-results {
  background: rgba(6, 6, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.result-card {
  text-align: center;
}

.result-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.result-val {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-cyan);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.result-val.time {
  color: var(--color-violet);
  text-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

.calc-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .calc-container {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 3rem;
  }
  .calc-results {
    padding: 2rem;
  }
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.info-details p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3.5rem;
  backdrop-filter: blur(10px);
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-secondary);
  pointer-events: none;
  transition: var(--transition-smooth);
  font-size: 1rem;
}

/* Float label logic */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -1rem;
  font-size: 0.85rem;
  color: var(--color-cyan);
  font-family: var(--font-heading);
}

.form-input:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 1px 0 var(--color-cyan);
}

textarea.form-input {
  min-height: 100px;
  resize: none;
}

.form-status {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
  opacity: 0;
}

.form-status.success {
  color: var(--color-green);
  opacity: 1;
}

.form-status.error {
  color: var(--color-violet);
  opacity: 1;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .contact-form-wrapper {
    padding: 2rem;
  }
}

/* --- Footer --- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #030308;
  padding: 4rem 0 2rem 0;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.footer-logo span {
  color: var(--color-cyan);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

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

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  padding-top: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

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

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

/* --- Select Dropdown Styling --- */
select.form-input {
  background-color: var(--bg-dark);
  color: #fff;
  cursor: pointer;
  padding-right: 2.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300f2fe' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
}

select.form-input option {
  background-color: var(--bg-deep);
  color: #fff;
  padding: 1rem;
}

/* --- Why DigiExtension points --- */
.why-points-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.why-point-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  gap: 1.5rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.why-point-card:hover {
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 12px 40px rgba(0, 242, 254, 0.04);
  transform: translateY(-4px);
}

.why-point-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
}

.why-point-icon svg {
  width: 24px;
  height: 24px;
}

.why-point-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.why-point-content p {
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .why-points-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- How It Works timeline --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  margin-top: 4rem;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-violet) 50%, var(--color-green) 100%);
  opacity: 0.15;
  z-index: 1;
}

.process-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.process-card:hover {
  border-color: rgba(217, 70, 239, 0.25);
  box-shadow: 0 15px 35px rgba(217, 70, 239, 0.05);
  transform: translateY(-5px);
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--color-violet);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-violet);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.15);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.process-card:hover .process-number {
  background: var(--color-violet);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--color-violet);
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.process-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .process-grid::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.test-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 3.5rem 2.5rem 2.5rem 2.5rem;
  position: relative;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.test-card::before {
  content: '“';
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-size: 6rem;
  font-family: var(--font-heading);
  color: var(--color-cyan);
  opacity: 0.08;
  line-height: 1;
}

.test-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.04);
  transform: translateY(-4px);
}

.test-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.test-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.test-author span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-style: normal;
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Closing CTA --- */
.closing-cta {
  background: linear-gradient(135deg, rgba(13, 13, 29, 0.8) 0%, rgba(20, 20, 43, 0.8) 100%);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  max-width: 1000px;
  margin: 6rem auto 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 242, 254, 0.02);
  backdrop-filter: blur(10px);
}

.closing-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.closing-cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.closing-cta p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* ==========================================================================
   SaaS Projects Showcase / Command Center
   ========================================================================== */

.projects-hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  text-align: center;
}

.projects-hero h1 {
  margin-bottom: 1.5rem;
}

.projects-hero p {
  max-width: 700px;
  margin: 0 auto;
}

.command-center-section {
  padding-top: 0;
  padding-bottom: 8rem;
}

.command-center {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .command-center {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Directory Panel */
.project-directory {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-selector {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.project-selector::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--theme-color, var(--color-cyan));
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
}

.project-selector:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.project-selector.active {
  border-color: var(--theme-color, var(--color-cyan));
  background: rgba(var(--theme-color-rgb, var(--color-cyan-rgb)), 0.04);
  box-shadow: 0 0 20px rgba(var(--theme-color-rgb, var(--color-cyan-rgb)), 0.05);
}

.project-selector.active::before {
  transform: scaleY(1);
  transform-origin: top;
}

.sel-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  transition: var(--transition-smooth);
}

.project-selector.active .sel-badge {
  color: var(--theme-color, var(--color-cyan));
  border-color: rgba(var(--theme-color-rgb, var(--color-cyan-rgb)), 0.2);
  background: rgba(var(--theme-color-rgb, var(--color-cyan-rgb)), 0.05);
}

.sel-index {
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.project-selector.active .sel-index {
  color: var(--theme-color, var(--color-cyan));
}

.sel-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.2;
}

.sel-tag {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Console Viewport */
.console-viewport {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  display: none; /* toggled via JS */
  flex-direction: column;
  gap: 2rem;
  min-height: 550px;
}

.console-viewport.active {
  display: flex;
  animation: console-fade-in 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes console-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.console-header h2 {
  font-size: 1.8rem;
  color: #fff;
}

.console-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .console-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.console-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.console-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.console-stat-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1rem;
  text-align: left;
}

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

.stat-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0.25rem;
  color: var(--theme-color, var(--color-cyan));
  text-shadow: 0 0 10px rgba(var(--theme-color-rgb, var(--color-cyan-rgb)), 0.2);
}

.console-intel h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--theme-color, var(--color-cyan));
  margin-bottom: 0.5rem;
}

.console-intel p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.console-specs {
  margin-top: 0.5rem;
}

.console-specs h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.console-actions {
  margin-top: 1.5rem;
}

/* Interactive Simulation Viewport */
.console-sim {
  width: 100%;
}

.sim-container {
  background: rgba(3, 3, 7, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.5rem;
  height: 360px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Simulation Widgets styling */
.sim-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sim-dot {
  width: 8px;
  height: 8px;
  background: var(--theme-color, var(--color-cyan));
  border-radius: 50%;
  box-shadow: 0 0 8px var(--theme-color, var(--color-cyan));
  display: inline-block;
  animation: pulse-glow 2s infinite alternate;
}

.sim-title {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Vendorflow Simulation Elements */
.vf-pipeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.vf-invoice-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  max-width: 260px;
  position: relative;
  overflow: hidden;
}

.vf-invoice-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
  animation: scan-invoice 3s infinite linear;
}

@keyframes scan-invoice {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.vf-line {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin-bottom: 0.5rem;
  width: 100%;
}
.vf-line.short { width: 60%; }
.vf-line.medium { width: 80%; }
.vf-line.accent { background: rgba(0, 242, 254, 0.2); }

.vf-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.vf-btn {
  background: transparent;
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--color-cyan);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.vf-btn:hover {
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.vf-status-log {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1.5rem;
}

/* Viewprop Simulation Elements */
.vp-flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  justify-content: center;
}

.vp-lead-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slide-in-lead 4s infinite ease-in-out;
}

@keyframes slide-in-lead {
  0% { transform: translateY(10px); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}

.vp-lead-info h5 {
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}
.vp-lead-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.vp-lead-status {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-violet);
  background: rgba(217, 70, 239, 0.05);
  border: 1px solid rgba(217, 70, 239, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.vp-automator {
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
  margin-top: 1rem;
  padding-top: 1rem;
}

.vp-pulse-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

.vp-pulse-row::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.vp-node {
  background: #0b0b16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.vp-node.active {
  border-color: var(--color-violet);
  color: var(--color-violet);
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.2);
}

.vp-node svg {
  width: 18px;
  height: 18px;
}

/* Tradermagz Simulation Elements */
.tm-trading {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tm-chart {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: 140px;
}

.tm-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
}

.tm-wick {
  width: 1px;
  background: var(--wick-color, rgba(255, 255, 255, 0.15));
  position: absolute;
  top: 10%;
  bottom: 10%;
}

.tm-bar {
  width: 100%;
  border-radius: 2px;
  z-index: 2;
  transition: height 0.3s ease, background 0.3s ease;
  min-height: 4px;
}

.tm-bar.up {
  background: var(--color-green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
  --wick-color: rgba(16, 185, 129, 0.4);
}

.tm-bar.down {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
  --wick-color: rgba(239, 68, 68, 0.4);
}

.tm-orderbook {
  height: 80px;
  font-family: monospace;
  font-size: 0.7rem;
  overflow: hidden;
  margin-top: 0.75rem;
}

.tm-order-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  opacity: 0.7;
}

.tm-order-row.buy { color: var(--color-green); }
.tm-order-row.sell { color: #ef4444; }

/* Empire Warlords Simulation Elements */
.ew-nft-deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
}

.ew-card {
  width: 100%;
  max-width: 220px;
  background: linear-gradient(135deg, rgba(20, 20, 43, 0.8) 0%, rgba(10, 10, 20, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  position: relative;
  transition: var(--transition-smooth);
}

.ew-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--color-violet), transparent, var(--color-cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.ew-card-img {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.ew-avatar-glow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-violet) 0%, transparent 70%);
  opacity: 0.4;
  animation: float 4s infinite ease-in-out;
}

.ew-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.ew-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-family: monospace;
}

.ew-stat {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ew-stat span {
  color: var(--color-cyan);
  font-weight: bold;
}

.ew-mint-btn {
  background: linear-gradient(135deg, var(--color-violet) 0%, #a855f7 100%);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(217, 70, 239, 0.2);
}

.ew-mint-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 70, 239, 0.4);
}

.ew-log {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  min-height: 1rem;
}

/* ==========================================================================
   Supabase Lead System Styles (Overlay, Client Portal & Admin Dashboard)
   ========================================================================== */

/* 1. Terminal Overlay */
.cyber-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 7, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.cyber-overlay.fade-out {
  opacity: 0;
}
.cyber-overlay-content {
  text-align: center;
  max-width: 500px;
  width: 90%;
}
.cyber-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0, 242, 254, 0.1);
  border-top: 3px solid var(--color-cyan);
  border-radius: 50%;
  margin: 0 auto 2.5rem auto;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}
.cyber-terminal {
  background: rgba(11, 11, 22, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.15);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: monospace;
  text-align: left;
  min-height: 140px;
}
.terminal-line {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.terminal-line.active {
  color: var(--color-cyan);
  opacity: 1;
  transform: translateY(0);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}
.terminal-line:last-child.active {
  color: var(--color-green);
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* 2. Personalized Portal & Admin Layouts */
.portal-layout, .dashboard-layout {
  padding-top: 6rem;
  min-height: 100vh;
  position: relative;
  z-index: 10;
}
.portal-header, .dashboard-header {
  margin-bottom: 3.5rem;
}
.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 968px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* 3. Cards & Details */
.portal-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.portal-card:hover {
  border-color: rgba(0, 242, 254, 0.15);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.02);
}
.portal-card-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Stats Cards Grid */
.portal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.portal-stat-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
}
.portal-stat-card:hover {
  background: rgba(255, 255, 255, 0.03);
}
.portal-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.portal-stat-value {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}
.portal-stat-value.cyan { color: var(--color-cyan); text-shadow: 0 0 10px rgba(0, 242, 254, 0.2); }
.portal-stat-value.violet { color: var(--color-violet); text-shadow: 0 0 10px rgba(217, 70, 239, 0.2); }
.portal-stat-value.green { color: var(--color-green); text-shadow: 0 0 10px rgba(16, 185, 129, 0.2); }

/* 4. Architecture Diagrams */
.arch-diagram-wrapper {
  background: rgba(3, 3, 7, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  align-items: center;
}
.arch-node {
  background: rgba(11, 11, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  font-family: monospace;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
  width: 100%;
  max-width: 320px;
}
.arch-node.active {
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1), inset 0 0 10px rgba(0, 242, 254, 0.05);
  color: #fff;
}
.arch-node.active-violet {
  border-color: var(--color-violet);
  box-shadow: 0 0 15px rgba(217, 70, 239, 0.1);
  color: #fff;
}
.arch-arrow {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, var(--color-cyan), transparent);
  position: relative;
}
.arch-arrow::after {
  content: '▼';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 6px;
  color: var(--color-cyan);
}

/* 5. Phased Timeline */
.portal-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}
.timeline-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.timeline-item.active .timeline-dot {
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan), 0 0 0 3px rgba(0, 242, 254, 0.15);
}
.timeline-content h4 {
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.timeline-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 6. Scheduler Widget styling */
.scheduler-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.scheduler-column h4 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  text-align: center;
  font-size: 0.75rem;
}
.day-header {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.25rem 0;
}
.day-cell {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.day-cell:hover:not(.disabled) {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--color-cyan);
  color: #fff;
}
.day-cell.active {
  background: var(--color-cyan);
  border-color: var(--color-cyan);
  color: #030308;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}
.day-cell.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.time-slots {
  display: flex;
  flex-direction: column;
  gap: 0.50rem;
  max-height: 240px;
  overflow-y: auto;
}
.time-slot {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.6rem;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
.time-slot:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.time-slot.selected {
  background: rgba(217, 70, 239, 0.15);
  border-color: var(--color-violet);
  color: var(--color-violet);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(217, 70, 239, 0.1);
}
.scheduler-status {
  text-align: center;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  color: var(--color-green);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* 7. Admin Dashboard styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
.leads-table-wrapper {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
.leads-table th {
  background: rgba(11, 11, 22, 0.8);
  padding: 1.2rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-heading);
}
.leads-table td {
  padding: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  vertical-align: middle;
}
.leads-table tr {
  cursor: pointer;
  transition: var(--transition-smooth);
}
.leads-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.leads-table tr.selected {
  background: rgba(0, 242, 254, 0.03);
  border-left: 3px solid var(--color-cyan);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-incoming {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-cyan);
}
.badge-qualified {
  background: rgba(217, 70, 239, 0.08);
  border: 1px solid rgba(217, 70, 239, 0.2);
  color: var(--color-violet);
}
.badge-outreached {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}
.badge-won {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-green);
}
.badge-lost {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* Sidebar Details Console */
.dashboard-panel-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}
.dashboard-panel-section {
  margin-bottom: 1.75rem;
}
.dashboard-panel-section h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.detail-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}
.ai-diagnosis-box {
  background: rgba(3, 3, 7, 0.6);
  border: 1px solid rgba(217, 70, 239, 0.15);
  border-radius: 8px;
  padding: 1.25rem;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  box-shadow: inset 0 0 15px rgba(217, 70, 239, 0.03);
}
.ai-diagnosis-line {
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.ai-diagnosis-line.highlight {
  color: var(--color-cyan);
}
.outreach-btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.btn-wa {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-wa:hover {
  background: var(--color-green);
  color: #030308;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}
.btn-email {
  background: rgba(0, 242, 254, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}
.btn-email:hover {
  background: var(--color-cyan);
  color: #030308;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}

/* Stats dashboard cards */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.status-select {
  background: rgba(11, 11, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.status-select:hover {
  border-color: var(--color-cyan);
}
.status-select:focus {
  outline: none;
  border-color: var(--color-cyan);
}







