@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root, [data-bs-theme="light"] {
  --primary: #1E5BFF;
  --accent: #E53935;
  --bg-main: #ffffff;
  --text-main: #0a0a0a;
  --text-muted: #666666;
  --border-color: rgba(0, 0, 0, 0.08);
  --grid-color: rgba(0, 0, 0, 0.04);
  --navbar-bg: rgba(255, 255, 255, 0.8);
  --card-bg: #f8f9fa;
  --footer-bg: #0a0a0a;
  --footer-text: #888888;
}

[data-bs-theme="dark"] {
  --bg-main: #050505;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: rgba(255, 255, 255, 0.1);
  --grid-color: rgba(255, 255, 255, 0.04);
  --navbar-bg: rgba(5, 5, 5, 0.8);
  --card-bg: #111111;
  --footer-bg: #050505;
  --footer-text: #888888;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  background-image: linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6, .brand-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px; height: 8px;
  background-color: var(--primary);
}
.cursor-outline {
  width: 40px; height: 40px;
  border: 1px solid var(--primary);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
body:hover .cursor-dot { opacity: 1; }
a:hover ~ .cursor-outline, button:hover ~ .cursor-outline {
  width: 60px; height: 60px;
  background-color: rgba(30, 91, 255, 0.1);
  border-color: transparent;
}

/* Buttons */
.btn-custom {
  background: var(--text-main);
  color: var(--bg-main) !important;
  border-radius: 100px;
  padding: 16px 40px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--text-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-custom:hover {
  transform: scale(1.03);
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
}
.btn-custom svg {
  transition: transform 0.3s;
}
.btn-custom:hover svg {
  transform: translateX(5px);
}

/* Typography elements */
.display-title {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Ensure form texts adapt */
.form-control {
  background: transparent; color: var(--text-main); border: 1px solid var(--border-color);
}
.form-control:focus { background: transparent; color: var(--text-main); border-color: var(--primary); box-shadow: none; }

/* Navbar */
.navbar {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  padding: 12px 0;
}
.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: var(--text-main) !important;
  font-size: 1.05rem;
  margin: 0 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-link:hover {
  color: var(--primary) !important;
}

/* Marquee */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-main);
  display: flex;
}
.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
}
.marquee-item {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-muted);
  margin: 0 40px;
  text-transform: uppercase;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Services / Features Grid */
.premium-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 50px;
  border-radius: 0;
  height: 100%;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.premium-card:hover {
  background: var(--text-main);
}
.premium-card:hover h3, .premium-card:hover p, .premium-card:hover .icon {
  color: var(--bg-main);
}

/* Case Studies & Media Effects */
.scale-on-hover {
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.case-study-card:hover .scale-on-hover {
  transform: scale(1.05);
}
.case-study-overlay {
  background: linear-gradient(transparent, rgba(0,0,0,0.95));
}
.fade-up-on-hover {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.case-study-card:hover .fade-up-on-hover {
  transform: translateY(0);
  opacity: 1;
}

/* Image Reveal Sequence */
.image-reveal-wrapper {
  position: relative;
}
.image-reveal {
  clip-path: inset(0 100% 0 0); /* Start completely hidden */
}

/* Utilities */
.hover-arrow {
  transition: transform 0.3s;
  display: inline-block;
}
.hover-arrow:hover {
  transform: translateX(5px);
}

/* Enyata Testimonies Arc */
.testimony-avatar {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
  transition: top 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s, transform 0.4s;
}
.testimony-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  filter: grayscale(0.6);
}
.testimony-avatar:hover img {
  transform: scale(1.1);
  filter: grayscale(0);
}
.testimony-avatar.active {
  top: 50% !important;
  left: 65% !important;
  z-index: 3;
}
.testimony-avatar.active img {
  width: 110px;
  height: 110px;
  outline: 3px solid var(--primary);
  outline-offset: 6px;
  filter: grayscale(0);
  box-shadow: 0 15px 30px rgba(30, 91, 255, 0.3);
}

@media (max-width: 991px) {
  .avatars-arc-container {
    display: flex !important;
    justify-content: center;
    gap: 15px;
    min-height: auto !important;
    padding-bottom: 40px;
  }
  .avatars-arc-container .avatar-nodes-wrapper {
    position: static !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .testimony-avatar {
    position: static !important;
    transform: none !important;
  }
  .testimony-avatar img { width: 50px; height: 50px; }
  .testimony-avatar.active img { width: 70px; height: 70px; outline-offset: 4px; }
}

/* Process Section Offset */
@media (min-width: 992px) {
  .process-step-down {
    margin-top: 80px !important;
  }
}

/* Case Study Indicators */
.logo-indicator.active div.fw-bolder {
  opacity: 1 !important;
  color: #c92a2a !important;
}
.logo-indicator.active .indicator-line {
  background: #c92a2a !important;
}
.logo-indicator:hover div.fw-bolder {
  opacity: 1 !important;
}
.text-truncate-multiline {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Premium Grid Background for Testimonials */
.bg-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}
[data-bs-theme="dark"] .bg-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Network Flow Ball */
@keyframes flowBallAnim {
  0% { cx: 0; opacity: 0; }
  15% { opacity: 1; }
  90% { opacity: 1; }
  100% { cx: 100; opacity: 0; }
}
.trigger-flow .flow-ball {
  animation: flowBallAnim 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Scroll Snap Native Containers */
.snap-container {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.snap-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Device Mockup Frames */
.mockup-frame {
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}
.mockup-frame::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -12px;
  width: 4px;
  height: 40px;
  background: #2a2a2a;
  border-radius: 4px 0 0 4px;
  transform: translateY(-50%);
  z-index: 10;
}
.mockup-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  right: 15%;
  width: 40px;
  height: 4px;
  background: #2a2a2a;
  border-radius: 4px 4px 0 0;
  z-index: 10;
}

/* Hero Background & Floating UI Elements */
.blur-orb {
  pointer-events: none;
  z-index: 0;
}
.hero-image-wrapper {
  perspective: 1000px;
}
.glass-panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.03);
}
@keyframes floatHero1 {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
@keyframes floatHero2 {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
@keyframes floatHero3 {
  0% { transform: translateY(0px); }
  50% { transform: translateY(12px); }
  100% { transform: translateY(0px); }
}
.hero-float-1 { animation: floatHero1 6s ease-in-out infinite; }
.hero-float-2 { animation: floatHero2 8s ease-in-out infinite; }
.hero-float-3 { animation: floatHero3 7s ease-in-out infinite; }

.premium-card .icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 30px;
  transition: color 0.4s ease;
  font-family: 'Outfit';
  font-weight: 800;
}
.premium-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  transition: color 0.4s ease;
}
.premium-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.4s ease;
}

.theme-toggle { border:0; background:transparent; color: var(--text-main); font-size: 1.5rem; transition: transform 0.3s; }
.theme-toggle:hover { transform: scale(1.1); }

/* Product Suite Grid Hover Physics */
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08) !important;
}
[data-bs-theme="dark"] .product-card:hover {
  box-shadow: 0 25px 50px rgba(255,255,255,0.05) !important;
}
.product-card:hover .product-img {
  transform: scale(1.05) !important;
}
.product-link svg {
  transition: transform 0.3s ease;
}
.product-card:hover .product-link svg {
  transform: translateX(4px);
}
