:root {
  --blue-900: #0d1f33;
  --blue-800: #1e3f61;
  --blue-700: #2c5282;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --premium-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1), 0 4px 18px -7px rgba(0, 0, 0, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Glassmorphism Classes */
.glass-header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Navigation Links */
.nav-link {
  position: relative;
  color: var(--slate-600);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--blue-900);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--blue-900);
}

.nav-link:hover::after {
  width: 100%;
}

/* Dropdown Animation */
.dropdown-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Modern Buttons */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.6s ease;
  transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
  z-index: 1;
}

.btn-premium:hover::before {
  transform: translate(-50%, -50%) rotate(45deg) translateY(0);
}

/* Product Card Improvements */
.product-card {
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--premium-shadow);
}

/* Client Logo Carousel */
.client-logo-carousel {
  --client-logo-gap: 24px;
  --client-logo-offset: 12px;
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.client-logo-track {
  display: flex;
  width: max-content;
  gap: var(--client-logo-gap);
  animation: clientLogoScroll 36s linear infinite;
}

.client-logo-carousel:hover .client-logo-track {
  animation-play-state: paused;
}

.client-logo-card {
  width: 180px;
  height: 92px;
  flex: 0 0 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.client-logo-card:hover {
  border-color: rgba(13, 31, 51, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  transform: translateY(-2px);
}

.client-logo-card img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes clientLogoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - var(--client-logo-offset)));
  }
}

@media (max-width: 640px) {
  .client-logo-carousel {
    --client-logo-gap: 16px;
    --client-logo-offset: 8px;
  }

  .client-logo-track {
    animation-duration: 28s;
  }

  .client-logo-card {
    width: 148px;
    height: 80px;
    flex-basis: 148px;
    padding: 14px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .client-logo-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .client-logo-card.is-duplicate {
    display: none;
  }
}

/* Search Overlay */
#searchWrapper.open {
  height: 120px;
  visibility: visible;
  opacity: 1;
}

/* ═══════════════ FOOTER & SOCIAL STYLES ═══════════════ */
.footer-logo { filter: brightness(0) invert(1); opacity: .88; }

.footer-premium {
  /* Layered, “deep steel” footer backdrop */
  background:
    radial-gradient(900px circle at 15% -10%, rgba(76, 175, 255, 0.18), transparent 55%),
    radial-gradient(800px circle at 85% 0%, rgba(34, 211, 238, 0.12), transparent 50%),
    linear-gradient(180deg, #08121c 0%, #050b11 100%);
}

.footer-grid-overlay {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  transition: background .2s, transform .2s, border-color .2s;
}
.social-icon:hover {
  background: rgba(30, 63, 97, 0.9);
  border-color: rgba(255,255,255,0.22);
  transform: scale(1.1) translateY(-2px);
}
.social-icon:focus-visible {
  outline: 2px solid rgba(74, 144, 217, 0.9);
  outline-offset: 3px;
}

.footer-heading {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 32px; height: 2px;
  background: #4a90d9;
  border-radius: 2px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  transition: color .2s, padding-left .2s;
  display: block;
  padding: 4px 0;
  font-weight: 400;
  text-decoration: none;
}
.footer-link:hover {
  color: #fff;
  padding-left: 8px;
}
.footer-link:focus-visible {
  outline: 2px solid rgba(74, 144, 217, 0.9);
  outline-offset: 3px;
  border-radius: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  padding: 6px 0;
  line-height: 1.6;
  text-decoration: none;
}
.footer-contact-item .icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.footer-contact-item:hover { color: rgba(255,255,255,0.92); }
.footer-contact-item:focus-visible {
  outline: 2px solid rgba(74, 144, 217, 0.9);
  outline-offset: 3px;
  border-radius: 12px;
}

.footer-bottom-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color .2s;
}
.footer-bottom-link:hover { color: rgba(255,255,255,0.92); }
.footer-bottom-link:focus-visible {
  outline: 2px solid rgba(74, 144, 217, 0.9);
  outline-offset: 3px;
  border-radius: 10px;
}
