/* ==========================================================================
   Design System & Premium Dark Theme Variables
   ========================================================================== */
:root {
  /* Colors */
  --bg-color: #050A14;          /* Near-black navy */
  --bg-alt: #080F1E;            /* Darker alternating surface */
  --bg-card: #0D1526;           /* Premium card background */
  --accent-color: #3B82F6;       /* Electric blue accent */
  --accent-indigo: #6366F1;
  --accent-gradient: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-color: #1E2D45;      /* Tinted dark border */
  --border-hover: rgba(59, 130, 246, 0.4);
  --success-color: #10B981;
  --error-color: #EF4444;
  
  /* Glow Highlights */
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-glow-strong: rgba(59, 130, 246, 0.45);

  /* Fonts */
  --font-headings: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 85px;
}

/* ==========================================================================
   Global Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default !important;
}

a, button {
  cursor: pointer !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky navbar */
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Subtle Engineering Grid Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #1E2D45;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Typography elements */
h1, h2, h3, h4 { 
  font-family: 'Syne', sans-serif; 
  font-weight: 800; 
  line-height: 1.2;
  color: var(--text-primary);
}
h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
body, p, span, li, a, input, textarea, button { 
  font-family: 'Inter', sans-serif; 
}

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

button, input, textarea, select {
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-3x {
  grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 992px) {
  .grid-3x {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3x, .grid-2x {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Alternating Section Backgrounds */
.section:nth-of-type(odd) {
  background-color: var(--bg-color);
}
.section:nth-of-type(even) {
  background-color: var(--bg-alt);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 100px;
}

.section-title {
  font-size: 40px; /* Upgraded heading size */
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 60%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Heading Underline Accent Animation */
.section-underline {
  width: 0;
  height: 3px;
  background: var(--accent-gradient);
  margin: 12px auto 24px auto;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.revealed .section-underline {
  width: 60px;
}

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

@media (max-width: 768px) {
  .section-title {
    font-size: 32px;
  }
  .section-subtitle {
    font-size: 1rem;
  }
}

/* Glassmorphism Cards */
.glass-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.glass-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
    var(--accent-glow),
    transparent 45%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

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

.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Buttons with Shimmer sweep */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 2;
}

.btn:hover::after {
  left: 150%;
  transition: left 0.6s ease-in-out;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #FFFFFF;
  animation: btnPulse 2.5s infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(59,130,246,0.4) !important;
}
@keyframes btnPulse {
  0%,100%{box-shadow:0 0 0 0 rgba(59,130,246,0.4)}
  50%{box-shadow:0 0 0 10px rgba(59,130,246,0)}
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-text-icon {
  margin-left: 8px;
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-text:hover .btn-text-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   Logo & Navbar Section
   ========================================================================== */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  user-select: none;
}

.footer-logo-wrapper {
  height: 32px;
}

.logo-svg {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(59, 130, 246, 0.45));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-text {
  display: flex;
  align-items: center;
  font-family: var(--font-headings);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.footer-logo-wrapper .logo-text {
  font-size: 1.2rem;
}

.logo-white {
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.logo-blue {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 300;
  margin-left: 6px; /* Separated by single space */
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.45));
}

/* Hover effects for logo wrapper */
.nav-logo svg {
  height: 46px;
  width: auto;
}

.footer-logo svg {
  height: 38px;
  width: auto;
}

.nav-logo {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-logo:hover {
  transform: scale(1.03);
}

.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background var(--transition-normal), border var(--transition-normal), height var(--transition-normal);
}

nav {
  transition: background 0.4s ease, backdrop-filter 0.4s ease !important;
}

.nav-scrolled {
  background: rgba(5,10,20,0.9) !important;
  backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(59,130,246,0.15) !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link, nav a { 
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-item-link {
  color: #94A3B8;
  position: relative;
  padding: 6px 0;
}

nav a { 
  position: relative; 
  transition: color 0.25s; 
  color: #94A3B8;
}

nav a:hover {
  color: #ffffff !important;
}

nav a::after {
  content:''; position:absolute;
  bottom:-3px; left:0; width:0; height:1.5px;
  background: linear-gradient(90deg,#3B82F6,#6366F1);
  transition:width 0.3s ease;
}

nav a:hover::after { width:100%; }

#nav-cta-btn {
  background: linear-gradient(135deg, #2563EB, #6366F1) !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
  color: #ffffff !important;
  cursor: pointer !important;
}

#nav-cta-btn:hover {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2) !important;
  color: #ffffff !important;
}

#nav-cta-btn::after {
  display: none !important;
}

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

.nav-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

/* Hamburger */
.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: background var(--transition-fast);
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-fast), top var(--transition-fast);
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Responsive navbar */
@media (max-width: 992px) {
  .nav-cta-wrapper {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #050A14;
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    padding: 100px 40px;
    gap: 28px;
    z-index: 999;
    transition: right var(--transition-normal);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-cta-mobile {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: #FFFFFF !important;
    border-radius: 6px;
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }

  .nav-toggle.active .hamburger {
    background: transparent;
  }
  
  .nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
  background: #050A14;
}

/* Subtle animated radial glow */
.hero-section::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: glowPulse 6s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15); }
}

/* Very faint blue gradient at bottom */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to top, rgba(59, 130, 246, 0.04) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #60A5FA;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeUp 0.4s ease forwards;
  animation-delay: 0.1s;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 68px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero-line {
  display: inline-block;
  opacity: 0;
}

.hero-line-1 {
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.2s;
}

.hero-line-2 {
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.35s;
}

.hero-line-3 {
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.5s;
}

.text-gradient {
  background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 50%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  color: #94A3B8;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.65s;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.8s;
}

/* Trust Badges Grid */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  animation-delay: 0.95s;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 100px;
}

.trust-badge .badge-icon {
  font-size: 1rem;
}

.trust-divider {
  width: 1px;
  height: 16px;
  background-color: var(--border-color);
}

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 32px auto;
  }
  .trust-divider {
    display: none;
  }
  .trust-badges {
    flex-direction: column;
    gap: 12px;
  }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.card, .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
}
.card:hover, .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(59,130,246,0.15);
  border-color: rgba(59,130,246,0.35) !important;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-color);
}

.service-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card-title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Why Us Section
   ========================================================================== */
.edge-grid {
  margin-top: 24px;
}

.edge-column {
  text-align: center;
  padding: 0 16px;
}

.edge-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.edge-icon {
  width: 32px;
  height: 32px;
}

.edge-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   Case Studies Section
   ========================================================================== */
.case-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Case Study Slide-in Reveal */
.case-card.scroll-reveal {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card.scroll-reveal.revealed {
  opacity: 1;
  transform: translateX(0);
}

.case-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-color);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.case-metric {
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
  letter-spacing: -0.02em;
}

.case-metric-label {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 8px 0 16px 0;
  color: var(--text-primary);
}

.case-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
  flex-grow: 1;
}

.case-link {
  margin-top: auto;
}

/* ==========================================================================
   Testimonials Infinite Scroll Marquee
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 24px 0;
}

.marquee-container::before, .marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-alt) 0%, transparent 100%);
}
.marquee-container::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-alt) 0%, transparent 100%);
}

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

.testimonial-card {
  width: 400px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, 
              box-shadow 0.35s ease, 
              border-color 0.35s ease;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(59,130,246,0.2);
  border-color: rgba(99,102,241,0.5) !important;
}
.testimonial-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background: linear-gradient(90deg,#3B82F6,#7C3AED,#3B82F6);
  background-size:200%;
  animation: shimLine 3s linear infinite;
  opacity:0;
  transition: opacity 0.3s;
}
.testimonial-card:hover::before { opacity:1; }
.testimonial-card::after {
  content:'';
  position:absolute;
  top:0; left:-100%;
  width:55%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(99,102,241,0.07),transparent);
  transition:left 0.65s ease;
}
.testimonial-card:hover::after { left:150%; }

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.star-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.star-icon.filled {
  color: #FBBF24;
  fill: #FBBF24;
}

@keyframes shimLine {
  0%{background-position:0%} 100%{background-position:200%}
}
@keyframes starPop {
  0%{transform:scale(0.4);opacity:0}
  70%{transform:scale(1.2)}
  100%{transform:scale(1);opacity:1}
}
.stars { animation: starPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards; }

.testimonial-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  border-top: 1px solid #1E2D45;
  padding-top: 16px;
  position: relative;
  z-index: 2;
}

.author-name {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.author-company {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

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

@media (max-width: 768px) {
  .testimonial-card {
    width: 290px;
    padding: 24px;
  }
  .marquee-track {
    gap: 20px;
  }
}

/* ==========================================================================
   About Section & Dynamic Stats Count-up
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.about-role {
  font-size: 1.125rem;
  color: var(--accent-color);
  font-weight: 500;
  margin-bottom: 24px;
}

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

.founder-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

@media (max-width: 576px) {
  .founder-values {
    grid-template-columns: 1fr;
  }
}

.founder-value-item {
  display: flex;
  gap: 16px;
}

.value-number {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.4);
  line-height: 1;
}

.value-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.founder-profile-card {
  padding: 48px;
  border-color: #1E2D45;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.avatar-icon {
  width: 30px;
  height: 30px;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.profile-stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  margin-bottom: 32px;
  gap: 12px;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.stat-value-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-num {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-color);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-color);
  margin-left: 2px;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.profile-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  margin-bottom: 32px;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.location-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contact-intro {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 500px;
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.contact-detail-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--accent-color);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.contact-icon {
  width: 20px;
  height: 20px;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-value {
  font-weight: 600;
  font-size: 1.05rem;
}

.whatsapp-box {
  background: rgba(16, 185, 129, 0.08);
}

.text-whatsapp {
  color: #10B981 !important;
}

.whatsapp-detail-link:hover {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.flex-align-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-inline {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.contact-presence {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.presence-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.presence-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.timezone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.timezone-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 100px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--success-color);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success-color);
  animation: pulse-ring-anim 1.5s infinite ease-in-out;
}

@keyframes pulse-ring-anim {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3); opacity: 0; }
}

/* Form Styles */
.contact-form-card {
  padding: 48px;
}

.form-card-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.required {
  color: var(--error-color);
  margin-left: 2px;
}

.form-group input, 
.form-group textarea, 
.form-group select {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus, 
.form-group textarea:focus, 
.form-group select:focus {
  border-color: var(--accent-color);
  background: rgba(59, 130, 246, 0.02);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.1);
}

.form-group input.error-field,
.form-group textarea.error-field,
.form-group select.error-field {
  border-color: var(--error-color) !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.15) !important;
}

/* Custom Select Dropdown */
.select-wrapper {
  position: relative;
  width: 100%;
}
.select-wrapper select {
  width: 100%;
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
}
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-secondary);
  pointer-events: none;
}

.form-error-msg {
  display: none;
  font-size: 0.75rem;
  color: var(--error-color);
  margin-top: 2px;
}
.form-error-msg.visible {
  display: block;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-primary);
  animation: spin-anim 0.8s linear infinite;
  position: absolute;
}
.spinner.hidden {
  display: none !important;
}

@keyframes spin-anim {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-section {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0 0;
}

.footer-grid {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  margin-bottom: 64px;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-brand-col {
  padding-right: 24px;
}

.footer-logo {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-links-list a:hover {
  color: var(--text-primary);
}

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-color);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer-contact-list a:hover {
  color: var(--text-primary);
}

/* Footer Bottom */
.footer-bottom-container {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

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

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

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

/* ==========================================================================
   WhatsApp Floating Button (Highly visual)
   ========================================================================== */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background-color: #10B981;
  color: #FFFFFF;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  z-index: 9999; /* Higher priority display */
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  animation: whatsapp-pulse-anim 2s infinite;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background-color: rgba(5, 8, 17, 0.95);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.whatsapp-floating-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsapp-pulse-anim {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@media (max-width: 576px) {
  .whatsapp-floating-btn {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

/* ==========================================================================
   Toast Notification Banner
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 1002;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-icon.success-icon { color: var(--success-color); }
.toast-icon.error-icon { color: var(--error-color); }
.toast-message { font-size: 0.9rem; font-weight: 500; }

.toast.toast-success {
  border-color: var(--success-color);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.toast.toast-error {
  border-color: var(--error-color);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

.hidden {
  display: none !important;
}

@media (max-width: 576px) {
  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

/* ==========================================================================
   Scroll-reveal Animations & Staggers
   ========================================================================== */
.reveal {
  opacity:0; transform:translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
              transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.delay-1{transition-delay:0.1s!important}
.delay-2{transition-delay:0.2s!important}
.delay-3{transition-delay:0.3s!important}
.delay-4{transition-delay:0.4s!important}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { 
    animation: none !important; 
    transition: none !important; 
  }
  .reveal, 
  .case-card.scroll-reveal, 
  .testimonial-card, 
  .hero-word, 
  .animate-hero-line {
    opacity: 1 !important;
    transform: none !important;
  }
}
