/* ============================================================
   APPLE EFFECTS — Premium Apple-Inspired Visual Enhancements
   For Javed IT Solution Portfolio
   ============================================================ */


/* ============================================================
   1. SCROLL-TRIGGERED REVEAL ANIMATIONS
   Elements start hidden, animate in when visible
   ============================================================ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid items */
.reveal-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.reveal-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.reveal-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.reveal-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.reveal-on-scroll[data-delay="5"] { transition-delay: 0.5s; }
.reveal-on-scroll[data-delay="6"] { transition-delay: 0.6s; }
.reveal-on-scroll[data-delay="7"] { transition-delay: 0.7s; }
.reveal-on-scroll[data-delay="8"] { transition-delay: 0.8s; }

/* Variants */
.reveal-on-scroll.reveal-slide-left {
  transform: translateX(-60px);
}
.reveal-on-scroll.reveal-slide-left.revealed {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-slide-right {
  transform: translateX(60px);
}
.reveal-on-scroll.reveal-slide-right.revealed {
  transform: translateX(0);
}

.reveal-on-scroll.reveal-scale {
  transform: scale(0.85);
}
.reveal-on-scroll.reveal-scale.revealed {
  transform: scale(1);
}

.reveal-on-scroll.reveal-fade {
  transform: none;
}
.reveal-on-scroll.reveal-fade.revealed {
  transform: none;
}


/* ============================================================
   2. 3D TILT CARD EFFECT
   Apple App Store-style hover parallax
   ============================================================ */

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
              0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .tilt-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45),
              0 8px 20px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.tilt-card__inner {
  transform: translateZ(30px);
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.tilt-card .service-card__icon {
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99);
}

.tilt-card:hover .service-card__icon {
  transform: translateZ(40px) scale(1.1);
}

/* Shine overlay on tilt */
.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.tilt-card:hover::after {
  opacity: 1;
}


/* ============================================================
   3. MAGNETIC BUTTON EFFECT
   Buttons subtly pull toward cursor on hover
   ============================================================ */

.magnetic-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  z-index: -1;
}

.magnetic-btn:hover {
  /* JS will handle the actual magnetic pull via inline style */
}

/* Glow effect on magnetic buttons */
.magnetic-btn.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  filter: blur(20px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.magnetic-btn.btn--primary:hover::after {
  opacity: 0.4;
}


/* ============================================================
   4. ENHANCED GLASSMORPHISM
   visionOS / macOS Sonoma-inspired frost
   ============================================================ */

.glass-enhanced {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-enhanced {
  background: rgba(28, 28, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

[data-theme="hacker"] .glass-enhanced {
  background: rgba(13, 17, 23, 0.78);
  border: 1px solid rgba(0, 255, 65, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(0, 255, 65, 0.04),
    0 0 1px rgba(0, 255, 65, 0.3);
}

/* Enhanced navbar glassmorphism on scroll */
.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: blur(40px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .navbar.is-scrolled {
  background: rgba(0, 0, 0, 0.72) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="hacker"] .navbar.is-scrolled {
  background: rgba(10, 10, 10, 0.78) !important;
  border-bottom: 1px solid rgba(0, 255, 65, 0.08) !important;
  box-shadow: 0 1px 40px rgba(0, 255, 65, 0.05) !important;
}


/* ============================================================
   5. SVG WAVE SECTION DIVIDERS
   Smooth curved transitions between sections
   ============================================================ */

.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: -1px 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 60px;
}

.wave-divider--flip {
  transform: rotate(180deg);
}

.wave-divider svg path {
  fill: var(--color-bg-secondary);
  transition: fill var(--duration-theme) var(--ease-smooth);
}

.wave-divider--to-primary svg path {
  fill: var(--color-bg-primary);
}

.wave-divider--to-secondary svg path {
  fill: var(--color-bg-secondary);
}

.wave-divider--to-tertiary svg path {
  fill: var(--color-bg-tertiary);
}

/* Animated wave fill */
.wave-divider--animated svg path {
  animation: waveShift 8s ease-in-out infinite alternate;
}

@keyframes waveShift {
  0% { d: path('M0,64 C320,120,640,20,960,80 C1280,140,1600,40,1920,80 L1920,200 L0,200 Z'); }
  100% { d: path('M0,80 C320,20,640,120,960,60 C1280,20,1600,120,1920,60 L1920,200 L0,200 Z'); }
}


/* ============================================================
   6. SHIMMER / GLOW TEXT EFFECT
   Apple-style gradient text with animation
   ============================================================ */

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--color-accent) 0%,
    #5856D6 25%,
    #FF375F 50%,
    #5856D6 75%,
    var(--color-accent) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGradient 4s linear infinite;
}

@keyframes shimmerGradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

[data-theme="hacker"] .shimmer-text {
  background: linear-gradient(
    90deg,
    #00FF41 0%,
    #00CC33 25%,
    #33FF6B 50%,
    #00CC33 75%,
    #00FF41 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmerGradient 4s linear infinite;
}

/* Glow effect on headings */
.glow-text {
  text-shadow: 0 0 40px rgba(0, 122, 255, 0.3),
               0 0 80px rgba(0, 122, 255, 0.15);
}

[data-theme="dark"] .glow-text {
  text-shadow: 0 0 40px rgba(10, 132, 255, 0.4),
               0 0 80px rgba(10, 132, 255, 0.2);
}


/* ============================================================
   7. ANIMATED NUMBER COUNTER
   Styling for count-up numbers
   ============================================================ */

.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.counter-value.counting {
  transform: scale(1.05);
}


/* ============================================================
   8. CINEMATIC HERO GRADIENT
   Enhanced hero background with mesh gradient
   ============================================================ */

.hero__gradient {
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(88, 86, 214, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 55, 95, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  animation: heroMeshShift 12s ease-in-out infinite alternate;
}

@keyframes heroMeshShift {
  0% {
    background:
      radial-gradient(ellipse at 20% 50%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 50%, rgba(88, 86, 214, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 50% 100%, rgba(255, 55, 95, 0.08) 0%, transparent 50%);
  }
  33% {
    background:
      radial-gradient(ellipse at 40% 30%, rgba(88, 86, 214, 0.18) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 70%, rgba(0, 122, 255, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 20% 80%, rgba(255, 149, 0, 0.08) 0%, transparent 50%);
  }
  66% {
    background:
      radial-gradient(ellipse at 60% 60%, rgba(255, 55, 95, 0.12) 0%, transparent 50%),
      radial-gradient(ellipse at 30% 20%, rgba(0, 199, 190, 0.10) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 40%, rgba(88, 86, 214, 0.15) 0%, transparent 50%);
  }
  100% {
    background:
      radial-gradient(ellipse at 50% 40%, rgba(0, 122, 255, 0.18) 0%, transparent 50%),
      radial-gradient(ellipse at 20% 70%, rgba(88, 86, 214, 0.10) 0%, transparent 50%),
      radial-gradient(ellipse at 80% 20%, rgba(255, 55, 95, 0.12) 0%, transparent 50%);
  }
}

/* Service page hero enhancement */
.sp-hero {
  position: relative;
  overflow: hidden;
}

.sp-hero__gradient {
  animation: heroMeshShift 12s ease-in-out infinite alternate;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(0, 122, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(88, 86, 214, 0.06) 0%, transparent 40%);
  z-index: 0;
  animation: heroMeshShift 15s ease-in-out infinite alternate;
}


/* ============================================================
   9. BENTO GRID LAYOUT
   Apple iPhone 16 Features-style varied card sizes
   ============================================================ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 16px;
}

.bento-grid__item {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.bento-grid__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

[data-theme="dark"] .bento-grid__item:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* Bento sizing variants */
.bento-grid__item--wide {
  grid-column: span 2;
}

.bento-grid__item--tall {
  grid-row: span 2;
}

.bento-grid__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-grid__item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.bento-grid__item__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-primary);
}

.bento-grid__item__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Bento grid gradient overlays */
.bento-grid__item--gradient-blue {
  background: linear-gradient(145deg, rgba(0, 122, 255, 0.08) 0%, transparent 60%);
}

.bento-grid__item--gradient-purple {
  background: linear-gradient(145deg, rgba(88, 86, 214, 0.08) 0%, transparent 60%);
}

.bento-grid__item--gradient-green {
  background: linear-gradient(145deg, rgba(52, 199, 89, 0.08) 0%, transparent 60%);
}

.bento-grid__item--gradient-orange {
  background: linear-gradient(145deg, rgba(255, 149, 0, 0.08) 0%, transparent 60%);
}

.bento-grid__item--gradient-red {
  background: linear-gradient(145deg, rgba(255, 55, 95, 0.08) 0%, transparent 60%);
}

.bento-grid__item--gradient-teal {
  background: linear-gradient(145deg, rgba(0, 199, 190, 0.08) 0%, transparent 60%);
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bento-grid__item--large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid__item--wide,
  .bento-grid__item--large {
    grid-column: span 1;
  }
}


/* ============================================================
   10. INFINITE SCROLL TESTIMONIAL CAROUSEL
   Two rows scrolling in opposite directions
   ============================================================ */

.infinite-carousel {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
}

.infinite-carousel::before,
.infinite-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.infinite-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg-primary), transparent);
}

.infinite-carousel::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-bg-primary), transparent);
}

[data-theme="dark"] .infinite-carousel::before {
  background: linear-gradient(90deg, #000000, transparent);
}

[data-theme="dark"] .infinite-carousel::after {
  background: linear-gradient(-90deg, #000000, transparent);
}

.infinite-carousel__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: infiniteScroll 40s linear infinite;
}

.infinite-carousel__track--reverse {
  animation: infiniteScrollReverse 45s linear infinite;
}

.infinite-carousel__track:hover {
  animation-play-state: paused;
}

@keyframes infiniteScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes infiniteScrollReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.infinite-carousel__card {
  flex-shrink: 0;
  width: 340px;
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.infinite-carousel__card:hover {
  transform: scale(1.02);
  border-color: var(--color-accent);
}


/* ============================================================
   11. SERVICE PAGE SPECIFIC ENHANCEMENTS
   ============================================================ */

/* Enhanced service page section animations */
.sp-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced pricing cards with hover depth */
.sp-price-card {
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.sp-price-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .sp-price-card:hover {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.sp-price-card--popular {
  transform: scale(1.03);
}

.sp-price-card--popular:hover {
  transform: translateY(-8px) scale(1.05);
}

/* Enhanced process steps */
.sp-step {
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.sp-step:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 16px 48px rgba(0, 122, 255, 0.12);
}

/* Enhanced audience tags */
.sp-audience__tag {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.sp-audience__tag:hover {
  transform: translateY(-4px) scale(1.03);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 
    0 16px 32px rgba(0, 122, 255, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.sp-audience__tag:hover::before {
  opacity: 1;
}

[data-theme="dark"] .sp-audience__tag:hover,
[data-theme="hacker"] .sp-audience__tag:hover {
  box-shadow: 
    0 16px 32px rgba(0, 122, 255, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

[data-theme="hacker"] .sp-audience__tag:hover {
  box-shadow: 
    0 16px 32px rgba(0, 255, 65, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Enhanced FAQ items */
.sp-faq__item {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.sp-faq__item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.sp-faq__item[open] {
  transform: none;
  box-shadow: 0 8px 32px rgba(0, 122, 255, 0.08);
}

/* Enhanced CTA block */
.sp-cta-block {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sp-cta-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
}

/* Enhanced related cards */
.sp-related-card {
  transition: transform 0.4s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}

.sp-related-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 122, 255, 0.12);
}


/* ============================================================
   12. SCROLL PROGRESS BAR ENHANCEMENT
   ============================================================ */

.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, 
    var(--color-accent) 0%, 
    #5856D6 50%, 
    #FF375F 100%
  );
  background-size: 200% 100%;
  animation: scrollProgressGradient 3s ease infinite;
}

@keyframes scrollProgressGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================================
   13. PARALLAX FLOATING ELEMENTS
   ============================================================ */

.parallax-float {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}


/* ============================================================
   14. TYPOGRAPHY ENHANCEMENTS (SF Pro-Style)
   ============================================================ */

/* Large display headings — Apple style */
.apple-display {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.apple-headline {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.apple-subhead {
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Section label styling */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--color-accent-light);
  margin-bottom: 16px;
}


/* ============================================================
   15. SERVICE CARD ENHANCEMENTS (Main Page)
   ============================================================ */

.service-card.glass-card {
  transition: transform 0.5s cubic-bezier(0.03, 0.98, 0.52, 0.99),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card.glass-card:hover::before {
  opacity: 1;
}

.service-card.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent);
}


/* ============================================================
   16. SCROLL-PINNED ANIMATION HELPERS
   ============================================================ */

.sticky-reveal {
  position: sticky;
  top: 100px;
}

.progress-bar-animated {
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

.progress-bar-animated.animated {
  /* Width set by data-width attribute via JS */
}


/* ============================================================
   17. ENHANCED SIDEBAR (Service Pages)
   ============================================================ */

.sp-sidebar__card {
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

.sp-sidebar__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
}

[data-theme="dark"] .sp-sidebar__card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}


/* ============================================================
   18. MOBILE RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 768px) {
  .reveal-on-scroll {
    transform: translateY(24px);
  }
  
  .reveal-on-scroll.reveal-slide-left,
  .reveal-on-scroll.reveal-slide-right {
    transform: translateY(24px);
  }
  
  .wave-divider svg {
    min-height: 40px;
  }

  .infinite-carousel__card {
    width: 280px;
    padding: 20px;
  }

  .infinite-carousel::before,
  .infinite-carousel::after {
    width: 40px;
  }
}

@media (max-width: 480px) {
  .infinite-carousel__card {
    width: 250px;
    padding: 16px;
  }
}
