/* =========================================================
   custom.css — plain CSS (no @apply; the Tailwind Play CDN
   cannot compile @apply in external files, only in
   <style type="text/tailwindcss"> blocks inside index.html)
   ========================================================= */

/* Fonts via Google Fonts (loaded here, not in HTML, to avoid render block) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 4px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #00ffd1;
  color: #0a0a0f;
  font-weight: 600;
  border-radius: 0.375rem;
  text-decoration: none;
}
.skip-link:focus {
  left: 4px;
}

/* [x-cloak] hides Alpine-managed elements before init */
[x-cloak] { display: none !important; }

/* ----- Cyber Grid Background ----- */
.cyber-grid {
  background-image:
    linear-gradient(rgba(0, 255, 209, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 209, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-color: #0a0a0f;
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(0, 255, 209, 0.2);
  border-top-color: #00ffd1;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Focus ring global tightening */
*:focus-visible {
  outline-width: 2px;
  outline-style: solid;
  outline-color: #00ffd1;
  outline-offset: 2px;
}

/* ----- Tech Carousel (Marquee) ----- */
.tech-marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.tech-marquee-track:hover {
  animation-play-state: paused;
}

.animate-marquee-left {
  animation: marquee-left 30s linear infinite;
}

.animate-marquee-right {
  animation: marquee-right 34s linear infinite;
}

.animate-marquee-left-fast {
  animation: marquee-left 26s linear infinite;
}

@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee-left,
  .animate-marquee-right,
  .animate-marquee-left-fast,
  .animate-float-slow,
  .animate-float-reverse {
    animation: none !important;
  }
  .tech-marquee-wrapper {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   HooBank-Inspired Ambient Gradients & Glow Orbs
   ========================================================= */
.ambient-glow-cyan {
  background: radial-gradient(circle, rgba(0, 255, 209, 0.42) 0%, rgba(0, 255, 209, 0.12) 45%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  transform: translateZ(0);
}

.ambient-glow-violet {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.42) 0%, rgba(168, 85, 247, 0.12) 45%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  transform: translateZ(0);
}

.ambient-glow-pink {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.38) 0%, rgba(236, 72, 153, 0.1) 45%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  transform: translateZ(0);
}

.ambient-glow-blue {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.38) 0%, rgba(33, 77, 118, 0.15) 45%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  transform: translateZ(0);
}

/* Light mode calibration: reduce glow intensity to preserve contrast */
html:not(.dark) .ambient-glow-cyan,
html:not(.dark) .ambient-glow-violet,
html:not(.dark) .ambient-glow-pink,
html:not(.dark) .ambient-glow-blue {
  opacity: 0.35;
  filter: blur(65px);
}

/* =========================================================
   HooBank-Style Gradient Circles, Layered Cards & Dot Matrix
   ========================================================= */
.gradient-circle-mesh {
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(0, 255, 209, 0.5) 0%, rgba(56, 189, 248, 0.3) 50%, rgba(168, 85, 247, 0.5) 100%);
  padding: 2px;
  box-shadow: 0 0 35px rgba(0, 255, 209, 0.22), inset 0 0 20px rgba(168, 85, 247, 0.18);
  pointer-events: none;
}

.gradient-circle-inner {
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 35%, rgba(0, 255, 209, 0.18), rgba(10, 10, 15, 0.92) 75%);
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

html:not(.dark) .gradient-circle-inner {
  background: radial-gradient(circle at 35% 35%, rgba(0, 255, 209, 0.25), rgba(255, 255, 255, 0.95) 75%);
}

.layered-gradient-card-1 {
  background: linear-gradient(144deg, rgba(255, 255, 255, 0.12) -40%, rgba(0, 255, 209, 0.16) 30%, rgba(18, 18, 26, 0.88) 90%);
  border: 1px solid rgba(0, 255, 209, 0.45);
  box-shadow: 0 10px 40px -10px rgba(0, 255, 209, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.layered-gradient-card-2 {
  background: linear-gradient(-168deg, rgba(255, 255, 255, 0.1) -40%, rgba(168, 85, 247, 0.2) 30%, rgba(18, 18, 26, 0.88) 90%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 10px 40px -10px rgba(168, 85, 247, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

html:not(.dark) .layered-gradient-card-1 {
  background: linear-gradient(144deg, rgba(255, 255, 255, 0.95) 0%, rgba(0, 255, 209, 0.18) 50%, rgba(240, 253, 250, 0.85) 100%);
  border: 1px solid rgba(0, 255, 209, 0.55);
  box-shadow: 0 10px 30px -10px rgba(0, 255, 209, 0.25);
}

html:not(.dark) .layered-gradient-card-2 {
  background: linear-gradient(-168deg, rgba(255, 255, 255, 0.95) 0%, rgba(168, 85, 247, 0.18) 50%, rgba(250, 245, 255, 0.85) 100%);
  border: 1px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.25);
}

.cyber-dots-matrix {
  background-image: radial-gradient(rgba(0, 255, 209, 0.65) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
}

html:not(.dark) .cyber-dots-matrix {
  background-image: radial-gradient(rgba(0, 160, 130, 0.5) 1.5px, transparent 1.5px);
}

.cyber-orbit {
  border-radius: 9999px;
  border-width: 1px;
  pointer-events: none;
}

/* Floating animation for decorative objects */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-2deg);
  }
}

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

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

/* =========================================================
   Zero-Build Hardware-Accelerated Scroll Animations
   ========================================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-left {
  transform: translateX(-24px);
}

.reveal-on-scroll.reveal-right {
  transform: translateX(24px);
}

.reveal-on-scroll.reveal-scale {
  transform: scale(0.95) translateY(16px);
}

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

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

