/* ==========================================================================
   ZEALYEN INFOTECH — MODERN ENHANCEMENT LAYER
   Glassmorphism, motion & micro-interactions.
   This file loads AFTER style.css and only adds/upgrades — nothing here
   removes existing functionality. Safe to remove by deleting one <link>.
   ========================================================================== */

:root {
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.10), 0 1.5px 4px rgba(15, 23, 42, 0.04);
  --glow-primary: 0 0 0 1px rgba(37,99,235,0.10), 0 12px 40px rgba(37,99,235,0.18);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------- */
/* Scrollbar                                                             */
/* -------------------------------------------------------------------- */
html { scrollbar-width: thin; scrollbar-color: var(--primary-mid) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 999px; border: 2px solid #fff;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* -------------------------------------------------------------------- */
/* Body texture — very subtle grain so flat sections don't look sterile  */
/* -------------------------------------------------------------------- */
body { position: relative; }
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------- */
/* Glass navbar                                                          */
/* -------------------------------------------------------------------- */
.navbar { transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth), backdrop-filter 0.4s ease; }
.sticky-top.navbar-light {
  background: var(--glass-bg-strong) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--glass-border) !important;
  box-shadow: 0 4px 24px rgba(15,23,42,0.08) !important;
  animation: navSlideDown 0.45s var(--ease-out-expo);
}
@keyframes navSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

@media (min-width: 992px) {
  .navbar-light:not(.sticky-top) {
    background: linear-gradient(180deg, rgba(0,0,0,0.28), transparent) !important;
    border-bottom-color: transparent !important;
  }
}

/* -------------------------------------------------------------------- */
/* Hero — animated aurora blobs + glass chip                             */
/* -------------------------------------------------------------------- */
.hero-header { isolation: isolate; }
.hero-header::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(500px circle at 85% 75%, rgba(147,197,253,0.16), transparent 60%);
  animation: auroraShift 12s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.06); }
}
.hero-header .container { position: relative; z-index: 1; }

.hero-header .chip {
  background: rgba(255,255,255,0.12) !important;
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.35) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  animation: chipFloat 4.5s ease-in-out infinite;
}
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.hero-header h1 { animation: heroReveal 0.9s var(--ease-out-expo) both; }
.hero-header p { animation: heroReveal 0.9s var(--ease-out-expo) 0.1s both; }
.hero-header .d-flex.flex-wrap.gap-3 { animation: heroReveal 0.9s var(--ease-out-expo) 0.2s both; }
@keyframes heroReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* -------------------------------------------------------------------- */
/* Buttons — shine sweep + soft glow lift                                */
/* -------------------------------------------------------------------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: '';
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease-out-expo);
  z-index: -1; pointer-events: none;
}
.btn:hover::before { left: 130%; }
.btn-primary:hover { box-shadow: var(--glow-primary), 0 12px 28px rgba(37,99,235,0.30); }
.btn:active { transform: scale(0.97) translateY(0) !important; }

/* Ripple */
.btn .ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,0.55); transform: scale(0);
  animation: rippleAnim 0.6s var(--ease-out-expo);
}
@keyframes rippleAnim { to { transform: scale(2.6); opacity: 0; } }

/* -------------------------------------------------------------------- */
/* Spotlight hover cards — service-item, why-card, value-card,           */
/* testimonial-card, service-detail-card, timeline, accordion            */
/* -------------------------------------------------------------------- */
.service-item, .why-card, .value-card, .testimonial-card, .service-detail-card {
  position: relative;
  isolation: isolate;
  backdrop-filter: saturate(140%);
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo), border-color 0.45s var(--ease-smooth);
}
.service-item::after, .why-card::after, .value-card::after, .testimonial-card::after, .service-detail-card::after {
  content: '';
  position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  opacity: 0; transition: opacity 0.4s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(37,99,235,0.10), transparent 65%);
}
.service-item:hover::after, .why-card:hover::after, .value-card:hover::after,
.testimonial-card:hover::after, .service-detail-card:hover::after { opacity: 1; }

.service-item:hover, .why-card:hover, .value-card:hover, .service-detail-card:hover {
  transform: translateY(-8px) scale(1.012);
}
.service-icon, .why-icon, .value-icon, .service-detail-icon {
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease;
}
.service-item:hover .service-icon,
.why-card:hover .why-icon,
.value-card:hover .value-icon,
.service-detail-card:hover .service-detail-icon {
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 10px 24px rgba(37,99,235,0.28);
}

/* -------------------------------------------------------------------- */
/* Glass utility (opt-in, used by JS-free elements too)                  */
/* -------------------------------------------------------------------- */
.glass {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
}

/* -------------------------------------------------------------------- */
/* Gradient accent text                                                  */
/* -------------------------------------------------------------------- */
.grad-text, .hero-header h1 span {
  background: linear-gradient(100deg, #93c5fd, #a7f3d0, #93c5fd);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradFlow 6s linear infinite;
}
@keyframes gradFlow { to { background-position: 200% center; } }

/* -------------------------------------------------------------------- */
/* Section title underline sweep                                         */
/* -------------------------------------------------------------------- */
.section-title h6::before {
  animation: lineGrow 0.8s var(--ease-out-expo) both;
}
@keyframes lineGrow { from { width: 0; opacity: 0; } to { width: 20px; opacity: 1; } }

/* -------------------------------------------------------------------- */
/* Stats — subtle pop-in for big numbers                                 */
/* -------------------------------------------------------------------- */
.counter-pop { display: inline-block; animation: counterPop 0.6s var(--ease-out-expo) both; }
@keyframes counterPop { from { opacity: 0; transform: translateY(10px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* -------------------------------------------------------------------- */
/* Scroll reveal utility (activated by modern.js via IntersectionObserver)*/
/* Falls back to visible if JS is disabled.                              */
/* -------------------------------------------------------------------- */
.reveal-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }
.reveal-up:nth-child(2) { transition-delay: 0.06s; }
.reveal-up:nth-child(3) { transition-delay: 0.12s; }
.reveal-up:nth-child(4) { transition-delay: 0.18s; }

/* -------------------------------------------------------------------- */
/* Images — gentle zoom on hover within rounded frames                   */
/* -------------------------------------------------------------------- */
.col-lg-6 img.img-fluid, .portfolio-item img { transition: transform 0.6s var(--ease-out-expo), filter 0.6s ease; }
.portfolio-item:hover img { transform: scale(1.06); }

/* -------------------------------------------------------------------- */
/* Testimonial avatar glow                                               */
/* -------------------------------------------------------------------- */
.testimonial-card:hover [style*="border-radius:50%"] { box-shadow: 0 0 0 4px rgba(37,99,235,0.12); }

/* -------------------------------------------------------------------- */
/* Newsletter — glass input glow on focus                                */
/* -------------------------------------------------------------------- */
.newsletter { position: relative; }
.newsletter::before {
  content: '';
  position: absolute; inset: -40% -10% auto -10%; height: 180%;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 60%);
  animation: auroraShift 9s ease-in-out infinite alternate;
  pointer-events: none;
}
.newsletter .form-control:focus { box-shadow: 0 0 0 4px rgba(255,255,255,0.15) !important; }

/* -------------------------------------------------------------------- */
/* Footer glass panel feel on headings                                   */
/* -------------------------------------------------------------------- */
#footer h5 { position: relative; display: inline-block; }
#footer h5::after {
  content: ''; position: absolute; left: 0; bottom: -8px; height: 2px; width: 32px;
  background: linear-gradient(90deg, var(--primary-light), transparent);
  border-radius: 2px;
}

/* -------------------------------------------------------------------- */
/* Back to top — glass                                                   */
/* -------------------------------------------------------------------- */
.back-to-top {
  backdrop-filter: blur(8px);
  animation: floaty 3s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* -------------------------------------------------------------------- */
/* Cursor spotlight (desktop, pointer:fine only)                         */
/* -------------------------------------------------------------------- */
@media (pointer: fine) {
  .cursor-glow {
    position: fixed; width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.10), transparent 70%);
    pointer-events: none; z-index: 2; transform: translate(-50%, -50%);
    left: var(--cx, 50%); top: var(--cy, 50%);
    transition: left 0.12s linear, top 0.12s linear;
    mix-blend-mode: multiply;
  }
}

/* -------------------------------------------------------------------- */
/* Accordion / dropdown polish                                           */
/* -------------------------------------------------------------------- */
.accordion-item { transition: box-shadow 0.35s ease, border-color 0.35s ease; }
.accordion-item:has(.accordion-button:not(.collapsed)) { box-shadow: var(--shadow-sm); border-color: var(--primary-mid) !important; }
.dropdown-menu {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  animation: dropdownPop 0.25s var(--ease-out-expo);
}
@keyframes dropdownPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* -------------------------------------------------------------------- */
/* Mobile tuning — keep effects light on small screens for performance   */
/* -------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  body::before { display: none; }
  .service-item:hover, .why-card:hover, .value-card:hover, .service-detail-card:hover { transform: translateY(-4px); }
  .cursor-glow { display: none; }
}
