/*
 * Zytona Engineering - Elementor Template Styles
 * Complete CSS for all sections
 */

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

:root {
  /* Color Palette */
  --color-navy-900: #0a0f29;
  --color-navy-800: #0f1633;
  --color-navy-700: #1a2247;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;

  /* Accent Colors */
  --color-cyan-400: #22d3ee;
  --color-cyan-500: #06b6d4;
  --color-cyan-600: #0891b2;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-emerald-600: #059669;
  --color-amber-500: #f59e0b;
  --color-amber-600: #d97706;
  --color-violet-500: #8b5cf6;
  --color-violet-600: #7c3aed;
  --color-blue-500: #3b82f6;
  --color-blue-600: #2563eb;
  --color-teal-500: #14b8a6;
  --color-rose-500: #f43f5e;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 8rem;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--color-slate-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==================== NAVIGATION ==================== */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
}

.nav-header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--color-cyan-500), var(--color-emerald-500));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
}

.logo-subtitle {
  color: var(--color-cyan-400);
  font-size: 0.75rem;
}

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

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-cyan-500), var(--color-emerald-500));
  transition: width 0.3s;
}

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

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

.nav-cta {
  display: none;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline {
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: var(--color-cyan-400);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(6, 182, 212, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-cyan-500), var(--color-emerald-500));
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  padding: 1.5rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-links {
  list-style: none;
  margin-bottom: 1rem;
}

.mobile-menu-links a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-menu-links a:hover {
  color: var(--color-cyan-400);
}

/* Desktop navigation */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-navy-800), var(--color-navy-700));
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(34, 211, 238, 0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) translateX(20px);
    opacity: 0.3;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
  padding: 6rem 0;
}

.hero-visual {
  position: relative;
}

.hero-blueprint {
  position: relative;
}

.blueprint-glow {
  position: absolute;
  inset: -1rem;
  background: linear-gradient(to right, rgba(6, 182, 212, 0.1), rgba(16, 185, 129, 0.1));
  filter: blur(60px);
}

.hero-blueprint svg {
  width: 100%;
  height: auto;
  max-height: 600px;
}

.blueprint-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-path 2s ease-in-out forwards;
}

.blueprint-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-line 1.5s ease-in-out forwards;
}

@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.smart-node {
  animation: pulse-node 2s ease-in-out infinite;
}

@keyframes pulse-node {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.hero-data-panel {
  position: absolute;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 0.5rem;
  padding: 1rem;
  animation: fade-in-up 0.6s ease-out forwards;
  opacity: 0;
}

.hero-data-panel.panel-1 {
  top: 0;
  right: 0;
  border: 1px solid rgba(6, 182, 212, 0.3);
  animation-delay: 2.5s;
}

.hero-data-panel.panel-2 {
  bottom: 5rem;
  left: 0;
  border: 1px solid rgba(16, 185, 129, 0.3);
  animation-delay: 3s;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.data-label {
  color: var(--color-cyan-400);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.data-value {
  color: white;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-text {
  color: white;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
  animation: fade-in 0.6s ease-out 0.4s backwards;
}

.hero-badge span {
  color: var(--color-emerald-400);
  font-size: 0.875rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  animation: fade-in 0.6s ease-out 0.6s backwards;
}

.hero-gradient-text {
  background: linear-gradient(to right, var(--color-cyan-400), var(--color-emerald-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-slate-300);
  margin-bottom: 2rem;
  line-height: 1.8;
  animation: fade-in 0.6s ease-out 0.8s backwards;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: fade-in 0.6s ease-out 1s backwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  animation: fade-in 0.6s ease-out 1.2s backwards;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-slate-400);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: fade-in 1s ease-out 2s backwards;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
  animation: bounce-scroll 2s ease-in-out infinite;
}

.scroll-dot {
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-cyan-400);
  border-radius: 50%;
  animation: scroll-down 2s ease-in-out infinite;
}

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

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

@keyframes scroll-down {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(12px);
    opacity: 1;
  }
}

/* Responsive Hero */
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 4.5rem;
  }

  .hero-stats {
    text-align: left;
  }
}

/* ==================== VALUE PILLARS ==================== */
.value-pillars-section {
  position: relative;
  padding: 8rem 0;
  background: white;
  overflow: hidden;
}

.section-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, var(--color-navy-900) 1px, transparent 0);
  background-size: 40px 40px;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--color-slate-600);
  max-width: 48rem;
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.pillar-card {
  position: relative;
  height: 100%;
  background: white;
  border: 1px solid var(--color-slate-200);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pillar-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.pillar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.pillar-card:hover .pillar-overlay {
  opacity: 0.05;
}

.pillar-icon-container {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.pillar-card:hover .pillar-icon-container {
  transform: scale(1.1) rotate(5deg);
}

.pillar-icon {
  width: 2rem;
  height: 2rem;
  color: white;
}

.pillar-glow {
  position: absolute;
  inset: -0.25rem;
  border-radius: 1rem;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.pillar-card:hover .pillar-glow {
  opacity: 0.2;
}

.pillar-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-slate-900);
}

.pillar-description {
  color: var(--color-slate-600);
  line-height: 1.7;
}

.ecosystem-badge {
  margin-top: 4rem;
  text-align: center;
}

.badge-content {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-slate-900);
  color: white;
  border-radius: 9999px;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive Pillars */
@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .section-title {
    font-size: 3.75rem;
  }
}

/* ==================== SERVICES ECOSYSTEM ==================== */
.services-section {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(to bottom, var(--color-slate-50), white);
  overflow: hidden;
}

.services-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(100px);
}

.services-glow-1 {
  top: 0;
  right: 0;
  background: rgba(6, 182, 212, 0.2);
}

.services-glow-2 {
  bottom: 0;
  left: 0;
  background: rgba(16, 185, 129, 0.2);
}

.services-network {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
}

.network-container {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-slate-900), var(--color-slate-800));
  border-radius: 1.5rem;
  padding: 2rem;
  overflow: hidden;
}

.network-grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

#services-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.service-connection {
  stroke: rgba(148, 163, 184, 0.2);
  stroke-width: 1;
  transition: all 0.3s;
}

.service-connection.active {
  stroke: rgba(6, 182, 212, 0.6);
  stroke-width: 2;
}

.service-node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s;
}

.node-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  transition: all 0.3s;
}

.service-node:hover .node-glow {
  transform: scale(1.5);
  opacity: 0.5;
}

.node-circle {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--color-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.service-node:hover .node-circle {
  transform: scale(1.1);
  border-color: var(--color-cyan-500);
}

.node-circle.central {
  width: 5rem;
  height: 5rem;
}

.node-icon {
  width: 1.75rem;
  height: 1.75rem;
  transition: color 0.3s;
}

.node-circle.central .node-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.node-pulse {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1rem;
  height: 1rem;
  background: var(--color-emerald-500);
  border-radius: 50%;
  animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
  }
}

.node-tooltip {
  position: absolute;
  top: calc(100% + 1.5rem);
  left: 50%;
  transform: translateX(-50%);
  width: 16rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-slate-200);
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s;
  z-index: 100;
}

.service-node:hover .node-tooltip {
  opacity: 1;
}

.tooltip-arrow {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 1rem;
  height: 1rem;
  background: white;
  border-left: 1px solid var(--color-slate-200);
  border-top: 1px solid var(--color-slate-200);
}

.tooltip-title {
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 0.5rem;
}

.tooltip-description {
  font-size: 0.875rem;
  color: var(--color-slate-600);
  line-height: 1.5;
}

.services-legend {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-600);
}

.legend-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center {
  text-align: center;
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

/* Gradient backgrounds */
.bg-gradient-emerald {
  background: linear-gradient(135deg, var(--color-emerald-500), #059669);
}

.bg-gradient-cyan {
  background: linear-gradient(135deg, var(--color-cyan-500), var(--color-blue-600));
}

.bg-gradient-violet {
  background: linear-gradient(135deg, var(--color-violet-500), var(--color-violet-600));
}

.bg-gradient-amber {
  background: linear-gradient(135deg, var(--color-amber-500), var(--color-amber-600));
}

.bg-gradient-blue {
  background: linear-gradient(135deg, var(--color-blue-500), var(--color-blue-600));
}

.bg-gradient-teal {
  background: linear-gradient(135deg, var(--color-teal-500), #0d9488);
}

.bg-gradient-rose {
  background: linear-gradient(135deg, var(--color-rose-500), #e11d48);
}

/* Responsive utilities */
@media (max-width: 768px) {
  :root {
    --section-padding: 4rem;
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .section-title {
    font-size: 2rem !important;
  }

  .logo-text {
    display: none;
  }

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