html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #06b6d4 #030712;
}

body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: #030712; }
body::-webkit-scrollbar-thumb { background-color: #1e293b; border-radius: 10px; }

.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #334155; border-radius: 4px; }

.bg-grid-pattern {
  background-size: 40px 40px;
  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);
}

.mask-image-gradient {
  -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%), linear-gradient(to bottom, black 40%, transparent 100%);
  mask-image: linear-gradient(to left, black 40%, transparent 100%), linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tilt-card {
  transition: transform 0.1s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}
.tilt-card:hover { z-index: 10; }

@keyframes borderPulse {
  0%, 100% { border-color: rgba(6, 182, 212, 0.3); box-shadow: 0 0 15px rgba(6, 182, 212, 0.1); }
  50% { border-color: rgba(6, 182, 212, 0.8); box-shadow: 0 0 25px rgba(6, 182, 212, 0.3); }
}
.tilt-card:hover .animated-border {
  animation: borderPulse 2s infinite ease-in-out;
  border-color: rgba(6, 182, 212, 0.8);
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 15px rgba(6, 182, 212, 0.2); transform: scale(1); }
  50% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.5); transform: scale(1.02); }
}
.btn-alive {
  animation: breathe 3s infinite ease-in-out;
}

.modal-animate-in {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-open .modal-animate-in { opacity: 1; transform: translateY(0); }
.is-open .delay-100 { transition-delay: 0.1s; }
.is-open .delay-200 { transition-delay: 0.2s; }
.is-open .delay-300 { transition-delay: 0.3s; }