/* Global Styles & Scrollbar */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
}

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

::-webkit-scrollbar-track {
  background: #0f172a; /* Slate 900 */
}

::-webkit-scrollbar-thumb {
  background: #334155; /* Slate 700 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b82f6; /* Blue 500 */
}

/* Base custom classes */
.glassmorphism {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glassmorphism-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

/* Custom interactive animations */
@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.05); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes float-reverse {
  0% { transform: translateY(0px) scale(1.05); }
  50% { transform: translateY(15px) scale(1); }
  100% { transform: translateY(0px) scale(1.05); }
}

.animate-blob-1 {
  animation: float 8s ease-in-out infinite;
}

.animate-blob-2 {
  animation: float-reverse 10s ease-in-out infinite;
}

/* Hover effects for premium feeling */
.hover-glow:hover {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-4px);
}

/* Case Study Modal Transitions */
.modal-backdrop-enter {
  opacity: 0;
}
.modal-backdrop-active {
  transition: opacity 300ms ease-out;
  opacity: 1;
}
.modal-backdrop-exit {
  opacity: 0;
  transition: opacity 250ms ease-in;
}

.modal-content-enter {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}
.modal-content-active {
  transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1), transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
  transform: scale(1) translateY(0);
}
.modal-content-exit {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  transition: opacity 250ms ease-in, transform 250ms ease-in;
}

/* Custom Timeline line styling */
.timeline-line::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, #1e293b);
}

@media (min-width: 768px) {
  .timeline-line::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* User-valid & User-invalid modern form styling */
input:user-valid, textarea:user-valid {
  border-color: #10b981 !important; /* Emerald 500 */
}

input:user-invalid, textarea:user-invalid {
  border-color: #ef4444 !important; /* Red 500 */
}

.form-focus-glow:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
