:root {
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --card: #ffffff;
  --text: #1a1f36;
  --muted: #5b667a;
  --primary: #3461ff;
  --primary-600: #274ad6;
  --border: #e7ecf3;
  --shadow: 0 10px 24px rgba(30, 41, 59, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Kumbh Sans", ui-sans-serif, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.navbar-area {
  position: relative;
  background: var(--primary);
  border-bottom: none;
  transition: background .2s ease;
}

/* when user is actively scrolling, let header scroll with page (pushed off screen) */
.navbar-area.scrolling { position: static; }

/* when revealing after stop, float on top and slide from off-screen to visible */
/* Floating white navbar that appears after the blue one is pushed out */
.navbar-clone { position: fixed; left: 0; right: 0; top: 0; z-index: 3000; background: #ffffff; border-bottom: none; box-shadow: 0 6px 24px rgba(30,41,59,.08); will-change: transform; transform: translateY(-80px); transition: transform .5s ease-out; visibility: hidden; pointer-events: none; }
.navbar-clone.show { transform: translateY(0); visibility: visible; pointer-events: auto; }
.navbar-clone .container { width: min(1120px, 92%); margin: 0 auto; }
.navbar-clone .nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-clone .logo { color: #000000 !important; text-decoration: none; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.navbar-clone .verified-icon { 
  width: 16px; 
  height: 16px; 
  margin-left: 2px; 
  fill: #ffffff; 
  background: #ffd700;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
}
.navbar-clone .logo-mark { background: var(--primary); color: #fff; width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; font-family: Dosis, sans-serif; }
.navbar-clone .nav-links { display: flex; gap: 20px; }
.navbar-clone .nav-links a { color: #000000 !important; text-decoration: none; font-weight: 500; padding: 4px 8px; border-radius: 6px; transition: all 0.2s ease; }
.navbar-clone .nav-links a:hover { color: #000000 !important; background: rgba(0,0,0,0.05); }
.navbar-clone .nav-links a.active { color: var(--primary) !important; font-weight: 600; background: rgba(52,97,255,0.1); }
.navbar-clone .nav-toggle { 
  display: none; 
  color: var(--primary) !important; 
  border: 1px solid var(--primary) !important; 
}
.navbar-clone .nav-toggle:hover { 
  background: var(--primary) !important; 
  color: #ffffff !important; 
}

/* Default (scrolled) scheme: white navbar */
.navbar-area .logo { display: inline-flex; align-items: center; gap: 8px; color: #ffffff; text-decoration: none; font-weight: 700; font-size: 15px; }
.navbar-area .logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #ffffff; color: var(--primary); font-family: Dosis, sans-serif; }
.navbar-area .logo-text { letter-spacing: 0.2px; }
.navbar-area .hub-text { display: inline-flex; align-items: center; gap: 2px; }
.navbar-area .verified-icon { 
  width: 16px; 
  height: 16px; 
  margin-left: 2px; 
  fill: #ffffff; 
  background: #ffd700;
  border-radius: 50%;
  padding: 2px;
  flex-shrink: 0;
}
.navbar-area .nav-links { display: flex; gap: 20px; }
.navbar-area .nav-links a { color: #eaf0ff; text-decoration: none; font-weight: 500; padding: 4px 8px; border-radius: 6px; transition: all 0.2s ease; }
.navbar-area .nav-links a:hover { color: #ffffff; background: rgba(255,255,255,0.05); }
.navbar-area .nav-links a.active { color: #ffffff; font-weight: 600; background: rgba(255,255,255,0.1); }
/* .nav-toggle styles moved to Mobile Navigation section */

/* At top: blue navbar */
.navbar-area.at-top { background: var(--primary); }
.navbar-area.at-top .logo { color: #ffffff; }
.navbar-area.at-top .logo-mark { background: #ffffff; color: var(--primary); }
.navbar-area.at-top .nav-links a { color: #eaf0ff; }
.navbar-area.at-top .nav-links a:hover { color: #ffffff; }
.navbar-area.at-top .nav-toggle { color: #ffffff; border: 1px solid rgba(255,255,255,0.35); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--primary); color: #fff; font-family: Dosis, sans-serif; }
.logo-text { letter-spacing: 0.2px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #354053; text-decoration: none; font-weight: 500; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.social-x { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 8px; }
.navbar-area .icon-x { width: 16px; height: 16px; display: block; fill: currentColor; color: #ffffff; }
/* .nav-toggle styles moved to Mobile Navigation section */

.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { margin: 0 0 24px; font-size: 32px; }
.section-lead { color: var(--muted); margin-bottom: 24px; }

main { flex: 1; }

/* Hero */
.home-area { padding: 96px 0 72px; position: relative; background: var(--primary); min-height: 60vh; }
.home-area .main-banner-content { color: #ffffff; }
.home-area .main-banner-content p { color: #eef2ff; }
.row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; }
.col { min-width: 0; }
.home-area .row { position: relative; z-index: 1; }
.main-banner-content h1 { font-size: clamp(30px, 6vw, 56px); line-height: 1.12; margin: 0 0 16px; }
.main-banner-content p { color: var(--muted); margin: 0 0 24px; font-size: 18px; line-height: 1.7; }
.main-banner-content { max-width: 560px; }
.banner-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner-image { height: 360px; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.banner-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-image.glass { position: relative; }
.banner-image.glass::before { content: ""; position: absolute; inset: 0; backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); background: rgba(255, 255, 255, 0.16); }
.banner-image.glass img { mix-blend-mode: normal; opacity: 0.8; }
.hero-shape { position: absolute; inset: auto 0 0 0; height: 60px; background: linear-gradient(180deg, rgba(52,97,255,0.08), transparent); z-index: 0; }
.svg-shape-bottom { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; overflow: hidden; line-height: 0; z-index: 0; pointer-events: none; }
.svg-shape-bottom img { display: block; width: 100%; height: auto; }
.animation-bounce { animation: floating 3.6s ease-in-out infinite; }
@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.video-box { display: inline-flex; align-items: center; gap: 12px; }
.video-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: #fff; color: var(--primary); border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; font-weight: 700; }
.video-box h5 { margin: 0; font-size: 12px; color: var(--muted); }
.iq-waves { position: relative; width: 44px; height: 44px; margin-left: -56px; pointer-events: none; }
.iq-waves .waves { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 2px solid rgba(52,97,255,0.4); border-radius: 50%; animation: wave 2.4s linear infinite; }
.iq-waves .wave-2 { animation-delay: .4s; }
.iq-waves .wave-3 { animation-delay: .8s; }
@keyframes wave { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: 0.2s ease; border: 1px solid transparent; }
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { background: var(--primary-600); transform: translateY(-1px); }
.btn.small { padding: 8px 12px; font-weight: 600; }
.btn.primary.outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn.primary.outline:hover { background: var(--primary); color: #fff; }

/* Hero CTA: white background on blue hero */
.home-area .btn.primary { background: #ffffff; color: var(--primary); border-color: #ffffff; }
.home-area .btn.primary:hover { background: #f8fafc; color: var(--primary); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }

.services-section { padding: 70px 0 30px; }
.services-section .section-title h6 { color: var(--primary); margin: 0 0 6px; font-family: Dosis, sans-serif; letter-spacing: 0.4px; }
.services-section .section-title { text-align: center; }
.service-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; min-height: 360px; height: auto; padding: 24px 20px; border-radius: 16px; }
.service-card .service-icon { width: 56px; height: 56px; margin-bottom: 12px; border-radius: 14px; display: grid; place-items: center; color: var(--primary); background: #eef1f6; border: 1px solid #d9e1ee; position: relative; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.icon-analytics::before { content: ""; width: 28px; height: 18px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; border-right: 3px solid transparent; transform: skewX(-20deg); display: block; }
.icon-globe::before { content: ""; width: 22px; height: 22px; border: 3px solid currentColor; border-radius: 999px; box-shadow: inset 0 0 0 3px transparent; display: block; position: relative; }
.icon-globe::after { content: ""; position: absolute; width: 3px; height: 22px; background: currentColor; border-radius: 2px; }
.icon-cfp::before { content: ""; width: 20px; height: 24px; border: 3px solid currentColor; border-radius: 4px; display: block; position: relative; }
.icon-cfp::after { content: ""; position: absolute; width: 12px; height: 3px; background: currentColor; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 2px; }

/* spin animation on hover, reset on leave */
.service-card:hover .service-icon { animation: spin-fast 0.6s linear 1; }
@keyframes spin-fast { from { transform: rotate(0deg); } to { transform: rotate(720deg); } }

.service-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.service-card h3 { transition: color .25s ease; font-size: 22px; line-height: 1.3; margin: 10px 0 10px; }
.service-card p { transition: color .25s ease; font-size: 16px; line-height: 1.65; max-width: 52ch; margin: 0; }
.service-card { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 28px rgba(30,41,59,.12); border-color: rgba(52,97,255,.6); background: var(--primary); }
.service-card:hover .service-icon { color: var(--primary); background: #ffffff; border-color: #ffffff; }

/* rotation via JS-applied classes for better enter/leave control */
.service-icon.spin-fwd { animation: spinFwd 1s linear 1; animation-fill-mode: forwards; }
.service-icon.spin-back { animation: spinBack 1s linear 1; animation-fill-mode: forwards; }
@keyframes spinFwd { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinBack { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
.service-card:hover h3 { color: #ffffff; }
.service-card:hover p { color: #ffffff; }

/* About */
.about-section { padding: 56px 0; background: var(--bg); }
.about-section .row { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 24px; }
.about-media { height: 360px; border-radius: 18px; background: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 800 600%22%3E%3Cdefs%3E%3ClinearGradient id=%22g%22 x1=%220%22 y1=%220%22 x2=%221%22 y2=%221%22%3E%3Cstop stop-color=%22%233461ff%22/%3E%3Cstop stop-color=%22%238247ff%22 offset=%221%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%22800%22 height=%22600%22 fill=%22url(%23g)%22 rx=%2232%22/%3E%3C/svg%3E') center/cover no-repeat; box-shadow: var(--shadow); border: 1px solid var(--border); }
.about-content h6 { color: var(--primary); margin: 0 0 8px; font-family: Dosis, sans-serif; letter-spacing: 0.4px; font-size: 18px; }
.about-content h2 { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.18; }
.about-content p { margin: 0 0 10px; max-width: 760px; font-size: 17px; line-height: 1.6; }
.about-list { padding-left: 18px; margin: 8px 0; }
.about-list li { margin: 4px 0; color: var(--muted); font-size: 16px; }

/* Testimonials */
.testimonial-section { background: transparent; padding: 70px 0; }
.testimonials-viewport { overflow: hidden; }
.testimonials-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; will-change: transform; transform: translateX(0); }
.testimonial { margin: 0; padding: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); box-shadow: none; }
.testimonial blockquote { margin: 0 0 8px; color: var(--text); }
.testimonial figcaption { color: var(--muted); font-size: 14px; }

/* Testimonial avatars */
.testimonial { display: flex; gap: 10px; flex-direction: column; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3461ff, #8247ff); border: 1px solid rgba(255,255,255,0.35); box-shadow: 0 6px 14px rgba(52,97,255,.22); }
.testimonial .avatar.small { width: 40px; height: 40px; }
.testimonial .meta { display: flex; align-items: center; gap: 10px; }

/* Form */
.cfp-section { background: var(--bg); padding: 70px 0; }
.form { display: grid; gap: 14px; max-width: 640px; }
.form-row { display: grid; gap: 6px; }
.form-row label { color: var(--muted); }
.form-row input, .form-row select { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--text); }
.form-row input:focus, .form-row select:focus { outline: 2px solid var(--primary-600); }
.form-actions { margin-top: 6px; }

/* Footer */
.footer-area { border-top: 1px solid var(--border); background: #fff; }
.footer { display: grid; grid-template-columns: 1.4fr 1fr; align-items: start; gap: 16px; padding: 18px 0; }
.footer-right { display: grid; justify-items: end; gap: 10px; }
.footer-right .footer-nav { order: 2; }
.footer-right .footer-social { order: 1; }
.footer-left h3 { margin: 0 0 8px; font-size: 18px; }
.footer-left p { margin: 2px 0; color: var(--muted); }
.footer-social { list-style: none; display: flex; gap: 10px; padding: 6px 0 0; margin: 0; justify-content: flex-end; }
.footer-social a { width: 42px; height: 42px; border-radius: 10px; display: inline-grid; place-items: center; background: #0f172a0d; border: 1px solid var(--border); text-decoration: none; }
.footer-social a:hover { background: #0f172a1a; }
.icon-x { width: 22px; height: 22px; display: block; fill: currentColor; color: #0b1220; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--text); }
.copyright { text-align: center; color: var(--muted); padding: 12px 0 24px; font-size: 14px; }

/* Go Top */
.go-top { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-110vh); transition: opacity .5s ease, transform .6s ease; pointer-events: none; }
.go-top.show { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.go-top.leaving { opacity: 0; visibility: visible; transform: translateY(-110vh); pointer-events: none; transition: transform .6s ease, opacity .45s ease; }

/* ===== Page Transition (split from center) ===== */
#page-transition { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
#page-transition .panel { position: absolute; top: 0; height: 100vh; background: #1f64ff; will-change: width; width: 0; }
#page-transition .panel.left { left: 0; }
#page-transition .panel.right { right: 0; }
#page-transition .ripple { position: absolute; top: 50%; left: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
#page-transition .ripple .ring { position: absolute; width: 64px; height: 64px; border: 3px solid #ffffff; border-radius: 50%; opacity: 0.9; animation: ripple 1.2s ease-out infinite; }
#page-transition .ripple .ring.second { animation-delay: .45s; }
#page-transition:not(.loading) .ripple { display: none; }
@keyframes ripple { 0% { transform: scale(0.2); opacity: 0.9; } 100% { transform: scale(2.2); opacity: 0; } }
#page-transition.enter .panel.left { left: 0; width: 50vw; }
#page-transition.enter .panel.right { right: 0; width: 50vw; }
#page-transition.enter-active .panel.left, #page-transition.enter-active .panel.right { transition: width 1600ms cubic-bezier(.22,.61,.36,1); }
#page-transition.enter-done .panel.left { width: 0; }
#page-transition.enter-done .panel.right { width: 0; }
#page-transition.leave .panel.left, #page-transition.leave .panel.right { width: 0; }
#page-transition.leave-active .panel.left, #page-transition.leave-active .panel.right { transition: width 450ms cubic-bezier(.55,.06,.68,.19); }

/* Mobile Navigation - Updated */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  position: relative;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.nav-toggle.active {
  background: rgba(255,255,255,0.2);
}

/* Mobile nav overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 4000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Mobile nav menu */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  z-index: 4001;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.nav-mobile.show {
  right: 0;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.nav-mobile .logo {
  color: var(--text);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-mobile .hub-text {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nav-mobile .verified-icon { 
  width: 12px; 
  height: 12px; 
  margin-left: 2px; 
  fill: #ffffff; 
  background: #ffd700;
  border-radius: 50%;
  padding: 1px;
  flex-shrink: 0;
}

.nav-mobile-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-links {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile-links a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-mobile-links a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.nav-mobile-links a.active {
  background: var(--primary);
  color: #ffffff;
}

/* Responsive */
@media (max-width: 960px) {
  .row { grid-template-columns: 1fr; }
  .banner-image { height: 260px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .about-section .row { grid-template-columns: 1fr; }
  .testimonials-track { grid-auto-columns: 100%; }
}

@media (max-width: 768px) {
  /* Force mobile navigation visibility */
  .navbar-area .nav-toggle,
  .navbar-clone .nav-toggle,
  .nav-toggle,
  button.nav-toggle { 
    display: inline-flex !important; 
    visibility: visible !important;
    opacity: 1 !important;
  }
  .navbar-area .nav-links,
  .navbar-clone .nav-links,
  .nav-links { 
    display: none !important; 
  }
  .logo { font-size: 18px; }
  .section { padding: 60px 0; }
  .home-area { padding: 80px 0 60px; }
  .main-banner-content { text-align: center; margin: 0 auto; }
  .main-banner-content h1 { font-size: clamp(24px, 6vw, 36px); line-height: 1.25; }
  .main-banner-content p { font-size: 15px; color: var(--muted); }
  .banner-btns { justify-content: center; }
  .banner-image { height: 220px; margin-top: 16px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .container { width: 95%; }
  .section { padding: 50px 0; }
  .home-area { padding: 70px 0 50px; }
  .main-banner-content { padding: 0 6px; }
  .main-banner-content h1 { font-size: clamp(20px, 5.5vw, 28px); }
  .main-banner-content p { font-size: 14px; }
  .banner-image { height: 200px; }
  .service-card { min-height: 280px; padding: 20px 16px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { font-size: 14px; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-right { justify-items: center; }
  .footer-nav { justify-content: center; }
}


