/* ============================================
   AlkynesV — AxonCraft Website
   Grey Theme Custom Styles
   ============================================ */

/* ---- Base & Resets ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(138, 138, 138, 0.3);
  color: #f5f5f5;
}

/* ---- Hero Backgrounds ---- */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(80, 80, 80, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(50, 50, 50, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(60, 60, 60, 0.1) 0%, transparent 50%);
}

.hero-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
}

/* ---- Animated Neuron Network Background (Canvas) ---- */
#neuron-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Subtle Micro-Dot Texture ---- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='1.5' fill='rgba(255,255,255,0.07)'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 80%);
}

.section-gradient-1 {
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(60, 60, 60, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(60, 60, 60, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(13, 13, 13, 0.7) 0%, rgba(16, 16, 16, 0.7) 100%);
}

.section-gradient-2 {
  background:
    radial-gradient(ellipse 60% 60% at 20% 20%, rgba(65, 65, 65, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(65, 65, 65, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(16, 16, 16, 0.7) 0%, rgba(14, 14, 14, 0.7) 100%);
}

/* ---- Navbar Styles ---- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.5);
}

.nav-link {
  position: relative;
  color: #6b6b6b;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: #e8e8e8;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #8a8a8a;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link-mobile {
  color: #6b6b6b;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

.nav-link-mobile:hover {
  color: #e8e8e8;
}

/* ---- Floating Orb Animation ---- */
.floating-orb {
  animation: float 8s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  width: 20px;
  height: 32px;
  border: 1.5px solid rgba(107, 107, 107, 0.4);
  border-radius: 10px;
  position: relative;
}

.scroll-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #6b6b6b;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.3;
  }
}

/* ---- Video Placeholder ---- */
.video-placeholder {
  box-shadow:
    0 0 60px rgba(50, 50, 50, 0.1),
    0 25px 50px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.video-placeholder:hover {
  box-shadow:
    0 0 80px rgba(60, 60, 60, 0.15),
    0 30px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* ---- Problem Cards ---- */
.problem-card {
  background: rgba(28, 28, 28, 0.6);
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(138, 138, 138, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.problem-card:hover {
  border-color: rgba(138, 138, 138, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.problem-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(58, 58, 58, 0.3);
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8a8a;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.problem-card:hover .card-icon {
  background: rgba(58, 58, 58, 0.5);
  color: #e8e8e8;
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a8a8a;
  border: 1px solid #2a2a2a;
  background: rgba(28, 28, 28, 0.5);
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: rgba(138, 138, 138, 0.3);
  color: #d4d4d4;
}

/* ---- Solution Visual ---- */
.solution-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 40%, rgba(50, 50, 50, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(60, 60, 60, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid #2a2a2a;
}

/* ---- How It Works Steps ---- */
.step-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-content {
  flex: 1;
  padding: 1.5rem;
}

.step-spacer {
  flex: 1;
  display: none;
}

.step-dot {
  display: none;
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 2px solid #3a3a3a;
  margin-top: 1.75rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.step-row:hover .step-dot {
  background: #8a8a8a;
  border-color: #8a8a8a;
  box-shadow: 0 0 12px rgba(138, 138, 138, 0.3);
}

@media (min-width: 1024px) {

  .step-spacer,
  .step-dot {
    display: block;
  }
}

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #3a3a3a;
  margin-bottom: 0.5rem;
}

.step-content {
  background: rgba(28, 28, 28, 0.4);
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  transition: all 0.4s ease;
}

.step-row:hover .step-content {
  border-color: rgba(138, 138, 138, 0.15);
  background: rgba(28, 28, 28, 0.6);
}

/* ---- Tech Cards ---- */
.tech-card {
  background: rgba(28, 28, 28, 0.5);
  border: 1px solid #2a2a2a;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8a8a8a, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-card:hover {
  border-color: rgba(138, 138, 138, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-card:hover::after {
  opacity: 0.5;
}

.tech-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(58, 58, 58, 0.2);
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b6b6b;
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
  background: rgba(58, 58, 58, 0.4);
  color: #e8e8e8;
  border-color: rgba(138, 138, 138, 0.2);
}

/* ---- Social Links ---- */
.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: rgba(28, 28, 28, 0.5);
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  color: #6b6b6b;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: rgba(138, 138, 138, 0.3);
  color: #e8e8e8;
  background: rgba(28, 28, 28, 0.8);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(42, 42, 42, 0.3);
  border: 1px solid #2a2a2a;
  color: #6b6b6b;
  transition: all 0.3s ease;
}

.footer-social:hover {
  color: #e8e8e8;
  border-color: rgba(138, 138, 138, 0.3);
  background: rgba(42, 42, 42, 0.6);
  transform: translateY(-2px);
}

/* ============================================
   Reveal Animations
   ============================================ */

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for children with animation-delay inline styles */
.reveal-up[style*="animation-delay"],
.reveal-left[style*="animation-delay"],
.reveal-right[style*="animation-delay"] {
  transition-delay: var(--delay, 0s);
}

/* ---- Form Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  background: rgba(28, 28, 28, 0.95);
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  color: #e8e8e8;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Smooth gradient border for horizontal rules ---- */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2a2a2a, transparent);
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}