/* ==========================================================================
   VALLIKA TECHNOLOGIES - LUMINOUS ENTERPRISE DESIGN SYSTEM (CSS)
   Tailwind Integration & Custom Aesthetic Enhancement Tokens
   ========================================================================== */

@layer base {

  html,
  body {
    margin: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-behavior: smooth;
  }

  body {
    overscroll-behavior: none;
  }

  main> :first-child {
    margin-top: 0 !important;
  }

  main> :last-child {
    margin-bottom: 0 !important;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #10b981;
}

/* Smooth Glow Glass Utility Classes for Light Theme */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.08), 0 0 20px rgba(16, 185, 129, 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;
  padding: 0.6rem 1.5rem;
  border-radius: 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  /*backdrop-filter: blur(12px);*/
  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(16, 185, 129, 0.5);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

.client-logo-card img {
  max-height: 142px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
  filter: brightness(0.98) contrast(1.05);
}

/* Modal Dialog Backdrop & Card */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  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: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
}

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

/* Toast Notifications */
.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: #ffffff;
  border: 1px solid #10b981;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 0 15px rgba(16, 185, 129, 0.2);
  color: #0f172a;
  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: #e2e8f0;
  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: #10b981;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  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: #ffffff;
  color: #10b981;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.back-to-top:hover {
  background: #10b981;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
}

/* Mobile Navigation Drawer Backdrop & Slide-out Panel */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  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: #ffffff;
  border-left: 1px solid #e2e8f0;
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.15);
  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);
}