/* ==========================================================================
   RAVISAN PVT LTD - Core Design System & Animations
   Inspired by PieStack Aesthetics
   ========================================================================== */

/* Global Variables & Reset */
:root {
  --bg-dark: #050505;
  --bg-card: #111111;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-glow: rgba(37, 99, 235, 0.35);
  --text-main: #ffffff;
  --text-muted: #94A3B8;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
  cursor: default;
}

/* --------------------------------------------------------------------------
   Lenis Smooth Scroll Utilities
   -------------------------------------------------------------------------- */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Custom Interactive Cursor
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-circle {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
}

.cursor-circle {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

body.cursor-hover .cursor-circle {
  width: 60px;
  height: 60px;
  background-color: rgba(37, 99, 235, 0.15);
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  .cursor-dot, .cursor-circle {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Logo Marquee Ticker
   -------------------------------------------------------------------------- */
.marquee-wrapper {
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track-reverse {
  display: flex;
  width: max-content;
  animation: marquee-scroll-reverse 30s linear infinite;
}

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

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

@keyframes marquee-scroll-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* --------------------------------------------------------------------------
   GSAP Horizontal Scroll System ("Why Choose Us")
   -------------------------------------------------------------------------- */
.horizontal-section-wrapper {
  overflow: hidden;
  width: 100%;
}

#horizontal-container {
  display: flex;
  flex-wrap: nowrap;
  width: 500vw; /* 5 panels x 100vw */
  height: 100vh;
  will-change: transform;
}

.horizontal__item {
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Card Stacking Effects for Services (PieStack Technique)
   -------------------------------------------------------------------------- */
.stack-cards-container {
  position: relative;
  perspective: 1200px;
  padding-bottom: 8rem;
}

.stack-card {
  position: sticky;
  transform-origin: center top;
  will-change: transform, opacity, filter;
  backdrop-filter: blur(24px);
  box-shadow: 
    0 -12px 30px -5px rgba(0, 0, 0, 0.9),
    0 30px 60px -12px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.stack-card:hover {
  box-shadow: 
    0 -15px 35px -5px rgba(248, 75, 7, 0.25),
    0 40px 70px -10px rgba(0, 0, 0, 0.98),
    0 0 25px rgba(248, 75, 7, 0.2);
  border-color: rgba(248, 75, 7, 0.6) !important;
}

/* Category Filter Transition */
.stack-card.hidden-card {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #222222;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
