/* ===== Custom CSS for Greatclicks.io ===== */
/* Inspired by arooth.webflow.io - premium, modern, generous whitespace */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Client logo trust bar - uniform grayscale */
.client-logo {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}
.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}
/* White-on-transparent logos need darkening */
.client-logo--invert {
  filter: grayscale(100%) brightness(0);
}
.client-logo--invert:hover {
  filter: grayscale(0%) brightness(0);
  opacity: 0.8;
}

/* Canvas backgrounds */
.canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== SCROLLING MARQUEE / TICKER ===== */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

.marquee-item {
  white-space: nowrap;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.marquee-separator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  flex-shrink: 0;
  align-self: center;
}

/* ===== NAV (Arooth-style floating pill) ===== */
.nav-pill {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.nav-scrolled .nav-pill {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Nav link pill style */
.nav-link {
  position: relative;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  background: rgba(37, 99, 235, 0.06);
  color: #2563EB;
}

.nav-link.active {
  background: #2563EB;
  color: #ffffff !important;
}

/* CTA arrow circle */
.nav-cta-arrow {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .nav-cta-arrow {
  transform: translateX(3px);
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Button arrow animation */
.btn-arrow {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .btn-arrow {
  transform: translateX(5px);
}

/* ===== CARD STYLES ===== */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.08), 0 8px 16px rgba(0, 0, 0, 0.04);
}

/* ===== SECTION NUMBER MARKER ===== */
.section-number {
  font-size: 10rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(59, 130, 246, 0.04);
  position: absolute;
  top: -30px;
  left: -10px;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* ===== GRADIENT LINE DIVIDER ===== */
.gradient-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
  border: none;
  margin: 0;
}

/* ===== PRICING CARD GLOW ===== */
.pricing-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.2); }
}

/* ===== FAQ ACCORDION (Project-card style) ===== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.04, 0.62, 0.23, 0.98);
}

.faq-answer.open {
  max-height: 500px;
}

.faq-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  transform: translateY(-1px);
}

/* Chevron button */
.faq-chevron-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-chevron-btn:hover {
  background: #D1D5DB;
  transform: scale(1.08);
}

.faq-chevron-btn svg {
  transition: transform 0.4s cubic-bezier(0.04, 0.62, 0.23, 0.98);
}

.faq-item.open .faq-chevron-btn svg {
  transform: rotate(180deg);
}

/* FAQ number badge */
.faq-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover .faq-badge {
  transform: scale(1.08) rotate(3deg);
}

.faq-item.open .faq-badge {
  transform: scale(1.05);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #2563EB, #3B82F6, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== DOT GRID PATTERN ===== */
.dot-grid {
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ===== TRUST BAR SCROLL ===== */
@keyframes scrollTrust {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trust-scroll {
  animation: scrollTrust 20s linear infinite;
}

/* ===== STEP CONNECTOR LINE ===== */
.step-line {
  position: absolute;
  left: 24px;
  top: 56px;
  bottom: -32px;
  width: 1px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), transparent);
}

/* ===== EYEBROW PILL ===== */
.eyebrow-pill {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ===== SECTION LABEL ICON ===== */
.section-icon {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #3B82F6);
  display: inline-block;
  margin-right: 12px;
  vertical-align: middle;
  border-radius: 1px;
}

/* ===== VIDEO PLAY OVERLAY ===== */
.video-overlay {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-overlay:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* ===== MOBILE MENU ===== */
/* toggled via hidden/flex classes in JS */

/* ===== WAVE DIVIDER ===== */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

/* ===== NEUMORPHIC CARDS ===== */
.neu-card {
  position: relative;
  background: #ffffff;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.07),
    -8px -8px 20px rgba(255, 255, 255, 0.85);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.neu-card:hover {
  box-shadow:
    14px 14px 28px rgba(0, 0, 0, 0.1),
    -14px -14px 28px rgba(255, 255, 255, 1);
  transform: translateY(-4px) scale(1.02);
}

/* Blue border reveal on hover */
.neu-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

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

/* Inset neumorphic icon container */
.neu-icon {
  box-shadow:
    inset 3px 3px 6px rgba(0, 0, 0, 0.05),
    inset -3px -3px 6px rgba(255, 255, 255, 0.7);
  transition: all 0.4s ease;
}

.neu-card:hover .neu-icon {
  box-shadow:
    inset 4px 4px 8px rgba(0, 0, 0, 0.08),
    inset -4px -4px 8px rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

/* Animated scrolling grid background */
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

.animated-grid-bg {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

/* ===== GLOW BORDER CARD (Rotating conic gradient) ===== */
.glow-border-card {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(from var(--rotation, 0deg), #2563EB 0deg, #3B82F6 90deg, #e5e7eb 90deg, #e5e7eb 360deg) border-box;
  border: 3px solid transparent;
  transition: box-shadow 0.3s ease;
}

.glow-border-card:hover {
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15);
}

/* ===== MODERN TIMELINE ===== */
.timeline-progress {
  transform: scaleY(0);
  transition: transform 1.2s ease-out;
}

.timeline-progress.animate {
  transform: scaleY(1);
}

.timeline-bar {
  width: 0;
  transition: width 1.2s ease-out;
}

.timeline-bar.animate {
  /* width set via JS from data-width */
}

/* ===== TILT CARDS (3D hover + glow) ===== */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

.tilt-card:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1), 0 8px 16px rgba(0, 0, 0, 0.04);
}

/* Grid line texture overlay */
.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to right, rgba(128, 128, 128, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Glow overlay that follows cursor */
.tilt-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* Inner content stays above overlays */
.tilt-card > *:not(.tilt-glow) {
  position: relative;
  z-index: 3;
}

/* ===== CYBERCORE BACKGROUND (Light Theme) ===== */
.cybercore-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Floor grid with perspective */
.cybercore-floor {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 55%;
  background:
    linear-gradient(rgba(59, 130, 246, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.15) 1px, transparent 1px);
  background-size: 60px 40px;
  transform: perspective(500px) rotateX(55deg);
  transform-origin: center bottom;
  animation: cyberMoveGrid 12s linear infinite, cyberFloorGlow 6s ease-in-out infinite;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 85%);
}

/* Central glow column */
.cybercore-column {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(to top,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(96, 165, 250, 0.08) 40%,
    transparent 70%);
  filter: blur(30px);
  animation: cyberMainGlow 4s ease-in-out infinite alternate;
}

/* Beam container */
.cybercore-beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Individual light beams */
.cybercore-beam {
  position: absolute;
  bottom: 0;
  height: 100%;
  border-radius: 2px;
  animation-name: cyberRise, cyberFade;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite;
}

.cybercore-beam.primary {
  background: linear-gradient(to top,
    rgba(59, 130, 246, 0.45),
    rgba(96, 165, 250, 0.15),
    transparent);
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.2);
}

.cybercore-beam.secondary {
  background: linear-gradient(to top,
    rgba(96, 165, 250, 0.55),
    rgba(147, 197, 253, 0.2),
    transparent);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

@keyframes cyberRise {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(-5%);
    opacity: 0;
  }
}

@keyframes cyberFade {
  0%, 100% {
    opacity: 0;
  }
  5%, 85% {
    opacity: 0.8;
  }
}

@keyframes cyberFloorGlow {
  0%, 100% {
    transform: perspective(500px) rotateX(55deg) scale(0.98);
    opacity: 0.7;
  }
  50% {
    transform: perspective(500px) rotateX(55deg) scale(1.02);
    opacity: 1;
  }
}

@keyframes cyberMainGlow {
  from {
    opacity: 0.5;
    filter: blur(40px);
  }
  to {
    opacity: 0.7;
    filter: blur(30px);
  }
}

@keyframes cyberMoveGrid {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -60px -40px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .canvas-bg {
    display: none;
  }
  .section-number {
    font-size: 5rem;
  }
  .marquee-item {
    font-size: 0.875rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .section-number {
    font-size: 6rem;
  }
}
