@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap");

html {
  scroll-behavior: auto;
}

body {
  background-color: #0f172a;
  color: #cbd5e1;
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
}

::selection {
  background: rgba(99, 102, 241, 0.4);
  color: #f8fafc;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Custom utility classes */
.font-mono-code {
  font-family: "JetBrains Mono", monospace;
}

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(100deg, #60a5fa 0%, #818cf8 55%, #a78bfa 100%);
}

.glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.text-outline {
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.35);
  color: transparent;
}

.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Animations */
@keyframes marquee-x {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.animate-marquee-slow {
  animation: marquee-x 55s linear infinite;
}

.animate-marquee-editorial {
  animation: marquee-x 90s linear infinite;
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.animate-caret {
  animation: caret-blink 1.1s step-end infinite;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

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

.hero-carousel-track {
  min-height: 430px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 1px solid #64748b;
  border-radius: 999px;
  background: transparent;
  transition: width 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.hero-dot.is-active {
  width: 24px;
  border-color: #818cf8;
  background: #818cf8;
}

.hero-copy-changing {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hero-title-changing {
  opacity: 0;
  transition: opacity 0.18s ease;
}

#hero-title,
#hero-subtitle {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.process-steps > article {
  flex: 1 1 0%;
}

.process-arrow {
  width: 48px;
  align-items: center;
  justify-content: center;
  color: rgba(129, 140, 248, 0.55);
}

.process-arrow svg {
  width: 28px;
  height: 16px;
  animation: process-arrow-pulse 2.2s ease-in-out infinite;
}

@keyframes process-arrow-pulse {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-arrow svg {
    animation: none;
  }
}

.project-mockup {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.7));
}

.project-mockup::before,
.project-mockup::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 10px;
  transform: rotate(-8deg);
}

.project-mockup::before { inset: 28px 42px 38px 28px; }
.project-mockup::after { inset: 48px 24px 20px 62px; border-color: rgba(96, 165, 250, 0.18); }

/* Custom Scroll Reveal Classes (simulating Framer Motion in JS) */
.reveal-element {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-line {
  overflow: hidden;
  display: block;
}
.reveal-line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-line.active .reveal-line-inner {
  transform: translateY(0);
}

/* Custom toast notifications style */
.custom-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background-color: #0f172a;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.custom-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.custom-toast.success {
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}
.custom-toast.error {
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
