@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .custom-glow {
    text-shadow:
      0 0 20px rgba(0, 240, 255, 0.5),
      0 0 40px rgba(0, 240, 255, 0.3);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  /* Subtle dark noise texture overlay */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

@media (pointer: fine) {
  body,
  a,
  button,
  [onclick],
  input,
  textarea,
  select {
    cursor: none;
  }
}

/* Custom Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: #00f0ff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width 0.2s,
    height 0.2s,
    background-color 0.2s;
  display: none;
}
@media (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.custom-cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    top 0.1s ease-out,
    left 0.1s ease-out,
    width 0.2s,
    height 0.2s,
    border-color 0.2s;
  display: none;
}
@media (pointer: fine) {
  .custom-cursor-follower {
    display: block;
  }
}

.custom-cursor.hover-active {
  width: 12px;
  height: 12px;
  background-color: #ff003c;
}
.custom-cursor-follower.hover-active {
  width: 50px;
  height: 50px;
  border-color: rgba(255, 0, 60, 0.6);
  background: rgba(255, 0, 60, 0.05);
}

/* Marquee Animation logic now handled by Tailwind Config */
.animate-marquee:hover {
  animation-play-state: paused;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #030712;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00f0ff;
}

/* Animations that are hard to do purely with Tailwind arbitrary values */
@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  }
  100% {
    box-shadow:
      0 0 30px rgba(0, 240, 255, 0.6),
      0 0 10px rgba(0, 240, 255, 0.4) inset;
  }
}

@keyframes shine {
  100% {
    left: 200%;
  }
}

/* Scroll Reveal Initial States */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar Scrolled State */
.navbar-scrolled {
  background: rgba(3, 7, 18, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  height: 70px !important;
}

.navbar-scrolled .h-20 {
  height: 70px;
}

/* Hide scrollbar utility for flex containers */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
