/* ============================================================
   CODVERGE — Additions: Dark/Light Mode, WhatsApp, Coding Anim, Breadcrumbs
   ============================================================ */

/* ---- Light Mode Variables ---- */
[data-theme="light"] {
  --dark:         #f4f5ff;
  --dark-2:       #eceeff;
  --dark-card:    #ffffff;
  --dark-card-2:  #f0f1fc;
  --text:         #1a1a2e;
  --text-muted:   #4a5568;
  --text-faint:   #718096;
  --border:       rgba(0,0,0,0.09);
  --shadow-card:  0 4px 32px rgba(0,0,0,0.09);
  --shadow-glow:  0 0 40px rgba(124,58,237,0.12);
  --grad-card:    linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(6,182,212,0.03) 100%);
}
[data-theme="light"] body         { background: var(--dark); color: var(--text); }
[data-theme="light"] p            { color: var(--text-muted); }
[data-theme="light"] h1,[data-theme="light"] h2,[data-theme="light"] h3,
[data-theme="light"] h4,[data-theme="light"] h5,[data-theme="light"] h6 { color: var(--text); }
[data-theme="light"] .cv-hero     { background: var(--dark); }
[data-theme="light"] .cv-nav      { background: rgba(244,245,255,0.95) !important; }
[data-theme="light"] .cv-nav.scrolled { background: rgba(244,245,255,0.98) !important; box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important; }
[data-theme="light"] .cv-nav .nav-link { color: rgba(26,26,46,0.75) !important; }
[data-theme="light"] .cv-nav .nav-link:hover, [data-theme="light"] .cv-nav .nav-link.active { color: var(--primary) !important; }
[data-theme="light"] .cv-toggler span { background: var(--text); }
[data-theme="light"] .logo-light  { display: none !important; }
[data-theme="light"] .logo-dark   { display: block !important; }
[data-theme="light"] .hero-badge  { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); }
[data-theme="light"] .hero-badge-float { background: #fff; border-color: rgba(0,0,0,0.09); color: var(--text); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
[data-theme="light"] .hero-device { background: #eef0fb; border-color: rgba(0,0,0,0.1); box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
[data-theme="light"] .device-bar  { background: #e5e8f8; border-bottom-color: rgba(0,0,0,0.07); }
[data-theme="light"] .device-url  { background: #f4f5ff; color: #718096; }
[data-theme="light"] .device-body { background: #f4f5ff; }
[data-theme="light"] .db-card     { background: #fff; border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .cv-stats-bar { background: #fff; border-color: rgba(0,0,0,0.07); }
[data-theme="light"] .cv-card     { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
[data-theme="light"] .svc-card    { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
[data-theme="light"] .service-detail-card { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
[data-theme="light"] .project-card-lg { background: #fff; }
[data-theme="light"] .project-card    { background: #fff; }
[data-theme="light"] .blog-card   { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
[data-theme="light"] .testimonial-card { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,0.06); }
[data-theme="light"] .contact-form-wrap { background: #fff; box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
[data-theme="light"] .cv-input, [data-theme="light"] .cv-textarea { background: #f4f5ff; border-color: rgba(0,0,0,0.12); color: var(--text); }
[data-theme="light"] .cv-input:focus, [data-theme="light"] .cv-textarea:focus { background: #fff; }
[data-theme="light"] .legal-content { background: #fff; }
[data-theme="light"] .legal-toc { background: #eceeff; }
[data-theme="light"] .value-card { background: #fff; }
[data-theme="light"] .filter-btn { background: #fff; border-color: rgba(0,0,0,0.1); color: var(--text-muted); }
[data-theme="light"] .tech-pill  { background: #fff; border-color: rgba(0,0,0,0.1); color: var(--text-muted); }
[data-theme="light"] .newsletter-box { background: rgba(124,58,237,0.05); border-color: rgba(124,58,237,0.15); }
[data-theme="light"] .cv-page-hero { background: linear-gradient(135deg, #eceeff 0%, #e6e8fc 50%, #edf0ff 100%) !important; }
[data-theme="light"] .cv-page-hero h1, [data-theme="light"] .cv-page-hero p { color: var(--text); }
[data-theme="light"] .cv-cta { background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%); }
[data-theme="light"] .cv-footer { background: #1a1a2e; }
[data-theme="light"] .stat-label { color: var(--text-faint); }
[data-theme="light"] .hero-stat-lbl { color: var(--text-faint); }
[data-theme="light"] .about-orb::before { background: var(--dark-2); }
[data-theme="light"] .contact-info-item .ci-icon { background: rgba(124,58,237,0.08); }
[data-theme="light"] .terminal-widget { background: #f0f1fc; border-color: rgba(124,58,237,0.2); }
[data-theme="light"] .terminal-header { background: #e8eaf8; border-bottom-color: rgba(124,58,237,0.1); }
[data-theme="light"] .term-cmd { color: #1e1e3f; }
[data-theme="light"] .metric-card { background: #fff; }

/* ---- Theme Toggle Button ---- */
.cv-theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark-card); border: 1px solid var(--border);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-muted); transition: all var(--transition);
  flex-shrink: 0; margin-left: 8px;
}
.cv-theme-toggle:hover { background: var(--grad-primary); color: #fff; border-color: transparent; transform: rotate(20deg); }
.cv-theme-toggle .icon-sun  { display: none; }
.cv-theme-toggle .icon-moon { display: block; }
[data-theme="light"] .cv-theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .cv-theme-toggle .icon-moon { display: none; }

/* ---- WhatsApp Floating Button ---- */
.cv-whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 58px; height: 58px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; color: #fff; text-decoration: none;
  z-index: 9998; box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waPulse 2.5s ease-in-out infinite;
}
.cv-whatsapp-float:hover { color: #fff; transform: scale(1.12); box-shadow: 0 6px 32px rgba(37,211,102,0.65); animation: none; }
.cv-whatsapp-float::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35); animation: waRing 2.5s ease-in-out infinite;
}
@keyframes waPulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); } 50% { box-shadow: 0 4px 36px rgba(37,211,102,0.7), 0 0 0 6px rgba(37,211,102,0.12); } }
@keyframes waRing  { 0%,100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 0; } }

/* ---- Scroll Progress Bar ---- */
.cv-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--grad-primary); z-index: 9999; width: 0%; border-radius: 0 2px 2px 0; pointer-events: none; transition: width 0.1s linear; }

/* ---- Breadcrumb Nav ---- */
.cv-breadcrumb-nav {
  display: flex; align-items: center; gap: 8px; font-size: 0.82rem;
  color: var(--text-faint); margin-bottom: 1.25rem; flex-wrap: wrap;
}
.cv-breadcrumb-nav a { color: var(--text-faint); transition: color var(--transition); }
.cv-breadcrumb-nav a:hover { color: var(--primary-lt); }
.cv-breadcrumb-nav .sep { opacity: 0.4; }
.cv-breadcrumb-nav .current { color: var(--primary-lt); font-weight: 600; }

/* ---- Per-page hero variants ---- */
.cv-hero-services { background: linear-gradient(135deg, #0a0316 0%, #130826 50%, #06101e 100%) !important; }
.cv-hero-projects { background: linear-gradient(135deg, #050c1a 0%, #0a0d20 50%, #08060f 100%) !important; }
.cv-hero-blog     { background: linear-gradient(135deg, #06080f 0%, #0c1020 50%, #100818 100%) !important; }
.cv-hero-about    { background: linear-gradient(135deg, #07100a 0%, #0a1220 50%, #100818 100%) !important; }
.cv-hero-contact  { background: linear-gradient(135deg, #080a1a 0%, #0d0a20 50%, #060c18 100%) !important; }
.cv-hero-legal    { background: linear-gradient(135deg, #06060e 0%, #0d0d20 50%, #060612 100%) !important; }

/* hero accent dots */
.cv-page-hero .hero-accent-1 {
  position: absolute; top: -200px; left: -200px; width: 550px; height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.cv-page-hero .hero-accent-2 {
  position: absolute; bottom: -150px; right: -100px; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* ---- Floating Code Snippets ---- */
.code-float-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.code-snippet {
  position: absolute; background: rgba(12,12,30,0.78);
  border: 1px solid rgba(124,58,237,0.22); border-radius: 8px;
  padding: 10px 16px; font-family: "Courier New", monospace;
  font-size: 0.72rem; line-height: 1.65; backdrop-filter: blur(8px);
  white-space: nowrap; animation: floatCode 9s ease-in-out infinite;
}
[data-theme="light"] .code-snippet { background: rgba(255,255,255,0.92); border-color: rgba(124,58,237,0.15); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.code-snippet .c-purple { color: #a78bfa; }
.code-snippet .c-cyan   { color: #67e8f9; }
.code-snippet .c-green  { color: #6ee7b7; }
.code-snippet .c-white  { color: #f1f5f9; }
.code-snippet .c-orange { color: #fbbf24; }
.code-snippet .c-muted  { color: #64748b; }
[data-theme="light"] .code-snippet .c-white { color: #1e293b; }
.cs1 { top: 14%; left: 1.5%; animation-delay: 0s;   animation-duration: 9s;  }
.cs2 { top: 60%; left: 0.5%; animation-delay: 2s;   animation-duration: 12s; }
.cs3 { top: 28%; right: 1%;  animation-delay: 1.2s; animation-duration: 8s;  }
.cs4 { top: 74%; right: 1%;  animation-delay: 3.5s; animation-duration: 11s; }
@keyframes floatCode {
  0%,100% { transform: translateY(0) rotate(-0.5deg); opacity: 0.7; }
  33%      { transform: translateY(-14px) rotate(0deg); opacity: 0.92; }
  66%      { transform: translateY(7px) rotate(0.5deg); opacity: 0.75; }
}

/* ---- Terminal Widget ---- */
.terminal-widget { background: #0a0a18; border: 1px solid rgba(124,58,237,0.25); border-radius: 12px; overflow: hidden; font-family: "Courier New", monospace; }
.terminal-header { background: #0f0f22; padding: 10px 14px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(124,58,237,0.12); }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-title { font-size: 0.72rem; color: #475569; margin-left: auto; }
.terminal-body { padding: 16px 18px; }
.term-line { display: flex; gap: 8px; margin-bottom: 6px; font-size: 0.78rem; }
.term-prompt { color: var(--green); } .term-cmd { color: #e2e8f0; }
.term-out { color: #475569; padding-left: 18px; margin-bottom: 5px; font-size: 0.78rem; }
.term-out.success { color: var(--green); } .term-out.error { color: #f87171; }
.term-cursor { display: inline-block; width: 7px; height: 13px; background: var(--primary-lt); animation: blink 1s step-end infinite; vertical-align: middle; }

/* ---- Scan Line (on device mockup) ---- */
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(124,58,237,0.5), transparent); animation: scanDown 4s linear infinite; pointer-events: none; }
@keyframes scanDown { 0% { top: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ---- Circuit Board Background ---- */
.circuit-bg { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M10 50 L40 50 L40 20 L70 20' stroke='rgba(124,58,237,0.06)' stroke-width='1' fill='none'/%3E%3Cpath d='M60 80 L60 50 L90 50' stroke='rgba(6,182,212,0.05)' stroke-width='1' fill='none'/%3E%3Ccircle cx='40' cy='50' r='2.5' fill='rgba(124,58,237,0.1)'/%3E%3Ccircle cx='60' cy='50' r='2.5' fill='rgba(6,182,212,0.1)'/%3E%3C/svg%3E"); background-size: 100px 100px; }

/* ---- Metric / Stat Cards ---- */
.metric-card { text-align: center; padding: 2.25rem 1.5rem; background: var(--dark-card); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: hidden; transition: all var(--transition); }
.metric-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--grad-primary); }
.metric-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.metric-num { font-size: 2.8rem; font-weight: 900; font-family: "Space Grotesk", sans-serif; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 6px; }
.metric-label { font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ---- Blog Card Image Themes ---- */
.blog-img-webdev   { background: linear-gradient(135deg, #0c1428 0%, #1e0b40 100%); }
.blog-img-ecomm    { background: linear-gradient(135deg, #061428 0%, #0f2040 100%); }
.blog-img-design   { background: linear-gradient(135deg, #180730 0%, #0c0e2e 100%); }
.blog-img-strategy { background: linear-gradient(135deg, #080b20 0%, #16082e 100%); }
.blog-img-tech     { background: linear-gradient(135deg, #061820 0%, #0a1428 100%); }

/* ---- Project Card-LG hover scroll (Projects page) ---- */
.project-card-lg .pcl-img-wrap { overflow: hidden; height: 260px; position: relative; }
.project-card-lg img {
  width: 100%; height: 420px; object-fit: cover; object-position: top center;
  display: block; transform: translateY(0);
  transition: transform 3.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card-lg:hover img { transform: translateY(calc(-100% + 260px)); }

/* ---- Mobile Nav Side Drawer ---- */
@media (max-width: 991px) {
  #navMenu {
    position: fixed; top: 0; right: -100%;
    width: min(320px, 85vw); height: 100vh;
    background: rgba(7,7,15,0.98); backdrop-filter: blur(20px);
    border-left: 1px solid var(--border); padding: 80px 24px 24px;
    display: flex !important; flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1); z-index: 999;
  }
  [data-theme="light"] #navMenu { background: rgba(244,245,255,0.98); }
  #navMenu.open { right: 0; }
  #navMenu .navbar-nav { flex-direction: column; gap: 4px; }
  #navMenu .nav-link { padding: 12px 16px !important; border-radius: 10px !important; }
  #navMenu .nav-cta { margin-top: 24px; }
  #navMenu .cv-btn-primary { width: 100%; justify-content: center; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; display: none; }
  .nav-overlay.active { display: block; }
  .cv-toggler.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .cv-toggler.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .cv-toggler.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 767px) {
  .cv-whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; font-size: 1.5rem; }
  .code-snippet { display: none; }
  .cv-back-to-top { bottom: 82px; right: 18px; width: 40px; height: 40px; }
}

/* ===================================================================
   CODE TICKER
   =================================================================== */
.cv-code-ticker {
  background: rgba(124,58,237,0.05);
  border-top: 1px solid rgba(124,58,237,0.12);
  border-bottom: 1px solid rgba(124,58,237,0.12);
  overflow: hidden;
  padding: 11px 0;
  white-space: nowrap;
  user-select: none;
}
.cv-code-ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: cvTickerScroll 36s linear infinite;
}
.cv-code-ticker:hover .cv-code-ticker-inner { animation-play-state: paused; }
.cti {
  display: inline-block;
  padding: 0 2.2rem;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1;
}
.cti-sep {
  color: rgba(124,58,237,0.45);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
@keyframes cvTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
[data-theme="light"] .cv-code-ticker { background: rgba(124,58,237,0.04); }
[data-theme="light"] .cti .c-white   { color: #1e293b; }

/* ===================================================================
   TESTIMONIAL — fix top padding so quote mark has breathing room
   =================================================================== */
.testimonial-card { padding-top: 3rem !important; }
.testimonial-card::before { top: 0.75rem; opacity: 0.35; }
.testi-avatar { padding-top: 0; }

/* ===================================================================
   FAQ ACCORDION
   =================================================================== */
.cv-faq { position: relative; }
.cv-acc-item {
  background: var(--dark-card);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.cv-acc-btn {
  background: var(--dark-card) !important;
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 1.1rem 1.4rem;
  border: none;
  box-shadow: none !important;
}
.cv-acc-btn:not(.collapsed) {
  color: var(--primary-lt) !important;
  background: rgba(124,58,237,0.08) !important;
}
.cv-acc-btn::after {
  filter: invert(0.6) sepia(1) saturate(3) hue-rotate(220deg);
}
.cv-acc-body {
  background: var(--dark-card);
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  padding: 0.25rem 1.4rem 1.25rem;
}
.cv-acc-body a { color: var(--primary-lt); }
[data-theme="light"] .cv-acc-item  { background: #fff; }
[data-theme="light"] .cv-acc-btn   { background: #fff !important; color: var(--text) !important; }
[data-theme="light"] .cv-acc-btn:not(.collapsed) { background: rgba(124,58,237,0.06) !important; }
[data-theme="light"] .cv-acc-body  { background: #fff; }

/* ===================================================================
   BACK TO TOP BUTTON
   =================================================================== */
.cv-back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 4px 18px rgba(124,58,237,0.45);
}
.cv-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cv-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124,58,237,0.55);
}

/* ===================================================================
   LIGHT MODE — Comprehensive white-text overrides
   =================================================================== */
[data-theme="light"] .hero-headline { color: var(--text) !important; }
[data-theme="light"] .testi-name    { color: var(--text) !important; }
[data-theme="light"] .cv-title      { color: var(--text) !important; }

/* Cards & sections with inline color:#fff */
[data-theme="light"] .cv-card h3,
[data-theme="light"] .cv-card h4,
[data-theme="light"] .cv-card h5,
[data-theme="light"] .cv-card h6 { color: var(--text) !important; }

[data-theme="light"] .svc-card h3,
[data-theme="light"] .svc-card h4 { color: var(--text) !important; }

/* Legal pages strong labels */
[data-theme="light"] .legal-content strong,
[data-theme="light"] .legal-content b { color: var(--text) !important; }

/* Contact info headings */
[data-theme="light"] .ci-text h6,
[data-theme="light"] .contact-info-item h6 { color: var(--text) !important; }

/* Contact/hero inline white spans */
[data-theme="light"] .cv-section span[style*="color:#fff"],
[data-theme="light"] .cv-section span[style*="color: #fff"] { color: var(--text) !important; }

/* Testimonial card details */
[data-theme="light"] .testimonial-card p { color: var(--text-muted) !important; }

/* Process steps, blog meta, etc */
[data-theme="light"] .step-content h4,
[data-theme="light"] .step-content h5 { color: var(--text) !important; }

/* ===================================================================
   LANGUAGE PICKER — custom dropdown (no Bootstrap dependency)
   =================================================================== */
.cv-lang-picker { position: relative; }
.cv-lang-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.cv-lang-btn:hover { border-color: var(--primary-lt); color: var(--primary-lt); }
.cv-lang-arrow {
  font-size: 0.55rem;
  opacity: 0.65;
  transition: transform 0.25s;
}
.cv-lang-picker.open .cv-lang-arrow { transform: rotate(180deg); }
.cv-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 155px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.cv-lang-picker.open .cv-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cv-lang-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.cv-lang-opt:hover,
.cv-lang-opt.lang-active { background: rgba(124,58,237,0.1); color: var(--primary-lt); }
.lang-flag { font-size: 1rem; line-height: 1; }
[data-theme="light"] .cv-lang-btn  { background: rgba(0,0,0,0.04); }
[data-theme="light"] .cv-lang-menu { background: #fff; box-shadow: 0 8px 32px rgba(0,0,0,0.14); }

/* ===================================================================
   COMPREHENSIVE LIGHT MODE — inline color:#fff override
   =================================================================== */
[data-theme="light"] *[style*="color:#fff"]  { color: var(--text) !important; }
[data-theme="light"] *[style*="color: #fff"] { color: var(--text) !important; }

/* ===================================================================
   MEGA MENU
   =================================================================== */
.cv-mega-item { position: static; }
.cv-mega-trigger { display: flex; align-items: center; }
.cv-mega-arrow {
  font-size: 0.6rem;
  transition: transform 0.25s;
  opacity: 0.7;
}
.cv-mega-item.mega-open .cv-mega-arrow { transform: rotate(180deg); }

.cv-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid rgba(124,58,237,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 895;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  pointer-events: none;
}
.cv-mega-menu.mega-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}
.cv-mega-inner { padding: 2rem 0; }
.cv-mega-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

/* Service cards in mega */
.cv-mega-svc-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
  border: 1px solid transparent;
}
.cv-mega-svc-card:hover {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.15);
}
.cv-mega-svc-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--grad-card);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-lt);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.cv-mega-svc-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}
.cv-mega-svc-desc {
  font-size: 0.77rem;
  color: var(--text-faint);
  line-height: 1.3;
}

/* Project thumbs in mega */
.cv-mega-proj-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
  padding-bottom: 8px;
}
.cv-mega-proj-card:hover { border-color: rgba(124,58,237,0.3); transform: translateY(-2px); }
.cv-mega-proj-thumb {
  height: 72px;
  background-size: cover;
  background-position: top center;
  transition: transform 3s ease;
}
.cv-mega-proj-card:hover .cv-mega-proj-thumb { transform: translateY(calc(-100% + 72px)); }
.cv-mega-proj-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 10px 0;
  line-height: 1.2;
}
.cv-mega-proj-cat {
  font-size: 0.7rem;
  color: var(--text-faint);
  padding: 2px 10px 0;
}

/* CTA column */
.cv-mega-cta-col {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cv-mega-cta-box {
  background: var(--grad-card);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 12px;
  padding: 1.25rem;
}
.cv-mega-cta-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(124,58,237,0.12);
  color: var(--primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.cv-mega-cta-box h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.cv-mega-cta-box p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.cv-mega-all-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-lt);
  text-decoration: none;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  transition: gap 0.2s;
}
.cv-mega-all-link:hover { gap: 10px; }

[data-theme="light"] .cv-mega-menu     { background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
[data-theme="light"] .cv-mega-svc-name { color: var(--text); }
[data-theme="light"] .cv-mega-proj-name{ color: var(--text); }
[data-theme="light"] .cv-mega-cta-box h6 { color: var(--text); }
[data-theme="light"] .cv-mega-proj-card { background: #fff; }

@media (max-width: 991px) {
  .cv-mega-menu { display: none; }
}

/* ===================================================================
   PROJECT / SERVICE DETAIL PAGES
   =================================================================== */

/* Project Hero */
.cv-project-hero {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: top center;
  padding: 110px 0 3rem;
  position: relative;
}
.cv-project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,15,0.55) 0%, rgba(7,7,15,0.85) 100%);
}
.cv-project-hero-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  display: block;
  color: var(--primary-lt);
}
.cv-project-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.cv-project-hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin-bottom: 1.5rem;
}
.cv-project-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.cv-project-hero-meta i { color: var(--primary-lt); }
.cv-project-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.25);
  border: 1px solid rgba(124,58,237,0.4);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.cv-project-live-btn:hover { background: var(--primary); color: #fff; }

/* Detail page content */
.cv-detail-block {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.cv-detail-block:last-of-type { border-bottom: none; }
.cv-detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.cv-detail-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.cv-detail-text {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 0;
}
.cv-challenge-box {
  display: flex;
  gap: 1.25rem;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 12px;
  padding: 1.5rem;
}
.cv-challenge-icon {
  font-size: 1.4rem;
  color: var(--primary-lt);
  flex-shrink: 0;
  margin-top: 2px;
}
.cv-feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: border-color 0.2s;
}
.cv-feature-pill:hover { border-color: rgba(124,58,237,0.3); }
.cv-feature-icon { color: var(--green); font-size: 0.9rem; flex-shrink: 0; }
.cv-result-card {
  padding: 1.25rem;
  background: rgba(16,185,129,0.05);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 10px;
  height: 100%;
}
.cv-deliverables-list { display: flex; flex-direction: column; gap: 8px; }
.cv-deliverable-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.cv-del-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(6,182,212,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.cv-detail-cta {
  background: var(--grad-card);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}
.cv-detail-cta h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.cv-detail-cta p  { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Sidebar */
.cv-detail-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.25rem; }
.cv-sidebar-widget {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.cv-sw-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
/* Meta list */
.cv-sw-meta-list { display: flex; flex-direction: column; gap: 10px; }
.cv-sw-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cv-sw-meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.cv-sw-meta-label { color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.cv-sw-meta-label i { color: var(--primary-lt); font-size: 0.75rem; }
.cv-sw-meta-val { color: var(--text); font-weight: 600; }

/* CTA widget */
.cv-sw-cta { background: var(--grad-card); border-color: rgba(124,58,237,0.2); text-align: center; }
.cv-sw-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: 0 auto 0.75rem;
}
.cv-sw-cta h6 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.cv-sw-cta p  { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }

/* Price widget */
.cv-sw-price { text-align: center; }
.cv-sw-price-label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.cv-sw-price-value { font-size: 2rem; font-weight: 900; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.25rem; }
.cv-sw-price-note { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 1rem; }

/* Project list in sidebar */
.cv-sw-project-list { display: flex; flex-direction: column; gap: 6px; }
.cv-sw-project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.cv-sw-project-item:hover { background: rgba(124,58,237,0.07); border-color: rgba(124,58,237,0.15); }
.cv-sw-project-thumb {
  width: 46px;
  height: 34px;
  border-radius: 6px;
  background-size: cover;
  background-position: top;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cv-sw-project-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.cv-sw-project-cat  { font-size: 0.72rem; color: var(--text-faint); }
.cv-sw-project-info { flex: 1; min-width: 0; }
.cv-sw-project-arrow { font-size: 0.65rem; color: var(--text-faint); flex-shrink: 0; }

/* Service list in sidebar */
.cv-sw-service-list { display: flex; flex-direction: column; gap: 6px; }
.cv-sw-service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.15s;
}
.cv-sw-service-item:hover { background: rgba(124,58,237,0.07); border-color: rgba(124,58,237,0.15); }
.cv-sw-svc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--grad-card);
  border: 1px solid rgba(124,58,237,0.15);
  color: var(--primary-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.cv-sw-svc-name { font-size: 0.82rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.cv-sw-svc-desc { font-size: 0.72rem; color: var(--text-faint); line-height: 1.3; }
.cv-sw-svc-info { flex: 1; min-width: 0; }

/* Service hero icon */
.cv-svc-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.cv-svc-hero-stat-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cv-svc-hero-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}
.cv-svc-stat-num { font-size: 1.6rem; font-weight: 900; background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cv-svc-stat-lbl { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.cv-svc-price-stat { grid-column: 1 / -1; }

.cv-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 50px;
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.3);
  color: #25D366;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.cv-btn-whatsapp:hover { background: rgba(37,211,102,0.2); color: #25D366; }

/* Light mode detail pages */
[data-theme="light"] .cv-detail-heading { color: var(--text); }
[data-theme="light"] .cv-sidebar-widget { background: #fff; }
[data-theme="light"] .cv-feature-pill   { background: #f4f5ff; }
[data-theme="light"] .cv-deliverable-item { background: #f4f5ff; }
[data-theme="light"] .cv-detail-cta     { background: rgba(124,58,237,0.04); }
[data-theme="light"] .cv-sw-meta-val    { color: var(--text); }
[data-theme="light"] .cv-sw-project-name { color: var(--text); }
[data-theme="light"] .cv-sw-svc-name   { color: var(--text); }
[data-theme="light"] .cv-mega-svc-card:hover { background: rgba(124,58,237,0.05); }

/* ===================================================================
   SIDEBAR TRIGGER (navbar button)
   =================================================================== */
.cv-sidebar-trigger {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cv-sidebar-trigger:hover { border-color: var(--primary-lt); color: var(--primary-lt); }
[data-theme="light"] .cv-sidebar-trigger { background: rgba(0,0,0,0.04); }

/* ===================================================================
   SIDEBAR PANEL
   =================================================================== */
.cv-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1049;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(2px);
}
.cv-sidebar-overlay.active { opacity: 1; visibility: visible; }

.cv-sidebar {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  height: 100vh;
  background: var(--dark-card);
  border-left: 1px solid var(--border);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}
.cv-sidebar.open { right: 0; }

.cv-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--dark-card);
}
.cv-sidebar-logo { height: 30px; }
.cv-sb-logo-dark  { display: none; }
.cv-sb-logo-light { display: block; }
[data-theme="light"] .cv-sb-logo-dark  { display: block; }
[data-theme="light"] .cv-sb-logo-light { display: none; }

.cv-sidebar-close {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  color: #f87171;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cv-sidebar-close:hover { background: rgba(239,68,68,0.18); }

.cv-sidebar-body {
  flex: 1;
  padding: 1.4rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.2) transparent;
}
.cv-sidebar-tagline {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cv-sidebar-section { margin-bottom: 1.5rem; }
.cv-sidebar-sec-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.cv-sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.cv-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
}
.cv-sidebar-nav a:hover,
.cv-sidebar-nav a.sb-active { background: rgba(124,58,237,0.08); color: var(--primary-lt); }
.cv-sidebar-nav a i { width: 16px; text-align: center; font-size: 0.82rem; opacity: 0.7; }

.cv-sidebar-contact { display: flex; flex-direction: column; }
.cv-sidebar-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.cv-sidebar-contact a:last-child { border-bottom: none; }
.cv-sidebar-contact a:hover { color: var(--primary-lt); }
.cv-sidebar-contact a i { width: 16px; text-align: center; color: var(--primary-lt); font-size: 0.85rem; }

.cv-sidebar-langs { display: flex; flex-direction: column; gap: 4px; }
.cv-sidebar-langs .cv-lang-opt {
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cv-sidebar-avail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}
.cv-sidebar-footer {
  padding: 1.1rem 1.4rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--dark-card);
}
.cv-sidebar-copy { font-size: 0.73rem; color: var(--text-faint); margin: 0.6rem 0 0; }

[data-theme="light"] .cv-sidebar          { background: #fff; }
[data-theme="light"] .cv-sidebar-header   { background: #fff; }
[data-theme="light"] .cv-sidebar-footer   { background: #fff; }
[data-theme="light"] .cv-sidebar-nav a    { color: var(--text-muted); }
[data-theme="light"] .cv-sidebar-contact a{ color: var(--text-muted); }

@media (max-width: 991px) {
  .cv-sidebar { width: 290px; right: -310px; }
}

/* ===================================================================
   SERVICES PAGE — New immersive hero
   =================================================================== */
.cv-services-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #07021a 0%, #100528 45%, #060d1e 100%);
  padding: 120px 0 90px;
  min-height: 440px;
  display: flex;
  align-items: center;
}
.cv-sh-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cv-sh-orb-1 {
  width: 700px; height: 700px;
  top: -260px; left: -200px;
  background: radial-gradient(circle, rgba(124,58,237,0.16) 0%, transparent 65%);
}
.cv-sh-orb-2 {
  width: 350px; height: 350px;
  bottom: -120px; right: 10%;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 65%);
}
.cv-sh-orb-3 {
  width: 200px; height: 200px;
  top: 20%; right: 2%;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
}
.cv-sh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.cv-sh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-lt);
  margin-bottom: 1.4rem;
}
.cv-sh-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  font-family: "Space Grotesk", sans-serif;
}
.cv-sh-highlight {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cv-sh-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Service icon cards grid */
.cv-sh-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cv-sh-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
  text-decoration: none;
}
.cv-sh-card:hover {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.25);
  color: #fff;
}
.cv-sh-card-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(124,58,237,0.12);
  color: var(--primary-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

[data-theme="light"] .cv-services-hero {
  background: linear-gradient(135deg, #eceeff 0%, #e5e8fc 50%, #edf0ff 100%);
}
[data-theme="light"] .cv-sh-title { color: var(--text); }
[data-theme="light"] .cv-sh-sub   { color: var(--text-muted); }
[data-theme="light"] .cv-sh-card  { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.07); color: var(--text-muted); }
[data-theme="light"] .cv-sh-card:hover { background: rgba(124,58,237,0.07); color: var(--text); }
[data-theme="light"] .cv-sh-grid {
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
}

/* ===================================================================
   QUALITY COMMITMENT CARDS
   =================================================================== */
.cv-commit-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.cv-commit-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.25s;
}
.cv-commit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.cv-commit-card:hover::after { opacity: 1; }
.cv-commit-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.cv-commit-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.cv-commit-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}
[data-theme="light"] .cv-commit-card { background: #fff; }
[data-theme="light"] .cv-commit-title { color: var(--text); }

/* ===================================================================
   SERVICE DETAIL — New immersive hero
   =================================================================== */
.cv-svc-detail-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #08021a 0%, #110528 40%, #060c1c 100%);
  padding: 120px 0 80px;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.cv-sdh-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cv-sdh-orb-1 {
  width: 600px; height: 600px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 65%);
}
.cv-sdh-orb-2 {
  width: 400px; height: 400px;
  bottom: -150px; right: -80px;
  background: radial-gradient(circle, rgba(6,182,212,0.14) 0%, transparent 65%);
}
.cv-sdh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Label pill */
.cv-sdh-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-lt);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

/* Title */
.cv-sdh-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
  font-family: "Space Grotesk", sans-serif;
}
.cv-sdh-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 540px;
}

/* Inline stats strip */
.cv-sdh-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.cv-sdh-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv-sdh-stat-num {
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.cv-sdh-stat-lbl {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.cv-sdh-stat-div {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Decorative icon visual */
.cv-sdh-icon-visual {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cv-sdh-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.2);
  animation: sdh-pulse 4s ease-in-out infinite;
}
.cv-sdh-ring-1 { inset: 0; animation-delay: 0s; }
.cv-sdh-ring-2 { inset: -24px; animation-delay: 1.3s; border-color: rgba(6,182,212,0.15); }
.cv-sdh-ring-3 { inset: -50px; animation-delay: 2.6s; border-color: rgba(124,58,237,0.08); }
@keyframes sdh-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}
.cv-sdh-icon-wrap {
  width: 100px;
  height: 100px;
  border-radius: 28px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: #fff;
  box-shadow: 0 0 60px rgba(124,58,237,0.45), 0 20px 40px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

[data-theme="light"] .cv-svc-detail-hero {
  background: linear-gradient(135deg, #eceeff 0%, #e5e8fc 50%, #edf0ff 100%);
}
[data-theme="light"] .cv-sdh-title { color: var(--text); }
[data-theme="light"] .cv-sdh-sub   { color: var(--text-muted); }
[data-theme="light"] .cv-sdh-stat-lbl { color: var(--text-faint); }
[data-theme="light"] .cv-sdh-stat-div { background: rgba(0,0,0,0.1); }
[data-theme="light"] .cv-sdh-grid {
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
}

/* ===================================================================
   LIGHT MODE — Button text fixes
   =================================================================== */
[data-theme="light"] .cv-btn-outline {
  color: var(--primary) !important;
  border-color: rgba(124,58,237,0.35) !important;
}
[data-theme="light"] .cv-btn-outline:hover {
  color: var(--primary-lt) !important;
  border-color: var(--primary-lt) !important;
  background: rgba(124,58,237,0.06) !important;
}
/* Primary button stays white text (gradient bg) — keep as is */

/* ===================================================================
   MINI TERMINAL POPUPS (hero section macOS-style cards)
   =================================================================== */
.hero-mini-term {
  position: absolute;
  background: rgba(10, 10, 24, 0.88);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px;
  padding: 0;
  width: 220px;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  z-index: 2;
  animation: hmtFloat 6s ease-in-out infinite;
}
.hmt-tl {
  top: 12%;
  left: -15%;
  animation-delay: 0s;
}
.hmt-br {
  bottom: 10%;
  right: -12%;
  animation-delay: 3s;
  width: 200px;
}
@keyframes hmtFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
.hmt-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(124,58,237,0.15);
  background: rgba(124,58,237,0.06);
  border-radius: 12px 12px 0 0;
}
.hmt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.hmt-dot.r { background: #ff5f57; }
.hmt-dot.y { background: #febc2e; }
.hmt-dot.g { background: #28c840; }
.hmt-title {
  font-size: 0.67rem;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
  letter-spacing: 0.04em;
}
.hmt-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hmt-body div { white-space: nowrap; overflow: hidden; }
.hmt-body .c-cyan   { color: #67e8f9; }
.hmt-body .c-green  { color: #6ee7b7; }
.hmt-body .c-white  { color: #e2e8f0; }
.hmt-body .c-muted  { color: #475569; }
.hmt-body .c-purple { color: #a78bfa; }
.hmt-body .c-orange { color: #fbbf24; }

[data-theme="light"] .hero-mini-term {
  background: rgba(255,255,255,0.92);
  border-color: rgba(124,58,237,0.2);
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
[data-theme="light"] .hmt-body .c-white { color: #1e293b; }
[data-theme="light"] .hmt-body .c-muted { color: #94a3b8; }

@media (max-width: 991px) {
  .hmt-tl { left: -5%; top: 8%; width: 180px; }
  .hmt-br { right: -5%; bottom: 5%; width: 165px; }
}
@media (max-width: 767px) {
  .hero-mini-term { display: none; }
}

/* ===================================================================
   MEGA MENU — Enhanced visual design
   =================================================================== */
.cv-mega-menu {
  border-top: 2px solid transparent;
  background-clip: padding-box;
  background-image: linear-gradient(var(--dark-card), var(--dark-card));
  background-origin: padding-box;
}
.cv-mega-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  background-size: 200% 100%;
  animation: megaGrad 4s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes megaGrad {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Frosted glass section divider */
.cv-mega-inner .cv-mega-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cv-mega-inner .cv-mega-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Enhanced service cards */
.cv-mega-svc-card {
  position: relative;
  overflow: hidden;
}
.cv-mega-svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 10px;
}
.cv-mega-svc-card:hover::before { opacity: 0.04; }
.cv-mega-svc-card:hover .cv-mega-svc-icon {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
  transform: scale(1.08);
  transition: all 0.25s;
}

/* Enhanced project cards */
.cv-mega-proj-card {
  background: var(--dark-card-2);
}
.cv-mega-proj-cat {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cv-mega-proj-cat::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-lt);
  flex-shrink: 0;
}

/* CTA column glow badge */
.cv-mega-cta-box {
  position: relative;
  overflow: hidden;
}
.cv-mega-cta-box::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Active trigger highlight */
.cv-mega-item.mega-open > .cv-mega-trigger {
  color: var(--primary-lt) !important;
}

[data-theme="light"] .cv-mega-proj-card { background: #f4f5ff; }
[data-theme="light"] .cv-mega-menu::before { opacity: 0.7; }

/* ===================================================================
   MEGA MENU — Category-filtered Projects layout
   =================================================================== */
.cv-mega-cat-panel {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cv-mega-cat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.cv-mega-cat-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
  border: 1px solid transparent;
}
.cv-mega-cat-item:hover,
.cv-mega-cat-item.active {
  background: rgba(124,58,237,0.1);
  border-color: rgba(124,58,237,0.2);
  color: var(--primary-lt);
}
.cv-mega-cat-icon { font-size: 0.8rem; width: 14px; text-align: center; flex-shrink: 0; }
.cv-mega-cat-count {
  margin-left: auto;
  font-size: 0.7rem;
  background: rgba(124,58,237,0.12);
  color: var(--primary-lt);
  padding: 1px 7px;
  border-radius: 20px;
  font-weight: 700;
}
.cv-mega-cat-viewall {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-lt);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  transition: gap 0.2s;
}
.cv-mega-cat-viewall:hover { gap: 10px; }

.cv-mega-proj-panel {
  flex: 1;
  padding: 1.25rem 0 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-content: start;
  overflow: hidden;
}
.cv-mega-proj-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
  background: var(--dark-card-2);
}
.cv-mega-proj-item:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.cv-mega-proj-thumb {
  height: 80px;
  background-size: cover;
  background-position: center top;
}
.cv-mega-proj-info {
  padding: 7px 9px 8px;
}
.cv-mega-proj-name {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-mega-proj-cat {
  font-size: 0.67rem;
  color: var(--text-faint);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme="light"] .cv-mega-cat-panel { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .cv-mega-cat-label { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .cv-mega-cat-viewall { border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .cv-mega-proj-item { background: #f4f5ff; }
[data-theme="light"] .cv-mega-proj-name { color: var(--text); }

/* ===================================================================
   SERVICE DETAIL — Pricing CTA widget (replaces price display)
   =================================================================== */
.cv-sw-price-cta {
  text-align: center;
  background: var(--grad-card);
  border-color: rgba(124,58,237,0.2) !important;
}
.cv-sw-price-cta-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124,58,237,0.12);
  color: var(--primary-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 0.85rem;
}
.cv-sw-price-cta-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.cv-sw-price-cta-note {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.1rem;
}

/* ===================================================================
   RESPONSIVE — All screen sizes
   =================================================================== */

/* Ensure images don't overflow */
img { max-width: 100%; height: auto; }

/* Services page cards — full-height button at bottom */
.service-detail-card { display: flex; flex-direction: column; }
.service-detail-card .sdc-features { flex: 1; }

/* Project cards on mobile */
@media (max-width: 575px) {
  .project-card-lg .pcl-meta { flex-direction: column; gap: 8px; }
  .cv-stats-bar .stat-item { min-width: 120px; }
  .cv-svc-detail-hero { padding: 100px 0 60px; }
  .cv-services-hero { padding: 100px 0 60px; }
  .cv-sdh-stats { gap: 8px; }
  .cv-sdh-stat-num { font-size: 1.1rem; }
}

/* Tablet adjustments */
@media (max-width: 767px) {
  .cv-mega-menu { display: none !important; }
  .cv-sdh-icon-visual { width: 160px; height: 160px; }
  .cv-sdh-icon-wrap { width: 72px; height: 72px; font-size: 1.8rem; }
  .hmt-tl, .hmt-br { display: none; }
  .hero-visual { padding: 0 1rem; }
  .cv-sh-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cv-commit-card { padding: 1.25rem; }
  .cv-detail-sidebar { position: static; }
}

/* Medium screens */
@media (max-width: 991px) {
  .cv-mega-proj-panel { grid-template-columns: repeat(3, 1fr); }
  .cv-svc-detail-hero { padding: 100px 0 70px; }
  .cv-sh-title { font-size: 2.4rem; }
  .cv-sdh-title { font-size: 2.4rem; }
}

/* Large screens — ensure containers don't over-stretch */
@media (min-width: 1400px) {
  .cv-mega-proj-panel { grid-template-columns: repeat(5, 1fr); }
}

/* ===================================================================
   SPEED / PERFORMANCE OPTIMISATIONS
   =================================================================== */

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Promote heavy animated elements to GPU layer */
.cv-mega-menu,
.cv-sidebar,
#navMenu,
.hero-mini-term,
.cv-back-to-top,
.cv-whatsapp-float {
  will-change: transform, opacity;
}

/* Contain paint for card grids to reduce repaints */
.cv-card,
.svc-card,
.service-detail-card,
.cv-commit-card,
.cv-mega-proj-item {
  contain: layout style;
}

/* Disable particle canvas on mobile (already hidden, ensure JS skips it) */
@media (max-width: 767px) {
  #heroCanvas { display: none; }
}

/* ===================================================================
   CONTACT FORM — Select dropdown right-side padding fix
   =================================================================== */
select.cv-select {
  padding-right: 2.75rem;
  cursor: pointer;
  /* Custom arrow with enough breathing room */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239d60f8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
select.cv-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
[data-theme="light"] select.cv-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237c3aed' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: #f4f5ff;
}

/* ===================================================================
   TOPBAR
   =================================================================== */
.cv-topbar {
  position: relative;
  height: 36px;
  background: linear-gradient(90deg, #07060f 0%, #0e0520 50%, #060b18 100%);
  border-bottom: 1px solid rgba(124,58,237,0.15);
  z-index: 1;
  display: flex;
  align-items: center;
}
.cv-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.cv-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cv-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.cv-topbar-link i { color: var(--primary-lt); font-size: 0.8rem; }
.cv-topbar-link:hover { color: rgba(255,255,255,0.9); }
.cv-topbar-sep { color: rgba(255,255,255,0.2); font-size: 0.8rem; }

.cv-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cv-topbar-avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
}
.cv-topbar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: waPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.cv-topbar-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-topbar-socials a {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  transition: color 0.2s;
  text-decoration: none;
}
.cv-topbar-socials a:hover { color: var(--primary-lt); }

/* Navbar is sticky — stays at top after topbar scrolls away */
#mainNav { position: sticky !important; top: 0 !important; }

/* No body padding needed — topbar is in normal document flow */
body { padding-top: 0; }

/* Hide topbar on very small screens to save space */
@media (max-width: 399px) {
  .cv-topbar { display: none; }
}

[data-theme="light"] .cv-topbar {
  background: linear-gradient(90deg, #1a1a2e 0%, #22163a 50%, #0f1b30 100%);
  border-bottom-color: rgba(124,58,237,0.2);
}

/* ===================================================================
   SERVICE CARD — Highlighted "Explore Service" button
   =================================================================== */
.cv-sdc-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(124,58,237,0.1);
  color: var(--primary-lt) !important;
  border: 1.5px solid rgba(124,58,237,0.35);
  transition: all 0.25s;
  white-space: nowrap;
  align-self: flex-start;
}
.cv-sdc-explore-btn i {
  transition: transform 0.25s;
  font-size: 0.8rem;
}
.cv-sdc-explore-btn:hover {
  background: var(--grad-primary);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 6px 24px rgba(124,58,237,0.4);
  transform: translateY(-2px);
}
.cv-sdc-explore-btn:hover i {
  transform: translateX(4px);
}
[data-theme="light"] .cv-sdc-explore-btn {
  background: rgba(124,58,237,0.07);
  border-color: rgba(124,58,237,0.3);
}
[data-theme="light"] .cv-sdc-explore-btn:hover {
  background: var(--grad-primary);
  color: #fff !important;
}

/* ===================================================================
   MEGA MENU — Reliable hover: extend nav hit-area downward
   so mouse moving from trigger to panel never leaves the nav
   =================================================================== */
#mainNav {
  /* extend clickable area to cover the mega menu panel below */
  padding-bottom: 0;
}
/* Bridge element: covers the gap between nav bar bottom and mega panel top */
.cv-mega-menu::after {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
  pointer-events: auto;
}
.cv-mega-menu.mega-active {
  /* ensure pointer events are on so the bridge works */
  pointer-events: all;
}

/* ===================================================================
   MOBILE NAV TOGGLER — hamburger button
   =================================================================== */
.cv-nav-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.cv-nav-toggler span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.cv-nav-toggler:hover {
  background: rgba(124,58,237,0.25);
  border-color: rgba(124,58,237,0.5);
}
.cv-nav-toggler[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cv-nav-toggler[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cv-nav-toggler[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

[data-theme="light"] .cv-nav-toggler span { background: #1a1a2e; }
[data-theme="light"] .cv-nav-toggler { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); }

/* ===================================================================
   MOBILE NAV PANEL — drops below header, full width
   =================================================================== */
.cv-mobile-nav {
  width: 100%;
  background: #0a0a14;
  border-top: 1px solid rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(124,58,237,0.15);
}
.cv-mobile-nav.collapsing { transition: height 0.28s ease; }

.cv-mobile-links {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.cv-mobile-links li {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cv-mobile-links li:last-child { border-bottom: none; }
.cv-mobile-links a {
  display: block;
  padding: 0.85rem 0.5rem;
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}
.cv-mobile-links a:hover,
.cv-mobile-links a.active {
  color: #fff;
  padding-left: 0.75rem;
}
.cv-mobile-links a.active { color: var(--primary-lt); font-weight: 600; }

.cv-mobile-cta {
  padding: 1rem 0 1.25rem;
}

[data-theme="light"] .cv-mobile-nav {
  background: #fff;
  border-top-color: rgba(124,58,237,0.15);
  border-bottom-color: rgba(124,58,237,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
[data-theme="light"] .cv-mobile-links li { border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .cv-mobile-links a { color: #374151; }
[data-theme="light"] .cv-mobile-links a:hover,
[data-theme="light"] .cv-mobile-links a.active { color: var(--primary); }
