/* Updated color scheme to match dark purple/blue modern design */

/* Glass morphism effects */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-card-dark {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Cookie Popup Styles */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  max-width: 420px;
  animation: slideUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cookie-popup-content {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 2px solid rgba(148, 163, 184, 0.1);
}

@keyframes slideUp {
  from {
    transform: translateY(120px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Smooth transitions with cubic bezier for modern feel */
* {
  transition-property: color, background-color, border-color, transform, box-shadow, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

/* Custom scrollbar matching purple/dark theme */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9333ea 0%, #3b82f6 100%);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a855f7 0%, #60a5fa 100%);
}

/* Updated focus styles to match purple theme */
input:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 2px solid #9333ea;
  outline-offset: 3px;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .cookie-popup {
    right: 15px;
    left: 15px;
    bottom: 15px;
    max-width: none;
  }
}

/* Form error state */
.border-red-500 {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Added card hover effects */
.service-card,
.case-card,
.team-card {
  cursor: pointer;
  transform-style: preserve-3d;
}

.service-card:hover,
.case-card:hover,
.team-card:hover {
  box-shadow: 0 30px 60px -15px rgba(147, 51, 234, 0.3);
}

/* Added gradient text effect for headings */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .gradient-text {
    background: linear-gradient(135deg, #9333ea 0%, #3b82f6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Added subtle animation for stats circles */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.6);
  }
}

.group:hover > div {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Enhanced button styles */
button,
.btn {
  position: relative;
  overflow: hidden;
}

button::before,
.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before,
.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Smooth page transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.8s ease-out;
}
