/* ==========================================================================
   CODYEX - DUAL THEME ENGINE (LIVE LIGHT & DARK MODE TOGGLE)
   Option C: Clean Minimalist Hero Layout with Sleek Trust Metrics
   ========================================================================== */

/* --------------------------------------------------------------------------
   DARK MODE VARIABLES (DEFAULT)
   -------------------------------------------------------------------------- */
:root, [data-theme="dark"] {
  --bg-primary: #07060E;
  --bg-surface: #0E0C1B;
  --bg-card: #151226;
  --bg-card-hover: #1F1B38;
  --bg-nav: rgba(14, 12, 27, 0.85);
  
  --border-color: rgba(168, 85, 247, 0.18);
  --border-hover: rgba(168, 85, 247, 0.55);
  
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  --text-subtle: #71717A;
  
  --accent-purple: #C084FC;
  --accent-blue: #38BDF8;
  --accent-primary: linear-gradient(135deg, #C084FC 0%, #38BDF8 100%);
  --accent-btn-bg: linear-gradient(135deg, #9333EA 0%, #2563EB 100%);
  --accent-btn-text: #FFFFFF;
  
  --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #F3E8FF 30%, #C084FC 70%, #38BDF8 100%);
  --grid-pattern: radial-gradient(ellipse at 50% -10%, rgba(168, 85, 247, 0.28) 0%, transparent 65%),
                  linear-gradient(to right, rgba(168, 85, 247, 0.06) 1px, transparent 1px),
                  linear-gradient(to bottom, rgba(168, 85, 247, 0.06) 1px, transparent 1px);
  
  --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(168, 85, 247, 0.18);
  --shadow-btn: 0 10px 30px rgba(147, 51, 234, 0.5);
}

/* --------------------------------------------------------------------------
   LIGHT MODE VARIABLES (CYBER ELEGANT PURPLE-BLUE)
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --bg-primary: #FAF5FF;
  --bg-surface: #F3E8FF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F3FF;
  --bg-nav: rgba(255, 255, 255, 0.88);
  
  --border-color: #E9D5FF;
  --border-hover: #C084FC;
  
  --text-main: #1E1B4B;
  --text-muted: #4338CA;
  --text-subtle: #6B21A8;
  
  --accent-purple: #9333EA;
  --accent-blue: #0284C7;
  --accent-primary: linear-gradient(135deg, #9333EA 0%, #0284C7 100%);
  --accent-btn-bg: linear-gradient(135deg, #9333EA 0%, #2563EB 100%);
  --accent-btn-text: #FFFFFF;
  
  --gradient-text: linear-gradient(135deg, #1E1B4B 0%, #7E22CE 50%, #0284C7 100%);
  --grid-pattern: radial-gradient(circle at 50% -10%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
                  linear-gradient(to right, rgba(168, 85, 247, 0.08) 1px, transparent 1px),
                  linear-gradient(to bottom, rgba(168, 85, 247, 0.08) 1px, transparent 1px);
  
  --shadow-card: 0 15px 35px rgba(147, 51, 234, 0.1);
  --shadow-btn: 0 10px 25px rgba(147, 51, 234, 0.4);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background: var(--bg-primary);
  position: relative;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  transition: background 0.4s ease;
}

/* Grid Background */
.theme-grid-bg {
  position: absolute;
  top: 0; left: 0; right: 0; height: 120vh;
  background-image: var(--grid-pattern);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
  transition: background-image 0.4s ease;
}

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

/* SCROLL ANIMATIONS ENGINE (APPLE & VERCEL BLUR-REVEAL STYLE) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.96);
  filter: blur(8px);
  will-change: opacity, transform, filter;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   1. NAVBAR & LIVE THEME TOGGLE BUTTON
   ========================================================================== */
.main-nav {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1240px;
  z-index: 1000;
  background: rgba(13, 14, 18, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .main-nav {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  overflow: visible;
  flex-shrink: 0;
  min-width: 210px;
  margin-right: 1.5rem;
}

.nav-logo-img {
  height: 54px;
  width: auto;
  max-width: none;
  object-fit: contain;
  transform: scale(2.4);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  filter: brightness(2.8) contrast(1.6) drop-shadow(0 0 16px rgba(168, 85, 247, 0.95)) drop-shadow(0 0 30px rgba(147, 51, 234, 0.75));
  margin-left: 1.2rem;
}

.nav-logo-img:hover {
  transform: scale(2.55);
  filter: brightness(3.2) contrast(1.8) drop-shadow(0 0 24px rgba(168, 85, 247, 1)) drop-shadow(0 0 40px rgba(147, 51, 234, 0.9));
}

[data-theme="light"] .nav-logo-img {
  filter: brightness(0.2) contrast(2) drop-shadow(0 0 16px rgba(147, 51, 234, 0.6));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-nav-cta {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.3rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-btn);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

/* ==========================================================================
   1. HERO SECTION & OPTION C: MINIMALIST LAYOUT WITH TRUST METRICS
   ========================================================================== */
.hero-section {
  padding-top: 170px;
  padding-bottom: 90px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.45rem 1.2rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-main);
  margin-bottom: 2rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.12);
  transition: all 0.3s ease;
}

.hero-pill-badge:hover {
  border-color: var(--border-hover);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.35);
  transform: translateY(-2px);
}

.badge-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #A855F7;
  box-shadow: 0 0 10px #A855F7;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 10px #A855F7; }
  50% { transform: scale(1.4); opacity: 0.6; box-shadow: 0 0 18px #A855F7; }
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.2rem, 5.8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-main);
  max-width: 980px;
  margin: 0 auto 1.8rem auto;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.8rem auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.btn-primary {
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 0.6rem;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex; align-items: center; gap: 0.6rem;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* OPTION C: SLEEK HORIZONTAL TRUST METRICS STYLES */
.hero-trust-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.hero-trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.hero-trust-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.trust-icon-box {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
}

.trust-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.trust-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 0.4rem;
}

.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
}

/* 3D INFINITE LOGO MARQUEE CAROUSEL STYLES */
.logo-cloud-section {
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.logo-cloud-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text-subtle);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* 3D Perspective Wrapper */
.logo-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  perspective: 1000px;
  padding: 35px 0;
  margin: -15px 0;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,1) 12%, rgba(0,0,0,1) 88%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  transform-style: preserve-3d;
  transform: rotateX(4deg) rotateY(-1deg);
  transition: transform 0.4s ease;
  padding: 10px 0;
}

.logo-marquee-wrapper:hover .logo-marquee-track {
  animation-play-state: paused;
  transform: rotateX(0deg) rotateY(0deg);
}

@keyframes marqueeScroll {
  0% { transform: rotateX(4deg) rotateY(-1deg) translateX(0); }
  100% { transform: rotateX(4deg) rotateY(-1deg) translateX(-50%); }
}

.logo-item-card {
  height: 84px;
  min-width: 170px;
  padding: 0.8rem 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.logo-item-card:hover {
  border-color: rgba(168, 85, 247, 0.7);
  transform: translateY(-8px) scale(1.12) translateZ(30px);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.4), inset 0 0 20px rgba(168, 85, 247, 0.2);
  background: #14151D;
}

[data-theme="light"] .logo-item-card:hover {
  background: #20222F;
}

.client-logo-img {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: all 0.3s ease;
}

.client-logo-img[src*=".jpg"], .client-logo-img[src*=".jpeg"] {
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 10px;
}

.logo-item-card:hover .client-logo-img {
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.7)) brightness(1.15);
  transform: scale(1.05);
}

.logo-item-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.logo-item-icon:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px) scale(1.15) translateZ(30px);
  box-shadow: 0 18px 35px rgba(99, 102, 241, 0.35);
  background: var(--bg-card-hover);
}

/* ==========================================================================
   2. SERVICES SECTION
   ========================================================================== */
.section-padding { padding: 7rem 0; position: relative; z-index: 2; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem auto; }
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 800; letter-spacing: -0.03em; color: var(--text-main); line-height: 1.15;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
  perspective: 1000px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 2.6rem 2.2rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card > * {
  position: relative;
  z-index: 2;
}

/* Service Card Low-Opacity Related Background Images */
.service-card-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.2) brightness(0.85);
}

.service-card:hover .service-card-bg {
  opacity: 0.32;
  transform: scale(1.1);
  filter: saturate(1.6) brightness(1.15);
}

.service-bg-1 {
  background-image: linear-gradient(180deg, rgba(7, 6, 14, 0.5) 0%, rgba(7, 6, 14, 0.95) 100%), url('https://images.unsplash.com/photo-1677442136019-21780efad99a?auto=format&fit=crop&w=800&q=80');
}
.service-bg-2 {
  background-image: linear-gradient(180deg, rgba(7, 6, 14, 0.5) 0%, rgba(7, 6, 14, 0.95) 100%), url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=800&q=80');
}
.service-bg-3 {
  background-image: linear-gradient(180deg, rgba(7, 6, 14, 0.5) 0%, rgba(7, 6, 14, 0.95) 100%), url('https://images.unsplash.com/photo-1512941937669-90a1b58e7e9c?auto=format&fit=crop&w=800&q=80');
}
.service-bg-4 {
  background-image: linear-gradient(180deg, rgba(7, 6, 14, 0.5) 0%, rgba(7, 6, 14, 0.95) 100%), url('https://images.unsplash.com/photo-1581291518857-4e27b48ff24e?auto=format&fit=crop&w=800&q=80');
}
.service-bg-5 {
  background-image: linear-gradient(180deg, rgba(7, 6, 14, 0.5) 0%, rgba(7, 6, 14, 0.95) 100%), url('https://images.unsplash.com/photo-1600132806370-bf17e65e942f?auto=format&fit=crop&w=800&q=80');
}
.service-bg-6 {
  background-image: linear-gradient(180deg, rgba(7, 6, 14, 0.5) 0%, rgba(7, 6, 14, 0.95) 100%), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=800&q=80');
}

/* 3D Light Sheen Overlay */
.card-3d-sheen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 18px;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.15), transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.service-card:hover .card-3d-sheen {
  opacity: 1;
}

/* Dynamic Glowing 3D Neon Border on Hover */
.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(16, 185, 129, 0.6));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

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

.service-card:hover {
  border-color: transparent;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(99, 102, 241, 0.2);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 2;
}

.service-icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transform: translateZ(35px);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  position: relative; z-index: 2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon-box {
  transform: translateZ(50px) scale(1.1);
  background: var(--accent-btn-bg);
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.45);
}

.service-badge-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-purple);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
  transition: all 0.3s ease;
}

.service-card:hover .service-badge-pill {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.6);
  color: #FFFFFF;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.4);
}

.service-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem; font-weight: 800; color: var(--text-main); margin-bottom: 0.7rem;
  transform: translateZ(25px);
  transition: transform 0.3s ease;
  position: relative; z-index: 2;
}

.service-card:hover .service-card-title {
  transform: translateZ(35px);
}

.service-card-desc {
  font-size: 0.93rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.4rem;
  transform: translateZ(15px);
  transition: transform 0.3s ease;
  position: relative; z-index: 2;
}

.service-card:hover .service-card-desc {
  transform: translateZ(25px);
}

.service-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 2;
}

.service-tech-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.service-card:hover .service-tech-tags span {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--text-main);
}

.service-card-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6rem;
  transform: translateZ(30px);
  transition: transform 0.3s ease, color 0.25s ease;
  position: relative; z-index: 2;
}

.service-card-link i {
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-link {
  transform: translateZ(45px);
  color: var(--accent-purple);
}

.service-card:hover .service-card-link i {
  transform: translateX(6px);
  color: var(--accent-blue);
}

/* ==========================================================================
   3. ABOUT CODYEX & COUNTERS
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-canvas-box {
  width: 100%; height: 440px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

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

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.counter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.counter-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
}

.counter-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.03em;
}

.counter-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   4. NEXT-LEVEL PORTFOLIO SHOWCASE & 3D LIGHTBOX MODAL
   ========================================================================== */
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--text-main);
  color: var(--bg-primary);
  border-color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1000px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 35px rgba(99, 102, 241, 0.2);
}

.portfolio-img-container {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
  background: #0D0E12;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.view-project-btn {
  background: #FFFFFF;
  color: #000000;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transform: translateY(15px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .view-project-btn {
  transform: translateY(0);
}

.view-project-btn:hover {
  background: #6366F1;
  color: #FFFFFF;
  transform: scale(1.05);
}

.portfolio-tag-pill {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  z-index: 2;
}

.portfolio-card-body {
  padding: 1.2rem 1.2rem;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.portfolio-card .tech-badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.portfolio-card .portfolio-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.portfolio-card .portfolio-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.portfolio-stats {
  display: none !important;
}

/* ==========================================================================
   PORTFOLIO SEARCH BAR & CONTROL ROW
   ========================================================================== */
.portfolio-controls-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.portfolio-search-box {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.portfolio-search-box .search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}

.portfolio-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0.85rem 3rem 0.85rem 3rem;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.portfolio-search-input:focus {
  border-color: #6366F1;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
  background: var(--bg-surface);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: none;
  transition: color 0.2s ease;
}

.search-clear-btn:hover { color: var(--text-main); }

.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  color: #6366F1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  margin-left: 0.35rem;
}

.filter-btn.active .filter-badge {
  background: #FFFFFF;
  color: #0F172A;
}

/* Quote Box inside portfolio card */
.portfolio-quote-box {
  display: none !important;
}

/* Dual Overlay CTAs */
.overlay-cta-flex {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 80%;
}

.view-project-btn.secondary-view {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.view-project-btn.secondary-view:hover {
  background: #6366F1;
  border-color: #6366F1;
}

.portfolio-empty-state {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: 20px;
  margin-top: 2rem;
}

/* MODAL INTERNAL TABS */
.modal-tabs-header {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.5rem;
  background: var(--bg-surface);
  overflow-x: auto;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1rem 1.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.modal-tab-btn:hover { color: var(--text-main); }

.modal-tab-btn.active {
  color: #6366F1;
  border-bottom-color: #6366F1;
}

.modal-tab-pane {
  display: none;
  padding: 1.8rem;
}

.modal-tab-pane.active {
  display: block;
}

.hidden-project {
  display: none !important;
}

.see-more-portfolio-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.see-more-portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0.9rem 2.2rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.see-more-portfolio-btn:hover {
  background: #6366F1;
  color: #FFFFFF;
  border-color: #6366F1;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.35);
  transform: translateY(-3px);
}

.see-more-icon {
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.see-more-portfolio-btn.expanded .see-more-icon {
  transform: rotate(180deg);
}

/* PORTFOLIO LIGHTBOX MODAL STYLES */
.portfolio-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.portfolio-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2.5rem;
}

.portfolio-modal-overlay.active .portfolio-modal-content {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

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

.modal-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.modal-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #10B981;
  letter-spacing: 0.15em;
}

.modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.4rem 0 1rem 0;
  line-height: 1.2;
}

.modal-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.modal-section-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-subtle);
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.modal-tech-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.modal-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}

.modal-metric-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   5. WORKFLOW TIMELINE & ANIMATED PROCESS PIPELINE
   ========================================================================== */
.process-section-wrapper {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.06) 0%, rgba(10, 8, 20, 0) 70%);
}

.process-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 850px; height: 450px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.12) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 1;
}

.process-timeline-wrapper {
  position: relative;
  margin-top: 2.5rem;
}

.process-laser-line {
  position: absolute;
  top: 100px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
  border-radius: 4px;
}

.laser-pulse-beam {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, #6366F1, #A855F7, #38BDF8, transparent);
  border-radius: 4px;
  box-shadow: 0 0 15px #6366F1, 0 0 25px #A855F7;
  animation: laserSweep 3.5s infinite linear;
}

@keyframes laserSweep {
  0% { left: -35%; }
  100% { left: 100%; }
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
  z-index: 2;
}

.process-step-card {
  background: rgba(18, 16, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.8rem 1.4rem 1.6rem 1.4rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.process-step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #A855F7);
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.process-step-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25), 0 0 25px rgba(168, 85, 247, 0.2);
  background: rgba(26, 23, 54, 0.85);
}

.process-step-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, #6366F1, #38BDF8, #A855F7);
}

.timeline-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.timeline-step-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: #A855F7;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.step-num {
  color: #38BDF8;
  font-weight: 900;
}

.step-phase-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.timeline-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #A855F7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
  position: relative;
  transition: all 0.3s ease;
}

.process-step-card:hover .timeline-icon-box {
  background: linear-gradient(135deg, #6366F1, #A855F7);
  color: #FFFFFF;
  transform: rotate(6deg) scale(1.1);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.icon-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  animation: pulseRing 2s infinite ease-in-out;
  opacity: 0.5;
}

@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.2; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.step-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.step-features-mini {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.step-features-mini span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.step-features-mini span i {
  color: #10B981;
  font-size: 0.7rem;
}

/* ==========================================================================
   6. TECH STACK LOGOS
   ========================================================================== */
.tech-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

/* ==========================================================================
   6. TECH STACK (3D FLOATING NEON MATRIX & DUAL TICKERS)
   ========================================================================== */
.tech-section-wrapper {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at 50% 30%, rgba(147, 51, 234, 0.08) 0%, rgba(10, 8, 20, 0) 70%);
}

.tech-bg-glow {
  position: absolute;
  top: 30%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(100px);
}

.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.tech-matrix-card {
  background: rgba(18, 16, 38, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-matrix-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, var(--brand-color), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.tech-matrix-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(26, 22, 56, 0.9);
  box-shadow: 0 15px 35px var(--brand-glow);
  border-color: var(--brand-color);
}

.tech-matrix-card:hover::before {
  opacity: 1;
}

.tech-brand-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.tech-matrix-card:hover .tech-brand-icon {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 0 20px var(--brand-glow);
}

.tech-card-info {
  flex-grow: 1;
}

.tech-card-info h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.tech-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.tech-spec-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.05em;
  white-space: nowrap;
  align-self: flex-start;
}

/* Staggered Floating Animations */
.float-anim-1 { animation: floatMatrix1 5s ease-in-out infinite; }
.float-anim-2 { animation: floatMatrix2 6s ease-in-out infinite; }
.float-anim-3 { animation: floatMatrix3 5.5s ease-in-out infinite; }

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

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

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

/* Marquee Dual Tickers */
.tech-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 16, 38, 0.45);
  backdrop-filter: blur(10px);
  border-radius: 14px;
}

.tech-marquee-track {
  display: inline-flex;
  gap: 2rem;
}

.track-left {
  animation: marqueeLeft 30s linear infinite;
}

.track-right {
  animation: marqueeRight 30s linear infinite;
}

.tech-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  white-space: nowrap;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 1024px) {
  .tech-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tech-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .tech-matrix-card {
    padding: 0.9rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.45rem;
    border-radius: 14px;
  }
  .tech-brand-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: 8px;
  }
  .tech-card-info {
    width: 100%;
  }
  .tech-card-info h4 {
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    word-break: break-word;
  }
  .tech-card-info p {
    font-size: 0.66rem;
    line-height: 1.3;
    opacity: 0.85;
  }
  .tech-spec-pill {
    font-size: 0.52rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: 0.2rem;
  }
  .tech-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    max-width: 100vw;
  }
  .tech-marquee-track span {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

/* ==========================================================================
   7. PRICING TIERS
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.6rem 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border-color: var(--text-main);
}

.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--text-main); color: var(--bg-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  padding: 0.25rem 0.9rem; border-radius: 12px;
}

/* ==========================================================================
   8. FAQ ACCORDION (2-COLUMN MODERN GLASSMORPHIC GRID)
   ========================================================================== */
.faq-section-wrapper {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  background: radial-gradient(circle at 10% 40%, rgba(168, 85, 247, 0.05) 0%, rgba(10, 8, 20, 0) 60%);
}

.faq-bg-glow {
  position: absolute;
  top: 40%; right: -10%;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
}

.faq-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
}

.faq-support-box {
  background: rgba(18, 16, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 16px;
  padding: 1.6rem;
  display: flex;
  gap: 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-support-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #A855F7;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.faq-whatsapp-btn {
  background: linear-gradient(135deg, #9333EA 0%, #2563EB 100%);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem; font-weight: 800;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.35);
  transition: all 0.25s ease;
}

.faq-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.55);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-card {
  background: rgba(18, 16, 38, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.faq-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #9333EA, #2563EB);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.faq-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(26, 23, 54, 0.75);
}

.faq-card.active {
  background: rgba(26, 23, 54, 0.9);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 10px 30px rgba(147, 51, 234, 0.15);
}

.faq-card.active::before {
  opacity: 1;
}

.faq-header {
  padding: 1.3rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: #A855F7;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.faq-card.active .faq-num {
  color: #FFFFFF;
  background: linear-gradient(135deg, #9333EA, #2563EB);
  border-color: transparent;
}

.faq-toggle-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.faq-card.active .faq-toggle-icon {
  transform: rotate(180deg);
  background: rgba(168, 85, 247, 0.2);
  color: #A855F7;
  border-color: rgba(168, 85, 247, 0.4);
}

.faq-body {
  padding: 0 1.5rem 1.4rem 3.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
  animation: fadeIn 0.3s ease;
}

.faq-card.active .faq-body {
  display: block;
}

/* Responsive Grid for Tablet / Mobile */
@media (max-width: 1024px) {
  .faq-grid-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2.6rem 2.2rem;
}

.form-group { margin-bottom: 1.3rem; text-align: left; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text-main); }
.form-input, .form-textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px; color: var(--text-main);
  font-family: 'Inter', sans-serif; font-size: 0.92rem; outline: none;
  transition: all 0.2s ease;
}
.form-input:focus, .form-textarea:focus { border-color: var(--text-main); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.main-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 2.5rem 0;
  font-size: 0.88rem;
}

.footer-logo-wrap {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.2rem;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transform: scale(2.4);
  transform-origin: left center;
  margin-left: 1.2rem;
  filter: brightness(2.8) contrast(1.6) drop-shadow(0 0 16px rgba(168, 85, 247, 0.95)) drop-shadow(0 0 30px rgba(147, 51, 234, 0.75));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.footer-logo-img:hover {
  transform: scale(2.6);
  filter: brightness(3.2) contrast(1.8) drop-shadow(0 0 24px rgba(168, 85, 247, 1)) drop-shadow(0 0 40px rgba(147, 51, 234, 0.9));
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.social-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

/* Instagram Glowing Gradient Icon */
.social-icon.social-instagram i {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(220, 39, 67, 0.6));
}
.social-icon.social-instagram:hover {
  background: rgba(220, 39, 67, 0.15);
  border-color: rgba(220, 39, 67, 0.6);
  transform: translateY(-5px) scale(1.12);
  box-shadow: 0 10px 25px rgba(220, 39, 67, 0.45);
}

/* Facebook Glowing Blue Icon */
.social-icon.social-facebook i {
  color: #1877F2;
  filter: drop-shadow(0 0 8px rgba(24, 119, 242, 0.6));
}
.social-icon.social-facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: rgba(24, 119, 242, 0.6);
  transform: translateY(-5px) scale(1.12);
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.45);
}

/* LinkedIn Glowing Blue Icon */
.social-icon.social-linkedin i {
  color: #0A66C2;
  filter: drop-shadow(0 0 8px rgba(10, 102, 194, 0.6));
}
.social-icon.social-linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.6);
  transform: translateY(-5px) scale(1.12);
  box-shadow: 0 10px 25px rgba(10, 102, 194, 0.45);
}

.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 3000; display: flex; flex-direction: column; gap: 0.8rem; }
.toast {
  background: var(--bg-card); color: var(--text-main);
  padding: 0.9rem 1.5rem; border-radius: 8px; font-size: 0.88rem;
  display: flex; align-items: center; gap: 0.85rem; box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   CUSTOM CYBER CURSOR & 3D PARTICLE CANVAS
   ========================================================================== */
#hero-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

.custom-cursor {
  width: 8px;
  height: 8px;
  background: #6366F1;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  box-shadow: 0 0 12px #6366F1;
}

.custom-cursor-follower {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, width 0.2s ease, height 0.2s ease;
}

/* ==========================================================================
   FLOATING AI ASSISTANT CHATBOT WIDGET STYLES
   ========================================================================== */
.ai-chat-badge {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 3500;
  background: rgba(18, 16, 38, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.75rem 1.4rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(99, 102, 241, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-badge:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 45px rgba(99, 102, 241, 0.35);
  background: var(--bg-card-hover);
}

.ai-badge-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseAiGlow 2s infinite;
}

@keyframes pulseAiGlow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ai-badge-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
}

/* AI Chatbot Popup Modal */
.ai-chat-modal {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 3600;
  width: 370px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-modal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-chat-header {
  padding: 1.2rem 1.4rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
}

.ai-chat-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.ai-chat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ai-chat-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ai-chat-close-btn:hover { color: var(--text-main); }

.ai-chat-messages {
  padding: 1.2rem;
  height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.chat-msg.bot-msg {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-msg.user-msg {
  background: #6366F1;
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-quick-questions {
  padding: 0.6rem 1rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.quick-q-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quick-q-btn:hover {
  background: var(--text-main);
  color: var(--bg-primary);
}

.ai-chat-input-row {
  padding: 0.8rem 1rem;
  display: flex;
  gap: 0.6rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.ai-chat-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.55rem 1rem;
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
}

.ai-chat-input:focus {
  border-color: #6366F1;
}

.ai-chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6366F1;
  border: none;
  color: #FFFFFF;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.ai-chat-send-btn:hover {
  transform: scale(1.1);
}

/* Mobile Navigation Hamburger & Drawer Overlay Styles */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mobile-menu-toggle:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(7, 6, 14, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 82vw;
  max-width: 340px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-hover);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
}

.mobile-nav-overlay.active .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.2rem;
}

.mobile-nav-logo {
  height: 38px;
  width: auto;
  transform: scale(1.6);
  transform-origin: left center;
  filter: brightness(2.8) contrast(1.6) drop-shadow(0 0 12px rgba(168, 85, 247, 0.9));
}

.mobile-nav-close {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
  display: block;
  padding: 0.4rem 0;
}

.mobile-nav-links a:hover {
  color: var(--accent-purple);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   ALL-DEVICE RESPONSIVE MEDIA QUERIES (DESKTOP, TABLET & MOBILE)
   ========================================================================== */

/* Tablets & Small Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0.8rem 1.5rem;
  }
  .nav-logo-img {
    transform: scale(1.8);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .faq-grid-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Mobiles & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .nav-brand {
    min-width: auto;
    margin-right: 0;
  }
  .main-nav {
    padding: 0.4rem 0.8rem;
    width: 95%;
    margin: 0 auto;
  }
  .nav-container {
    padding: 0.4rem 0.6rem;
  }
  .nav-logo-img {
    height: 44px;
    transform: scale(2.0);
    transform-origin: left center;
    margin-left: 0.8rem;
    filter: brightness(3.5) contrast(1.8) drop-shadow(0 0 20px rgba(168, 85, 247, 0.95)) drop-shadow(0 0 35px rgba(147, 51, 234, 0.85));
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .theme-toggle-btn {
    display: none !important;
  }
  .btn-nav-cta {
    display: none;
  }
  .hero-section {
    padding-top: 110px;
    padding-bottom: 40px;
  }
  .hero-pill-badge {
    max-width: 92vw;
    font-size: 0.68rem;
    padding: 0.4rem 0.6rem;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
  .hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.6rem);
    word-break: break-word;
  }
  .nav-links {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.9rem;
  }
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .hero-trust-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.8rem;
    align-items: stretch;
  }
  .hero-trust-card {
    padding: 0.75rem 0.4rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  .trust-icon-box {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    border-radius: 8px;
    flex-shrink: 0;
    margin-bottom: 0.15rem;
  }
  .trust-val {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    color: #FFFFFF;
    margin-bottom: 0.15rem;
  }
  .trust-sub {
    font-size: 0.58rem;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    margin-top: auto;
  }
  .pulse-dot {
    width: 5px;
    height: 5px;
    flex-shrink: 0;
    margin-top: 3px;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .service-card {
    padding: 1.1rem 0.9rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }
  .service-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
  }
  .service-icon-box {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .service-badge-pill {
    font-size: 0.55rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: right;
  }
  .service-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.45rem;
  }
  .service-card-desc {
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--text-muted);
    opacity: 0.9;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .service-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
  }
  .service-tech-tags span {
    font-size: 0.58rem;
    padding: 0.18rem 0.42rem;
    border-radius: 4px;
  }
  .service-card-link {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-top: auto;
    padding-top: 0.4rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-canvas-box {
    height: 220px !important;
    border-radius: 14px;
  }
  .counters-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 1.2rem;
  }
  .counter-card {
    padding: 0.85rem 0.4rem;
    border-radius: 10px;
  }
  .counter-num {
    font-size: 1.25rem;
    font-weight: 800;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .faq-support-box {
    padding: 1.1rem 0.9rem;
    gap: 0.8rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
  }
  .faq-support-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 9px;
  }
  .faq-support-box h4 {
    font-size: 0.92rem !important;
    margin-bottom: 0.2rem !important;
  }
  .faq-support-box p {
    font-size: 0.74rem !important;
    margin-bottom: 0.6rem !important;
  }
  .faq-whatsapp-btn {
    font-size: 0.74rem;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
  }
  .faq-header {
    padding: 0.9rem 0.8rem;
  }
  .faq-title-wrap {
    font-size: 0.85rem;
  }
  .faq-num {
    font-size: 0.7rem;
  }
  .faq-body {
    padding: 0 0.8rem 0.9rem 0.8rem;
    font-size: 0.76rem;
    line-height: 1.45;
  }
  .portfolio-grid {
    grid-template-columns: 1fr !important;
  }
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .process-step-card {
    padding: 1.1rem 0.85rem;
    border-radius: 14px;
  }
  .timeline-step-header {
    margin-bottom: 0.7rem;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .timeline-step-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
  }
  .step-phase-tag {
    font-size: 0.58rem;
  }
  .timeline-icon-box {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
  }
  .step-title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }
  .step-desc {
    font-size: 0.72rem;
    line-height: 1.35;
    margin-bottom: 0.6rem;
  }
  .step-features-mini {
    gap: 0.3rem;
  }
  .step-features-mini span {
    font-size: 0.58rem;
    padding: 0.18rem 0.4rem;
  }
  .process-laser-line {
    display: none;
  }
  #contact, footer {
    padding-bottom: 6.5rem !important;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .contact-card {
    padding: 1.2rem 1rem;
    border-radius: 14px;
  }
  .btn-whatsapp-submit {
    padding: 0.95rem 1.4rem;
    font-size: 0.88rem;
  }
  .portfolio-filter-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .ai-chat-modal {
    width: 92vw;
    right: 4vw;
    left: 4vw;
    bottom: 5rem;
  }
  .footer-logo-img {
    transform: scale(1.2);
  }
  .connect-ceo-floating-btn {
    bottom: 0.5rem !important;
    right: 0.5rem !important;
    left: auto !important;
    height: 30px !important;
    padding: 0 0.55rem 0 0.2rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    border-radius: 30px !important;
    z-index: 5000 !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(37, 211, 102, 0.35);
  }
  .ceo-avatar-wrap {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0;
  }
  .ceo-title {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .ceo-label {
    display: none !important;
  }
  .ceo-pulse-dot {
    display: none !important;
  }
  .ai-chat-badge-right {
    bottom: 3.8rem !important;
    right: 0.5rem !important;
    left: auto !important;
    height: 26px !important;
    padding: 0 0.55rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    border-radius: 20px !important;
    z-index: 5001 !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.35);
  }
  .ai-badge-icon {
    font-size: 0.68rem !important;
  }
  .ai-badge-text-compact {
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }
  .ai-badge-pulse {
    display: none !important;
  }
  footer .container > div:last-child {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.8rem !important;
  }
  footer .container > div:last-child > div {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
  }
  footer .container > div:last-child a {
    white-space: nowrap !important;
  }
}

/* Extra Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .service-card {
    padding: 0.95rem 0.75rem;
  }
  .service-card-title {
    font-size: 0.88rem;
  }
  .service-card-desc {
    font-size: 0.68rem;
    -webkit-line-clamp: 2;
  }
  .service-badge-pill {
    font-size: 0.5rem;
    padding: 0.15rem 0.35rem;
  }
  .about-canvas-box {
    height: 190px !important;
  }
  .counter-num {
    font-size: 1.1rem;
  }
  .counter-label {
    font-size: 0.6rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .process-step-card {
    padding: 0.95rem 0.7rem;
  }
  .step-title {
    font-size: 0.88rem;
  }
  .step-desc {
    font-size: 0.68rem;
  }
  .tech-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .tech-matrix-card {
    padding: 0.85rem 0.65rem;
  }
  .tech-card-info h4 {
    font-size: 0.82rem;
  }
  .tech-card-info p {
    font-size: 0.64rem;
  }
  .footer-logo-img {
    transform: scale(1.1);
  }
  .footer-social-wrapper {
    justify-content: center;
  }
}

/* ==========================================================================
   WHATSAPP DIRECT INTEGRATION STYLES
   ========================================================================== */
.btn-whatsapp-submit {
  width: 100%;
  padding: 1.1rem 2rem;
  background: linear-gradient(135deg, #9333EA 0%, #2563EB 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.4);
}

.btn-whatsapp-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(147, 51, 234, 0.6);
  background: linear-gradient(135deg, #A855F7 0%, #3B82F6 100%);
}

/* ==========================================================================
   FLOATING CONNECT CEO DIRECT ACCESS BUTTON
   ========================================================================== */
.connect-ceo-floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 5000;
  background: rgba(14, 11, 32, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 211, 102, 0.5);
  padding: 0.55rem 1.4rem 0.55rem 0.75rem;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(37, 211, 102, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.connect-ceo-floating-btn:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: #25D366;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6), 0 0 40px rgba(37, 211, 102, 0.5);
  background: rgba(20, 16, 45, 0.98);
}

.ceo-pulse-dot {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 10px #25D366;
  animation: pulseCeoDot 2s infinite;
  z-index: 2;
}

@keyframes pulseCeoDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.ceo-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #25D366;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
  flex-shrink: 0;
  position: relative;
}

.ceo-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.ceo-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ceo-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 800;
  color: #25D366;
  letter-spacing: 0.08em;
}

.ceo-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
}

.ceo-tooltip {
  position: absolute;
  bottom: 120%;
  right: 0;
  background: rgba(18, 16, 38, 0.95);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid rgba(37, 211, 102, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.connect-ceo-btn:hover .ceo-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   COMPACT FLOATING ASK CODYEX AI BUTTON (RIGHT SIDE)
   ========================================================================== */
.ai-chat-badge-right {
  position: fixed;
  bottom: 2.15rem;
  right: 15rem;
  z-index: 5000;
  background: rgba(14, 11, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(168, 85, 247, 0.4);
  padding: 0.55rem 1.15rem 0.55rem 0.85rem;
  border-radius: 35px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(147, 51, 234, 0.25);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-badge-right:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(168, 85, 247, 0.8);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.4);
  background: rgba(22, 17, 48, 0.98);
}

.ai-badge-icon {
  font-size: 1.15rem;
  color: #a855f7;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.8));
}

.ai-badge-text-compact {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  color: #FFFFFF;
}
