@import url("https://fonts.cdnfonts.com/css/pp-neue-montreal");

@font-face {
  font-family: "PPSupplyMono";
  src: url("https://assets.codepen.io/7558/PPSupplyMono-Regular.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --warm-off-white: #ffffff;
  --warm-off-white-dim: #cccccc;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --background-dark: #1a1a1a;
  --background-gradient-1: #222222;
  --background-gradient-2: #1a1a1a;
  --font-primary: "PP Neue Montreal", sans-serif;
  --font-secondary: "PPSupplyMono", monospace;
  --font-sans: "PP Neue Montreal", sans-serif;
  --font-size-small: 10px;
  --font-size-regular: 1rem;
  --font-size-medium: 1.5rem;
  --font-size-large: 4rem;
  --spacing-small: 0.5rem;
  --spacing-medium: 1rem;
  --spacing-large: 2rem;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  
  /* Modern Red Theme Enhancements */
  --primary-red: #ff0000;
  --accent-red: #ff4444;
  --red-subtle: rgba(255, 0, 0, 0.1);
  --red-medium: rgba(255, 68, 68, 0.2);
  --red-glow: rgba(255, 68, 68, 0.3);
  --red-bright: #ff6666;
  --glass-bg: rgba(255, 68, 68, 0.05);
  --glass-border: rgba(255, 0, 0, 0.15);
  --modern-transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --bg-primary: #0a0a0f;
}

/* ===== FUTURISTIC SPLASH SCREEN STYLES ===== */

/* Splash Screen Container */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0f 0%, #0f0a0f 25%, #150a0a 50%, #0a0f0f 75%, #0a0a0f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
}

/* Matrix Background Effect */
.matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

#matrix-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Main Content Container */
.splash-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: contentFadeIn 2s ease-out;
}

@keyframes contentFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Neural Network Logo */
.neural-network-logo {
  margin-bottom: 4rem;
  position: relative;
}

.logo-svg {
  width: 300px;
  height: 150px;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 20px var(--red-glow));
}

/* Neural Nodes */
.node {
  fill: var(--primary-red);
  stroke: var(--accent-red);
  stroke-width: 1;
  opacity: 0;
  animation: nodeAppear 0.5s ease-out forwards;
  filter: drop-shadow(0 0 5px var(--primary-red));
}

.node-1 { animation-delay: 0.5s; }
.node-2 { animation-delay: 0.7s; }
.node-3 { animation-delay: 0.9s; }
.node-4 { animation-delay: 1.1s; }
.node-5 { animation-delay: 1.3s; }
.node-6 { animation-delay: 1.5s; }

@keyframes nodeAppear {
  0% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

/* Neural Connections */
.connection {
  stroke: var(--accent-red);
  stroke-width: 1;
  fill: none;
  opacity: 0;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: connectionDraw 1s ease-out forwards;
  filter: drop-shadow(0 0 3px var(--accent-red));
}

.conn-1 { animation-delay: 1.7s; }
.conn-2 { animation-delay: 1.8s; }
.conn-3 { animation-delay: 1.9s; }
.conn-4 { animation-delay: 2.0s; }
.conn-5 { animation-delay: 2.1s; }
.conn-6 { animation-delay: 2.2s; }
.conn-7 { animation-delay: 2.3s; }

@keyframes connectionDraw {
  0% { 
    opacity: 0; 
    stroke-dashoffset: 50; 
  }
  50% { 
    opacity: 1; 
  }
  100% { 
    opacity: 1; 
    stroke-dashoffset: 0; 
  }
}

/* Logo Text */
.logo-text-container {
  position: relative;
}

.logo-text {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-red);
  text-shadow: 0 0 20px var(--red-glow), 0 0 40px var(--red-glow);
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.letter {
  display: inline-block;
  opacity: 0;
  animation: letterReveal 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.letter-k { animation-delay: 2.5s; }
.letter-d { animation-delay: 2.7s; }
.letter-j { animation-delay: 2.9s; }

@keyframes letterReveal {
  0% {
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

.logo-subtitle {
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  opacity: 0;
  animation: subtitleFade 1s ease-out 3.2s forwards;
  background: linear-gradient(45deg, var(--accent-red), var(--red-bright), var(--accent-red));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: subtitleFade 1s ease-out 3.2s forwards, textShimmer 2s ease-in-out infinite 4s;
}

@keyframes subtitleFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes textShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Holographic Loading Ring */
.holo-loader {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 3rem 0;
  opacity: 0;
  animation: loaderFadeIn 1s ease-out 1s forwards;
}

@keyframes loaderFadeIn {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

.holo-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.ring-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 50%;
  border-top-color: var(--primary-red);
  opacity: 0;
  animation: segmentSpin 2s linear infinite;
  filter: drop-shadow(0 0 10px var(--primary-red));
}

.segment-1 { 
  animation-delay: 1.2s; 
  opacity: 1;
  border-top-color: var(--primary-red);
  border-right-color: var(--accent-red);
}
.segment-2 { 
  animation-delay: 1.4s; 
  opacity: 1;
  border-right-color: var(--primary-red);
  border-bottom-color: var(--accent-red);
  transform: rotate(90deg);
}
.segment-3 { 
  animation-delay: 1.6s; 
  opacity: 1;
  border-bottom-color: var(--primary-red);
  border-left-color: var(--accent-red);
  transform: rotate(180deg);
}
.segment-4 { 
  animation-delay: 1.8s; 
  opacity: 1;
  border-left-color: var(--primary-red);
  border-top-color: var(--accent-red);
  transform: rotate(270deg);
}

@keyframes segmentSpin {
  0% { 
    transform: rotate(0deg) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(180deg) scale(1.05);
    opacity: 1;
  }
  100% { 
    transform: rotate(360deg) scale(1);
    opacity: 0.8;
  }
}

/* Holographic Core */
.holo-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow), transparent 70%);
  border: 1px solid var(--accent-red);
}

.core-pulse {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-red);
  opacity: 0.3;
  animation: corePulse 1.5s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { 
    transform: scale(0.8);
    opacity: 0.3;
  }
  50% { 
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Loading Text */
.loading-text {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  color: var(--accent-red);
  font-weight: 600;
}

.loading-percentage {
  font-size: 2rem;
  color: var(--primary-red);
  text-shadow: 0 0 10px var(--red-glow);
  animation: percentageGlow 0.5s ease-in-out infinite alternate;
}

.loading-suffix {
  opacity: 0.8;
}

@keyframes percentageGlow {
  0% { text-shadow: 0 0 10px var(--red-glow); }
  100% { text-shadow: 0 0 20px var(--red-glow), 0 0 30px var(--primary-red); }
}

/* Data Streams */
.data-streams {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.stream {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--accent-red), transparent);
  opacity: 0.6;
  animation: streamFlow 3s linear infinite;
}

.stream-1 { left: 20%; animation-delay: 0s; }
.stream-2 { left: 40%; animation-delay: 0.7s; }
.stream-3 { right: 30%; animation-delay: 1.4s; }
.stream-4 { right: 10%; animation-delay: 2.1s; }

@keyframes streamFlow {
  0% { 
    top: -100px; 
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% { 
    top: 100vh; 
    opacity: 0;
  }
}

/* Particle System */
.particle-system {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-red);
  opacity: 0;
  animation: particleFloat 4s linear infinite;
}

.particle-1 { left: 10%; animation-delay: 0s; }
.particle-2 { left: 30%; animation-delay: 0.8s; }
.particle-3 { left: 50%; animation-delay: 1.6s; }
.particle-4 { left: 70%; animation-delay: 2.4s; }
.particle-5 { left: 85%; animation-delay: 3.2s; }
.particle-6 { left: 15%; animation-delay: 4s; }

@keyframes particleFloat {
  0% {
    bottom: -10px;
    opacity: 0;
    transform: translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 100vh;
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Skip Button */
.skip-button {
  position: absolute;
  bottom: 50px;
  right: 50px;
  background: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  font-family: var(--font-secondary);
  font-size: 0.7rem;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: skipButtonFade 1s ease-out 2s forwards;
}

@keyframes skipButtonFade {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 0.7; transform: translateY(0); }
}

.skip-button:hover {
  background: var(--red-subtle);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--red-glow);
  opacity: 1 !important;
}

.skip-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-red);
  transition: width 0.3s ease;
}

.skip-button:hover .skip-line {
  width: 100%;
}

/* Scan Lines Effect */
.scan-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 2px,
    rgba(255, 68, 68, 0.03) 2px,
    rgba(255, 68, 68, 0.03) 4px
  );
  pointer-events: none;
  animation: scanMove 2s linear infinite;
}

@keyframes scanMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

/* Holographic Noise */
.holo-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.02;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" result="noise"/><feColorMatrix in="noise" values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"/></filter></defs><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
  pointer-events: none;
  animation: noiseFlicker 0.1s steps(2, end) infinite;
}

@keyframes noiseFlicker {
  0% { opacity: 0.02; }
  100% { opacity: 0.05; }
}

/* Performance Optimizations */
.splash-screen * {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Hardware Acceleration */
.neural-network-logo,
.holo-loader,
.data-streams,
.particle-system {
  transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .splash-screen *,
  .splash-screen *::before,
  .splash-screen *::after {
    animation-duration: 0.01s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01s !important;
  }
  
  .matrix-bg {
    display: none;
  }
  
  .data-streams,
  .particle-system {
    opacity: 0.3;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .splash-screen {
    background: linear-gradient(135deg, #0a0a0f 0%, #0f0a0f 50%, #0a0a0f 100%);
  }
  
  .logo-svg {
    width: 250px;
    height: 125px;
  }
  
  .logo-text {
    font-size: 3rem;
    letter-spacing: 0.1em;
  }
  
  .logo-subtitle {
    font-size: 0.6rem;
  }
  
  .holo-loader {
    width: 150px;
    height: 150px;
    margin: 2rem 0;
  }
  
  .loading-text {
    bottom: -50px;
  }
  
  .skip-button {
    bottom: 30px;
    right: 30px;
    padding: 0.6rem 1.2rem;
    font-size: 0.6rem;
  }
  
  /* Reduce particles on mobile for performance */
  .particle-4,
  .particle-5,
  .particle-6 {
    display: none;
  }
  
  .stream-3,
  .stream-4 {
    display: none;
  }
}

/* Tablet Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .logo-text {
    font-size: 3.5rem;
  }
  
  .holo-loader {
    width: 175px;
    height: 175px;
  }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .splash-screen {
    background-size: 100% 100%;
  }
  
  .logo-svg {
    filter: drop-shadow(0 0 15px var(--red-glow));
  }
  
  .node,
  .connection {
    filter: drop-shadow(0 0 4px var(--primary-red));
  }
}

/* Dark theme override for splash */
@media (prefers-color-scheme: dark) {
  .splash-screen {
    background: linear-gradient(135deg, #050508 0%, #0a0508 25%, #100505 50%, #050a08 75%, #05050a 100%);
  }
}

/* Focus styles for accessibility */
.skip-button:focus {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* Modern Red Gradient Animation Keyframes */
@keyframes redGradientFlow {
  0% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg) brightness(1);
  }
  25% { 
    background-position: 25% 25%;
    filter: hue-rotate(5deg) brightness(1.1);
  }
  50% { 
    background-position: 100% 50%;
    filter: hue-rotate(0deg) brightness(1.2);
  }
  75% { 
    background-position: 75% 75%;
    filter: hue-rotate(-5deg) brightness(1.1);
  }
  100% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg) brightness(1);
  }
}

@keyframes glowPulse {
  0%, 100% { 
    box-shadow: 0 0 5px var(--red-glow);
  }
  50% { 
    box-shadow: 0 0 20px var(--red-glow), 0 0 30px rgba(255, 0, 0, 0.3);
  }
}

@keyframes subtleTextShimmer {
  0%, 100% { 
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% { 
    background-position: 100% 50%;
    filter: brightness(1.05);
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 20px;
  }
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  background-color: #0a0a0f;
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
}

.section {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.hero-section {
  padding: var(--spacing-large);
  transition: filter 0.8s ease-out;
}

.fin-section {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0f;
  z-index: 20;
  position: relative;
}

.fin-text {
  font-family: var(--font-primary);
  font-size: 3rem;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0.05em;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://img.freepik.com/premium-photo/white-dust-scratches-black-background_279525-2.jpg?w=640");
  background-repeat: repeat;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
  filter: invert(0);
}

#container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0a0a0f 0%, #0f0a0f 50%, #0a0f0f 100%);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 80, 80, 0.4), rgba(200, 50, 50, 0.2), rgba(150, 30, 30, 0.1), transparent);
  box-shadow: 
    0 0 40px rgba(255, 80, 80, 0.3),
    0 0 80px rgba(200, 50, 50, 0.2),
    inset 0 0 30px rgba(255, 100, 100, 0.15);
  pointer-events: none;
  will-change: transform;
  transition: all 0.3s ease-out;
  animation: neuronPulse 3s ease-in-out infinite;
}

.sphere::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  border: 2px solid rgba(255, 100, 100, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: neuronRing 4s linear infinite;
}

.sphere::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}

.sphere-fixed-1 {
  width: 160px;
  height: 160px;
  top: 8%;
  left: 8%;
  animation: float1 8s ease-in-out infinite;
}

.sphere-fixed-2 {
  width: 180px;
  height: 180px;
  bottom: 8%;
  right: 8%;
  animation: float2 6s ease-in-out infinite;
}

.sphere-small-1 {
  width: 60px;
  height: 60px;
  top: 28%;
  left: 25%;
  animation: float3 10s ease-in-out infinite;
}

.sphere-small-2 {
  width: 70px;
  height: 70px;
  bottom: 25%;
  right: 28%;
  animation: float4 7s ease-in-out infinite;
}

.sphere-moving {
  width: 120px;
  height: 120px;
  animation: orbit 12s linear infinite;
}

.sphere-moving:nth-child(5) {
  animation-delay: 0s;
  animation-duration: 15s;
}

.sphere-moving:nth-child(6) {
  animation-delay: -2s;
  animation-duration: 18s;
}

.sphere-moving:nth-child(7) {
  animation-delay: -4s;
  animation-duration: 12s;
}

.sphere-moving:nth-child(8) {
  animation-delay: -6s;
  animation-duration: 20s;
}

.sphere-moving:nth-child(9) {
  animation-delay: -8s;
  animation-duration: 14s;
}

.cursor-sphere {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 200, 0, 0.8), rgba(255, 150, 0, 0.4), rgba(255, 100, 0, 0.2), transparent);
  box-shadow: 
    0 0 60px rgba(255, 200, 0, 0.5),
    0 0 100px rgba(255, 150, 0, 0.3),
    0 0 140px rgba(255, 100, 0, 0.2);
  z-index: 5;
  animation: cursorPulse 2s ease-in-out infinite;
}

.neural-connection {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 100, 100, 0.3) 20%, 
    rgba(255, 80, 80, 0.6) 50%, 
    rgba(255, 100, 100, 0.3) 80%, 
    transparent
  );
  transform-origin: left center;
  pointer-events: none;
  opacity: 0;
  animation: connectionPulse 4s ease-in-out infinite;
}

.neural-connection::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1) 20%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0.1) 80%, 
    transparent
  );
  filter: blur(1px);
}

.neural-connection.active {
  animation: connectionFire 1.5s ease-out;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.1); }
  50% { transform: translate(-20px, 40px) scale(0.9); }
  75% { transform: translate(40px, 20px) scale(1.05); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, -30px) scale(1.15); }
  66% { transform: translate(20px, -50px) scale(0.85); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(1.2); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -40px) scale(0.8); }
  75% { transform: translate(-30px, 60px) scale(1.3); }
}

@keyframes orbit {
  0% { 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%) rotate(0deg) translateX(200px) rotate(0deg); 
  }
  25% { 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%) rotate(90deg) translateX(250px) rotate(-90deg); 
  }
  50% { 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%) rotate(180deg) translateX(180px) rotate(-180deg); 
  }
  75% { 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%) rotate(270deg) translateX(220px) rotate(-270deg); 
  }
  100% { 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%) rotate(360deg) translateX(200px) rotate(-360deg); 
  }
}

@keyframes neuronPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 0 40px rgba(255, 80, 80, 0.3),
      0 0 80px rgba(200, 50, 50, 0.2),
      inset 0 0 30px rgba(255, 100, 100, 0.15);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 
      0 0 60px rgba(255, 80, 80, 0.5),
      0 0 120px rgba(200, 50, 50, 0.3),
      inset 0 0 40px rgba(255, 100, 100, 0.25);
  }
}

@keyframes neuronRing {
  0% { 
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes cursorPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 
      0 0 60px rgba(255, 200, 0, 0.5),
      0 0 100px rgba(255, 150, 0, 0.3),
      0 0 140px rgba(255, 100, 0, 0.2);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 
      0 0 80px rgba(255, 200, 0, 0.7),
      0 0 120px rgba(255, 150, 0, 0.5),
      0 0 160px rgba(255, 100, 0, 0.3);
  }
}

@keyframes connectionPulse {
  0%, 100% { opacity: 0; }
  25% { opacity: 0.3; }
  50% { opacity: 0.6; }
  75% { opacity: 0.3; }
}

@keyframes connectionFire {
  0% { 
    opacity: 0;
    transform: scaleX(0);
  }
  25% { 
    opacity: 0.8;
    transform: scaleX(0.5);
  }
  50% { 
    opacity: 1;
    transform: scaleX(1);
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 120, 120, 0.6) 20%, 
      rgba(255, 100, 100, 0.9) 50%, 
      rgba(255, 120, 120, 0.6) 80%, 
      transparent
    );
  }
  100% { 
    opacity: 0.2;
    transform: scaleX(1);
  }
}

#ui-container {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 100;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

#ui-container:hover {
  opacity: 1;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: var(--spacing-large);
  right: var(--spacing-large);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  width: 50px;
  height: 50px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.3);
  transform: scale(1.05);
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
  transform: translateY(50px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  height: 2rem;
  filter: brightness(0) invert(1);
}

.mobile-menu-close {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.close-line {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.close-line:nth-child(1) {
  transform: rotate(45deg);
}

.close-line:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1.2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 100, 100, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
  left: 100%;
}

.mobile-nav-link:hover {
  background: rgba(255, 100, 100, 0.1);
  border-left: 3px solid rgba(255, 100, 100, 0.5);
  padding-left: calc(1rem - 3px);
  transform: translateX(10px);
}

.nav-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  position: relative;
}

.neural-icon {
  transition: all 0.3s ease;
}

.mobile-nav-link:hover .neural-icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Home - Neural Dot with Pulse */
.neural-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 100, 100, 0.8);
  border-radius: 50%;
  position: relative;
  animation: neuralDotPulse 2s ease-in-out infinite;
}

.neural-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: enhancedNeuralPulse 2s ease-in-out infinite;
  /* Enhanced Modern Effects */
  box-shadow: 
    0 0 10px var(--red-glow),
    0 0 20px rgba(255, 68, 68, 0.2),
    inset 0 0 5px rgba(255, 255, 255, 0.1);
}

/* About - Mini Neural Network */
.neural-network-mini {
  position: relative;
  width: 20px;
  height: 16px;
}

.mini-node {
  width: 4px;
  height: 4px;
  background: rgba(255, 100, 100, 0.8);
  border-radius: 50%;
  position: absolute;
  animation: miniNodePulse 1.5s ease-in-out infinite;
}

.mini-node:nth-child(1) {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.mini-node:nth-child(2) {
  top: 0;
  right: 0;
  animation-delay: 0.5s;
}

.mini-node:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
}

.mini-connection {
  position: absolute;
  width: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 100, 100, 0.3), rgba(255, 100, 100, 0.6), rgba(255, 100, 100, 0.3));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: connectionFlicker 3s ease-in-out infinite;
}

/* Services - Neural Grid */
.neural-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 16px;
  height: 16px;
}

.grid-dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 100, 100, 0.7);
  border-radius: 50%;
  animation: gridDotPulse 2s ease-in-out infinite;
}

.grid-dot:nth-child(1) { animation-delay: 0s; }
.grid-dot:nth-child(2) { animation-delay: 0.5s; }
.grid-dot:nth-child(3) { animation-delay: 1s; }
.grid-dot:nth-child(4) { animation-delay: 1.5s; }

/* Projects - Neural Circuit */
.neural-circuit {
  position: relative;
  width: 18px;
  height: 18px;
}

.circuit-line {
  position: absolute;
  background: rgba(255, 100, 100, 0.6);
  animation: circuitFlow 2s linear infinite;
}

.circuit-line.horizontal {
  width: 12px;
  height: 1px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.circuit-line.vertical {
  width: 1px;
  height: 12px;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
}

.circuit-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 100, 100, 0.9);
  border-radius: 50%;
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
  animation: circuitNodePulse 1.5s ease-in-out infinite;
}

/* Contact - Neural Signal */
.neural-signal {
  position: relative;
  width: 20px;
  height: 12px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.signal-wave {
  width: 2px;
  background: rgba(255, 100, 100, 0.6);
  border-radius: 1px;
  animation: signalWave 1.5s ease-in-out infinite;
}

.signal-wave:nth-child(1) {
  height: 6px;
  animation-delay: 0s;
}

.signal-wave:nth-child(2) {
  height: 12px;
  animation-delay: 0.2s;
}

.signal-wave:nth-child(3) {
  height: 8px;
  animation-delay: 0.4s;
}

/* Neural Icon Animations */
@keyframes neuralDotPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.8;
  }
  50% { 
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes enhancedNeuralPulse {
  0% { 
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
    box-shadow: 
      0 0 5px var(--red-glow),
      0 0 10px rgba(255, 68, 68, 0.3),
      inset 0 0 3px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
    box-shadow: 
      0 0 15px var(--red-glow),
      0 0 25px rgba(255, 68, 68, 0.4),
      inset 0 0 5px rgba(255, 255, 255, 0.2);
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
    box-shadow: 
      0 0 25px var(--red-glow),
      0 0 40px rgba(255, 68, 68, 0.2),
      inset 0 0 8px rgba(255, 255, 255, 0.1);
  }
}

@keyframes neuralPulseRing {
  0% { 
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes miniNodePulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
  }
}

@keyframes connectionFlicker {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

@keyframes gridDotPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.7;
  }
  50% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes circuitFlow {
  0% { 
    box-shadow: 0 0 0 rgba(255, 100, 100, 0);
  }
  50% { 
    box-shadow: 0 0 8px rgba(255, 100, 100, 0.8);
  }
  100% { 
    box-shadow: 0 0 0 rgba(255, 100, 100, 0);
  }
}

@keyframes circuitNodePulse {
  0%, 100% { 
    transform: translate(50%, -50%) scale(1);
    box-shadow: 0 0 0 rgba(255, 100, 100, 0);
  }
  50% { 
    transform: translate(50%, -50%) scale(1.2);
    box-shadow: 0 0 8px rgba(255, 100, 100, 0.6);
  }
}

@keyframes signalWave {
  0%, 100% { 
    transform: scaleY(0.5);
    opacity: 0.6;
  }
  50% { 
    transform: scaleY(1);
    opacity: 1;
  }
}

.nav-text {
  font-weight: 400;
  letter-spacing: 0.02em;
}

.mobile-menu-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-contact {
  margin-bottom: 2rem;
}

.mobile-contact-text {
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.mobile-contact-email,
.mobile-contact-phone {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.mobile-contact-email:hover,
.mobile-contact-phone:hover {
  color: rgba(255, 100, 100, 0.8);
}

.mobile-social {
  display: flex;
  gap: 1rem;
}

.mobile-social-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.mobile-social-link:hover {
  color: var(--text-primary);
  border-color: rgba(255, 100, 100, 0.3);
  background: rgba(255, 100, 100, 0.1);
}

/* Neural Chat Interface */
.neural-chat-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  background: rgba(20, 20, 25, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 100, 100, 0.15);
  border-radius: 25px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.neural-chat-trigger:hover {
  transform: translateY(-2px);
  background: rgba(30, 30, 35, 0.9);
  border-color: rgba(255, 100, 100, 0.3);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.chat-trigger-text {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.neural-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.neural-chat-overlay.active {
  opacity: 1;
  visibility: visible;
}

.neural-chat-container {
  width: 90%;
  max-width: 500px;
  height: 70vh;
  max-height: 600px;
  background: rgba(10, 10, 15, 0.98);
  border: 1px solid rgba(255, 100, 100, 0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.9) translateY(30px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.neural-chat-overlay.active .neural-chat-container {
  transform: scale(1) translateY(0);
}

.neural-chat-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 100, 100, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 100, 100, 0.05);
}

.neural-chat-status {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-neural-icon {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.status-core {
  width: 8px;
  height: 8px;
  background: rgba(100, 255, 100, 0.9);
  border-radius: 50%;
  animation: statusCorePulse 2s ease-in-out infinite;
}

.status-ring-1 {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(100, 255, 100, 0.4);
  border-radius: 50%;
  animation: statusRing1 3s ease-in-out infinite;
}

.status-ring-2 {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(100, 255, 100, 0.2);
  border-radius: 50%;
  animation: statusRing2 4s ease-in-out infinite;
}

.status-text h3 {
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.status-text p {
  color: var(--text-secondary);
  font-family: var(--font-secondary);
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.8;
}

.neural-chat-close {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.neural-chat-close:hover {
  background: rgba(255, 100, 100, 0.1);
}

.close-neural-line {
  position: absolute;
  width: 16px;
  height: 1px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.close-neural-line:nth-child(1) {
  transform: rotate(45deg);
}

.close-neural-line:nth-child(2) {
  transform: rotate(-45deg);
}

.neural-chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.neural-message {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  animation: messageSlideIn 0.5s ease-out;
}

.user-message {
  flex-direction: row-reverse;
}

.neural-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 100, 100, 0.2), rgba(255, 100, 100, 0.1), transparent);
  border: 2px solid rgba(255, 100, 100, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 
    0 8px 32px rgba(255, 100, 100, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.neural-avatar.enhanced {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 100, 100, 0.3), rgba(255, 100, 100, 0.15), transparent);
  border: 2px solid rgba(255, 100, 100, 0.5);
}

.avatar-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 100, 100, 0.8);
  border-radius: 50%;
  animation: particleFloat 4s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 70%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 20%;
  animation-delay: 1.3s;
}

.particle:nth-child(3) {
  top: 80%;
  left: 80%;
  animation-delay: 2.6s;
}

.avatar-neural-ring-1 {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 50%;
  animation: avatarRing1Pulse 3s ease-in-out infinite;
}

.avatar-neural-ring-2 {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 100, 100, 0.2);
  border-radius: 50%;
  animation: avatarRing2Pulse 4s ease-in-out infinite;
}

.avatar-neural-core {
  width: 8px;
  height: 8px;
  background: rgba(255, 100, 100, 0.8);
  border-radius: 50%;
  animation: avatarCorePulse 3s ease-in-out infinite;
}

.avatar-neural-ring {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 50%;
  animation: avatarRingPulse 4s ease-in-out infinite;
}

.message-content {
  background: rgba(255, 100, 100, 0.08);
  border: 1px solid rgba(255, 100, 100, 0.15);
  border-radius: 12px;
  padding: 1rem;
  max-width: 80%;
  position: relative;
}

.user-message .message-content {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: rgba(255, 100, 100, 0.6);
  border-radius: 50%;
  animation: typingDot 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.message-text p {
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-text strong {
  color: rgba(255, 100, 100, 0.9);
  font-weight: 600;
}

.message-content p {
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.neural-chat-input-area {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 100, 100, 0.1);
  background: rgba(255, 100, 100, 0.02);
}

.neural-input-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

#neuralChatInput {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 100, 100, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

#neuralChatInput:focus {
  border-color: rgba(255, 100, 100, 0.4);
  box-shadow: 0 0 20px rgba(255, 100, 100, 0.1);
}

#neuralChatInput::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.neural-send-btn {
  width: 48px;
  height: 48px;
  background: rgba(255, 100, 100, 0.15);
  border: 1px solid rgba(255, 100, 100, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.neural-send-btn:hover {
  background: rgba(255, 100, 100, 0.25);
  border-color: rgba(255, 100, 100, 0.5);
  transform: scale(1.05);
}

.send-neural-icon {
  position: relative;
  width: 20px;
  height: 20px;
}

.send-arrow {
  width: 0;
  height: 0;
  border-left: 8px solid rgba(255, 100, 100, 0.8);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
}

.send-pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 100, 100, 0.4);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: sendPulse 2s ease-in-out infinite;
}

.neural-suggestions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.suggestion-btn {
  background: rgba(255, 100, 100, 0.08);
  border: 1px solid rgba(255, 100, 100, 0.2);
  border-radius: 25px;
  padding: 0.75rem 1.25rem;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.suggestion-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 100, 100, 0.1), transparent);
  transition: left 0.5s ease;
}

.suggestion-btn:hover::before {
  left: 100%;
}

.suggestion-btn:hover {
  background: rgba(255, 100, 100, 0.15);
  border-color: rgba(255, 100, 100, 0.4);
  color: var(--text-primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 100, 100, 0.1);
}

.suggestion-icon {
  font-size: 1rem;
  opacity: 0.8;
}

/* Neural Chat Animations */
@keyframes neuralChatCorePulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.8;
  }
  50% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes neuralChatPulseRing {
  0% { 
    transform: scale(0.8);
    opacity: 1;
  }
  100% { 
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes avatarCorePulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.8;
  }
  50% { 
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes avatarRingPulse {
  0% { 
    transform: scale(0.8);
    opacity: 0.6;
  }
  100% { 
    transform: scale(1.2);
    opacity: 0;
  }
}

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

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

@keyframes typingDot {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-8px) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(-4px) scale(0.8);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-12px) scale(1.1);
    opacity: 0.9;
  }
}

@keyframes statusCorePulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.9;
  }
  50% { 
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes statusRing1 {
  0% { 
    transform: scale(0.8);
    opacity: 0.6;
  }
  100% { 
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes statusRing2 {
  0% { 
    transform: scale(0.6);
    opacity: 0.4;
  }
  100% { 
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes avatarRing1Pulse {
  0% { 
    transform: scale(0.9);
    opacity: 0.6;
  }
  100% { 
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes avatarRing2Pulse {
  0% { 
    transform: scale(0.8);
    opacity: 0.4;
  }
  100% { 
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .neural-chat-trigger {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1rem;
  }
  
  .chat-trigger-text {
    font-size: 0.8rem;
  }
  
  .neural-chat-container {
    width: 95%;
    height: 85vh;
    border-radius: 16px;
  }
  
  .neural-chat-header {
    padding: 1rem;
  }
  
  .neural-chat-messages {
    padding: 1rem;
  }
  
  .neural-chat-input-area {
    padding: 1rem;
  }
  
  .message-content {
    max-width: 85%;
  }
}

#stats {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
}

.header-area {
  position: fixed;
  top: var(--spacing-large);
  left: 0;
  width: 100%;
  padding: 0 var(--spacing-large);
  display: flex;
  justify-content: center;
  z-index: 10;
}

.logo-container {
  position: absolute;
  left: var(--spacing-large);
  top: 0;
  display: flex;
  align-items: center;
  height: 2rem;
  z-index: 10;
  cursor: pointer;
}

#logo-square {
  height: 2rem;
  width: 2rem;
  transition: all var(--transition-medium);
}

.logo-container:hover #logo-square {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.center-logo {
  text-align: center;
  z-index: 10;
  height: 2rem;
}

#logo-image {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all var(--transition-fast);
}

#logo-text {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--font-size-medium);
  line-height: 1;
  margin: 0;
  color: var(--text-primary);
  text-transform: none;
}

#footer-logo-text {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
  margin-bottom: 1.5rem;
}

.hero {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  color: var(--text-primary);
  width: 90%;
  max-width: 800px;
  /* Modern Glassmorphism Enhancement */
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 
    0 25px 45px rgba(255, 0, 0, 0.1),
    0 0 30px rgba(255, 68, 68, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--modern-transition);
}

/* Modern Hover Effects */
.hero:hover {
  background: rgba(255, 68, 68, 0.08);
  border-color: rgba(255, 0, 0, 0.25);
  box-shadow: 
    0 35px 60px rgba(255, 0, 0, 0.15),
    0 0 40px rgba(255, 68, 68, 0.1),
    inset 0 2px 0 rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%) scale(1.01);
}

.hero h1 {
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: var(--font-size-large);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  text-transform: none;
  margin: 0 0 2.5rem 0;
  /* Modern Typography Enhancement */
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: subtleTextShimmer 8s ease-in-out infinite;
}

.hero h2 {
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.6;
  opacity: 0.85;
  transition: var(--modern-transition);
  font-weight: 400;
  margin: 0;
  /* Enhanced Modern Styling */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero h2::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
  animation: glowPulse 3s ease-in-out infinite;
}

.hero:hover h2 {
  opacity: 1;
}

.contact-info {
  position: fixed;
  top: 50%;
  left: var(--spacing-large);
  transform: translateY(-50%);
  z-index: 10;
  font-family: var(--font-secondary);
  letter-spacing: 0.05em;
  font-size: var(--font-size-small);
  color: var(--text-primary);
  text-transform: uppercase;
}

.contact-heading {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-small);
}

.contact-email {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.contact-email:hover {
  color: var(--text-secondary);
}

.hero-section .footer-links {
  position: fixed;
  bottom: var(--spacing-large);
  left: var(--spacing-large);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--font-size-regular);
}

.hero-section .footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  padding-left: 0;
  text-transform: none;
  font-size: 1rem;
}

.hero-section .footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background-color: var(--text-primary);
  transform: translateY(-50%);
  transition: width var(--transition-fast), opacity var(--transition-fast);
  opacity: 0;
}

.hero-section .footer-link:hover {
  color: var(--text-primary);
  padding-left: 1.2rem;
}

.hero-section .footer-link:hover::before {
  width: 0.8rem;
  opacity: 1;
}

.coordinates {
  position: fixed;
  bottom: var(--spacing-large);
  right: var(--spacing-large);
  text-align: right;
  z-index: 10;
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  margin-bottom: 5rem;
}

.tp-dfwv {
  min-width: 280px !important;
}

.section {
  transition: all 0.6s ease;
}


.footer-section {
  background: linear-gradient(180deg, #0a0a0f 0%, #0a0a0f 50%, #0a0a0f 100%);
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-column h4 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

#footer-logo {
  height: 2rem;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-description {
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: #ff4444;
}

.footer-section .footer-links {
  list-style: none;
  padding: 0;
}

.footer-section .footer-links li {
  margin-bottom: 0.8rem;
}

.footer-section .footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  transition: color var(--transition-fast);
}

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

.footer-contact p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.footer-contact a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: #ff4444;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-secondary);
  font-size: var(--font-size-small);
  transition: color var(--transition-fast);
}

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


@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .header-area .center-logo {
    position: relative;
    left: auto;
    top: auto;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
  }

  .hero h2 {
    font-size: 0.9rem;
    line-height: 1.7;
    letter-spacing: 0.06em;
    opacity: 0.9;
  }

  .contact-info {
    display: none;
  }

  .hero-section .footer-links {
    display: none;
  }

  .coordinates {
    display: none;
  }

  .hero {
    width: 95%;
    padding: 2rem 1.5rem;
    margin: 0.5rem;
    /* Enhanced Mobile Glassmorphism */
    background: rgba(255, 68, 68, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 20px;
  }

  /* Hide desktop elements on mobile */
  .center-logo {
    margin-bottom: 2rem;
  }

  /* Mobile-specific neural network adjustments */
  .sphere {
    animation-duration: 4s;
  }

  .neural-connection {
    height: 1px;
  }

  .cursor-sphere {
    width: 60px;
    height: 60px;
  }

  /* Mobile menu animations */
  .mobile-nav-link {
    animation: slideInFromRight 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(50px);
  }

  .mobile-menu-overlay.active .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
  .mobile-menu-overlay.active .mobile-nav-link:nth-child(2) { animation-delay: 0.2s; }
  .mobile-menu-overlay.active .mobile-nav-link:nth-child(3) { animation-delay: 0.3s; }
  .mobile-menu-overlay.active .mobile-nav-link:nth-child(4) { animation-delay: 0.4s; }
  .mobile-menu-overlay.active .mobile-nav-link:nth-child(5) { animation-delay: 0.5s; }

  @keyframes slideInFromRight {
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: var(--spacing-medium);
  }

  .header-area,
  .contact-info,
  .hero-section .footer-links,
  .coordinates {
    padding: 0 var(--spacing-medium);
  }

  .logo-container,
  .contact-info,
  .hero-section .footer-links {
    left: var(--spacing-medium);
  }

  .coordinates {
    right: var(--spacing-medium);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  #logo-square {
    height: 1.5rem;
    width: 1.5rem;
  }

  #logo-image {
    height: 1.5rem;
  }
  
  #logo-text {
    font-size: 1.3rem;
  }

  .contact-heading {
    font-size: 10px;
  }

  .contact-email {
    font-size: 10px;
  }

  .story-display {
    width: 95%;
    font-size: 0.75rem;
  }
}

/* Services Section Styles */
.services-section {
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-gradient-1) 50%, var(--background-dark) 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 100, 100, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(100, 255, 100, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(100, 100, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.services-header {
  text-align: center;
  margin-bottom: 4rem;
}

.services-title {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-subtitle {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 50%, rgba(255, 255, 255, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* ERP Icon */
.icon-erp {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 20px;
  height: 20px;
}

.module {
  background: rgba(255, 100, 100, 0.6);
  border-radius: 2px;
  animation: moduleGlow 2s ease-in-out infinite alternate;
}

.module:nth-child(2) { animation-delay: 0.2s; }
.module:nth-child(3) { animation-delay: 0.4s; }
.module:nth-child(4) { animation-delay: 0.6s; }

@keyframes moduleGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; box-shadow: 0 0 8px rgba(255, 100, 100, 0.4); }
}

/* LMS Icon */
.icon-lms {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lms-screen {
  width: 24px;
  height: 18px;
  border: 2px solid rgba(100, 255, 100, 0.6);
  border-radius: 3px;
  position: relative;
}

.screen-content {
  padding: 3px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-line {
  height: 1px;
  background: rgba(100, 255, 100, 0.6);
  border-radius: 1px;
  animation: contentFlow 3s ease-in-out infinite;
}

.content-line.short {
  width: 60%;
}

@keyframes contentFlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; box-shadow: 0 0 4px rgba(100, 255, 100, 0.4); }
}

/* Web Icon */
.icon-web {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.web-layers {
  position: relative;
  width: 20px;
  height: 20px;
}

.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(100, 100, 255, 0.6);
  border-radius: 4px;
}

.layer.front {
  top: 0;
  left: 0;
  animation: layerFloat 4s ease-in-out infinite;
}

.layer.middle {
  top: 2px;
  left: 2px;
  opacity: 0.7;
  animation: layerFloat 4s ease-in-out infinite 0.5s;
}

.layer.back {
  top: 4px;
  left: 4px;
  opacity: 0.4;
  animation: layerFloat 4s ease-in-out infinite 1s;
}

@keyframes layerFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* AI Icon */
.icon-ai {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-brain {
  position: relative;
  width: 20px;
  height: 20px;
}

.brain-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(255, 200, 100, 0.8);
  border-radius: 50%;
  animation: brainPulse 2s ease-in-out infinite;
}

.brain-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wave {
  position: absolute;
  border: 1px solid rgba(255, 200, 100, 0.6);
  border-radius: 50%;
  animation: waveExpand 2s ease-out infinite;
}

.wave:nth-child(1) {
  width: 12px;
  height: 12px;
  top: -6px;
  left: -6px;
}

.wave:nth-child(2) {
  width: 16px;
  height: 16px;
  top: -8px;
  left: -8px;
  animation-delay: 0.3s;
}

.wave:nth-child(3) {
  width: 20px;
  height: 20px;
  top: -10px;
  left: -10px;
  animation-delay: 0.6s;
}

@keyframes brainPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes waveExpand {
  0% { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.2); }
}

/* Automation Icon */
.icon-automation {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.automation-gears {
  position: relative;
  width: 24px;
  height: 24px;
}

.gear {
  position: absolute;
  border: 2px solid rgba(200, 100, 255, 0.6);
  border-radius: 50%;
  animation: gearRotate 4s linear infinite;
}

.gear.large {
  width: 16px;
  height: 16px;
  top: 0;
  right: 0;
}

.gear.small {
  width: 12px;
  height: 12px;
  bottom: 0;
  left: 0;
  animation-direction: reverse;
  animation-duration: 3s;
}

.gear-teeth {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: rgba(200, 100, 255, 0.6);
  border-radius: 50%;
}

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

/* Digital Transformation Icon */
.icon-digital {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.digital-transform {
  position: relative;
  width: 20px;
  height: 20px;
}

.transform-arrow {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
}

.arrow-line {
  width: 12px;
  height: 2px;
  background: rgba(100, 255, 200, 0.6);
  border-radius: 1px;
}

.arrow-head {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 0;
  height: 0;
  border-left: 4px solid rgba(100, 255, 200, 0.6);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.digital-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(100, 255, 200, 0.6);
  border-radius: 50%;
  animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 70%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 0.8s;
}

.particle:nth-child(3) {
  top: 80%;
  left: 60%;
  animation-delay: 1.6s;
}

@keyframes particleFloat {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.service-title {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-description {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  position: relative;
  padding-left: 1rem;
}

.service-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.service-features li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.services-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.services-cta h3 {
  font-family: var(--font-primary);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.services-cta p {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.8) 0%, rgba(255, 150, 150, 0.8) 100%);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 100, 100, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 100, 100, 0.3);
}

/* Responsive Design for Services */
@media (max-width: 768px) {
  .services-section {
    padding: 3rem 0;
  }
  
  .services-container {
    padding: 0 1rem;
  }
  
  .services-title {
    font-size: 2.2rem;
  }
  
  .services-subtitle {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .services-cta {
    padding: 2rem 1rem;
  }
  
  .services-cta h3 {
    font-size: 1.8rem;
  }
  
  .services-cta p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .services-title {
    font-size: 1.8rem;
  }
  
  .service-title {
    font-size: 1.2rem;
  }
  
  .service-description {
    font-size: 0.9rem;
  }
  
  .service-features li {
    font-size: 0.85rem;
  }
  
  .services-cta h3 {
    font-size: 1.5rem;
  }
}

/* Service Modal Button */
.service-modal-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.service-modal-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.service-modal-btn:hover::before {
  left: 100%;
}

.service-modal-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Service Modals */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-gradient-1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  max-width: 900px;
  max-height: 90vh;
  width: 90%;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.modal-title-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
}

.modal-intro {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-intro p {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.modal-services {
  margin-bottom: 2rem;
}

.modal-service-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.modal-service-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.modal-service-item h3 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-service-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-service-item li {
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.5;
  position: relative;
  padding-left: 1.2rem;
}

.modal-service-item li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.4);
  font-weight: bold;
}

.modal-service-item li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-pricing {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.modal-pricing h3 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.pricing-item {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.pricing-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.pricing-item h4 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-item p {
  font-family: var(--font-secondary);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.pricing-item .price {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(255, 200, 100, 0.2) 0%, rgba(255, 150, 100, 0.2) 100%);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  display: inline-block;
}

.modal-cta {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.1) 0%, rgba(255, 150, 150, 0.05) 100%);
  border: 1px solid rgba(255, 100, 100, 0.2);
  border-radius: 12px;
}

.modal-cta p {
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-cta-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(255, 100, 100, 0.8) 0%, rgba(255, 150, 150, 0.8) 100%);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 100, 100, 0.3);
  position: relative;
  overflow: hidden;
}

.modal-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.modal-cta-btn:hover::before {
  left: 100%;
}

.modal-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(255, 100, 100, 0.4);
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
    margin: 2.5vh auto;
  }
  
  .modal-header {
    padding: 1.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .modal-intro p {
    font-size: 1rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    border-radius: 15px;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-title-section {
    gap: 0.5rem;
  }
  
  .modal-icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .modal-header h2 {
    font-size: 1.3rem;
  }
  
  .service-modal-btn {
    width: 100%;
    text-align: center;
  }
}

/* NAS Community Button - Simple Yellow Button */
.nas-button-container {
  position: fixed;
  right: -83px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center center;
  z-index: 1000;
}

.nas-button {
  display: block;
  padding: 0.6rem 1rem;
  margin: 0;
  background: #FFD700;
  color: #000000;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  text-align: center;
  min-width: 140px;
}

.nas-button:hover {
  background: var(--accent-red);
  border-color: var(--primary-red);
  transform: translateX(-3px) scale(1.02);
  box-shadow: 
    0 8px 25px rgba(255, 68, 68, 0.4),
    0 0 15px var(--red-glow);
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Tablet responsive for NAS button */
@media (max-width: 1024px) and (min-width: 769px) {
  .nas-button-container {
    right: -70px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
  }
  
  .nas-button {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    min-width: 130px;
  }
}

/* Mobile responsive for NAS button */
@media (max-width: 768px) {
  .nas-button-container {
    right: -60px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center center;
  }
  
  .nas-button {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .nas-button-container {
    right: -50px;
    top: 45%;
    bottom: auto;
    transform: translateY(-50%) rotate(-90deg);
  }
  
  .nas-button {
    padding: 0.4rem 0.7rem;
    font-size: 0.7rem;
    min-width: 100px;
  }
}

