/* Drift Landing — Custom Styles */

/* Nav blur */
.nav-blur {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: rgba(59, 130, 246, 0.3);
}

/* Scroll reveal animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.grid > .reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.grid > .reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.grid > .reveal-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.grid > .reveal-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.grid > .reveal-on-scroll:nth-child(6) { transition-delay: 0.25s; }

/* Screenshot hover lift */
.shadow-xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shadow-xl:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Code block styling */
pre code {
  tab-size: 2;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .grid.md\:grid-cols-2 > .order-2.md\:order-1 {
    order: 2;
  }
  .grid.md\:grid-cols-2 > .order-1.md\:order-2 {
    order: 1;
  }
}
