/* ==========================================================================
   VALLIKA TECHNOLOGIES - CYBER DARK GLASSMORPHISM DESIGN SYSTEM (CSS)
   Tailwind Integration & Dark Edition Mesh Backdrop
   ========================================================================== */

@layer base {

  html,
  body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
  }

  body {
    overscroll-behavior: none;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #4edea3;
}

/* Cyber Grid Backdrop Overlay */
.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(78, 222, 163, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78, 222, 163, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Glass Utility Classes */
.glass-panel-dark {
  background: rgba(11, 19, 38, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-panel-dark:hover {
  background: rgba(23, 31, 51, 0.85);
  border-color: rgba(76, 215, 246, 0.35);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(76, 215, 246, 0.15);
}

/* Client Marquee Animation */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 2rem;
  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 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  min-width: 100%;
  animation: marquee-scroll 35s linear infinite;
}

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

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

  to {
    transform: translateX(-50%);
  }
}

.client-logo-card {
  height: 142px;
  min-width: 140px;
  padding: 0.6rem 1.5rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.client-logo-card:hover {
  background: #ffffff;
  border-color: rgba(78, 222, 163, 0.8);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(78, 222, 163, 0.3);
}

.client-logo-card img {
  max-height: 142px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 9, 20, 0.9);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 44rem;
  max-height: 90vh;
  overflow-y: auto;
  background: #0b1326;
  border: 1px solid rgba(76, 215, 246, 0.35);
  border-radius: 1rem;
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.9);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: scale(1) translateY(0);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background: #131b2e;
  border: 1px solid #4cd7f6;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 20px rgba(76, 215, 246, 0.3);
  color: #dae2fd;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Range Input Custom Styling */
input[type="range"].calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #171f33;
  border-radius: 4px;
  outline: none;
}

input[type="range"].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #4cd7f6;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(76, 215, 246, 0.6);
  transition: transform 0.15s ease;
}

input[type="range"].calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Back To Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #131b2e;
  color: #4cd7f6;
  border: 1px solid rgba(76, 215, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #4cd7f6;
  color: #003640;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(76, 215, 246, 0.4);
}

/* Mobile Navigation Drawer Backdrop & Slide-out Panel */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-drawer {
  width: 100%;
  max-width: 340px;
  height: 100%;
  background: #060b13;
  border-left: 1px solid rgba(76, 215, 246, 0.3);
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-backdrop.open .mobile-nav-drawer {
  transform: translateX(0);
}