/* ==========================================================================
   Z MAX — Animations & Responsive Media Queries
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM CURSOR (DESKTOP ONLY)
   -------------------------------------------------------------------------- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 0 15px var(--lime);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--lime);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  opacity: 0.75;
}

.custom-cursor-ring.active {
  width: 60px;
  height: 60px;
  background-color: var(--lime-subtle);
  border-color: var(--lime);
  opacity: 1;
}

.custom-cursor-badge {
  position: fixed;
  top: 0;
  left: 0;
  padding: 0.4rem 0.8rem;
  background: var(--lime);
  color: #000000;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 5px 20px rgba(204, 255, 0, 0.5);
  white-space: nowrap;
}

.custom-cursor-badge.visible {
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) and (pointer: coarse), (max-width: 992px) {
  .custom-cursor-dot,
  .custom-cursor-ring,
  .custom-cursor-badge {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   2. SCROLL REVEAL ANIMATIONS
   -------------------------------------------------------------------------- */
[data-reveal] {
  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);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="fade-left"] {
  transform: translateX(-30px);
}

[data-reveal="fade-right"] {
  transform: translateX(30px);
}

[data-reveal="fade-left"].revealed,
[data-reveal="fade-right"].revealed {
  transform: translateX(0);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   3. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Large Tablets & Small Desktops (<= 1200px) */
@media (max-width: 1200px) {
  .services-editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-column:nth-child(2) {
    border-right: none;
  }
  .service-column:nth-child(1),
  .service-column:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium Tablets & Mobile Landscape (<= 992px) */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .btn-nav-talk {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .hero-mockup-container {
    max-width: 100%;
    transform: none !important;
  }
  .hero-mockup-container:hover {
    transform: scale(1.01) !important;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .why-grid,
  .about-grid,
  .contact-grid,
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .trust-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .trust-item:nth-child(2) {
    border-right: none;
  }
  .trust-item:nth-child(5) {
    grid-column: 1 / -1;
    border-right: none;
  }
  .hero-side-rail {
    display: none;
  }
}

/* Small Tablets & Standard Mobile (<= 768px) */
@media (max-width: 768px) {
  .portfolio-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }
  .modal-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .modal-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .calculator-grid {
    gap: 2rem;
  }
  .calc-features-grid {
    grid-template-columns: 1fr;
  }
  .comparison-wrap,
  .comparison-scroll-wrapper {
    margin-top: 3rem;
  }
  .testimonial-editorial-box {
    padding: 1.75rem;
  }
}

/* Standard Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .services-editorial-grid,
  .process-grid,
  .form-grid,
  .calc-features-grid,
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .service-column {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    min-height: auto;
    padding: 2rem 1.25rem;
  }
  .service-column:last-child {
    border-bottom: none;
  }
  .trust-items-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.85rem 1rem;
    justify-content: flex-start;
  }
  .trust-item:last-child {
    border-bottom: none;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .floating-badge {
    top: -15px;
    right: -10px;
    width: 95px;
    height: 95px;
  }
  .badge-center-icon {
    width: 28px;
    height: 28px;
  }
  .badge-center-icon svg {
    width: 14px;
    height: 14px;
  }
  .floating-whatsapp-widget {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.85rem;
    width: 52px;
    height: 52px;
    justify-content: center;
    border-radius: 50%;
  }
  .floating-whatsapp-widget .whatsapp-label {
    display: none;
  }
  .stats-editorial-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 38px;
    height: 38px;
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .stats-editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .brand-logo {
    font-size: 1.15rem;
  }
  .audio-toggle-btn span:not(.audio-bars) {
    display: none;
  }
  .theme-toggle-btn span:not(.theme-icon-sun):not(.theme-icon-moon) {
    display: none;
  }
}
