/* ============================================
   RoidNet - Premium Dark Theme Stylesheet
   RTL Arabic Support | High Performance
   ============================================ */

/* === CSS Custom Properties === */
:root {
  /* Background Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --bg-elevated: #1e1e2d;

  /* Accent Colors */
  --accent-primary: #3b82f6;
  --accent-secondary: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f172a 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);

  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-padding: clamp(1rem, 4vw, 2rem);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

/* === Base Reset & RTL Setup === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ============================================
   GLOBAL ANIMATED BACKGROUND
   ============================================ */

.global-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
  contain: strict;
  content-visibility: auto;
}

/* Animated Gradient Mesh */
.gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite;
  will-change: transform;
  contain: layout style;
}

@keyframes gradientShift {

  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }

  25% {
    transform: scale(1.1) translate(-2%, 2%);
  }

  50% {
    transform: scale(1) translate(2%, -2%);
  }

  75% {
    transform: scale(1.05) translate(-1%, -1%);
  }
}

/* Floating Particles */
.bg-particles {
  position: absolute;
  inset: 0;
  contain: strict;
  content-visibility: auto;
}

.bg-particles span {
  position: absolute;
  display: block;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 25s linear infinite;
  will-change: transform, opacity;
}

.bg-particles span:nth-child(1) {
  left: 5%;
  width: 6px;
  height: 6px;
  animation-delay: 0s;
  animation-duration: 20s;
}

.bg-particles span:nth-child(2) {
  left: 15%;
  animation-delay: 2s;
  background: var(--accent-secondary);
}

.bg-particles span:nth-child(3) {
  left: 25%;
  width: 3px;
  height: 3px;
  animation-delay: 4s;
}

.bg-particles span:nth-child(4) {
  left: 35%;
  animation-delay: 6s;
  background: var(--accent-purple);
}

.bg-particles span:nth-child(5) {
  left: 45%;
  width: 5px;
  height: 5px;
  animation-delay: 8s;
}

.bg-particles span:nth-child(6) {
  left: 55%;
  animation-delay: 10s;
  background: var(--accent-secondary);
}

.bg-particles span:nth-child(7) {
  left: 65%;
  width: 3px;
  height: 3px;
  animation-delay: 12s;
}

.bg-particles span:nth-child(8) {
  left: 75%;
  animation-delay: 14s;
  background: var(--accent-purple);
}

.bg-particles span:nth-child(9) {
  left: 85%;
  width: 6px;
  height: 6px;
  animation-delay: 16s;
}

.bg-particles span:nth-child(10) {
  left: 95%;
  animation-delay: 18s;
  background: var(--accent-secondary);
}

.bg-particles span:nth-child(11) {
  left: 10%;
  animation-delay: 1s;
  animation-duration: 22s;
}

.bg-particles span:nth-child(12) {
  left: 30%;
  animation-delay: 3s;
  background: var(--accent-purple);
  animation-duration: 28s;
}

.bg-particles span:nth-child(13) {
  left: 50%;
  width: 5px;
  height: 5px;
  animation-delay: 5s;
  animation-duration: 24s;
}

.bg-particles span:nth-child(14) {
  left: 70%;
  animation-delay: 7s;
  background: var(--accent-secondary);
  animation-duration: 26s;
}

.bg-particles span:nth-child(15) {
  left: 90%;
  animation-delay: 9s;
  animation-duration: 30s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  5% {
    opacity: 0.4;
  }

  95% {
    opacity: 0.4;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Glowing Orbs - Optimized for Performance */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  /* Reduced from 80px for better performance */
  opacity: 0.1;
  will-change: transform, opacity;
  animation: orbFloat 30s ease-in-out infinite;
  contain: layout style;
}

.orb-1 {
  width: 300px;
  /* Reduced for performance */
  height: 300px;
  background: var(--accent-primary);
  top: 10%;
  right: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  background: var(--accent-purple);
  bottom: 20%;
  left: -5%;
  animation-delay: 10s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-secondary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 20s;
  animation-duration: 25s;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.12;
  }

  25% {
    transform: translate(50px, -30px) scale(1.2);
    opacity: 0.18;
  }

  50% {
    transform: translate(-30px, 50px) scale(0.9);
    opacity: 0.1;
  }

  75% {
    transform: translate(40px, 40px) scale(1.1);
    opacity: 0.15;
  }
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

/* === Container === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === Section === */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  right: 50%;
  transform: translateX(50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md), 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* === Glass Card === */
/* See 'Enhanced Hover Effects' section later in file for hover states */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  padding: 2rem;
  transition: all var(--transition-normal);
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 0.25rem 0;
  transition: all var(--transition-normal);
}

@media (max-width: 1024px) {
  .header {
    padding: 0.75rem 0;
  }
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.25rem 0;
}


/* === WordPress Admin Bar Compatibility === */
/* Adjust header position when WordPress admin bar is present */
.admin-bar .header {
  top: 32px;
  /* WordPress admin bar height on desktop */
}

/* Mobile admin bar adjustment */
@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
    /* WordPress admin bar height on mobile */
  }
}

/* Adjust body padding to prevent content jump */
.admin-bar body {
  padding-top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar body {
    padding-top: 46px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.custom-logo-link {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 8px;
}

/* Mobile adjustment: Move logo down slightly to align with menu toggle */
@media (max-width: 1024px) {

  .logo,
  .custom-logo-link {
    margin-top: 5px;
    margin-bottom: 5px;
    line-height: 1.5rem;
  }
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.25rem;
  }

  .nav-desktop .nav-menu-list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-desktop>.nav-menu-list>.menu-item {
    list-style: none;
    display: flex;
    align-items: center;
    position: relative;
  }

  /* Custom Dot Separator - Positioned very close to text */
  .nav-desktop .nav-menu-list>.menu-item::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-left: 0.5rem;
    /* Space from dot to text (RTL) */
    opacity: 0.6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    transition: all var(--transition-normal);
    flex-shrink: 0;
  }

  .nav-desktop .nav-menu-list>.menu-item:hover::before {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--accent-primary);
  }
}

.nav-link {
  padding: 0.5rem 0.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: transparent;
}

/* === NEW Crystal Dropdown Styles (Desktop) === */

.sub-menu {
  position: absolute;
  top: 100%;
  right: -10px;
  min-width: 240px;
  background: rgba(18, 18, 26, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  margin-top: 1rem;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px) scale(0.95);
  transform-origin: top right;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1001;
}

.menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.sub-menu .menu-item a {
  display: flex !important;
  align-items: center;
  padding: 0.8rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  border: none !important;
}

.sub-menu .menu-item a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(-5px);
  /* Slide slightly in RTL */
}

/* Subtle Glow for Dropdown */
.sub-menu::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.15;
  filter: blur(10px);
}

/* Active/Current Page Styling */
.nav-link.active,
.nav-desktop .current-menu-item>a,
.nav-desktop .current_page_item>a,
.nav-desktop .current-menu-ancestor>a {
  color: var(--text-primary);
  background: var(--glass-hover);
  position: relative;
}

/* Gradient bottom indicator for active page */
.nav-desktop .current-menu-item>a::before,
.nav-desktop .current_page_item>a::before,
.nav-desktop .current-menu-ancestor>a::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0.5rem;
  left: 0.5rem;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Subtle glow effect on active item */
.nav-desktop .current-menu-item>a,
.nav-desktop .current_page_item>a {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* === Dropdown Menu Styles === */

/* Menu Item with Children - Parent Container */
.menu-item-has-children {
  position: relative;
}

/* Modern Arrow (Chevron) Indicator for Desktop Submenus */
@media (min-width: 1024px) {
  .nav-desktop .menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    /* Spacing in RTL */
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
  }

  .nav-desktop .menu-item-has-children:hover>a::after {
    transform: rotate(-135deg) translateY(-2px);
    opacity: 1;
    color: var(--accent-primary);
  }
}

/* Ensure arrow remains hidden on mobile if needed, or handled separately */
.nav-mobile .menu-item-has-children>a::after {
  display: none;
}

/* Submenu Container */
.sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1001;

  /* Performance optimization */
  will-change: opacity, transform;
}

/* Show submenu on hover */
.menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Submenu Items */
.sub-menu .menu-item {
  list-style: none;
}

.sub-menu .menu-item a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

/* Submenu Item Hover Effect */
.sub-menu .menu-item a::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--gradient-primary);
  transform: scaleY(0);
  transition: transform var(--transition-fast);
}

.sub-menu .menu-item a:hover {
  background: var(--glass-hover);
  color: var(--accent-primary);
  padding-right: 1.25rem;
}

.sub-menu .menu-item a:hover::before {
  transform: scaleY(1);
}

/* Active Submenu Item */
.sub-menu .menu-item.current-menu-item>a,
.sub-menu .menu-item.current_page_item>a {
  color: var(--accent-primary);
  background: var(--glass-bg);
}

/* Nested Submenus (Third Level) */
.sub-menu .menu-item-has-children>a::after {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-right: 5px solid currentColor;
  margin: 0;
  opacity: 0.7;
  transition: all var(--transition-fast);
}

.sub-menu .menu-item-has-children:hover>a::after {
  left: 0.75rem;
  opacity: 1;
}

.sub-menu .sub-menu {
  top: 0;
  right: 100%;
  margin-top: 0;
  margin-right: 0.5rem;
}

/* Dropdown Animation */
@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-item-has-children:hover>.sub-menu {
  animation: dropdownSlide 0.3s ease;
}

/* Glow Effect on Hover */
.sub-menu::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
  filter: blur(8px);
}

.menu-item-has-children:hover>.sub-menu::before {
  opacity: 0.15;
}

/* Mobile Menu Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--bg-secondary);
  padding: 5rem 0 2rem;
  /* Remove horizontal padding from container */
  transition: right var(--transition-normal);
  z-index: 999;
  overflow-y: auto;
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile ul {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
}

.nav-mobile-link {
  display: block;
  padding: 1rem 2rem;
  /* Add horizontal padding to link instead */
  color: var(--text-secondary);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.nav-mobile-link:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Mobile Dropdown Styles */
.nav-mobile .menu-item {
  list-style: none;
  padding: 0 !important;
  /* Ensure li has no padding */
  margin: 0 !important;
  /* Ensure li has no margin */
  width: 100%;
  /* Full width li */
}

.nav-mobile .menu-item>a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 1.125rem 2rem;
  /* Add horizontal padding to link */
  color: var(--text-secondary);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.nav-mobile .menu-item>a:hover {
  color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Active/Current Page in Mobile Menu */
.nav-mobile .current-menu-item>a,
.nav-mobile .current_page_item>a {
  color: var(--accent-primary);
  font-weight: 700;
  background: rgba(59, 130, 246, 0.08);
  /* Full width background */
  border-right: 4px solid var(--accent-primary);
  /* Right border for active state */
}

/* Mobile Submenu Toggle Area */
.nav-mobile .menu-item-has-children {
  position: relative;
}

/* Separation between text link and toggle button */
.nav-mobile .menu-item-has-children>a {
  padding-left: 3.5rem;
  /* Room for the toggle button on the left */
}

/* Vertical Separator for better UX (clear divide between click zones) */
.nav-mobile .menu-item-has-children::after {
  display: none;
  /* Removed as it was stretching incorrectly */
}

/* Dropdown Toggle Button Styling */
.dropdown-toggle {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.5rem;
  height: 3.8rem;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  /* Separator moved here */
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.dropdown-toggle:active {
  background: rgba(255, 255, 255, 0.05);
}

/* Stylish Dropdown Arrow */
.dropdown-toggle::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
  /* Arrow pointing left/down */
  transition: all var(--transition-normal);
  color: var(--text-muted);
}

.nav-mobile .menu-item-has-children.open>.dropdown-toggle::before {
  transform: rotate(45deg);
  /* Pointing down */
  color: var(--accent-primary);
}

.nav-mobile .menu-item-has-children.open>.dropdown-toggle {
  background: rgba(59, 130, 246, 0.1);
}

/* === NEW Waterfall Connector Style (Mobile) === */

.nav-mobile .menu-item-has-children {
  position: relative;
}

/* Vertical guide line connecting parent to children */
.nav-mobile .menu-item-has-children::before {
  content: '';
  position: absolute;
  top: 3.5rem;
  bottom: 0.5rem;
  right: 2.2rem;
  /* Aligned in RTL */
  width: 1px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.nav-mobile .menu-item-has-children.open::before {
  opacity: 0.4;
}

.nav-mobile .sub-menu {
  position: relative;
  /* Essential: integrated flow */
  top: 0;
  right: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  padding: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  /* Disable desktop glass effect */
  -webkit-backdrop-filter: none !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: none !important;
  border: none !important;
  width: 100%;
  transform: none !important;
  /* Disable desktop animations */
}

.nav-mobile .sub-menu::before {
  display: none !important;
  /* Disable desktop glow effect */
}

.nav-mobile .menu-item-has-children.open>.sub-menu {
  max-height: 2000px;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile .sub-menu .menu-item>a {
  padding: 0.8rem 3.5rem 0.8rem 2rem;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: transparent;
  position: relative;
  transition: all 0.3s ease;
  opacity: 0.8;
}

/* Small horizontal tick for each sub-item */
.nav-mobile .sub-menu .menu-item>a::before {
  content: '';
  position: absolute;
  right: 2.2rem;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--accent-primary);
  opacity: 0.4;
}

.nav-mobile .sub-menu .menu-item>a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  padding-right: 4rem;
  opacity: 1;
}

/* Staggered entry animation */
.nav-mobile .menu-item-has-children.open .sub-menu .menu-item {
  animation: slideInCascade 0.4s ease forwards;
  opacity: 0;
}

@keyframes slideInCascade {
  from {
    opacity: 0;
    transform: translateX(15px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nav-mobile .sub-menu .menu-item:nth-child(1) {
  animation-delay: 0.1s;
}

.nav-mobile .sub-menu .menu-item:nth-child(2) {
  animation-delay: 0.15s;
}

.nav-mobile .sub-menu .menu-item:nth-child(3) {
  animation-delay: 0.2s;
}

.nav-mobile .sub-menu .menu-item:nth-child(4) {
  animation-delay: 0.25s;
}

.nav-mobile .sub-menu .menu-item:nth-child(5) {
  animation-delay: 0.3s;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Grid Background Pattern */
.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* === Features Section (Why Choose Us) === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
}

/* === Services Section === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 0 var(--radius-lg) 0 100%;
  transition: all var(--transition-normal);
}

.service-card:hover::before {
  width: 150px;
  height: 150px;
  opacity: 0.15;
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.service-link:hover {
  gap: 0.75rem;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-link:hover h3 {
  color: var(--accent-primary);
}

.service-card-link h3,
.service-card-link p {
  transition: color var(--transition-normal);
}

/* === Extended Services Pills === */
.services-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

.service-pill {
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.service-pill:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

/* === Portfolio Section === */
.portfolio-tabs,
.portfolio-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}


.tab-btn,
.portfolio-tab-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover,
.portfolio-tab-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.tab-btn.active,
.portfolio-tab-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}


.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}


.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
}


.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.95), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.portfolio-category {
  font-size: 0.85rem;
  color: var(--accent-secondary);
}

/* Tab Content Animation */
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === CTA Section === */
.cta-section {
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-section .btn {
  background: white;
  color: var(--accent-primary);
}

.cta-section .btn:hover {
  background: var(--text-primary);
  transform: translateY(-2px);
}

/* === Footer === */
.footer {
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-right: 0.5rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-contact li span:first-child {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === Scroll Reveal Animation === */
/* Optimized for CLS - uses only transform and opacity (GPU composited) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
  contain: layout;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* === Utility Classes === */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* ============================================
   NEW: Hero Section Enhancements
   ============================================ */

/* Hero Two-Column Layout */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 250px);
}

@media (min-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Badge Dot Animation */
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Button Glow Effect */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
  will-change: transform;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Hero Illustration Container */
.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

@media (max-width: 1023px) {
  .hero-illustration {
    display: none;
  }
}

/* Tech Sphere - Main Container */
.tech-sphere {
  position: relative;
  width: 350px;
  height: 350px;
}

/* Central Core */
.core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 60px rgba(59, 130, 246, 0.5),
    0 0 120px rgba(59, 130, 246, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
  animation: corePulse 4s ease-in-out infinite;
}

.core-inner {
  color: white;
  animation: coreRotate 20s linear infinite;
}

@keyframes corePulse {

  0%,
  100% {
    box-shadow:
      0 0 60px rgba(59, 130, 246, 0.5),
      0 0 120px rgba(59, 130, 246, 0.3);
  }

  50% {
    box-shadow:
      0 0 80px rgba(59, 130, 246, 0.6),
      0 0 150px rgba(59, 130, 246, 0.4);
  }
}

@keyframes coreRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Orbiting Rings */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 200px;
  height: 200px;
  animation: orbitRotate 10s linear infinite;
}

.orbit-2 {
  width: 280px;
  height: 280px;
  animation: orbitRotate 15s linear infinite reverse;
  border-color: rgba(6, 182, 212, 0.3);
}

.orbit-3 {
  width: 350px;
  height: 350px;
  animation: orbitRotate 20s linear infinite;
  border-color: rgba(139, 92, 246, 0.3);
}

@keyframes orbitRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Orbit Dots */
.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--accent-primary);
}

.orbit-2 .orbit-dot {
  background: var(--accent-secondary);
  box-shadow: 0 0 20px var(--accent-secondary);
}

.orbit-3 .orbit-dot {
  background: var(--accent-purple);
  box-shadow: 0 0 20px var(--accent-purple);
}

/* Floating Icons Around Sphere */
.floating-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  box-shadow: var(--shadow-md);
  animation: floatIcon 6s ease-in-out infinite;
}

.icon-1 {
  top: 10%;
  right: 0;
  animation-delay: 0s;
}

.icon-2 {
  top: 60%;
  right: -10%;
  animation-delay: 1.5s;
  color: var(--accent-secondary);
}

.icon-3 {
  bottom: 10%;
  left: 10%;
  animation-delay: 3s;
  color: var(--accent-purple);
}

.icon-4 {
  top: 20%;
  left: -5%;
  animation-delay: 4.5s;
  color: var(--accent-pink);
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* Floating Particles Background */
.floating-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 15s linear infinite;
}

.particle-1 {
  left: 10%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.particle-2 {
  left: 20%;
  top: 80%;
  animation-delay: 2s;
  background: var(--accent-secondary);
}

.particle-3 {
  left: 70%;
  top: 30%;
  animation-delay: 4s;
  background: var(--accent-purple);
}

.particle-4 {
  left: 80%;
  top: 70%;
  animation-delay: 6s;
  animation-duration: 18s;
}

.particle-5 {
  left: 50%;
  top: 50%;
  animation-delay: 8s;
  background: var(--accent-pink);
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================
   NEW: Stats Section Redesign
   ============================================ */

.hero-stats-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 3rem;
}

.stats-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem 2rem;
  backdrop-filter: blur(20px);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-content .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  display: inline;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-content .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--glass-border);
}

@media (max-width: 900px) {
  .stats-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    width: 80%;
    height: 1px;
  }

  .stat-card {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   NEW: Services Grid 3x2 Fix
   ============================================ */

.services-grid-3x2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .services-grid-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid-3x2 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   NEW: Elegant Stats Section
   ============================================ */

.stats-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  overflow: hidden;
}

.stats-bg-animation {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.stats-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  animation: statsLineMove 8s linear infinite;
}

.stats-line-1 {
  top: 30%;
  width: 100%;
  animation-delay: 0s;
}

.stats-line-2 {
  top: 50%;
  width: 80%;
  right: 10%;
  animation-delay: 2s;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
}

.stats-line-3 {
  top: 70%;
  width: 60%;
  right: 20%;
  animation-delay: 4s;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

@keyframes statsLineMove {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  10% {
    opacity: 0.5;
  }

  90% {
    opacity: 0.5;
  }

  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.stats-elegant {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.stat-elegant-item {
  text-align: center;
  padding: 1rem 2rem;
  position: relative;
}

.stat-elegant-item::after {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--glass-border), transparent);
}

.stat-elegant-item:first-child::after {
  display: none;
}

.stat-elegant-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
}

.stat-elegant-suffix {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--accent-secondary);
  margin-right: 0.25rem;
}

.stat-elegant-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}


/* ============================================
   NEW: Process/Timeline Section
   ============================================ */

.process-section {
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* Lightweight Animated Decorations - GPU Optimized */
.process-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-bracket {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-primary);
  opacity: 0.08;
  will-change: transform;
  animation: floatBracket 12s ease-in-out infinite;
}

.bracket-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.bracket-2 {
  top: 60%;
  right: 8%;
  color: var(--accent-secondary);
  animation-delay: 3s;
  animation-duration: 15s;
}

.bracket-3 {
  bottom: 20%;
  left: 15%;
  color: var(--accent-purple);
  animation-delay: 6s;
  font-size: 1.5rem;
}

.bracket-4 {
  top: 35%;
  right: 15%;
  animation-delay: 9s;
  animation-duration: 18s;
}

@keyframes floatBracket {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.08;
  }

  25% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.15;
  }

  50% {
    transform: translateY(-10px) rotate(-3deg);
    opacity: 0.1;
  }

  75% {
    transform: translateY(-25px) rotate(3deg);
    opacity: 0.12;
  }
}

/* Data Flow Dots - Animated Connection */
.data-flow {
  position: absolute;
  top: 50%;
  left: 5%;
  display: flex;
  gap: 20px;
  transform: translateY(-50%);
}

.flow-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  animation: flowPulse 3s ease-in-out infinite;
}

.flow-dot:nth-child(1) {
  animation-delay: 0s;
}

.flow-dot:nth-child(2) {
  animation-delay: 0.3s;
  background: var(--accent-secondary);
}

.flow-dot:nth-child(3) {
  animation-delay: 0.6s;
  background: var(--accent-purple);
}

@keyframes flowPulse {

  0%,
  100% {
    opacity: 0;
    transform: scale(0.5) translateX(0);
  }

  50% {
    opacity: 0.6;
    transform: scale(1) translateX(10px);
  }
}

/* Additional Floating Brackets */
.bracket-5 {
  bottom: 30%;
  right: 20%;
  color: var(--accent-secondary);
  animation-delay: 2s;
}

.bracket-6 {
  top: 25%;
  left: 25%;
  font-size: 2.5rem;
  animation-delay: 4s;
  animation-duration: 14s;
}

.bracket-7 {
  top: 70%;
  right: 25%;
  color: var(--accent-purple);
  animation-delay: 7s;
}

.bracket-8 {
  bottom: 15%;
  right: 30%;
  color: var(--accent-secondary);
  font-size: 1.8rem;
  animation-delay: 10s;
}

/* Binary Stream Animation */
.binary-stream {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--accent-primary);
  opacity: 0.06;
  letter-spacing: 3px;
  will-change: transform;
  animation: binaryScroll 20s linear infinite;
}

.stream-1 {
  top: 20%;
  left: -100px;
}

.stream-2 {
  bottom: 25%;
  left: -100px;
  color: var(--accent-secondary);
  animation-delay: 10s;
  animation-duration: 25s;
}

@keyframes binaryScroll {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  5% {
    opacity: 0.08;
  }

  95% {
    opacity: 0.08;
  }

  100% {
    transform: translateX(calc(100vw + 200px));
    opacity: 0;
  }
}

/* Circuit Lines */
.circuit-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  will-change: transform;
  animation: circuitPulse 4s ease-in-out infinite;
}

.line-1 {
  width: 150px;
  top: 30%;
  left: 0;
  animation-delay: 0s;
}

.line-2 {
  width: 100px;
  top: 50%;
  right: 0;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  animation-delay: 1.5s;
}

.line-3 {
  width: 120px;
  bottom: 35%;
  left: 5%;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  animation-delay: 3s;
}

@keyframes circuitPulse {

  0%,
  100% {
    opacity: 0;
    transform: scaleX(0.5);
  }

  50% {
    opacity: 0.4;
    transform: scaleX(1);
  }
}

/* Spinning Rings */
.spin-ring {
  position: absolute;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0.08;
  will-change: transform;
  animation: spinRing 15s linear infinite;
}

.ring-1 {
  width: 80px;
  height: 80px;
  top: 15%;
  right: 10%;
  border-color: var(--accent-primary);
}

.ring-2 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 8%;
  border-color: var(--accent-secondary);
  animation-direction: reverse;
  animation-duration: 20s;
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Pulse Circles */
.pulse-circle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0;
  will-change: transform, opacity;
  animation: pulseGrow 4s ease-out infinite;
}

.pulse-1 {
  top: 40%;
  left: 3%;
}

.pulse-2 {
  top: 60%;
  right: 5%;
  background: var(--accent-secondary);
  animation-delay: 1.5s;
}

.pulse-3 {
  bottom: 30%;
  left: 20%;
  background: var(--accent-purple);
  animation-delay: 3s;
}

@keyframes pulseGrow {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* Data Flow Position Variants */
.flow-left {
  left: 3%;
  top: 45%;
}

.flow-right {
  right: 3%;
  left: auto;
  top: 55%;
  flex-direction: row-reverse;
}

.flow-right .flow-dot {
  animation-name: flowPulseReverse;
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 2px;
  background: linear-gradient(to bottom,
      transparent,
      var(--accent-primary) 10%,
      var(--accent-secondary) 50%,
      var(--accent-purple) 90%,
      transparent);
}


.process-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}


.step-number {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  z-index: 2;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}


.step-content {
  flex: 1;
  max-width: 350px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

.step-content:hover {
  background: var(--glass-hover);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.step-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Connection dots for timeline */
.process-step::before {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(50% - 4px);
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  z-index: 3;
  opacity: 0;
}


/* ============================================
   Animated Background Code Lines
   ============================================ */

.code-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.03;
}

.code-line {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--accent-primary);
  white-space: nowrap;
  animation: codeScroll 20s linear infinite;
}

.code-line:nth-child(1) {
  top: 10%;
  animation-delay: 0s;
}

.code-line:nth-child(2) {
  top: 25%;
  animation-delay: 3s;
  color: var(--accent-secondary);
}

.code-line:nth-child(3) {
  top: 40%;
  animation-delay: 6s;
}

.code-line:nth-child(4) {
  top: 55%;
  animation-delay: 9s;
  color: var(--accent-purple);
}

.code-line:nth-child(5) {
  top: 70%;
  animation-delay: 12s;
}

.code-line:nth-child(6) {
  top: 85%;
  animation-delay: 15s;
  color: var(--accent-secondary);
}

@keyframes codeScroll {
  0% {
    transform: translateX(100vw);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ============================================
   ENHANCED HOVER EFFECTS & ANIMATIONS
   ============================================ */

/* Card Lift Effect */
.glass-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: var(--glass-hover);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-glow);
}

/* Icon Pulse on Hover */
.feature-icon,
.step-icon {
  transition: all 0.4s ease;
}

.glass-card:hover .feature-icon,
.step-content:hover .step-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* Text Shimmer Effect */
.section-header h2 {
  position: relative;
  overflow: hidden;
}

.section-header h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: textShimmer 4s infinite;
  will-change: transform;
}

@keyframes textShimmer {
  0% {
    transform: translateX(-100%);
  }

  50%,
  100% {
    transform: translateX(100%);
  }
}

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0;
  transform: scale(0);
  transition: all 0.5s ease;
}

.btn:hover::after {
  opacity: 1;
  transform: scale(2);
}

/* Portfolio Item 3D Tilt */
.portfolio-item {
  transition: all 0.4s ease;
  transform-style: preserve-3d;
}

.portfolio-item:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02);
}

/* Service Link Arrow Animation */
.service-link svg {
  transition: transform 0.3s ease;
}

.service-link:hover svg {
  transform: translateX(-8px);
}

/* Tab Button Enhancement */
.tab-btn {
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tab-btn:hover::before {
  width: 80%;
}

.tab-btn.active::before {
  width: 100%;
}

/* Animated Border for Special Elements */
.cta-section {
  position: relative;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-purple), var(--accent-primary));
  background-size: 300% 300%;
  border-radius: var(--radius-xl);
  z-index: -1;
  animation: borderGradient 6s ease infinite;
  opacity: 0.5;
}

@keyframes borderGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Footer Link Underline Animation */
.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Navigation Link Glow */
.nav-link:hover,
.nav-mobile-link:hover {
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Process Step Pulse Animation - GPU Optimized */
.step-number {
  animation: stepPulse 3s ease-in-out infinite;
  will-change: opacity;
}

@keyframes stepPulse {

  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }
}

/* Stats Number Glow - GPU Optimized */
.stat-elegant-number {
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
  animation: statsGlow 4s ease-in-out infinite;
  will-change: opacity;
}

@keyframes statsGlow {

  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
  }
}

/* Logo Hover Effect */
.logo:hover .logo-icon {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.logo-icon {
  transition: all 0.4s ease;
}

/* Smooth Scroll Indicator */
@keyframes scrollDown {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  50% {
    transform: translateY(10px);
    opacity: 1;
  }
}

/* ============================================
   PREMIUM HERO SECTION - ULTRA MODERN DESIGN
   ============================================ */

.hero-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #020617 0%, #05051e 25%, #0a0a2e 50%, #1e1b4b 75%, #050515 100%);
  background-size: 200% 200%;
  overflow: hidden;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 80px;
  animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Aurora Background Effect */
.aurora-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-layer {
  position: absolute;
  width: 200%;
  height: 200%;
  left: -50%;
  top: -50%;
  opacity: 0.85;
}

.aurora-1 {
  background:
    radial-gradient(ellipse 80% 50% at 30% 20%, rgba(59, 130, 246, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse 70% 40% at 70% 80%, rgba(139, 92, 246, 0.5) 0%, transparent 50%);
  animation: aurora1 12s ease-in-out infinite;
  filter: blur(30px);
}

.aurora-2 {
  background:
    radial-gradient(ellipse 60% 60% at 60% 30%, rgba(6, 182, 212, 0.55) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 20% 70%, rgba(236, 72, 153, 0.35) 0%, transparent 50%);
  animation: aurora2 15s ease-in-out infinite;
  animation-delay: -5s;
  filter: blur(40px);
}

.aurora-3 {
  background:
    radial-gradient(ellipse 90% 40% at 50% 50%, rgba(99, 102, 241, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(59, 130, 246, 0.4) 0%, transparent 50%);
  animation: aurora3 18s ease-in-out infinite;
  animation-delay: -10s;
  filter: blur(35px);
}

@keyframes aurora1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(5%, -3%) rotate(3deg) scale(1.1);
  }

  50% {
    transform: translate(-3%, 5%) rotate(-2deg) scale(0.95);
  }

  75% {
    transform: translate(-5%, -5%) rotate(2deg) scale(1.05);
  }
}

@keyframes aurora2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(-4%, 4%) rotate(-3deg);
  }

  66% {
    transform: translate(4%, -4%) rotate(3deg);
  }
}

@keyframes aurora3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(3%, 3%) scale(1.15);
  }
}

/* Glowing Stars */
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 30px rgba(255, 255, 255, 0.8), 0 0 50px rgba(59, 130, 246, 0.6);
  animation: starTwinkle 2s ease-in-out infinite;
}

.star-1 {
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.star-2 {
  top: 20%;
  left: 85%;
  animation-delay: 0.5s;
  width: 3px;
  height: 3px;
}

.star-3 {
  top: 35%;
  left: 10%;
  animation-delay: 1s;
}

.star-4 {
  top: 15%;
  left: 60%;
  animation-delay: 1.5s;
  width: 5px;
  height: 5px;
}

.star-5 {
  top: 50%;
  left: 90%;
  animation-delay: 2s;
}

.star-6 {
  top: 70%;
  left: 20%;
  animation-delay: 2.5s;
  width: 3px;
  height: 3px;
}

.star-7 {
  top: 25%;
  left: 40%;
  animation-delay: 0.3s;
}

.star-8 {
  top: 80%;
  left: 75%;
  animation-delay: 1.2s;
  width: 5px;
  height: 5px;
}

.star-9 {
  top: 60%;
  left: 5%;
  animation-delay: 0.8s;
}

.star-10 {
  top: 40%;
  left: 70%;
  animation-delay: 1.8s;
}

.star-11 {
  top: 85%;
  left: 45%;
  animation-delay: 2.2s;
  width: 3px;
  height: 3px;
}

.star-12 {
  top: 5%;
  left: 30%;
  animation-delay: 0.7s;
}

@keyframes starTwinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Neural Network Mesh Animation */
.neural-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}



/* Floating Geometric Shapes - Techy Hexagons */
.hero-geometric {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hexagon {
  position: absolute;
  width: 80px;
  height: 80px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.1));
  animation: geoFloat 15s ease-in-out infinite;
  color: var(--accent-primary);
  filter: drop-shadow(0 0 15px currentColor);
  opacity: 0.4;
}

.hex-1 {
  top: 15%;
  right: 10%;
  animation-delay: 0s;
}

.hex-2 {
  bottom: 25%;
  left: 5%;
  width: 100px;
  height: 100px;
  animation-delay: -10s;
  color: var(--accent-purple);
}

@keyframes geoFloat {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(20px, -30px) rotate(10deg);
  }

  50% {
    transform: translate(-15px, 20px) rotate(-5deg);
  }

  75% {
    transform: translate(10px, -10px) rotate(5deg);
  }
}

@keyframes geoDiamond {

  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }

  25% {
    transform: rotate(55deg) translate(15px, -20px);
  }

  50% {
    transform: rotate(40deg) translate(-10px, 15px);
  }

  75% {
    transform: rotate(50deg) translate(8px, -8px);
  }
}

/* Floating Geometric Shapes */
.hero-geometric {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.geo-shape {
  position: absolute;
  opacity: 0.1;
  border: 1px solid var(--accent-primary);
}

.hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(59, 130, 246, 0.05);
}

.hex-1 {
  top: 15%;
  left: 10%;
  width: 60px;
  height: 60px;
  animation: geoFloat 15s ease-in-out infinite;
}

.hex-2 {
  bottom: 20%;
  right: 15%;
  width: 100px;
  height: 100px;
  animation: geoDiamond 20s linear infinite;
}

@keyframes geoFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}


/* Neural Network Mesh */
.neural-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

.mesh-group {
  fill: none;
  stroke: var(--accent-secondary);
  stroke-width: 0.8;
  animation: meshPulse 10s ease-in-out infinite;
}

.mesh-line {
  stroke-dasharray: 20, 10;
  stroke-dashoffset: 1000;
  animation: lineFlow 30s linear infinite;
  opacity: 0.4;
}

.mesh-node {
  animation: nodeGlow 4s ease-in-out infinite alternate;
}

@keyframes lineFlow {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nodeGlow {
  0% {
    transform: scale(1);
    opacity: 0.5;
    filter: brightness(1);
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
    filter: brightness(1.5) drop-shadow(0 0 10px var(--accent-secondary));
  }
}

@keyframes meshPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1.01);
  }

  50% {
    opacity: 0.6;
    transform: scale(1);
  }
}

/* Tech Circuit Lines */
.tech-circuits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.circuit-path {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
  height: 1px;
  width: 200px;
  opacity: 0.3;
  animation: circuitSwipe 10s linear infinite;
}

.path-1 {
  top: 25%;
  left: -200px;
}

.path-2 {
  top: 50%;
  right: -200px;
  animation-direction: reverse;
  animation-delay: -5s;
}

.path-3 {
  bottom: 30%;
  left: -200px;
  animation-delay: -2s;
}

@keyframes circuitSwipe {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  10%,
  90% {
    opacity: 0.4;
  }

  100% {
    transform: translateX(120vw);
    opacity: 0;
  }
}


/* Animated Grid Overlay - Digital Scanlines */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 100% 4px;
  pointer-events: none;
  animation: gridMove 30s linear infinite, scanline 10s linear infinite;
}

@keyframes scanline {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 0 0, 0 0, 0 100%;
  }
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 80px 80px;
  }
}

/* Content Gradient Overlay */
.hero-content-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 40%, transparent 0%, rgba(10, 10, 15, 0.4) 70%),
    linear-gradient(to bottom, transparent 0%, transparent 60%, var(--bg-primary) 100%);
  pointer-events: none;
}

/* Centered Hero Content */
.hero-content-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

/* Premium Badge */
.hero-badge-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--accent-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), 0 0 40px rgba(59, 130, 246, 0.1);
  }

  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.2);
  }
}

/* Premium Title */
.hero-title-premium {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 30%, var(--accent-secondary) 50%, #f0f9ff 70%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.4;
  animation: titleShimmer 5s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 100px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

@keyframes titleShimmer {

  0%,
  100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }

  50% {
    background-position: 100% 50%;
    filter: brightness(1.1);
  }
}

/* Premium Text */
.hero-text-premium {
  font-size: 1.25rem;
  color: #e2e8f0;
  max-width: 750px;
  margin: 0 auto 2rem;
  line-height: 2;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

/* Centered Buttons */
.hero-buttons-centered {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* Large Buttons */
.btn-lg {
  padding: 1.1rem 2.75rem;
  font-size: 1.1rem;
}

.hero-home .btn-primary {
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.35);
}

.hero-home .btn-primary:hover {
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.5);
  transform: translateY(-3px);
}

/* Bottom Wave removed */

/* Responsive Adjustments */
/* Legacy Hero Styles Removed (Merged into .hero-inner) */

/* ============================================
   REUSABLE GLOBAL COMPONENTS
   ============================================ */

/* --- Inner Page Hero --- */
.hero-inner {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-inner .hero-decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.hero-decoration-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent-primary), transparent);
  top: 10%;
  right: -5%;
  filter: blur(60px);
}

.hero-decoration-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent-purple), transparent);
  bottom: 20%;
  left: 5%;
  filter: blur(40px);
  animation-delay: -5s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(20px, -30px) rotate(5deg);
  }

  50% {
    transform: translate(-10px, 20px) rotate(-5deg);
  }

  75% {
    transform: translate(15px, 10px) rotate(3deg);
  }
}

.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  overflow: hidden;
  z-index: 0;
}

.hero-waves .wave {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 200%;
  height: 100%;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C59.71,118.11,165.41,111.21,321.39,56.44Z' fill='rgba(59, 130, 246, 0.05)'%3E%3C/path%3E%3C/svg%3E") repeat-x;
  background-size: 50% 100%;
  animation: waveMove 20s linear infinite;
}

@keyframes waveMove {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(-25%);
  }
}

.hero-inner .hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-inner .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--accent-secondary);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.hero-inner h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.4;
}

.hero-inner .hero-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 850px;
  margin: 0 auto 1.5rem;
  line-height: 2;
}

.hero-inner .hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* --- Feature Blocks (Alternating) --- */
.feature-block {
  padding: 100px 0;
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-block:nth-child(even) .feature-grid {
  direction: ltr;
  /* Flip for alternating effect */
}

.feature-block:nth-child(even) .feature-content {
  direction: rtl;
  /* Reset text direction */
}

.feature-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.feature-content p {
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.feature-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  transition: transform var(--transition-slow);
}

.feature-block:hover .feature-image img {
  transform: scale(1.05);
}


/* --- Services Multi-Grid & Mini Cards --- */
.services-section-premium {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.services-multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .services-multi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-multi-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.service-mini-card {
  position: relative;
  background: linear-gradient(135deg, rgba(30, 30, 45, 0.9) 0%, rgba(26, 26, 46, 0.9) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.25rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.service-mini-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.service-mini-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.service-mini-card h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
}

/* --- Portfolio Preview Grid --- */
.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.portfolio-preview-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.portfolio-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.portfolio-preview-item:hover img {
  transform: scale(1.1);
}

.portfolio-preview-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.portfolio-preview-item .overlay span {
  color: white;
  font-weight: 600;
}

/* --- Utility: Reverse Feature Grid --- */
.feature-grid.reverse {
  direction: ltr;
}

.feature-grid.reverse .feature-content {
  direction: rtl;
}

/* --- Pricing Section --- */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.pricing-tab-btn {
  padding: 1rem 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.pricing-tab-btn:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.pricing-tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.pricing-content {
  display: none;
}

.pricing-content.active {
  display: block;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1;
}

.pricing-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  margin: 1rem 0;
}

.pricing-features {
  list-style: none;
  text-align: right;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-secondary);
  font-weight: bold;
  flex-shrink: 0;
}

.pricing-features .extra-feature::before {
  content: '★';
  color: var(--accent-purple);
}

/* ============================================
   RESPONSIVE STYLES (Consolidated)
   ============================================ */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

  /* Hero Stats */
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Elegant Stats */
  .stats-elegant {
    gap: 2rem;
  }

  .stat-elegant-item {
    flex: 1 1 40%;
    padding: 1rem;
  }

  .stat-elegant-item::after {
    display: none;
  }

  /* Timeline */
  .timeline-line {
    right: 30px;
    transform: none;
  }

  .process-step,
  .process-step:nth-child(odd) {
    flex-direction: row;
    text-align: right;
  }

  .step-number {
    right: 30px;
    transform: translate(50%, -50%);
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }

  .step-content {
    max-width: none;
    margin-right: 80px;
  }
}

/* Tablet / Laptop (max-width: 968px) */
@media (max-width: 968px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feature-block:nth-child(even) .feature-grid {
    direction: rtl;
  }
}

/* ============================================
   Portfolio Page Styles (Only new elements)
   ============================================ */

/* Portfolio Page Hero */
.portfolio-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  z-index: 0;
}

.portfolio-hero-content {
  position: relative;
  z-index: 1;
}

.portfolio-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portfolio-hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Stats in Portfolio Hero */
.portfolio-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.portfolio-stat {
  text-align: center;
}

.portfolio-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-primary);
  display: block;
}

.portfolio-stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Category Header for Portfolio Page */
.category-header {
  text-align: center;
  margin-bottom: 2rem;
}

.category-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.category-header p {
  color: var(--text-muted);
}

/* Footer Social Icons */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.footer-social-link.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.footer-social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  box-shadow: 0 5px 15px rgba(220, 39, 67, 0.3);
}

.footer-social-link.facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

/* Responsive Stats */
@media (max-width: 768px) {
  .portfolio-stats {
    gap: 1.5rem;
  }

  .portfolio-stat-number {
    font-size: 2rem;
  }
}

/* ============================================
   CREATIVE MARQUEE - INFINITE SCROLLING TEXT
   ============================================ */

.marquee-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
  margin: 0;
  background: linear-gradient(180deg,
      var(--bg-primary) 0%,
      rgba(59, 130, 246, 0.03) 50%,
      var(--bg-primary) 100%);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  direction: ltr;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr;
}

/* Marquee Track - Seamless scrolling */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
  direction: ltr;
}

.marquee-row {
  position: relative;
  overflow: hidden;
}

/* Marquee Content */
.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  flex-shrink: 0;
}

.marquee-item span.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.6;
  flex-shrink: 0;
  margin-right: 3rem;
}

.marquee-item:last-child .marquee-dot {
  margin-right: 3rem;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-25%);
  }
}

/* ============================================
   CODE RAIN EFFECT
   ============================================ */

.code-rain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.code-column {
  position: absolute;
  top: -100%;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.2;
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary);
  animation: codeRain linear infinite;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

.code-column:nth-child(1) {
  left: 5%;
  animation-duration: 15s;
  animation-delay: 0s;
  color: var(--accent-secondary);
}

.code-column:nth-child(2) {
  left: 15%;
  animation-duration: 18s;
  animation-delay: 2s;
}

.code-column:nth-child(3) {
  left: 25%;
  animation-duration: 12s;
  animation-delay: 4s;
  color: var(--accent-purple);
}

.code-column:nth-child(4) {
  left: 35%;
  animation-duration: 20s;
  animation-delay: 1s;
}

.code-column:nth-child(5) {
  left: 45%;
  animation-duration: 16s;
  animation-delay: 3s;
  color: var(--accent-secondary);
}

.code-column:nth-child(6) {
  left: 55%;
  animation-duration: 14s;
  animation-delay: 5s;
}

.code-column:nth-child(7) {
  left: 65%;
  animation-duration: 19s;
  animation-delay: 2.5s;
  color: var(--accent-purple);
}

.code-column:nth-child(8) {
  left: 75%;
  animation-duration: 17s;
  animation-delay: 4.5s;
}

.code-column:nth-child(9) {
  left: 85%;
  animation-duration: 13s;
  animation-delay: 1.5s;
  color: var(--accent-secondary);
}

.code-column:nth-child(10) {
  left: 95%;
  animation-duration: 21s;
  animation-delay: 3.5s;
}

@keyframes codeRain {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* ============================================
   FLOATING CODE SNIPPETS
   ============================================ */

.floating-code-snippets {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.code-snippet {
  position: absolute;
  padding: 0.75rem 1rem;
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--accent-primary);
  opacity: 0.4;
  animation: floatCode 20s ease-in-out infinite;
  backdrop-filter: blur(5px);
}

.code-snippet::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  gap: 4px;
}

.code-snippet-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.code-snippet-2 {
  top: 25%;
  right: 8%;
  animation-delay: 5s;
  color: var(--accent-secondary);
}

/* Center positioned snippets - visible on mobile */
.code-snippet-center-1 {
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 2s;
  color: var(--accent-secondary);
}

.code-snippet-center-2 {
  top: 55%;
  left: 45%;
  transform: translateX(-50%);
  animation-delay: 8s;
  color: var(--accent-purple);
}

.code-snippet-center-3 {
  top: 70%;
  left: 55%;
  transform: translateX(-50%);
  animation-delay: 12s;
}

.code-snippet-3 {
  bottom: 30%;
  left: 10%;
  animation-delay: 10s;
  color: var(--accent-purple);
}

.code-snippet-4 {
  bottom: 20%;
  right: 5%;
  animation-delay: 15s;
}

.code-snippet-5 {
  top: 45%;
  left: 3%;
  animation-delay: 4s;
  color: var(--accent-secondary);
}

.code-snippet-6 {
  top: 60%;
  right: 3%;
  animation-delay: 7s;
  color: var(--accent-purple);
}

.code-snippet-7 {
  bottom: 10%;
  left: 30%;
  animation-delay: 18s;
}

@keyframes floatCode {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.4;
  }

  25% {
    transform: translateY(-20px) rotate(2deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-10px) rotate(-1deg);
    opacity: 0.5;
  }

  75% {
    transform: translateY(-25px) rotate(1deg);
    opacity: 0.6;
  }
}

/* ============================================
   ENHANCED NEURAL NETWORK VISUALIZATION
   ============================================ */

.neural-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.5;
}

.mesh-line {
  stroke: var(--accent-primary);
  stroke-width: 1;
  fill: none;
  opacity: 0.3;
  animation: meshDraw 8s ease-in-out infinite;
}

.mesh-node {
  animation: nodePulse 3s ease-in-out infinite;
}

@keyframes meshDraw {

  0%,
  100% {
    stroke-dashoffset: 1000;
    opacity: 0.2;
  }

  50% {
    stroke-dashoffset: 0;
    opacity: 0.5;
  }
}

@keyframes nodePulse {

  0%,
  100% {
    r: 5;
    opacity: 0.6;
  }

  50% {
    r: 8;
    opacity: 1;
  }
}

/* ============================================
   HEXAGONAL GRID BACKGROUND
   ============================================ */

.hex-grid-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.08;
  contain: strict;
  z-index: 0;
}

.hex-grid-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  transform: translate(-25%, -25%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.4'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  animation: hexGridMove 60s linear infinite;
}

@keyframes hexGridMove {
  0% {
    transform: translate(-25%, -25%);
  }

  100% {
    transform: translate(calc(-25% + 28px), calc(-25% + 49px));
  }
}

/* ============================================
   GLOWING DATA STREAMS
   ============================================ */

.data-streams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.data-stream {
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
  animation: streamFlow 8s linear infinite;
  opacity: 0.3;
}

.data-stream:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  height: 80px;
}

.data-stream:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--accent-secondary), transparent);
}

.data-stream:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
  height: 60px;
}

.data-stream:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), transparent);
}

.data-stream:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
  height: 90px;
}

.data-stream:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
  height: 70px;
  background: linear-gradient(to bottom, transparent, var(--accent-secondary), transparent);
}

.data-stream:nth-child(7) {
  left: 70%;
  animation-delay: 6s;
  height: 110px;
}

.data-stream:nth-child(8) {
  left: 80%;
  animation-delay: 7s;
  height: 85px;
  background: linear-gradient(to bottom, transparent, var(--accent-purple), transparent);
}

.data-stream:nth-child(9) {
  left: 90%;
  animation-delay: 0.5s;
  height: 95px;
}

@keyframes streamFlow {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }

  20% {
    opacity: 0.5;
  }

  80% {
    opacity: 0.5;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* ============================================
   ENHANCED HERO BADGE
   ============================================ */

.hero-badge-glow {
  position: relative;
  overflow: hidden;
  animation: badgeFloat 4s ease-in-out infinite;
}

.hero-badge-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
  animation: badgeShine 3s infinite;
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes badgeShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ============================================
   PREMIUM TITLE EFFECTS
   ============================================ */

.hero-title-premium {
  position: relative;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 50%, var(--text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShine 5s ease-in-out infinite;
}

@keyframes titleShine {

  0%,
  100% {
    background-position: 0% center;
  }

  50% {
    background-position: 200% center;
  }
}

.hero-text-premium {
  position: relative;
}

/* ============================================
   PULSING BACKGROUND RINGS
   ============================================ */

.pulse-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  opacity: 0;
  animation: pulseRing 4s ease-out infinite;
}

.pulse-ring:nth-child(1) {
  animation-delay: 0s;
}

.pulse-ring:nth-child(2) {
  animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 2s;
}

.pulse-ring:nth-child(4) {
  animation-delay: 3s;
}

@keyframes pulseRing {
  0% {
    width: 100px;
    height: 100px;
    opacity: 0.6;
  }

  100% {
    width: 600px;
    height: 600px;
    opacity: 0;
  }
}

/* Centered Hero Layout */
.hero-content-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.hero-buttons-centered {
  justify-content: center;
}

/* Hero Grid Overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridPulse 10s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes gridPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }
}

/* Hero Content Overlay for better readability */
.hero-content-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {
  .marquee-item {
    font-size: 0.85rem;
    gap: 1rem;
  }

  .marquee-content {
    gap: 2rem;
  }

  .marquee-section {
    padding: 1rem 0;
  }

  .marquee-dot {
    width: 5px;
    height: 5px;
  }

  /* Hide edge snippets on mobile, keep center ones */
  .code-snippet-1,
  .code-snippet-2,
  .code-snippet-3,
  .code-snippet-4,
  .code-snippet-5,
  .code-snippet-6,
  .code-snippet-7 {
    display: none;
  }

  /* Keep center snippets visible on mobile */
  .code-snippet-center-1,
  .code-snippet-center-2,
  .code-snippet-center-3 {
    display: block;
    font-size: 0.65rem;
    padding: 0.5rem 0.75rem;
    opacity: 0.3;
  }
}

/* ============================================
   FEATURES TICKER SECTION
   ============================================ */

.features-ticker-section {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-purple) 100%);
  padding: 0.75rem 0;
  overflow: hidden;
  position: relative;
}

.features-ticker-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.features-ticker-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.features-ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}

.features-ticker-content {
  display: flex;
  gap: 3rem;
  padding: 0 1.5rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ticker-icon {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-33.333%);
  }
}

/* Pause animation on hover */
.features-ticker-section:hover .features-ticker-track {
  animation-play-state: paused;
}

/* ============================================
   CLIENTS TRUST SECTION
   ============================================ */

.clients-trust-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.clients-trust-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.trust-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.trust-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.trust-card:hover::before {
  transform: scaleX(1);
}

.trust-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(59, 130, 246, 0.15);
}

.trust-icon-wrapper {
  margin-bottom: 1.5rem;
}

.trust-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
}

.pulse-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
  opacity: 0;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.trust-content {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.trust-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.trust-plus,
.trust-percent {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.trust-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.trust-badge:hover {
  background: var(--glass-hover);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.badge-icon {
  font-size: 1.5rem;
}

.trust-badge span:not(.badge-icon) {
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   WHY BEST SECTION
   ============================================ */

.why-best-section {
  padding: var(--section-padding) 0;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
}

.why-best-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.why-best-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.why-best-card {
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.why-best-card:hover .card-inner {
  transform: rotateY(5deg) rotateX(5deg);
}

.card-front {
  position: relative;
  padding: 2.5rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.why-best-card:hover .card-glow {
  opacity: 1;
}

.why-best-card:hover .card-front {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(59, 130, 246, 0.1);
}

.card-icon {
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  transition: transform var(--transition-normal);
}

.why-best-card:hover .card-icon {
  transform: scale(1.1);
}

.card-front h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-front p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.card-number {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
}

/* Why Best CTA */
.why-best-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 3rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.why-best-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-content h3 {
  font-size: 1.35rem;
  color: white;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.why-best-cta .btn {
  flex-shrink: 0;
  background: white;
  color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.why-best-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .why-best-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-best-cta {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .why-best-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TECHNOLOGIES SECTION
   ============================================ */

.technologies-section {
  padding: var(--section-padding) 0;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.technologies-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: default;
}

.tech-item:hover {
  background: var(--glass-hover);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 40px rgba(6, 182, 212, 0.1);
}

.tech-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
  transition: all var(--transition-normal);
}

.tech-item:hover .tech-icon-wrapper {
  transform: scale(1.15);
  color: var(--text-primary);
}

.tech-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.tech-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-cta-banner {
  text-align: center;
  padding: 2rem 3rem;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.tech-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.tech-cta-banner p {
  font-size: 1.2rem;
  color: white;
  margin: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tech-item {
    padding: 1.5rem 1rem;
  }

  .tech-icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .tech-icon-wrapper svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   TESTIMONIALS CAROUSEL SECTION
   ============================================ */

.testimonials-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.testimonials-carousel-wrapper {
  overflow: hidden;
  margin-top: 2.5rem;
}

.testimonials-carousel {
  display: flex;
  gap: 2rem;
}

.testimonial-card {
  flex: 0 0 calc(50% - 1rem);
  padding: 1.5rem;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.client-avatar {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.client-info {
  flex: 1;
}

.client-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.client-rating {
  color: #FBBC05;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.google-icon {
  flex-shrink: 0;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot:hover {
  background: var(--accent-primary);
  opacity: 0.7;
}

.carousel-dot.active {
  background: var(--accent-primary);
  width: 24px;
  border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(100% - 1rem);
    padding: 1.25rem;
  }
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   Disable heavy effects on small screens to fix scrolling lag
   ============================================ */
@media (max-width: 768px) {

  /* 1. AGGRESSIVE: Hide Global Background completely */
  .global-bg {
    display: none !important;
  }

  /* Ensure body has a solid background since global-bg is gone */
  body {
    background: #0a0a0f !important;
    /* var(--bg-primary) */
  }

  /* 2. Disable Backdrop Filter (Glass Effect) */
  .header.scrolled,
  .glass-card,
  .sub-menu,
  .btn-secondary {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Solid backgrounds for readability */
  .header.scrolled {
    background: #0a0a0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .glass-card {
    background: #12121a !important;
    /* var(--bg-secondary) without transparency */
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .sub-menu {
    background: #12121a !important;
  }

  /* 3. AGGRESSIVE: Remove Box Shadows */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Restore simple border for buttons/cards to maintain structure without shadow */
  .btn-primary,
  .bg-particles span,
  .glow-orb {
    /* existing animations already disabled by global-bg: none, but good to be safe */
    animation: none !important;
  }

  /* 4. HER SPECIFIC OPTIMIZATIONS (Aggressive Removal) */
  .aurora-bg,
  .hex-grid-bg,
  .code-rain,
  .data-streams,
  .floating-code-snippets,
  .neural-mesh,
  .pulse-rings,
  .hero-stars,
  .tech-circuits,
  .hero-geometric,
  .hero-grid-overlay,
  .hero-content-overlay,
  .stats-bg-animation,
  .process-decorations {
    display: none !important;
  }

  /* 5. INNER PAGE SPECIFIC OPTIMIZATIONS */
  .hero-inner::before,
  .hero-decorations,
  .hero-waves,
  .grid-pattern {
    display: none !important;
    background: none !important;
    animation: none !important;
  }
}

/* ============================================
   PERFORMANCE: Reduced Motion & Composited Animations
   Improves PageSpeed CLS and TBT scores
   ============================================ */

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Force GPU compositing for animated elements */
.gradient-mesh,
.bg-particles span,
.glow-orb,
.orb-1,
.orb-2,
.orb-3,
.badge-dot,
.btn-glow::before,
.aurora-strip,
.geo-shape,
.hex-grid-bg,
.pulse-ring,
.orbit,
.hero-icon {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimize specific non-composited animations */
.badge-dot {
  will-change: opacity;
  contain: layout style;
}

/* Ensure all transforms use 3D for GPU */
.reveal,
.glass-card,
.service-card,
.portfolio-item,
.feature-card,
.step-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Optimize hover animations - use transform only */
.glass-card:hover,
.service-card:hover,
.portfolio-item:hover {
  transform: translateY(-5px) translateZ(0);
}
/* ============================================
   SHARED PAGE STYLES (CRM & AI Generator)
   Tables, FAQ, Comparisons
   ============================================ */

/* --- Comparison Table Styling --- */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
}
.comparison-table th, .comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.comparison-table th {
    font-weight: 700;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
}
.comparison-table th.pro-header {
    color: var(--accent-primary);
    position: relative;
    overflow: hidden;
}
.comparison-table th.pro-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}
.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table .feature-name {
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
}
.check-icon { color: var(--accent-success, #4caf50); }
.cross-icon { color: var(--accent-danger, #f44336); }

/* --- Mobile Responsiveness for Comparison Table --- */
@media (max-width: 768px) {
    .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td {
        display: block;
        width: 100%;
    }
    .comparison-table thead { display: none; }
    .comparison-table tr {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 1rem;
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        position: relative;
    }
    .comparison-table td {
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: flex; /* Flex to align label/value */
        justify-content: space-between;
        align-items: center;
        text-align: left; /* Value aligns left */
        padding: 0.8rem 0;
        border: none !important;
    }
    .comparison-table td:last-child { border-bottom: none; }
    .comparison-table .feature-name {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        color: var(--accent-primary);
        display: block;
    }
    /* Add labels via data-attribute if needed, or rely on flex layout */
    .comparison-table td[data-label]:before {
        content: attr(data-label);
        font-weight: normal;
        opacity: 0.8;
    }
}


/* --- Transformation Table (Before/After) --- */
.transformation-table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0 1rem; 
}
.transformation-table td { 
    padding: 1.5rem; 
    border-radius: 1rem; 
    position: relative; 
    vertical-align: middle;
}
.before-cell { 
    background: rgba(239, 68, 68, 0.1); 
    border: 1px solid rgba(239, 68, 68, 0.3) !important; 
    color: #e2e8f0; 
}
.after-cell { 
    background: rgba(34, 197, 94, 0.1); 
    border: 1px solid rgba(34, 197, 94, 0.3) !important; 
    color: #fff; 
    font-weight: bold; 
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.15); 
}

@media (max-width: 768px) {
    .transformation-table, .transformation-table tbody { display: block; width: 100%; }
    .transformation-table thead { display: none; } /* Hide headers on mobile */
    .transformation-table tr { 
        display: flex; 
        flex-direction: column; 
        gap: 2.5rem; /* Space for arrow */
        margin-bottom: 3rem; 
    }
    .transformation-table td {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.25rem 1rem !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    /* Mobile Labels */
    .before-cell:before {
        content: attr(data-label);
        display: block;
        color: #f87171;
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        font-weight: bold;
        opacity: 0.9;
    }
    .after-cell:before {
        content: attr(data-label);
        display: block;
        color: #4ade80;
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        font-weight: bold;
        opacity: 0.9;
    }
    /* Arrow Indicator */
    .before-cell:after { 
        content: '↓'; 
        position: absolute; 
        bottom: -35px; /* Adjust based on gap */
        left: 50%; 
        transform: translateX(-50%); 
        color: rgba(255,255,255,0.3); 
        font-size: 2rem; 
    }
}

/* --- FAQ Accordion --- */
.faq-item {
    transition: all 0.3s ease;
    cursor: pointer; /* Whole card clickable if desired, or just header */
}
.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.faq-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
