::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #2563eb, #9333ea);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #1d4ed8, #7e22ce);
}

.dark ::-webkit-scrollbar-track {
  background: #1e293b;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #1d4ed8, #7e22ce);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #9333ea #f1f1f1;
}

.dark * {
  scrollbar-color: #9333ea #1e293b;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark body {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.14), transparent 35%),
    #020617;
}

.glass-card {
  backdrop-filter: blur(14px);
}

.prose-content h1,
.prose-content h2,
.prose-content h3,
.prose-content h4 {
  margin-bottom: 1rem;
  font-weight: 700;
}

.prose-content p,
.prose-content li {
  line-height: 1.8;
}

.prose-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.admin-content {
  max-width: 100%;
  overflow-x: hidden;
}

@keyframes wave1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-20%); }
}

@keyframes wave2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20%); }
}

@keyframes wave3 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-15%); }
}

@keyframes floatSlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(100px, -50px, 0) scale(1.2); }
}

@keyframes floatSlower {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-70px, 100px, 0) scale(1.1); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  50% { transform: translateY(-20px) scale(1.5); opacity: 1; }
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

@keyframes gradientX {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-wave1 { animation: wave1 8s infinite ease-in-out; }
.animate-wave2 { animation: wave2 10s infinite ease-in-out; }
.animate-wave3 { animation: wave3 12s infinite ease-in-out; }
.animate-float-slow { animation: floatSlow 15s infinite ease-in-out; }
.animate-float-slower { animation: floatSlower 20s infinite ease-in-out; }
.animate-bob { animation: bob 2.6s infinite ease-in-out; }
.animate-nudge { animation: nudge 1.5s infinite; }
.animate-gradient-x { animation: gradientX 3s linear infinite; }

[data-toast] {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table-container table {
    min-width: 800px;
  }

  .admin-modal {
    max-width: 95vw !important;
    margin: 0.5rem;
  }

  .admin-form-row,
  .admin-button-group {
    flex-direction: column;
  }

  .admin-button-group button {
    width: 100%;
  }
}

.carousel-track {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  transition: all 0.3s ease;
}

.type-cursor {
  animation: blink 0.7s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.mobile-menu-enter {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}
.mobile-menu-enter.active {
  max-height: 500px;
  opacity: 1;
}

.navbar-transparent {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

@keyframes testPulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.5); opacity: 1; }
}

.testimonial-card {
  transition: all 0.3s ease;
}

.project-card-carousel {
  transition: all 0.5s ease;
}

.team-auto-track {
  mask-image: linear-gradient(to right, transparent 0, black 5%, black 95%, transparent 100%);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.scroll-timeline {
  position: relative;
}
.scroll-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #2563eb, #9333ea);
  transform: translateX(-50%);
}
