* {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

html {
  scroll-behavior: smooth;
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softIn {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
    filter: blur(0.5rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes ctaRise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatBolt {

  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-7deg);
  }

  50% {
    transform: translate3d(0, -0.75rem, 0) rotate(-5.8deg);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marquee3d {
  0% {
    transform: translateZ(-150px) rotateY(-12deg) rotateX(6deg) translateX(0%);
  }

  100% {
    transform: translateZ(-150px) rotateY(-12deg) rotateX(6deg) translateX(-50%);
  }
}

.nav-animate {
  animation: navDrop 900ms cubic-bezier(.16, 1, .3, 1) both;
}

.eyebrow-animate {
  animation: softIn 900ms cubic-bezier(.16, 1, .3, 1) 320ms both;
}

.line-animate-1 {
  animation: lineReveal 950ms cubic-bezier(.16, 1, .3, 1) 500ms both;
}

.line-animate-2 {
  animation: lineReveal 950ms cubic-bezier(.16, 1, .3, 1) 680ms both;
}

.line-animate-3 {
  animation: lineReveal 950ms cubic-bezier(.16, 1, .3, 1) 860ms both;
}

.paragraph-animate {
  animation: softIn 900ms cubic-bezier(.16, 1, .3, 1) 1120ms both;
}

.cta-animate {
  animation: ctaRise 850ms cubic-bezier(.16, 1, .3, 1) 1320ms both;
}

.animate-marquee {
  animation: marquee 40s linear infinite;
  width: max-content;
}

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

.gradient-shimmer {
  background-size: 220% 220%;
  animation: shimmer 8s ease-in-out infinite;
}

.filter-invert-logo {
  filter: grayscale(1) invert(1) brightness(1.5) contrast(1.2);
  mix-blend-mode: screen;
}


.ssj2-sparks-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  /* Above card content */
  overflow: visible;
}

.spark {
  position: absolute;
  opacity: 0;
}

.ssj2-lightning-path {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: flash-lightning var(--dur, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes flash-lightning {
  0% {
    stroke-dashoffset: 1000;
    opacity: 0;
  }

  2% {
    stroke-dashoffset: 1000;
    opacity: 1;
    filter: brightness(1);
  }

  8% {
    stroke-dashoffset: 0;
    opacity: 1;
    filter: brightness(1.2);
  }

  10% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  12% {
    stroke-dashoffset: 0;
    opacity: 1;
    filter: brightness(1.5);
  }

  15% {
    stroke-dashoffset: 0;
    opacity: 0;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

/* Custom Cursor */
.custom-cursor {
  pointer-events: none;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #00e5ff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  will-change: transform;
}

.cursor-outline {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
  will-change: transform;
}

/* Cursor Hover States */
.cursor-dot.hovering {
  width: 0;
  height: 0;
}

.cursor-outline.hovering {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.8);
  backdrop-filter: blur(2px);
}

.cursor-outline.active {
  width: 30px;
  height: 30px;
  background-color: rgba(0, 229, 255, 0.2);
}

/* Hide default cursor globally on non-touch devices */
@media (pointer: fine) {

  body,
  a,
  button {
    cursor: none !important;
  }
}

/* Bento Card Glow & 3D Effect */
.bento-card,
.project-panel {
  perspective: 1000px;
  transform-style: preserve-3d;
  position: relative;
}

/* Awwwards Spotlight Gradient Border (Mouse Reactive) */
.bento-card::before,
.project-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  /* Border thickness */
  background: radial-gradient(400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
      rgba(0, 229, 255, 1) 0%,
      rgba(139, 92, 246, 0.8) 50%,
      transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover::before,
.project-panel:hover::before {
  opacity: 1;
}

.mouse-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
      rgba(139, 92, 246, 0.08),
      transparent 40%);
  z-index: 0;
  transition: opacity 0.3s;
  opacity: 0;
}

.bento-card:hover .mouse-glow,
.project-panel:hover .mouse-glow {
  opacity: 1;
}

.stack-tag {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stack-tag:hover {
  transform: translateY(-5px) scale(1.05);
}

/* ==========================================================================
   Awwwards Polish: Custom Scrollbar, Selection & Lenis Smooth Scroll
   ========================================================================== */

/* 1. Premium Text Selection */
::selection {
  background-color: rgba(34, 211, 238, 0.3);
  /* Cyan shadow */
  color: #fff;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

/* 2. Custom Webkit Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  background-color: #030008;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

@media (max-width: 1023px) {

  /* Enforce miniature desktop layout only on the complex mockups */
  .project-panel>div:first-child>div {
    zoom: 0.7;
  }
}

@media (max-width: 767px) {

  /* Enforce miniature desktop layout only on the complex mockups */
  .project-panel>div:first-child>div {
    zoom: 0.45;
  }
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid #030008;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.8);
  /* Violet glow on hover */
}

/* 3. Lenis.js Base CSS */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ==========================================================================
   Volume Slider Customization
   ========================================================================== */
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00e5ff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.8);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.4);
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00e5ff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), inset 0 0 4px rgba(255, 255, 255, 0.8);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#volume-slider::-moz-range-thumb:hover {
  transform: scale(1.4);
}