@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-inter: 'Inter', sans-serif;
  --font-outfit: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Eliminate Cumulative Layout Shift (CLS) for dynamic components */
#header-container {
  min-height: 104px;
  display: block;
}
@media (max-width: 639px) {
  #header-container {
    min-height: 65px;
  }
}

#footer-container {
  min-height: 380px;
  display: block;
}

body {
  background-color: #030712;
  color: #f1f5f9;
  font-family: var(--font-inter);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-outfit);
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Premium Grids and Backgrounds (GPU accelerated) */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  transform: translateZ(0);
}

.bg-dot-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: translateZ(0);
}

/* Glassmorphism & Cards */
.glass-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(10, 16, 32, 0.85) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transform: translateZ(0);
}

.glass-card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  will-change: transform;
}

.glass-card-hover:hover {
  background: linear-gradient(135deg, rgba(20, 32, 60, 0.9) 0%, rgba(15, 23, 45, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px rgba(0, 102, 255, 0.3), 0 0 25px -5px rgba(59, 130, 246, 0.2);
}

/* Ultra-Premium Gradient Texts */
.text-gradient-primary {
  background: linear-gradient(to right, #ffffff, #f1f5f9, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-glow {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ultra-Premium Glass Panels */
.glass-panel {
  background: rgba(10, 16, 32, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-panel-hover:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Ultra-Premium Glow Borders */
.border-glow-blue {
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 25px -5px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.border-glow-cyan {
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 25px -5px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.border-highlight-top {
  position: relative;
}
.border-highlight-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.6), transparent);
}

/* Shimmer Button */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}
.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.18) 25%,
    transparent 30%
  );
  transform: rotate(30deg);
  animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
  0% { transform: translate(-100%, -100%) rotate(30deg); }
  100% { transform: translate(100%, 100%) rotate(30deg); }
}

/* Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Subtle Tilt & 3D Cards */
.tilt-card {
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
  transform-style: preserve-3d;
}

.tilt-card:hover {
  transform: translateY(-4px) scale(1.01);
}

/* Testimonial & Comparison Cards */
.testimonial-card-motion {
  transition: transform 350ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 350ms ease, border-color 350ms ease;
}

.testimonial-card-motion:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -15px rgba(0, 102, 255, 0.25);
}

.testimonial-card-glow {
  opacity: 0.35;
  transition: opacity 350ms ease, transform 350ms ease;
}

.testimonial-card-motion:hover .testimonial-card-glow {
  opacity: 0.8;
  transform: scale(1.15);
}

.spotlight-text {
  transition: color 350ms ease, text-shadow 350ms ease;
}

.spotlight-text:hover {
  color: #f8fbff;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.3), 0 0 28px rgba(56, 189, 248, 0.18);
}

/* =========================================================
   EXACT NESTJS 3D BOUNCE CARDS SYSTEM (https://nestjs.com)
========================================================= */
.custom-bounceCards-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  padding: 0 16px;
}

.custom-bounceCards {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 350px;
}

.nestjs-card {
  position: absolute;
  width: 250px;
  height: 270px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  border-radius: 22px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, z-index 0s;
  will-change: transform;
}

.nestjs-card-inner {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 22px;
}

.nestjs-border-glow {
  padding: 1px;
  background: linear-gradient(to top, #1a1a1a, #7c7c7c);
  border-radius: 24px;
  display: flex;
  width: 100%;
  height: 100%;
  transition: background 0.3s ease;
}

.nestjs-card:hover .nestjs-border-glow,
.nestjs-card._hovered .nestjs-border-glow {
  background: linear-gradient(to top, #3b82f6, #e2e8f0);
}

.nestjs-card-container {
  background: linear-gradient(to bottom, #32336f, #0e0e0e);
  border-radius: 23px;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  transition: background 0.3s ease-in-out;
}

.nestjs-card:hover .nestjs-card-container,
.nestjs-card._hovered .nestjs-card-container {
  background: linear-gradient(to bottom, #3e1683, #0e0e0e);
}

.nestjs-card-container::before {
  content: "";
  background-image: url('assets/noise.png');
  opacity: 0.65;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 23px;
}

.nestjs-card-container::after {
  content: "";
  border-radius: 23px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: 
    linear-gradient(#b8b8b8 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), #b8b8b8 calc(100% - 0.5px)),
    linear-gradient(90deg, #b8b8b8 0.5px, transparent 0.5px, transparent calc(100% - 0.5px), #b8b8b8 calc(100% - 0.5px));
  opacity: 0.12;
}

.nestjs-card-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #ffffff;
  position: relative;
  z-index: 10;
  background-color: rgba(32, 20, 70, 0.05);
}

.nestjs-card-icon-wrap {
  width: 75px;
  height: 75px;
  aspect-ratio: 1 / 1;
  align-self: center;
  margin-top: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7));
  transition: transform 0.35s ease;
}

.nestjs-card:hover .nestjs-card-icon-wrap,
.nestjs-card._hovered .nestjs-card-icon-wrap {
  transform: scale(1.12) translateY(-4px);
}

.nestjs-card-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.nestjs-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #ffffff;
  font-family: var(--font-outfit);
  letter-spacing: -0.01em;
}

.nestjs-card-desc {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #94a3b8;
  opacity: 0.85;
  max-width: 250px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .custom-bounceCards-container {
    height: 360px;
    padding: 0 10px;
  }
  .custom-bounceCards {
    height: 300px;
  }
  .nestjs-card {
    width: 210px;
    height: 235px;
  }
  .nestjs-card-icon-wrap {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
  }
  .nestjs-card-content {
    padding: 20px 14px;
  }
  .nestjs-card-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 640px) {
  .custom-bounceCards-container {
    height: 330px;
    padding: 0 8px;
  }
  .custom-bounceCards {
    height: 270px;
  }
  .nestjs-card {
    width: 180px;
    height: 205px;
  }
  .nestjs-card-icon-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    margin-top: 4px;
  }
  .nestjs-card-content {
    padding: 14px 10px;
  }
  .nestjs-card-title {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }
}

/* =========================================================
   MODERN PREMIUM 3D ANIMATION ENGINE STYLES
   ========================================================= */

/* Three.js 3D Canvas in Hero */
#hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  mix-blend-mode: screen;
}

/* 3D Perspective and Transform Containers */
.perspective-1000 {
  perspective: 1000px;
}

.perspective-1500 {
  perspective: 1500px;
}

.preserve-3d {
  transform-style: preserve-3d;
}

/* 3D Tilt Card Base & Glare */
[data-tilt-3d] {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.tilt-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  z-index: 25;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: overlay;
}

/* 3D Depth Utilities for child elements */
[data-tilt-depth] {
  will-change: transform;
  transform-style: preserve-3d;
}

.translate-z-10 {
  transform: translateZ(10px);
}
.translate-z-20 {
  transform: translateZ(20px);
}
.translate-z-30 {
  transform: translateZ(30px);
}
.translate-z-40 {
  transform: translateZ(40px);
}

/* Ambient 3D Dynamic Cursor Glow / Spotlight */
#ambient-cursor-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.03) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
  will-change: transform;
}

/* Floating 3D Keyframe Animations */
@keyframes float3d {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-12px) rotateX(5deg) rotateY(-5deg);
  }
}

@keyframes float3dReverse {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(12px) rotateX(-6deg) rotateY(6deg);
  }
}

@keyframes pulseRing3d {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.animate-float-3d {
  animation: float3d 6s ease-in-out infinite;
}

.animate-float-3d-reverse {
  animation: float3dReverse 7s ease-in-out infinite;
}

.animate-pulse-ring-3d {
  animation: pulseRing3d 3.5s ease-in-out infinite;
}

