/* =====================================================
   Neeve Smartech — Custom CSS
   Layered on top of Tailwind CSS v3
   ===================================================== */

/* ---- Google Fonts are loaded in base.html ---- */

:root {
  --primary: #6C63FF;
  --color-primary-rgb: 108, 99, 255;
  --accent: #00D4FF;
  --dark: #0A0A0F;
  --dark-100: #12121A;
  --dark-200: #1A1A26;
}

/* ---- Custom scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #2a2a3e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---- Selection ---- */
::selection { background: rgba(108, 99, 255, 0.3); color: #fff; }

/* ---- Body base ---- */
body { background-color: var(--dark); color: #CBD5E1; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ANIMATED GRADIENT BACKGROUND (CTA band) ===== */
.cta-gradient {
  background: linear-gradient(135deg, #4338ca, var(--primary), #7c3aed, #0ea5e9);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== GRID OVERLAY ===== */
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 99, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== GLOWING ORBS ===== */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; background: rgba(108,99,255,0.12); top: -15%; left: -10%; animation-duration: 9s; }
.orb-2 { width: 400px; height: 400px; background: rgba(0,212,255,0.08); bottom: -10%; right: 5%; animation-duration: 11s; animation-delay: 3s; }
.orb-3 { width: 300px; height: 300px; background: rgba(139,92,246,0.10); top: 40%; left: 40%; animation-duration: 7s; animation-delay: 1.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-24px) scale(1.04); }
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--primary), #5b52e0);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

/* ===== SECTION HELPERS ===== */
.section-label {
  display: inline-block;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub {
  color: #64748b;
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== FLOATING GLASS NAVIGATION ===== */
#navbar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#navbar.scrolled {
  top: 0.75rem;
  background: rgba(10, 10, 15, 0.92);
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 10px 40px -10px rgba(108, 99, 255, 0.3);
}

/* Active Indicator styling */
#navbar nav a span.absolute {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%) !important;
  border: 1px solid rgba(108, 99, 255, 0.25);
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.1);
  border-radius: 0.5rem;
}

/* Mobile menu rounded bottom corners */
#mobile-menu {
  border-radius: 0 0 1.25rem 1.25rem;
  overflow: hidden;
}


/* ===== SCROLL ANIMATION BASE =====
   GSAP fully controls transforms — CSS only hides opacity
   to prevent flash of unstyled content before GSAP runs.
   ===================================================== */
[data-animate] {
  opacity: 0;
  /* No CSS transform here — GSAP sets initial transform state */
}
/* Fallback for no-JS: add .is-visible manually via IntersectionObserver */
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== SERVICE CARD ===== */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(108, 99, 255, 0.12);
}

/* ===== PROJECT CARD ===== */
.project-card { transition: transform 0.3s ease; }
.project-card:hover { transform: translateY(-4px); }

/* ===== ADMIN NAV ===== */
.admin-sidebar {
  background: linear-gradient(180deg, #0e0e18 0%, #12121f 100%);
  border-right: 1px solid rgba(255,255,255,0.06);
}



/* ===== PORTFOLIO FILTER ANIMATION ===== */
.portfolio-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.portfolio-item.hidden-item { opacity: 0; transform: scale(0.95); pointer-events: none; }

/* ===== PRICING CARD HIGHLIGHT ===== */
.pricing-highlight {
  border: 1px solid rgba(108,99,255,0.5) !important;
  background: linear-gradient(180deg, rgba(108,99,255,0.08) 0%, rgba(108,99,255,0.02) 100%) !important;
  position: relative;
}
.pricing-highlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ===== FLASH TOAST ANIMATION ===== */
.flash-message { animation: slideInRight 0.35s ease; }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== FAQ ACCORDION ===== */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.3s ease; }

/* ===== BLOG ===== */
.prose-custom h2, .prose-custom h3 { color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.prose-custom p { color: #94a3b8; line-height: 1.8; margin-bottom: 1rem; }
.prose-custom a { color: var(--primary); text-decoration: underline; }
.prose-custom code { background: rgba(108,99,255,0.1); color: var(--primary); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.875em; }
.prose-custom pre { background: #0d0d17; border: 1px solid rgba(255,255,255,0.08); border-radius: 0.75rem; padding: 1.25rem; overflow-x: auto; margin: 1.5rem 0; }
.prose-custom ul, .prose-custom ol { color: #94a3b8; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-custom li { margin-bottom: 0.375rem; line-height: 1.7; }
.prose-custom blockquote { border-left: 3px solid var(--primary); padding-left: 1rem; color: #64748b; font-style: italic; margin: 1.5rem 0; }

/* ===== CONTACT FORM FOCUS ===== */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
}
.form-input:focus { border-color: rgba(108,99,255,0.5); background: rgba(108,99,255,0.04); }
.form-input::placeholder { color: #475569; }

/* ===== LINE CLAMP (fallback) ===== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== ADMIN TABLE ===== */
.admin-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: #475569; padding: 0.75rem 1rem; }
.admin-table td { padding: 0.875rem 1rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.875rem; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== RESPONSIVE UTIL ===== */
@media (max-width: 768px) {
  .section-title { font-size: 1.75rem; }
  .hero-title { font-size: 2.5rem; }
}

/* ===== FLOATING WHATSAPP WIDGET ===== */
.whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  /* Isolation: prevents page orbs/blurs from bleeding into this layer */
  isolation: isolate;
}

/* Ping ripple wrapper */
.whatsapp-btn-wrap {
  position: relative;
  flex-shrink: 0;
}
.whatsapp-ping {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  animation: waPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes waPing {
  0%   { transform: scale(0.9); opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.whatsapp-btn {
  position: relative;
  z-index: 1;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #1ebe5b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.3),
    0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
              box-shadow 0.3s ease;
  text-decoration: none;
  /* Hard background so page orbs can't bleed through */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.whatsapp-btn svg {
  flex-shrink: 0;
  display: block;
}
.whatsapp-btn:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow:
    0 6px 8px rgba(0,0,0,0.35),
    0 14px 36px rgba(37, 211, 102, 0.65);
}
.whatsapp-btn:active {
  transform: scale(0.96);
}

/* Tooltip */
.whatsapp-tooltip {
  position: relative;
  background: #12121a;
  border: 1px solid rgba(37, 211, 102, 0.2);
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.4),
    0 12px 28px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateX(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  white-space: nowrap;
}
/* Arrow pointing right toward the button */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-right: 0;
  border-left-color: #12121a;
}
.whatsapp-tooltip.show {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}
.whatsapp-tooltip-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.01em;
}

/* =====================================================
   GSAP ANIMATION SUPPORT STYLES
   All additive — no existing rules modified.
   ===================================================== */

/* ---- prefers-reduced-motion: disable all animations ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- Custom cursor: DISABLED — system cursor restored ---- */
/* (cursor.js is kept as a no-op for safe module calling) */

/* ---- Nav hover underline ---- */
.nav-hover-line {
  display: block;
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  pointer-events: none;
}

/* ---- Page loader bar ---- */
#page-loader {
  height: 3px;
}
.loader-bar {
  height: 100%;
  background-size: 200% auto;
  animation: shimmerBar 1.5s linear infinite;
}
@keyframes shimmerBar {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ---- Page transition overlay ---- */
#page-transition-overlay {
  background: var(--dark);
}

/* ---- Button ripple ---- */
.btn-ripple-el {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
}

/* ---- Testimonial marquee ---- */
.testimonial-overflow {
  overflow: hidden;
  position: relative;
  width: 100%;
  /* Fade edges */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}
.testimonial-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  width: max-content;
}
.testimonial-card-item {
  flex-shrink: 0;
  width: 320px;
}

/* ---- GSAP will-change optimisation ---- */
[data-animate],
.service-card,
.project-card,
.glass-card,
.btn-primary,
.btn-ghost {
  will-change: transform, opacity;
}

/* ---- FAQ answer smooth GSAP control override ---- */
.faq-answer {
  /* Let GSAP handle height — remove CSS max-height transition */
  max-height: none !important;
  transition: none !important;
  overflow: hidden;
}

/* Scroll-reveal initial state is handled by the [data-animate] rule above */
/* No duplicate rule needed here */

/* ---- Card glow hover state ---- */
.card-glow:hover {
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.4),
              0 20px 60px rgba(108, 99, 255, 0.15);
}

/* ---- Process step hover (why choose us) ---- */
.process-step:hover .step-dot {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---- Image reveal mask ---- */
.img-reveal-mask {
  overflow: hidden;
  border-radius: inherit;
}
.img-reveal-mask img {
  display: block;
  will-change: transform;
}

/* ---- Pricing highlight animated glow ---- */
.pricing-highlight {
  will-change: box-shadow;
}

/* ---- CTA band orb parallax ---- */
.cta-gradient .absolute {
  will-change: transform;
}

/* =====================================================
   SIGNATURE LOGO STYLES
   ===================================================== */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-container:hover {
  transform: scale(1.05);
}

.logo-img-nav {
  height: auto;
  max-height: 80px;
  width: auto;
  border-radius: 1rem;
  filter: contrast(1.1);
}

.logo-img-footer {
  height: auto;
  max-height: 75px;
  width: auto;
  border-radius: 1rem;
  filter: contrast(1.1);
}

/* ===== HERO VR WOMAN BACKGROUND ASSET ===== */
.hero-vr-wrapper {
  position: absolute;
  inset: -40px -60px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Premium radial fade mask to blend edges naturally */
  mask-image: radial-gradient(circle at center, black 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, black 45%, transparent 75%);
}

.hero-vr-img {
  max-height: 580px;
  width: auto;
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 20px 40px rgba(108, 99, 255, 0.35));
  /* Entrance animation + Infinite premium floating hover */
  animation: heroVRReveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             heroVRHover 8s ease-in-out 2.2s infinite;
}

@keyframes heroVRReveal {
  0% {
    opacity: 0;
    transform: translateX(180px) rotate(-4deg) skewX(-2deg) scale(0.95);
  }
  100% {
    opacity: 0.18;
    transform: translateX(-20px) rotate(-2deg) skewX(-1deg) scale(1);
  }
}

@keyframes heroVRHover {
  0%, 100% {
    transform: translateX(-20px) rotate(-2deg) skewX(-1deg) scale(1);
  }
  50% {
    transform: translateX(-35px) translateY(-12px) rotate(-3deg) skewX(-1.5deg) scale(1.015);





