/* ClientConnect Website Styles */

/* Root variables and base styles */
:root { 
  color-scheme: light dark; 
}

html, body { 
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; 
}

/* Glass effect for header */
.glass { 
  backdrop-filter: saturate(1.2) blur(8px); 
  background: rgba(255,255,255,0.75); 
}

html.dark .glass { 
  background: rgba(17,24,39,0.6); 
}

/* Custom animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

/* 3D Rotating Logo Background */
.rotating-logo-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 40vw;
  height: 40vw;
  max-width: 600px;
  max-height: 600px;
  min-width: 300px;
  min-height: 300px;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
  background-image: url('img/icon-512.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: rotate3D 20s linear infinite;
  filter: blur(0.5px);
}

html.dark .rotating-logo-bg {
  opacity: 0.16;
  filter: blur(0.5px) brightness(1.4);
}

@keyframes rotate3D {
  0% {
    transform: translate(-50%, -50%) rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: translate(-50%, -50%) rotateY(90deg) rotateX(15deg);
  }
  50% {
    transform: translate(-50%, -50%) rotateY(180deg) rotateX(0deg);
  }
  75% {
    transform: translate(-50%, -50%) rotateY(270deg) rotateX(-15deg);
  }
  100% {
    transform: translate(-50%, -50%) rotateY(360deg) rotateX(0deg);
  }
}

/* Multiple floating logos for depth */
.floating-logos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.floating-logo {
  position: absolute;
  width: 60px;
  height: 60px;
  background-image: url('img/icon-128.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.09;
  animation: float 30s infinite linear;
}

.floating-logo:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.floating-logo:nth-child(2) {
  left: 70%;
  animation-delay: -8s;
  animation-duration: 35s;
}

.floating-logo:nth-child(3) {
  left: 30%;
  animation-delay: -15s;
  animation-duration: 40s;
}

.floating-logo:nth-child(4) {
  left: 80%;
  animation-delay: -20s;
  animation-duration: 30s;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.06;
  }
  90% {
    opacity: 0.06;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

html.dark .floating-logo {
  opacity: 0.1;
  filter: brightness(1.5);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation active states */
.nav-active {
  color: #22c55e;
  font-weight: 500;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom shadows */
.shadow-glow {
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.25);
}

.shadow-glowNavy {
  box-shadow: 0 10px 30px rgba(26, 31, 35, 0.25);
}

/* Mobile menu animation */
.mobile-menu-enter {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Expandable content */
.expandable-content.show {
  animation: fadeInUp 0.3s ease-out;
}

/* Focus states for accessibility */
.focus-visible:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.95);
  }
  
  html.dark .glass {
    background: rgba(0, 0, 0, 0.95);
  }
}

/* Additional utility classes for consistency */
.logo-icon {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.25);
}

.logo-icon-small {
  height: 2rem;
  width: 2rem;
  border-radius: 0.5rem;
}

.feature-icon {
  display: inline-flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.feature-icon.accent {
  background-color: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.feature-icon.navy {
  background-color: rgba(26, 31, 35, 0.1);
  color: #343a40;
}

html.dark .feature-icon.accent {
  color: #86efac;
}

html.dark .feature-icon.navy {
  color: #adb5bd;
}

/* Mobile-first adjustments */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .rotating-logo-bg {
    width: 80vw;
    height: 80vw;
    min-width: 200px;
    min-height: 200px;
    opacity: 0.15;
  }

  .floating-logos {
    opacity: 0.12;
  }

  .floating-logo {
    width: 90px;
    height: 90px;
    opacity: 0.18;
  }

  .hero-dashboard {
    gap: 1.25rem;
  }

  .hero-dashboard-sidebar {
    border-radius: 0.75rem;
  }

  .hero-dashboard-main {
    padding: 1rem;
  }
}
