/* ============================================
   HummingBit — Innovative Solutions
   Modern Parallax Website Styles
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --teal-dark: #0b4a6f;
  --teal: #1a6a8a;
  --teal-light: #3a9ec9;
  --cyan: #5bc0eb;
  --green: #2fb5c9;
  --green-light: #7dcce3;
  --bird-gradient: linear-gradient(180deg, #5bc0eb, #3a9ec9, #0b4a6f);
  --dark: #0a0f1a;
  --dark-surface: #111827;
  --dark-card: #1a2332;
  --dark-border: #243044;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--teal-light), var(--cyan));
  --gradient-reverse: linear-gradient(135deg, var(--cyan), var(--teal-light));
  --gradient-dark: linear-gradient(135deg, var(--teal-dark), var(--teal));
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(58,158,201,0.25);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#preloaderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


/* --- Flying Bird --- */
.flying-bird {
  position: absolute;
  z-index: 3;
  width: 80px;
  height: 56px;
  left: -100px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  animation: birdFly 3.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.8s both;
  filter: drop-shadow(0 0 14px rgba(91, 192, 235, 0.6))
         drop-shadow(0 0 30px rgba(26, 154, 122, 0.3));
}

@keyframes birdFly {
  0% {
    left: -100px;
    top: 55%;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  20% {
    top: 40%;
  }
  40% {
    top: 54%;
  }
  55% {
    top: 43%;
    left: 50%;
  }
  70% {
    top: 50%;
  }
  85% {
    top: 44%;
  }
  95% {
    opacity: 1;
  }
  100% {
    left: calc(100% + 100px);
    top: 47%;
    opacity: 0;
  }
}

.bird-svg {
  width: 100%;
  height: 100%;
}

.bird-wing {
  transform-origin: 42px 28px;
  animation: wingFlap 0.08s ease-in-out infinite alternate;
}

@keyframes wingFlap {
  0% {
    d: path("M40 30 Q42 10 60 4 Q50 16 44 28Z");
    opacity: 0.9;
  }
  100% {
    d: path("M40 34 Q42 46 60 56 Q50 42 44 34Z");
    opacity: 0.7;
  }
}

.bird-wing-detail {
  transform-origin: 42px 28px;
  animation: wingFlap 0.08s ease-in-out infinite alternate;
}

/* Bird glow aura */
.bird-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91, 192, 235, 0.4) 0%, rgba(58, 158, 201, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 0.6s ease-in-out infinite alternate;
}

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

/* Trail particles */
.bird-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.trail-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: trailFade 0.8s ease-out forwards;
}

@keyframes trailFade {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.2) translateY(10px);
  }
}

/* Glow streak behind bird */
.flying-bird::after {
  content: '';
  position: absolute;
  right: 55%;
  top: 40%;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(91, 192, 235, 0.1), rgba(91, 192, 235, 0.5), rgba(125, 204, 227, 0.8));
  border-radius: 4px;
  filter: blur(2px);
  animation: streakPulse 0.3s ease-in-out infinite alternate;
}

@keyframes streakPulse {
  0% { opacity: 0.6; width: 100px; }
  100% { opacity: 1; width: 140px; }
}

/* --- Loader brand text --- */
.loader-text {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translate(-50%, 0) scale(1);
  z-index: 4;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: textSlideUp 1.2s ease-out 2.5s both;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 12px;
}

.loader-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.loader-humming {
  background: linear-gradient(135deg, #5bc0eb, #3a9ec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bit {
  color: var(--text-primary);
}

/* Slide up from bottom to center */
@keyframes textSlideUp {
  0% {
    opacity: 0;
    bottom: 18%;
    transform: translate(-50%, 0) scale(1);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    bottom: 50%;
    transform: translate(-50%, 50%) scale(1);
  }
}

/* Shrink down and fade */
@keyframes textZoomOut {
  0% {
    opacity: 1;
    transform: translate(-50%, 50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 50%) scale(0);
  }
}

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 28px 0;
  transition: var(--transition);
  overflow-x: hidden;
}

#navbar.scrolled {
  padding: 16px 0;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-logo-img {
  width: 60px;
  height: 60px;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.1) rotate(-5deg);
}

.logo-text {
  display: inline;
}

.logo-humming {
  color: #3a9ec9;
}

.logo-bit {
  color: var(--white);
}

/* Scrolled state: lighten the logo and shrink bird */
#navbar.scrolled .logo-humming {
  color: #3a9ec9;
}

#navbar.scrolled .nav-logo-img {
  width: 60px;
  height: 60px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 12px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  background: var(--gradient);
  color: var(--dark) !important;
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-size: 1.05rem;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 191, 160, 0.3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Utility ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 16px;
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(59, 191, 160, 0.3);
}

.btn-outline {
  border: 2px solid var(--dark-border);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- Parallax ---------- */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}

/* Hero parallax bg */
#hero .parallax-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 191, 160, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(77, 216, 180, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(11, 74, 111, 0.25) 0%, transparent 60%),
    linear-gradient(rgba(10, 15, 26, 0.82), rgba(10, 15, 26, 0.9)),
    url('../images/bg-hero.jpg') center/cover no-repeat,
    var(--dark);
}

.parallax-bg-services {
  background:
    linear-gradient(rgba(10, 15, 26, 0.88), rgba(17, 24, 39, 0.92)),
    radial-gradient(ellipse at 70% 30%, rgba(26, 138, 125, 0.08) 0%, transparent 50%),
    url('../images/bg-services.jpg') center/cover no-repeat,
    var(--dark-surface);
  background-blend-mode: normal, normal, luminosity;
}

.parallax-bg-process {
  background:
    linear-gradient(rgba(10, 15, 26, 0.9), rgba(10, 15, 26, 0.94)),
    radial-gradient(ellipse at 30% 60%, rgba(124, 194, 67, 0.06) 0%, transparent 50%),
    url('../images/bg-process.jpg') center/cover no-repeat,
    var(--dark);
  background-blend-mode: normal, normal, luminosity;
}

.parallax-bg-testimonials {
  background:
    linear-gradient(rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.94)),
    radial-gradient(ellipse at 50% 40%, rgba(59, 191, 160, 0.08) 0%, transparent 50%),
    url('../images/bg-testimonials.jpg') center/cover no-repeat,
    var(--dark-surface);
  background-blend-mode: normal, normal, luminosity;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--teal-light);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-200px) scale(0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-light);
  border: 1px solid rgba(59, 191, 160, 0.3);
  border-radius: 50px;
  margin-bottom: 32px;
  background: rgba(59, 191, 160, 0.05);
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-title .line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  min-height: 3.5em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 80px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeInUp 1s ease-out 1s both;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--teal-light);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-stack {
  position: relative;
  height: 480px;
}

.about-img-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(125, 204, 227, 0.15);
}

.about-img-card .about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 74, 111, 0.45) 0%, rgba(10, 15, 26, 0.85) 100%);
  z-index: 1;
  transition: var(--transition);
}

.about-img-card:hover .about-img-overlay {
  background: linear-gradient(160deg, rgba(11, 74, 111, 0.25) 0%, rgba(10, 15, 26, 0.65) 100%);
}

.about-img-card .about-img-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.about-img-card .about-img-label i {
  font-size: 2.25rem;
  color: var(--cyan);
  filter: drop-shadow(0 2px 8px rgba(91, 192, 235, 0.5));
}

.about-img-card:hover {
  transform: translateY(-8px) !important;
  animation: bounceOnce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-1 {
  width: 200px;
  height: 200px;
  top: 0;
  left: 0;
}

.card-2 {
  width: 220px;
  height: 220px;
  top: 40px;
  right: 0;
}

.card-3 {
  width: 200px;
  height: 200px;
  bottom: 0;
  left: 60px;
}

.floating-badge {
  position: absolute;
  bottom: 60px;
  right: 20px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: floatBadge 3s ease-in-out infinite;
}

.floating-badge i {
  color: var(--green);
  font-size: 1.4rem;
}

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

.about-text {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  color: var(--green);
  font-size: 1.2rem;
  margin-top: 2px;
}

.feature h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--white);
}

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

/* ---------- Services ---------- */
.services-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(26, 35, 50, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 191, 160, 0.3);
  box-shadow: var(--shadow-glow);
}

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

.service-card.featured {
  border-color: rgba(59, 191, 160, 0.3);
  background: rgba(59, 191, 160, 0.05);
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-thumb {
  position: relative;
  height: 160px;
  margin: -40px -32px 0;
  background-size: cover;
  background-position: center;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.service-thumb-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 74, 111, 0.35) 0%,
    rgba(26, 35, 50, 0.7) 55%,
    rgba(26, 35, 50, 0.98) 100%
  );
  transition: opacity var(--transition);
}

.service-card.featured .service-thumb-tint {
  background: linear-gradient(
    180deg,
    rgba(59, 191, 160, 0.2) 0%,
    rgba(26, 35, 50, 0.65) 55%,
    rgba(26, 35, 50, 0.96) 100%
  );
}

.service-card:hover .service-thumb-tint {
  opacity: 0.75;
}

.service-card:hover .service-thumb {
  filter: brightness(1.08);
}

.service-badge {
  z-index: 3;
}

.service-icon-wrap {
  position: relative;
  margin-top: -32px;
  margin-bottom: 24px;
  z-index: 2;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 191, 160, 0.1);
  border-radius: var(--radius-sm);
  color: var(--teal-light);
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient);
  color: var(--dark);
}

.service-glow {
  position: absolute;
  top: 50%;
  left: 32px;
  width: 60px;
  height: 60px;
  background: var(--teal-light);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity var(--transition);
}

.service-card:hover .service-glow {
  opacity: 0.15;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-tags li {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: rgba(59, 191, 160, 0.1);
  border: 1px solid rgba(59, 191, 160, 0.15);
  border-radius: 50px;
  color: var(--teal-light);
  font-weight: 500;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal-light);
  position: relative;
  z-index: 1;
}

.service-link:hover {
  gap: 12px;
  color: var(--green);
}

/* ---------- Tech Marquee ---------- */
.tech-marquee {
  padding: 40px 0;
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  overflow: hidden;
}

.marquee-track {
  overflow: hidden;
}

.marquee-content {
  display: flex;
  gap: 48px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-content span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

.marquee-content span:hover {
  color: var(--teal-light);
}

.marquee-content span i {
  font-size: 1.4rem;
}

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

/* ---------- Work / Portfolio ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 360px;
  cursor: pointer;
  transition: var(--transition);
}

.work-card-large {
  grid-column: span 2;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.work-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
  z-index: 0;
}

.work-card-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity var(--transition);
  pointer-events: none;
}

.work-card:hover .work-card-bg {
  transform: scale(1.08);
}

.work-card:hover .work-card-tint {
  opacity: 0.75;
}

.work-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  z-index: 2;
}

.work-category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  margin-bottom: 8px;
}

.work-card h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.work-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.work-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work-tech span {
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 500;
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.05);
  z-index: 1;
  transition: var(--transition);
}

.work-card:hover .work-card-overlay {
  color: rgba(255,255,255,0.08);
}

/* ---------- Process ---------- */
.process-section {
  padding: 120px 0;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--dark-border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 2px solid var(--dark-border);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-light);
  margin-bottom: 24px;
  transition: var(--transition);
}

.process-step:hover .process-number {
  background: var(--gradient);
  color: var(--dark);
  border-color: transparent;
  animation: bounceOnce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-content h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.process-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 191, 160, 0.3);
  box-shadow: var(--shadow-glow);
}

.team-avatar {
  margin-bottom: 20px;
  width: 120px;
  height: 120px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  padding: 3px;
  background: linear-gradient(135deg, var(--teal-light), var(--cyan));
  box-shadow: 0 8px 24px rgba(11, 74, 111, 0.4);
  transition: var(--transition);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-avatar img {
  transform: scale(1.08);
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 191, 160, 0.2), rgba(124, 194, 67, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--teal-light);
  font-size: 2.5rem;
}

.team-card h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--teal-light);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.team-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.team-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 191, 160, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.team-socials a:hover {
  background: var(--gradient);
  color: var(--dark);
}

/* ---------- Testimonials ---------- */
.testimonials-section {
  padding: 120px 0;
}

.testimonials-slider {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  display: none;
  background: rgba(26, 35, 50, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.testimonial-card.active {
  display: block;
}

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

.testimonial-stars {
  margin-bottom: 24px;
  color: #f59e0b;
  font-size: 1.1rem;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.testimonial-card blockquote {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.author-avatar {
  color: var(--teal-light);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  padding: 2px;
  background: linear-gradient(135deg, var(--teal-light), var(--cyan));
  box-shadow: 0 4px 12px rgba(11, 74, 111, 0.35);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.testimonial-author strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dark-border);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dots .dot.active {
  background: var(--teal-light);
  width: 32px;
  border-radius: 5px;
}

/* ---------- Pricing ---------- */
.pricing-section {
  position: relative;
  overflow: hidden;
}

.pricing-section::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 191, 160, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.pricing-section::after {
  content: '';
  position: absolute;
  bottom: 5%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 192, 235, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.pricing-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 56px;
  padding: 6px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 50px;
  position: relative;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
}

.pricing-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.pricing-tab i {
  font-size: 1rem;
}

.pricing-tab:hover {
  color: var(--text-primary);
}

.pricing-tab.active {
  background: var(--gradient);
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(58, 158, 201, 0.35);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.pricing-grid[hidden] {
  display: none;
}

.pricing-card {
  position: relative;
  background: rgba(26, 35, 50, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 191, 160, 0.3);
  box-shadow: var(--shadow-glow);
}

.pricing-card:hover::before {
  opacity: 0.03;
}

.pricing-card.featured {
  background: rgba(59, 191, 160, 0.06);
  border-color: rgba(59, 191, 160, 0.4);
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(11, 74, 111, 0.5);
}

.pricing-card.featured:hover {
  transform: translateY(-18px);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gradient);
  color: var(--dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  z-index: 2;
}

.pricing-header {
  position: relative;
  z-index: 1;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--dark-border);
}

.pricing-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 191, 160, 0.1);
  border-radius: var(--radius-sm);
  color: var(--teal-light);
  font-size: 1.4rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.pricing-card:hover .pricing-icon {
  background: var(--gradient);
  color: var(--dark);
}

.pricing-card h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
}

.pricing-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.price-prefix {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-currency {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--teal-light);
  font-weight: 700;
}

.price-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-timeline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.pricing-timeline i {
  color: var(--teal-light);
}

.pricing-features {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.pricing-features li i {
  font-size: 0.85rem;
  color: var(--teal-light);
  margin-top: 4px;
  flex-shrink: 0;
}

.pricing-features li.muted {
  color: var(--text-muted);
  opacity: 0.55;
}

.pricing-features li.muted i {
  color: var(--text-muted);
}

.pricing-features li em {
  font-style: italic;
  color: var(--text-muted);
  margin: 0 2px;
}

.pricing-card .btn {
  position: relative;
  z-index: 1;
}

.pricing-note {
  margin: 56px auto 0;
  max-width: 720px;
  padding: 20px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(26, 35, 50, 0.5);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

.pricing-note i {
  color: var(--teal-light);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-note p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.pricing-note strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 191, 160, 0.1);
  border-radius: var(--radius-sm);
  color: var(--teal-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.contact-socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.contact-socials a:hover {
  background: var(--gradient);
  color: var(--dark);
  border-color: transparent;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.form-group select {
  width: 100%;
  padding: 16px 20px;
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(58,158,201,0.15), 0 0 20px rgba(58,158,201,0.08);
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 20px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 14px;
  font-size: 0.8rem;
  color: var(--teal-light);
  background: var(--dark-card);
  padding: 0 6px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-surface);
  border-top: 1px solid var(--dark-border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

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

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

.footer-links li:not(:has(a)) {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--dark-border);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--teal-light);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--dark);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(59, 191, 160, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ---------- Circuit Canvas ---------- */
.circuit-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ---------- Code Rain ---------- */
.hero-code-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.06;
}

.code-column {
  position: absolute;
  top: -100%;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--teal-light);
  writing-mode: vertical-rl;
  animation: codeRainFall linear infinite;
  text-shadow: 0 0 8px var(--teal-light);
}

@keyframes codeRainFall {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(calc(100vh + 100%)); }
}

/* ---------- Floating Tech Icons ---------- */
.hero-floating-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-icon {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 1.5rem;
  color: var(--teal-light);
  opacity: 0.12;
  animation: floatIcon var(--dur) ease-in-out infinite;
  animation-delay: var(--del);
}

@keyframes floatIcon {
  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.12; }
  75% { transform: translateY(-25px) rotate(8deg); opacity: 0.1; }
}

/* ---------- Badge Pulse ---------- */
.badge-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  animation: pulseGlow 2s ease-in-out infinite;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan); }
  50% { opacity: 0.6; box-shadow: 0 0 20px var(--cyan); }
}

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

/* ---------- Glitch Text Effect ---------- */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  overflow: hidden;
  pointer-events: none;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #5bc0eb;
  clip-path: inset(0 0 0 0);
  animation: glitch1 4s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: var(--gradient);
  background-clip: text;
}

.glitch::after {
  left: -2px;
  text-shadow: 2px 0 #3a9ec9;
  clip-path: inset(0 0 0 0);
  animation: glitch2 4s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background: var(--gradient);
  background-clip: text;
}

@keyframes glitch1 {
  0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: none; }
  92% { clip-path: inset(30% 0 40% 0); transform: translate(3px, -2px); }
  94% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 2px); }
  96% { clip-path: inset(10% 0 70% 0); transform: translate(2px, 1px); }
  98% { clip-path: inset(50% 0 20% 0); transform: translate(-2px, -1px); }
}

@keyframes glitch2 {
  0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: none; }
  91% { clip-path: inset(45% 0 25% 0); transform: translate(-3px, 2px); }
  93% { clip-path: inset(15% 0 55% 0); transform: translate(3px, -1px); }
  95% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 2px); }
  97% { clip-path: inset(25% 0 50% 0); transform: translate(2px, -2px); }
}

/* ---------- Typing Cursor ---------- */
.hero-subtitle .cursor {
  display: inline-block;
  color: var(--cyan);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}

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

/* ---------- Digital Grid Background ---------- */
.digital-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,158,201,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,158,201,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---------- Morphing Blobs ---------- */
.morphing-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(58,158,201,0.12) 0%, transparent 70%);
  animation: morphBlob1 12s ease-in-out infinite;
}

.blob-2 {
  width: 350px;
  height: 350px;
  bottom: -50px;
  left: -80px;
  background: radial-gradient(circle, rgba(91,192,235,0.1) 0%, transparent 70%);
  animation: morphBlob2 15s ease-in-out infinite;
}

@keyframes morphBlob1 {
  0%, 100% { border-radius: 50% 40% 60% 50%; transform: translate(0, 0) scale(1); }
  25% { border-radius: 40% 60% 50% 45%; transform: translate(30px, -20px) scale(1.1); }
  50% { border-radius: 55% 45% 40% 60%; transform: translate(-20px, 30px) scale(0.9); }
  75% { border-radius: 45% 55% 55% 40%; transform: translate(20px, 10px) scale(1.05); }
}

@keyframes morphBlob2 {
  0%, 100% { border-radius: 40% 60% 50% 45%; transform: translate(0, 0) rotate(0deg); }
  33% { border-radius: 55% 40% 60% 50%; transform: translate(40px, -30px) rotate(10deg); }
  66% { border-radius: 50% 50% 40% 55%; transform: translate(-30px, 20px) rotate(-5deg); }
}

/* ---------- Scan Lines ---------- */
.scan-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    transparent,
    transparent 2px,
    rgba(58,158,201,0.015) 2px,
    rgba(58,158,201,0.015) 4px
  );
  animation: scanMove 10s linear infinite;
}

@keyframes scanMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* ---------- Data Stream ---------- */
.data-stream {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.data-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--teal-light);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--teal-light), 0 0 12px rgba(58,158,201,0.3);
  animation: streamDot linear infinite;
}

@keyframes streamDot {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  10% { opacity: 0.8; transform: scale(1); }
  90% { opacity: 0.4; }
  100% { transform: translateY(100vh) scale(0); opacity: 0; }
}

/* ---------- Animated Card Borders ---------- */
.service-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-md);
  background: conic-gradient(from var(--border-angle, 0deg), transparent 60%, var(--teal-light) 80%, var(--cyan) 90%, transparent 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
  animation: rotateBorder 4s linear infinite;
}

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

@keyframes rotateBorder {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Neon Glow Pulse on Stats ---------- */
.stat-number {
  animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(58,158,201,0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(91,192,235,0.6)); }
}

/* ---------- Service Icon Pulse Rings ---------- */
.service-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--teal-light);
  opacity: 0;
  animation: iconPulse 3s ease-out infinite;
}

.service-card:hover .service-icon::after {
  animation: none;
  opacity: 0;
}

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

/* ---------- Work Card Hover Shimmer ---------- */
.work-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(91,192,235,0.08), transparent);
  z-index: 3;
  transition: none;
  pointer-events: none;
}

.work-card:hover::after {
  animation: shimmer 1s ease-out;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* ---------- Process Number Orbit ---------- */
.process-number {
  position: relative;
  overflow: visible;
}

.process-number::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  top: -4px;
  left: 50%;
  transform-origin: 50% 44px;
  animation: orbit 3s linear infinite;
  opacity: 0;
}

.process-step:hover .process-number::before {
  opacity: 1;
}

@keyframes orbit {
  0% { transform: rotate(0deg) translateX(44px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(44px) rotate(-360deg); }
}

/* ---------- Team Card Hologram Effect ---------- */
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(
    135deg,
    rgba(58,158,201,0) 0%,
    rgba(58,158,201,0.05) 45%,
    rgba(91,192,235,0.1) 50%,
    rgba(58,158,201,0.05) 55%,
    rgba(58,158,201,0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 0;
}

.team-card:hover::before {
  opacity: 1;
  animation: hologramSweep 2s ease-in-out infinite;
}

@keyframes hologramSweep {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.team-card {
  position: relative;
  overflow: hidden;
}

/* ---------- Gradient Text Animation ---------- */
.gradient-text {
  background-size: 200% auto;
  animation: gradientShift 4s ease-in-out infinite;
}

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

/* ---------- Footer Glow Line ---------- */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-light), var(--cyan), var(--teal-light), transparent);
  animation: glowLine 3s ease-in-out infinite;
}

.footer {
  position: relative;
}

@keyframes glowLine {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---------- Tech Marquee Glow ---------- */
.marquee-content span i {
  transition: var(--transition);
}

.marquee-content span:hover i {
  text-shadow: 0 0 10px var(--teal-light), 0 0 20px rgba(58,158,201,0.3);
}

/* ---------- Reveal Animations ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
}

.reveal-up {
  transform: translateY(60px);
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-up.revealed {
  animation: bounceInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.reveal-left.revealed {
  animation: bounceInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.reveal-right.revealed {
  animation: bounceInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes bounceInUp {
  0% { opacity: 0; transform: translateY(60px); }
  50% { opacity: 1; transform: translateY(-12px); }
  70% { transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounceInLeft {
  0% { opacity: 0; transform: translateX(-60px); }
  50% { opacity: 1; transform: translateX(12px); }
  70% { transform: translateX(-6px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes bounceInRight {
  0% { opacity: 0; transform: translateX(60px); }
  50% { opacity: 1; transform: translateX(-12px); }
  70% { transform: translateX(6px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes bounceOnce {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  50% { transform: scale(0.95); }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* ---------- Mouse Trail ---------- */
.mouse-trail-dot {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: var(--teal-light);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: width 0.2s, height 0.2s;
}

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

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card-large {
    grid-column: span 2;
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process-timeline::before {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 12px 0;
  }

  #navbar.scrolled {
    padding: 8px 0;
  }

  .nav-container {
    padding: 0 16px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .nav-logo {
    font-size: 1.3rem;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  #navbar.scrolled .nav-logo-img {
    width: 32px;
    height: 32px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark-surface);
    flex-direction: column;
    padding: 80px 24px 32px;
    gap: 4px;
    transition: transform var(--transition);
    border-left: 1px solid var(--dark-border);
    transform: translateX(100%);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
  }

  .nav-cta {
    text-align: center;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-stack {
    height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .about-img-card {
    position: static;
    width: 100% !important;
    height: 150px !important;
  }

  .card-1, .card-2, .card-3 {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .floating-badge {
    position: static;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card-large {
    grid-column: span 1;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }

  .pricing-tabs {
    width: 100%;
    left: 0;
    transform: none;
  }

  .pricing-tab {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
  }

  .pricing-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.2rem;
    gap: 6px;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  #navbar.scrolled .nav-logo-img {
    width: 30px;
    height: 30px;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-form-wrap {
    padding: 32px 20px;
  }

  .section {
    padding: 80px 0;
  }
}
