/* ============================================================
   BOTTOLA AI — POLISH & ANIMATIONS
   Scroll reveal, hover effects, micro-interactions
   ============================================================ */

/* ── Custom cursor ── */
body.has-custom-cursor,
body.has-custom-cursor * { cursor: none; }
/* Restore usable cursor inside form fields */
body.has-custom-cursor input,
body.has-custom-cursor textarea,
body.has-custom-cursor select { cursor: text; }

/* Small dot — mix-blend-mode: difference inverts colors beneath it */
#c-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100001;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: transform .15s cubic-bezier(.34,1.56,.64,1), opacity .2s, background .15s;
  will-change: left, top;
}

/* Rotating 3/4 arc ring — one side transparent gives the spinner look */
#c-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(99,207,73,.65);
  border-top-color: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%) rotate(0deg);
  transition:
    width .28s cubic-bezier(.34,1.56,.64,1),
    height .28s cubic-bezier(.34,1.56,.64,1),
    border-color .2s,
    background .2s,
    box-shadow .2s,
    opacity .2s;
  animation: cRingRotate 2.8s linear infinite;
  will-change: left, top, transform;
}

@keyframes cRingRotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hover: ring becomes full circle + expands, dot vanishes */
body.cursor-hover #c-dot {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}
body.cursor-hover #c-ring {
  width: 50px;
  height: 50px;
  border-color: rgba(99,207,73,.9);
  border-top-color: rgba(99,207,73,.9);
  background: rgba(99,207,73,.07);
  animation-play-state: paused;
}

/* Click: ring snaps inward + glows, dot pops green */
body.cursor-click #c-dot {
  transform: translate(-50%, -50%) scale(2.2);
  background: #7cff35;
  mix-blend-mode: normal;
  opacity: 1;
}
body.cursor-click #c-ring {
  width: 28px;
  height: 28px;
  border-color: #7cff35;
  border-top-color: #7cff35;
  background: rgba(124,255,53,.14);
  box-shadow: 0 0 18px rgba(124,255,53,.5);
}

/* Click sparkle particles */
.c-spark {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7cff35;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  animation: cSparkBurst .52s ease-out forwards;
}
.c-spark:nth-child(odd) { background: #fff; width: 3px; height: 3px; }

@keyframes cSparkBurst {
  0%   { transform: translate(-50%,-50%) rotate(var(--a)) translateX(0)        scale(1); opacity: 1; }
  100% { transform: translate(-50%,-50%) rotate(var(--a)) translateX(var(--d)) scale(0); opacity: 0; }
}

/* ── Scroll reveal classes ── */
.reveal-el {
  opacity: 0;
  transition:
    opacity .65s cubic-bezier(.4,0,.2,1),
    transform .65s cubic-bezier(.4,0,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal-el.from-up    { transform: translateY(32px); }
.reveal-el.from-left  { transform: translateX(-32px); }
.reveal-el.from-right { transform: translateX(32px); }
.reveal-el.from-scale { transform: scale(.92); }
.reveal-el.is-visible {
  opacity: 1;
  transform: none !important;
}

/* ── Nav: active underline ── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Nav logo glow on hover */
.nav-logo {
  transition: filter .3s ease;
}
.nav-logo:hover {
  filter: drop-shadow(0 0 14px rgba(124,255,53,.45));
}

/* Nav CTA subtle pulse */
@keyframes ctaPulse {
  0%   { box-shadow: var(--shadow-btn), 0 0 0 0 rgba(99,207,73,.45); }
  70%  { box-shadow: var(--shadow-btn), 0 0 0 9px rgba(99,207,73,0); }
  100% { box-shadow: var(--shadow-btn), 0 0 0 0 rgba(99,207,73,0); }
}
.nav-cta { animation: ctaPulse 2.8s ease-out infinite; }
.nav-cta:hover { animation: none; }

/* ── Section label dot ── */
.section-label {
  position: relative;
  padding-left: 16px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.section-header--center .section-label {
  padding-left: 0;
  justify-content: center;
}
.section-header--center .section-label::before { display: none; }

/* ── Button: shimmer sweep on hover ── */
.btn-primary,
.btn-outline {
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  pointer-events: none;
}
.btn-primary:hover::before { left: 140%; }

/* Button ripple */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transform: scale(0);
  animation: btnRipple .55s ease-out forwards;
  pointer-events: none;
}
@keyframes btnRipple {
  to { transform: scale(1); opacity: 0; }
}

/* ── Benefit cards ── */
.benefit-card {
  transition: border-color .2s, transform .2s, background .2s, box-shadow .25s ease;
}
.benefit-card:hover {
  box-shadow: 0 8px 28px rgba(99,207,73,.1);
}
.benefit-icon {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.benefit-card:hover .benefit-icon {
  transform: rotate(-8deg) scale(1.14);
  background: rgba(99,207,73,.18);
}

/* ── Service cards ── */
.service-card:hover {
  box-shadow: 0 10px 36px rgba(99,207,73,.1), 0 0 0 1px rgba(99,207,73,.18);
}
.service-icon {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.18) rotate(-6deg);
  background: rgba(99,207,73,.18);
}
.service-tag {
  transition: background .25s, border-color .25s;
}
.service-card:hover .service-tag {
  background: rgba(99,207,73,.14);
  border-color: rgba(99,207,73,.3);
}

/* ── How it works ── */
.hiw-step {
  transition: transform .25s ease;
  cursor: default;
}
.hiw-step:hover { transform: translateY(-5px); }
.hiw-num {
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.hiw-step:hover .hiw-num {
  border-color: var(--accent);
  background: rgba(99,207,73,.08);
  box-shadow: 0 0 18px rgba(99,207,73,.25);
}

/* ── Pricing cards ── */
.price-card:hover {
  box-shadow: 0 14px 44px rgba(0,0,0,.4), 0 0 0 1px rgba(99,207,73,.15);
}

/* Featured card floats */
.price-card.featured {
  animation: cardFloat 4.5s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.price-card.featured:hover {
  animation-play-state: paused;
  transform: translateY(-5px);
}

/* ── Portfolio ── */
.portfolio-img {
  transition: transform .45s ease;
}
.portfolio-card:hover .portfolio-img { transform: scale(1.07); }

/* Gradient overlay appears on hover */
.portfolio-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 60%;
  background: linear-gradient(to bottom, rgba(6,13,6,.45), transparent);
  border-radius: var(--r-md) var(--r-md) 0 0;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.portfolio-card:hover::after { opacity: 1; }

.portfolio-card:hover {
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}

/* Filter buttons */
.filter-btn {
  transition: all .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.filter-btn:hover { transform: translateY(-2px); }
.filter-btn.active {
  box-shadow: 0 4px 18px rgba(99,207,73,.2);
}

/* ── Testimonials ── */
.testi-card {
  transition: border-color .25s, transform .25s ease, box-shadow .25s ease;
}
.testi-card:hover {
  border-color: rgba(99,207,73,.28);
  box-shadow: 0 10px 30px rgba(99,207,73,.08);
  transform: translateY(-4px);
}
.stars {
  transition: letter-spacing .3s ease;
  display: inline-block;
}
.testi-card:hover .stars { letter-spacing: 4px; }

/* ── Trust strip ── */
.trust-item {
  transition: color .2s, transform .2s ease;
  cursor: default;
}
.trust-item:hover {
  color: var(--text);
  transform: translateY(-2px);
}
.trust-item svg {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.trust-item:hover svg { transform: scale(1.25); }

/* ── Contact ── */
.ci-icon {
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.contact-info-list li:hover .ci-icon {
  transform: scale(1.12) rotate(-5deg);
  background: rgba(99,207,73,.18);
}

.social-btn {
  transition: border-color .2s, color .2s, background .2s,
              transform .25s cubic-bezier(.34,1.56,.64,1);
}
.social-btn:hover { transform: translateY(-4px) scale(1.08); }

/* ── FAQ ── */
.faq-item {
  border-radius: var(--r-sm);
  transition: background .2s ease;
  margin: 0 -10px;
  padding: 0 10px;
}
.faq-item:hover { background: rgba(99,207,73,.03); }

/* ── About stat pill ── */
.about-stat-pill {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
}
.about-img-wrap:hover .about-stat-pill {
  transform: translate(-5px, -5px) scale(1.04);
  box-shadow: 0 10px 36px rgba(0,0,0,.5);
}

/* ── Footer ── */
.footer-col ul li a {
  position: relative;
  display: inline-block;
  padding-left: 0;
  transition: color .2s ease, padding-left .22s ease;
}
.footer-col ul li a::before {
  content: '›';
  position: absolute;
  left: -2px;
  opacity: 0;
  color: var(--accent);
  transition: opacity .2s ease, left .22s ease;
  font-size: 1rem;
  line-height: 1.2;
}
.footer-col ul li a:hover {
  padding-left: 12px;
}
.footer-col ul li a:hover::before {
  opacity: 1;
  left: 0;
}

/* ── Diff list items ── */
.diff-list li {
  transition: color .2s ease, transform .2s ease;
}
.diff-list li:hover {
  color: var(--text-sec);
  transform: translateX(4px);
}

/* ── CTA banner buttons bounce-in ── */
.cta-banner-btns .btn-primary,
.cta-banner-btns .btn-outline {
  transition: opacity .2s, transform .3s cubic-bezier(.34,1.56,.64,1),
              border-color .2s, background .2s;
}

/* ── Scrollbar track glow on hover ── */
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ── Reduce motion support ── */
@media (prefers-reduced-motion: reduce) {
  .reveal-el,
  .price-card.featured,
  .nav-cta,
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
