/* ============================================
   STATVOR - Performance Marketing Website
   Modern 3D Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #0B1120;
  --primary-light: #151f38;
  --secondary: #1A2332;
  --accent: #0058C8;
  --accent-hover: #0047A0;
  --accent-glow: rgba(0, 88, 200, 0.3);
  --cyan: #06B6D4;
  --cyan-dark: #0891B2;
  --text: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(15, 23, 42, 0.6);
  --gradient-1: linear-gradient(135deg, #0B1120 0%, #1A2332 50%, #0B1120 100%);
  --gradient-accent: linear-gradient(135deg, #0058C8, #0047A0);
  --gradient-cyan: linear-gradient(135deg, #06B6D4, #0891B2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 30px rgba(0, 88, 200, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

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

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

body {
  font-family: var(--font-body);
  background: linear-gradient(180deg, #0a1a4a 0%, #0B1120 25%, #000814 100%);
  background-attachment: fixed;
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--primary);
}

/* --- Cursor Glow --- */
#cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 88, 200, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  left: var(--cursor-x);
  top: var(--cursor-y);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  will-change: left, top;
}

/* --- Parallax Depth Layers --- */
.parallax-layer {
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.parallax-depth-1 { transform: translateZ(-20px) scale(1.04); }
.parallax-depth-2 { transform: translateZ(-10px) scale(1.02); }
.parallax-depth-3 { transform: translateZ(0); }
.parallax-depth-4 { transform: translateZ(10px) scale(0.98); }

/* --- Scroll-driven reveal with distance --- */
.reveal-scroll {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scroll.from-bottom {
  transform: translateY(60px);
}
.reveal-scroll.from-left {
  transform: translateX(-60px);
}
.reveal-scroll.from-right {
  transform: translateX(60px);
}
.reveal-scroll.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Scroll progress bar --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  z-index: 1001;
  transition: width 0.1s linear;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--primary);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

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

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 2px;
  background: var(--accent);
}

/* --- Three.js Canvas --- */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* --- Navigation (Glass Pill) --- */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 900px;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}
.nav.scrolled {
  top: 0.6rem;
  width: calc(100% - 1.5rem);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 20, 50, 0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(100, 160, 255, 0.1);
  border-radius: 100px;
  padding: 0.5rem 0.6rem 0.5rem 1.6rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 56px;
  width: auto;
  display: block;
  transition: var(--transition);
}
.nav-logo:hover img {
  transform: scale(1.02);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links a.active {
  color: #fff;
  background: rgba(0, 88, 200, 0.25);
}
.nav-links a.active::after {
  display: none;
}
.nav-cta {
  background: var(--gradient-accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 15px rgba(0, 88, 200, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.nav-cta:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 30px rgba(0, 88, 200, 0.5) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* --- Page System (SPA) --- */
.page {
  display: none;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  animation: pageEnter 0.5s ease-out;
}
.page.active {
  display: block;
}
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Sections Common --- */
section {
  padding: 6rem 2rem;
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #0066CC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0, 88, 200, 0.3);
  color: #ffffff;
}
.btn-secondary {
  background: var(--glass);
  color: #ffffff;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

/* Hero 3D floating orbs */
.hero-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 1;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbFloat 20s infinite ease-in-out;
}
.hero-orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 122, 255, 0.12), transparent 70%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}
.hero-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 204, 255, 0.08), transparent 70%);
  bottom: -10%;
  left: -10%;
  animation-delay: -7s;
}
.hero-orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(51, 119, 255, 0.06), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.scroll-indicator .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Trust Strip --- */
.trust-strip {
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  overflow: hidden;
}
.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.trust-label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}
/* --- Trust Strip Carousel --- */
.trust-carousel {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  width: 100%;
}
.trust-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: trustScroll 30s linear infinite;
}
.trust-track:hover {
  animation-play-state: paused;
}
@keyframes trustScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-logo {
  flex-shrink: 0;
}
.trust-logos {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.5;
}
.trust-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}
.trust-logos:hover .trust-logo {
  opacity: 0.3;
}
.trust-logos .trust-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- Benefits / Features Grid --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.benefit-card:hover::before {
  transform: scaleX(1);
}
.benefit-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  background: rgba(15, 23, 42, 0.8);
}
.benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--glass);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}
.benefit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Services Grid (3D Tilt Cards) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card-3d {
  perspective: 1500px;
  height: 380px;
}
.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
}
.service-card-3d:hover .service-card-inner {
  transform: rotateY(10deg) rotateX(5deg);
}
.service-card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.service-card-face .icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}
.service-card-face h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}
.service-card-face p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}
.service-card-face .learn-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
}
/* Back face - if needed */
.service-card-back {
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--gradient-accent);
  border-color: var(--accent);
}
.service-card-back h3 { color: var(--primary); }
.service-card-back p { color: var(--primary); opacity: 0.8; }
.service-card-back .btn {
  background: var(--primary);
  color: var(--text);
  margin-top: 1rem;
}

/* --- Testimonials --- */
.testimonials-section {
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-hover);
  box-shadow: var(--shadow-lg);
}
.testimonial-stars {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
}
.testimonial-info h4 {
  font-size: 0.95rem;
}
.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-preview-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(0, 88, 200, 0.05), rgba(0, 170, 255, 0.03));
  border: 1px solid var(--glass-border);
}
.about-preview-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 88, 200, 0.08));
  pointer-events: none;
}
.about-preview-content h2 {
  margin-bottom: 1.2rem;
}
.about-preview-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--glass);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}
.about-stat {
  text-align: center;
}
.about-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.about-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 88, 200, 0.05), rgba(6, 182, 212, 0.05));
  border-top: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 88, 200, 0.08), transparent);
  top: -200px;
  right: -200px;
}
.final-cta::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08), transparent);
  bottom: -150px;
  left: -150px;
}
.final-cta .section-inner {
  position: relative;
  z-index: 1;
}
.final-cta h2 {
  max-width: 700px;
  margin: 0 auto 1rem;
}
.final-cta p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}
.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-story-content h2 {
  margin-bottom: 1.2rem;
}
.about-story-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.mission-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.mission-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.mission-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.mission-card h3 {
  margin-bottom: 0.8rem;
}
.mission-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   EDGE GRID (What Makes Us Different)
   ============================================ */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.edge-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(10, 20, 50, 0.8), rgba(15, 25, 60, 0.6));
  border: 1px solid rgba(51, 153, 238, 0.12);
  border-radius: 16px;
  text-align: center;
  transition: all 0.4s ease;
  transform-style: preserve-3d;
  cursor: default;
  overflow: hidden;
}
.edge-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3399ee, #00aa66, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.edge-card:hover::before { opacity: 1; }
.edge-card:hover {
  transform: translateY(-8px) translateZ(15px);
  border-color: rgba(51, 153, 238, 0.35);
  box-shadow: 0 20px 50px rgba(0, 88, 200, 0.2);
}
.edge-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.edge-icon svg {
  width: 100%;
  height: 100%;
}
.edge-card:hover .edge-icon {
  transform: scale(1.1) translateZ(10px);
}
.edge-card h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.edge-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .edge-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .edge-grid { grid-template-columns: 1fr; }
  .edge-card { padding: 1.5rem 1rem; }
}
  font-size: 0.85rem;
}

/* Stats Section */
.stats-section {
  background: var(--glass);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  padding: 2rem 0;
}
.stats-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.stats-track {
  display: flex;
  gap: 3rem;
  animation: statsScroll 25s linear infinite;
  width: max-content;
}
.stats-track:hover {
  animation-play-state: paused;
}
@keyframes statsScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.stats-section .stat-item {
  text-align: center;
  padding: 1.5rem 2.5rem;
  min-width: 200px;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stats-section .stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.stats-section .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}
.stat-plus, .stat-percent {
  color: var(--accent);
  font-size: 0.7em;
}
.stats-section .stat-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-hover);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.team-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.team-card .role {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}
.team-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.service-detailed-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-detailed-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 88, 200, 0.1), transparent);
  border-radius: 50%;
  transform: translate(30%, -30%);
}
.service-detailed-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.service-detailed-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.service-detailed-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.service-detailed-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.service-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.service-tag {
  padding: 0.2rem 0.6rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   3D FUNNEL VISUAL
   ============================================ */
.funnel-3d-container {
  perspective: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem 0;
}
.funnel-layer {
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.funnel-top { transform: translateZ(30px) scale(1.1); }
.funnel-mid { transform: translateZ(15px) scale(1); }
.funnel-bottom { transform: translateZ(0px) scale(0.9); }

.funnel-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(10, 20, 50, 0.9), rgba(15, 25, 60, 0.85));
  border: 1px solid rgba(51, 153, 238, 0.2);
  border-radius: 16px;
  cursor: default;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  overflow: hidden;
}
.funnel-card:hover {
  transform: translateZ(20px) scale(1.05);
  border-color: rgba(51, 153, 238, 0.5);
  box-shadow: 0 20px 50px rgba(0, 88, 200, 0.25), 0 0 30px rgba(51, 153, 238, 0.15);
}
.funnel-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.funnel-icon svg {
  width: 100%;
  height: 100%;
}
.funnel-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}
.funnel-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}
.funnel-glow {
  position: absolute;
  top: 50%;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(0, 170, 102, 0.15), transparent 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.funnel-card:hover .funnel-glow { opacity: 1; }

/* Funnel Connectors */
.funnel-connector {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.connector-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(51, 153, 238, 0.4), rgba(0, 170, 102, 0.2));
  position: relative;
}
.connector-line::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #00aa66;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 170, 102, 0.6);
}

/* Service Pills */
.service-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}
.service-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.2rem;
  background: rgba(10, 20, 50, 0.7);
  border: 1px solid rgba(51, 153, 238, 0.15);
  border-radius: 50px;
  cursor: default;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}
.service-pill:hover {
  transform: translateY(-3px) translateZ(10px);
  border-color: rgba(51, 153, 238, 0.4);
  box-shadow: 0 10px 30px rgba(0, 88, 200, 0.2);
  background: rgba(15, 25, 60, 0.9);
}
.pill-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pill-icon svg {
  width: 100%;
  height: 100%;
}
.service-pill span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}
.service-pill:hover span {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .funnel-card {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .funnel-icon { width: 45px; height: 45px; }
  .funnel-info h3 { font-size: 1.4rem; }
  .funnel-top { transform: translateZ(10px) scale(1.05); }
  .funnel-mid { transform: translateZ(5px) scale(1); }
  .funnel-bottom { transform: translateZ(0px) scale(0.95); }
  .service-pills { gap: 0.6rem; }
  .service-pill { padding: 0.5rem 0.9rem; }
  .pill-icon { width: 22px; height: 22px; }
  .service-pill span { font-size: 0.7rem; }
}

/* How It Works Steps */
.steps-container {
  position: relative;
  padding: 2rem 0;
}
.steps-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--cyan), transparent);
  transform: translateX(-50%);
}
.step-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
}
.step-item:nth-child(even) .step-content {
  order: 2;
}
.step-item:nth-child(even) .step-visual {
  order: 1;
}
.step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -0.5rem;
}
.step-content h3 {
  margin-bottom: 0.8rem;
}
.step-content p {
  color: var(--text-secondary);
}
.step-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.step-icon-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: var(--transition);
}
.step-item:hover .step-icon-circle {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: scale(1.1);
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--glass-border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--accent);
}
.faq-question .icon {
  font-size: 1.2rem;
  transition: var(--transition);
  min-width: 24px;
  text-align: center;
}
.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 0 1.5rem;
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ============================================
   LISTINGS PAGE
   ============================================ */
.filter-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  align-items: center;
}
.filter-bar select,
.filter-bar input {
  padding: 0.7rem 1rem;
  background: var(--primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
  flex: 1;
  min-width: 150px;
}
.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--accent);
}
.filter-bar select option {
  background: var(--primary);
  color: var(--text);
}
.filter-bar .filter-search {
  position: relative;
  flex: 2;
  min-width: 200px;
}
.filter-bar .filter-search input {
  width: 100%;
  padding-left: 2.5rem;
}
.filter-bar .filter-search .search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.filter-results-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Listings Card Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.listing-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.listing-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}
.listing-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(0, 88, 200, 0.15), rgba(0, 170, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}
.listing-card-icon {
  width: 70%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}
.listing-card-icon svg {
  width: 100%;
  height: 100%;
}
.listing-card:hover .listing-card-icon {
  transform: scale(1.1) rotate(5deg);
}
.listing-card-image .label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.listing-card-body {
  padding: 1.5rem;
}
.listing-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.listing-card-body p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.listing-tag {
  padding: 0.2rem 0.6rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.listing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.listing-card-footer .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.listing-card-footer .btn-sm:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination button {
  padding: 0.6rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.pagination button:hover,
.pagination button.active {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 88, 200, 0.1);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Form Validation & Feedback Styles */
.form-group {
  position: relative;
}
.form-group .error-msg {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.35rem;
  display: block;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  height: 0;
  overflow: hidden;
}
.form-group.has-error .error-msg {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-bottom: 0.5rem;
}
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.form-group.is-valid input,
.form-group.is-valid select,
.form-group.is-valid textarea {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}
.form-status-msg {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: none;
  animation: formFadeIn 0.4s ease;
}
.form-status-msg.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}
.form-status-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}
@keyframes formFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: var(--transition);
}
.contact-info-card:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}
.contact-info-icon {
  font-size: 1.5rem;
  min-width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}
.contact-info-text h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.contact-info-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand .nav-logo {
  margin-bottom: 1rem;
  display: inline-flex;
}
.footer-brand .nav-logo img {
  height: 62px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.7rem;
}
.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-col ul a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.footer-bottom {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(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; }

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #0a1a4a 0%, #000814 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-logo {
  margin-bottom: 1.5rem;
}
.loading-logo img {
  height: 110px;
  width: auto;
  display: block;
  animation: pulseLogo 2s infinite ease-in-out;
}
@keyframes pulseLogo {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(0, 88, 200, 0.2));
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 25px rgba(0, 88, 200, 0.5));
  }
}
.loading-bar {
  width: 200px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-accent);
  border-radius: 2px;
  animation: loadBar 1.5s ease forwards;
}
@keyframes loadBar {
  to { width: 100%; }
}

/* ============================================
   3D EFFECTS
   ============================================ */

/* --- Global 3D Perspective --- */
.page.active {
  perspective: 1200px;
  perspective-origin: 50% 50%;
}

/* --- 3D Hero Headline --- */
.hero-content h1 {
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.hero-content h1::before,
.hero-content h1::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content h1::before {
  transform: translateZ(-30px);
  opacity: 0.3;
}
.hero-content h1::after {
  transform: translateZ(-60px);
  opacity: 0.1;
}
.hero-content h1:hover {
  transform: rotateX(5deg) rotateY(-3deg) translateZ(20px);
}

/* --- 3D Card Effect --- */
.benefit-card,
.service-detailed-card,
.testimonial-card,
.mission-card,
.listing-card,
.team-card,
.contact-info-card {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.3s ease;
}
.benefit-card:hover,
.service-detailed-card:hover,
.testimonial-card:hover,
.mission-card:hover,
.listing-card:hover,
.team-card:hover,
.contact-info-card:hover {
  transform: translateY(-12px) translateZ(20px) rotateX(2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
              0 0 30px rgba(0, 88, 200, 0.1);
}

/* --- 3D Inner Glow on Hover --- */
.benefit-card::after,
.testimonial-card::after,
.listing-card::after,
.contact-form::after,
.contact-info-card::after,
.geo-3d-card::after,
.team-card::after,
.mission-card::after,
.edge-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(51, 153, 238, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.benefit-card:hover::after,
.testimonial-card:hover::after,
.listing-card:hover::after,
.contact-form:hover::after,
.contact-info-card:hover::after,
.geo-3d-card:hover::after,
.team-card:hover::after,
.mission-card:hover::after,
.edge-card:hover::after {
  opacity: 1;
}

/* Ensure positioning is relative for pseudo elements */
.benefit-card,
.testimonial-card,
.listing-card,
.contact-form,
.contact-info-card,
.geo-3d-card,
.team-card,
.mission-card,
.edge-card {
  position: relative;
}

/* Ensure interactive elements inside cards are above the hover glow pseudo-element */
.benefit-card a,
.testimonial-card a,
.listing-card a,
.contact-form a,
.contact-form button,
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-info-card a,
.contact-info-card button,
.geo-3d-card a,
.team-card a,
.mission-card a,
.edge-card a {
  position: relative;
  z-index: 2;
}

/* --- 3D Button Effect --- */
.btn {
  transform-style: preserve-3d;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  transform: translateZ(1px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:hover::before {
  opacity: 1;
}
.btn:active {
  transform: translateZ(0) scale(0.97) !important;
}

/* --- 3D Navigation Links --- */
.nav-links a {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}
.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: width 0.4s ease, left 0.4s ease;
  transform: translateZ(5px);
}
.nav-links a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 88, 200, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.nav-links a:hover::before {
  width: 100%;
  left: 0;
}
.nav-links a:hover::after {
  opacity: 1;
}
.nav-links a:hover {
  transform: translateZ(8px) scale(1.08);
  color: #fff;
  background: rgba(0, 88, 200, 0.15);
  text-shadow: 0 0 12px rgba(0, 88, 200, 0.4);
}

/* --- 3D Trust Strip --- */
.trust-logos {
  perspective: 800px;
}
.trust-logo {
  display: inline-block;
  transition: transform 0.4s ease, opacity 0.4s ease, text-shadow 0.3s ease;
  transform-style: preserve-3d;
}
.trust-logo:hover {
  transform: translateZ(20px) scale(1.15) rotateY(5deg);
  text-shadow: 0 0 20px rgba(0, 88, 200, 0.3);
}

/* --- 3D Listing Card Image --- */
.listing-card-image {
  transform-style: preserve-3d;
  overflow: hidden;
}
.listing-card:hover .listing-card-icon {
  transform: scale(1.15) translateZ(10px) rotate(5deg);
}

/* --- 3D Stats Number --- */
.stat-item {
  perspective: 500px;
}
.stat-number {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.4s ease;
}
.stat-item:hover .stat-number {
  transform: translateZ(15px) scale(1.1);
}

/* --- 3D FAQ Items --- */
.faq-question {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, color 0.3s ease;
}
.faq-question:hover {
  transform: translateX(5px) translateZ(5px);
}

/* --- 3D Service Card Flip --- */
.service-card-3d {
  perspective: 1500px;
}
.service-card-face {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* --- 3D Form Inputs --- */
.form-group input,
.form-group select,
.form-group textarea {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  transform: translateZ(5px);
  box-shadow: 0 0 0 3px rgba(0, 88, 200, 0.15),
              0 5px 20px rgba(0, 0, 0, 0.2);
}

/* --- 3D Page Transition --- */
@keyframes pageEnter3D {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateY(-5deg) translateX(-40px) translateZ(-50px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateY(0) translateX(0) translateZ(0);
  }
}
.page.active {
  animation: pageEnter3D 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- 3D Floating Effect on Hero Badge --- */
.hero-badge {
  transform-style: preserve-3d;
  animation: float3D 6s ease-in-out infinite;
}
@keyframes float3D {
  0%, 100% { transform: translateZ(0) translateY(0) rotateX(0); }
  25% { transform: translateZ(10px) translateY(-5px) rotateX(2deg); }
  50% { transform: translateZ(5px) translateY(0) rotateX(0); }
  75% { transform: translateZ(15px) translateY(-3px) rotateX(-1deg); }
}

/* --- 3D Scroll Indicator --- */
.scroll-indicator {
  animation: float3D 4s ease-in-out infinite;
}

/* --- 3D Section Depth --- */
section:nth-child(odd) {
  transform: translateZ(0);
}
section:nth-child(even) {
  transform: translateZ(5px);
}

/* --- 3D Grid Depth on Benefits --- */
.benefits-grid {
  perspective: 1000px;
}
.benefit-card:nth-child(1) { transform: translateZ(10px); }
.benefit-card:nth-child(2) { transform: translateZ(5px); }
.benefit-card:nth-child(3) { transform: translateZ(8px); }
.benefit-card:nth-child(4) { transform: translateZ(3px); }
.benefit-card:hover {
  transform: translateY(-12px) translateZ(30px) rotateX(2deg) !important;
}

/* --- 3D Filter Bar --- */
.filter-bar {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}
.filter-bar:hover {
  transform: translateZ(5px);
}
.filter-bar select:focus,
.filter-bar input:focus {
  transform: translateZ(10px);
}

/* --- 3D Footer Links --- */
.footer-col ul a {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, color 0.3s ease;
}
.footer-col ul a:hover {
  transform: translateX(5px) translateZ(5px);
}

/* --- 3D Scroll Progress Glow --- */
#scroll-progress {
  box-shadow: 0 0 10px rgba(0, 88, 200, 0.5);
}

/* ============================================
   PARALLAX SCROLLING EFFECTS
   ============================================ */

/* --- Parallax Layer System --- */
[data-parallax-speed] {
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* --- Section Depth Layers --- */
.hero {
  transform-style: preserve-3d;
  z-index: 1;
}

/* --- Trust Strip Parallax --- */
.trust-strip {
  position: relative;
  overflow: hidden;
}

/* --- About Preview Parallax Image --- */
.about-preview-image {
  transform-style: preserve-3d;
  position: relative;
}

.about-preview-image::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(0, 88, 200, 0.15);
  border-radius: var(--radius-lg);
  transform: translateZ(20px);
  pointer-events: none;
}

/* --- Service Cards Parallax Depth --- */
.service-card-3d:nth-child(1) { transform: translateZ(5px); }
.service-card-3d:nth-child(2) { transform: translateZ(15px); }
.service-card-3d:nth-child(3) { transform: translateZ(10px); }

/* --- Testimonials Parallax --- */
.testimonial-card:nth-child(1) { transform: translateZ(3px); }
.testimonial-card:nth-child(2) { transform: translateZ(12px); }
.testimonial-card:nth-child(3) { transform: translateZ(7px); }
.testimonial-card:hover {
  transform: translateY(-12px) translateZ(30px) rotateX(2deg) !important;
}

/* --- Stats Parallax --- */
.stats-carousel-wrapper {
  perspective: 800px;
}
.stats-section .stat-item {
  transform-style: preserve-3d;
}

/* --- Final CTA Parallax --- */
.final-cta {
  transform-style: preserve-3d;
}
.final-cta .reveal {
  transform: translateZ(10px);
}

/* --- Page Hero Floating --- */
.page-hero {
  transform-style: preserve-3d;
}
.page-hero .hero-content {
  animation: float3D 8s ease-in-out infinite;
}

/* --- Step Items Parallax --- */
.step-item {
  perspective: 800px;
}
.step-icon-circle {
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.step-item:hover .step-icon-circle {
  transform: translateZ(20px) scale(1.1) rotateY(10deg);
  box-shadow: 0 20px 40px rgba(0, 88, 200, 0.2);
}

/* --- Listing Cards Staggered Depth --- */
.listings-grid .listing-card:nth-child(1) { transform: translateZ(2px); }
.listings-grid .listing-card:nth-child(2) { transform: translateZ(8px); }
.listings-grid .listing-card:nth-child(3) { transform: translateZ(5px); }
.listings-grid .listing-card:nth-child(4) { transform: translateZ(12px); }
.listings-grid .listing-card:nth-child(5) { transform: translateZ(4px); }
.listings-grid .listing-card:nth-child(6) { transform: translateZ(10px); }

/* --- Contact Form Parallax --- */
.contact-form {
  transform-style: preserve-3d;
}
.contact-form:focus-within {
  transform: translateZ(5px);
}

/* --- Team Cards Parallax --- */
.team-card:nth-child(1) { transform: translateZ(5px); }
.team-card:nth-child(2) { transform: translateZ(15px); }
.team-card:nth-child(3) { transform: translateZ(10px); }
.team-card:nth-child(4) { transform: translateZ(8px); }

/* --- Edge Card Parallax --- */
.edge-card:nth-child(1) { transform: translateZ(5px); }
.edge-card:nth-child(2) { transform: translateZ(10px); }
.edge-card:nth-child(3) { transform: translateZ(15px); }
.edge-card:nth-child(4) { transform: translateZ(8px); }
.edge-card:nth-child(5) { transform: translateZ(12px); }
.edge-card:nth-child(6) { transform: translateZ(3px); }
.edge-card:hover {
  transform: translateY(-8px) translateZ(25px) !important;
}

/* --- FAQ Depth --- */
.faq-item {
  transform-style: preserve-3d;
}
.faq-item:hover {
  transform: translateZ(5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .about-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-preview-image {
    order: -1;
  }
  .about-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-track {
    gap: 2rem;
  }
  .stats-section .stat-item {
    min-width: 160px;
    padding: 1.2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-logo img {
    height: 40px;
  }
  .footer-brand .nav-logo img {
    height: 46px;
  }
  .loading-logo img {
    height: 75px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  section {
    padding: 4rem 1.2rem;
  }
  .hero {
    padding: 6rem 1.2rem 3rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .steps-line {
    display: none;
  }
  .step-item {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .step-item:nth-child(even) .step-content {
    order: 1;
  }
  .step-item:nth-child(even) .step-visual {
    order: 1;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .filter-bar {
    flex-direction: column;
  }
  .filter-bar select,
  .filter-bar .filter-search {
    width: 100%;
  }
  .about-mission-grid {
    grid-template-columns: 1fr;
  }
  .listings-grid {
    grid-template-columns: 1fr;
  }
  .services-grid,
  .services-detailed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .hero-badge { font-size: 0.7rem; }
  .stats-track {
    gap: 1.5rem;
  }
  .stats-section .stat-item {
    min-width: 140px;
    padding: 1rem;
  }
  .stats-section .stat-number {
    font-size: 1.8rem;
  }
  .about-stats { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
}

/* --- Active Geography 3D --- */
.geo-3d-section {
  perspective: 800px;
}
.geo-3d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.geo-3d-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: default;
}
.geo-3d-card:nth-child(1) { transform: translateZ(8px) rotateY(-3deg); }
.geo-3d-card:nth-child(2) { transform: translateZ(12px) rotateY(3deg); }
.geo-3d-card:nth-child(3) { transform: translateZ(16px) rotateY(-2deg); }
.geo-3d-card:nth-child(4) { transform: translateZ(20px) rotateY(2deg); }
.geo-3d-card:hover {
  transform: translateZ(30px) rotateY(0deg) scale(1.05) !important;
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 88, 200, 0.3), inset 0 0 20px rgba(0, 88, 200, 0.05);
}
@media (max-width: 480px) {
  .geo-3d-grid { grid-template-columns: 1fr; }
  .geo-3d-card { transform: none !important; }
}

/* ============================================
   IMMERSIVE 3D SCENES
   ============================================ */
.immersive-3d-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 40%, rgba(0, 88, 200, 0.12), transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(0, 170, 102, 0.08), transparent 50%),
              linear-gradient(135deg, rgba(10, 20, 50, 0.95), rgba(5, 10, 25, 0.98));
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(51, 153, 238, 0.15);
}

/* --- Home: Globe 3D --- */
.globe-3d {
  position: absolute;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: globeRotate 20s linear infinite;
}
.globe-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(51, 153, 238, 0.3);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.ring-1 { transform: rotateY(0deg) rotateX(70deg); animation: ringPulse 4s ease-in-out infinite; }
.ring-2 { transform: rotateY(60deg) rotateX(70deg); animation: ringPulse 4s ease-in-out infinite 0.5s; border-color: rgba(0, 170, 102, 0.25); }
.ring-3 { transform: rotateY(120deg) rotateX(70deg); animation: ringPulse 4s ease-in-out infinite 1s; }
.globe-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(51, 153, 238, 0.6), rgba(0, 170, 102, 0.3));
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(51, 153, 238, 0.5), 0 0 80px rgba(0, 170, 102, 0.3);
  animation: corePulse 3s ease-in-out infinite;
}
.globe-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #3399ee;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(51, 153, 238, 0.8);
}
.dot-1 { top: 10%; left: 50%; animation: dotFloat 5s ease-in-out infinite; }
.dot-2 { top: 50%; right: 5%; animation: dotFloat 6s ease-in-out infinite 0.5s; background: #00aa66; box-shadow: 0 0 12px rgba(0, 170, 102, 0.8); }
.dot-3 { bottom: 15%; left: 20%; animation: dotFloat 4s ease-in-out infinite 1s; }
.dot-4 { top: 30%; left: 10%; animation: dotFloat 7s ease-in-out infinite 1.5s; background: #00aa66; box-shadow: 0 0 12px rgba(0, 170, 102, 0.8); }
.dot-5 { bottom: 30%; right: 15%; animation: dotFloat 5.5s ease-in-out infinite 0.8s; }

@keyframes globeRotate {
  from { transform: rotateY(0deg) rotateX(15deg); }
  to { transform: rotateY(360deg) rotateX(15deg); }
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.4; transform: rotateY(var(--ry, 0deg)) rotateX(70deg) scale(1); }
  50% { opacity: 0.8; transform: rotateY(var(--ry, 0deg)) rotateX(70deg) scale(1.05); }
}
@keyframes corePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 40px rgba(51, 153, 238, 0.5), 0 0 80px rgba(0, 170, 102, 0.3); }
  50% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 60px rgba(51, 153, 238, 0.7), 0 0 100px rgba(0, 170, 102, 0.4); }
}
@keyframes dotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-8px) scale(1.3); opacity: 1; }
}

/* --- Home: Data Cards 3D --- */
.data-card-3d {
  position: absolute;
  padding: 0.8rem 1rem;
  background: rgba(10, 20, 50, 0.85);
  border: 1px solid rgba(51, 153, 238, 0.25);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}
.data-card-3d svg {
  width: 100px;
  height: 60px;
}
.card-label {
  display: block;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.4rem;
  text-align: center;
}
.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(51, 153, 238, 0.15), rgba(0, 170, 102, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.data-card-3d:hover .card-glow { opacity: 1; }
.data-card-3d:hover {
  transform: translateZ(30px) scale(1.08) rotateY(-5deg);
  box-shadow: 0 15px 40px rgba(0, 88, 200, 0.3);
  border-color: rgba(51, 153, 238, 0.5);
}
.card-1 { top: 8%; left: 5%; animation: cardFloat1 7s ease-in-out infinite; }
.card-2 { top: 55%; right: 5%; animation: cardFloat2 8s ease-in-out infinite 0.5s; }
.card-3 { bottom: 8%; left: 10%; animation: cardFloat3 6s ease-in-out infinite 1s; }

@keyframes cardFloat1 {
  0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
  50% { transform: translateY(-15px) rotateX(-3deg) rotateY(5deg); }
}
@keyframes cardFloat2 {
  0%, 100% { transform: translateY(0) rotateX(-5deg) rotateY(5deg); }
  50% { transform: translateY(-12px) rotateX(3deg) rotateY(-5deg); }
}
@keyframes cardFloat3 {
  0%, 100% { transform: translateY(0) rotateX(3deg) rotateY(-3deg); }
  50% { transform: translateY(-18px) rotateX(-5deg) rotateY(3deg); }
}

/* --- Connection Lines --- */
.connection-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* --- Particles --- */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(51, 153, 238, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(51, 153, 238, 0.4);
}
.p1 { top: 20%; left: 25%; animation: particleDrift 8s ease-in-out infinite; }
.p2 { top: 70%; left: 75%; animation: particleDrift 6s ease-in-out infinite 0.5s; background: rgba(0, 170, 102, 0.6); box-shadow: 0 0 8px rgba(0, 170, 102, 0.4); }
.p3 { top: 40%; left: 85%; animation: particleDrift 9s ease-in-out infinite 1s; }
.p4 { top: 80%; left: 30%; animation: particleDrift 7s ease-in-out infinite 1.5s; background: rgba(0, 170, 102, 0.6); }
.p5 { top: 15%; left: 60%; animation: particleDrift 5s ease-in-out infinite 0.8s; }
.p6 { top: 60%; left: 15%; animation: particleDrift 10s ease-in-out infinite 2s; background: rgba(0, 170, 102, 0.6); }
.p7 { top: 35%; left: 45%; animation: particleDrift 8.5s ease-in-out infinite 0.3s; }
.p8 { top: 85%; left: 55%; animation: particleDrift 6.5s ease-in-out infinite 1.2s; background: rgba(0, 170, 102, 0.6); }

@keyframes particleDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  25% { transform: translate(10px, -15px) scale(1.5); opacity: 1; }
  50% { transform: translate(-5px, -25px) scale(1); opacity: 0.7; }
  75% { transform: translate(15px, -10px) scale(1.3); opacity: 0.9; }
}

/* --- About: Hexagonal Grid 3D --- */
.hex-grid-3d {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: hexGridFloat 15s ease-in-out infinite;
}
.hexagon {
  position: absolute;
  transition: transform 0.4s ease, filter 0.3s ease;
  transform-style: preserve-3d;
}
.hexagon svg {
  width: 100%;
  height: 100%;
}
.hex-1 { width: 100px; height: 110px; top: 5%; left: 10%; animation: hexFloat 7s ease-in-out infinite; }
.hex-2 { width: 80px; height: 90px; top: 50%; left: 5%; animation: hexFloat 8s ease-in-out infinite 0.5s; }
.hex-3 { width: 90px; height: 100px; top: 10%; right: 10%; animation: hexFloat 6s ease-in-out infinite 1s; }
.hex-4 { width: 70px; height: 80px; bottom: 15%; right: 8%; animation: hexFloat 9s ease-in-out infinite 1.5s; }
.hex-5 { width: 85px; height: 95px; bottom: 10%; left: 35%; animation: hexFloat 7.5s ease-in-out infinite 0.8s; }
.hexagon:hover {
  transform: translateZ(25px) scale(1.15) rotate(10deg);
  filter: drop-shadow(0 0 20px rgba(51, 153, 238, 0.4));
}

@keyframes hexGridFloat {
  0%, 100% { transform: rotateX(5deg) rotateY(0deg); }
  50% { transform: rotateX(-5deg) rotateY(10deg); }
}
@keyframes hexFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  33% { transform: translateY(-12px) rotateY(8deg) rotateX(3deg); }
  66% { transform: translateY(-20px) rotateY(-5deg) rotateX(-3deg); }
}

/* --- About: Data Streams --- */
.data-streams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.stream-line {
  stroke-dasharray: 8 4;
  animation: streamDash 3s linear infinite;
}
@keyframes streamDash {
  to { stroke-dashoffset: -24; }
}
.stream-dot {
  filter: drop-shadow(0 0 6px currentColor);
}

/* --- About: Orbit System --- */
.orbit-system {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  transform-style: preserve-3d;
}
.orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(51, 153, 238, 0.2);
  border-radius: 50%;
  transform-style: preserve-3d;
}
.orbit-1 { animation: orbitSpin 12s linear infinite; }
.orbit-2 { inset: 20px; border-color: rgba(0, 170, 102, 0.2); animation: orbitSpin 10s linear infinite reverse; }
.orbit-3 { inset: 40px; animation: orbitSpin 8s linear infinite; }
.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #3399ee;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(51, 153, 238, 0.8);
  transform: translateX(-50%);
}
.orbit-2 .orbit-dot { background: #00aa66; box-shadow: 0 0 12px rgba(0, 170, 102, 0.8); }
.orbit-3 .orbit-dot { width: 6px; height: 6px; background: #3399ee; }

@keyframes orbitSpin {
  from { transform: rotateX(70deg) rotateZ(0deg); }
  to { transform: rotateX(70deg) rotateZ(360deg); }
}

/* --- About: Core 3D --- */
.about-core-3d {
  position: absolute;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  animation: coreFloat 5s ease-in-out infinite;
}
.core-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(51, 153, 238, 0.3);
  border-radius: 50%;
  animation: coreRingPulse 3s ease-in-out infinite;
}
.core-ring:nth-child(2) {
  inset: 10px;
  border-color: rgba(0, 170, 102, 0.25);
  animation-delay: 0.5s;
}
.core-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  transform: translate(-50%, -50%);
  background: rgba(10, 20, 50, 0.9);
  border: 1px solid rgba(51, 153, 238, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(51, 153, 238, 0.3);
}
.core-center svg {
  width: 40px;
  height: 40px;
}

@keyframes coreFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(180deg); }
}
@keyframes coreRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

/* --- Ambient Particles --- */
.ambient-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(51, 153, 238, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(51, 153, 238, 0.3);
}
.ap-1 { top: 15%; left: 20%; animation: ambientDrift 9s ease-in-out infinite; }
.ap-2 { top: 75%; left: 80%; animation: ambientDrift 7s ease-in-out infinite 0.5s; background: rgba(0, 170, 102, 0.5); }
.ap-3 { top: 25%; left: 70%; animation: ambientDrift 11s ease-in-out infinite 1s; }
.ap-4 { top: 65%; left: 25%; animation: ambientDrift 8s ease-in-out infinite 1.5s; background: rgba(0, 170, 102, 0.5); }
.ap-5 { top: 45%; left: 90%; animation: ambientDrift 10s ease-in-out infinite 0.8s; }
.ap-6 { top: 85%; left: 45%; animation: ambientDrift 6s ease-in-out infinite 2s; background: rgba(0, 170, 102, 0.5); }

@keyframes ambientDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33% { transform: translate(8px, -12px) scale(1.4); opacity: 0.9; }
  66% { transform: translate(-6px, -20px) scale(0.8); opacity: 0.6; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .immersive-3d-scene { min-height: 300px; }
  .globe-3d { width: 140px; height: 140px; }
  .data-card-3d { padding: 0.5rem 0.7rem; }
  .data-card-3d svg { width: 70px; height: 45px; }
  .card-label { font-size: 0.55rem; }
  .hexagon { transform: scale(0.65); }
  .orbit-system { width: 180px; height: 180px; }
  .about-core-3d { width: 90px; height: 90px; }
  .core-center { width: 45px; height: 45px; }
  .core-center svg { width: 30px; height: 30px; }
}

/* --- Accessibility Focus Rings --- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  box-shadow: 0 0 10px var(--accent-glow);
}
:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* --- Print Style Sheet --- */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .nav, 
  .loading-overlay, 
  #cursor-glow, 
  #three-canvas, 
  .scroll-indicator, 
  .final-cta, 
  .footer, 
  .btn, 
  .menu-toggle {
    display: none !important;
  }
  .page {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
  }
  h1, h2, h3, h4 {
    color: #000 !important;
    page-break-after: avoid;
  }
  p, li {
    color: #333 !important;
  }
}
