/* ROBOLAF Studio — custom styles on top of Tailwind CDN */

:root {
  --lime: #bef500;
  --cyan: #00dbe9;
  --bg: #000;
}

html, body {
  background: #000;
}

/* Ambient background — soft radial + animated grain */
#ambient {
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(190, 245, 0, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 70%, rgba(0, 219, 233, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 100%, rgba(190, 245, 0, 0.04) 0%, transparent 60%);
  filter: blur(2px);
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(0, 0, 0, 0.7), transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(0, 0, 0, 0.7), transparent 85%);
}

/* Nav */
#nav {
  background: transparent;
}
#nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(67, 73, 51, 0.15);
}
.nav-link {
  position: relative;
  font-size: 0.9rem;
  color: rgba(229, 226, 225, 0.78);
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--lime);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--lime); }
.nav-link:hover::after { width: 100%; }

/* Language switch */
.lang-btn {
  color: rgba(229, 226, 225, 0.55);
}
.lang-btn.active {
  background: var(--lime);
  color: #000;
}
.lang-btn:not(.active):hover {
  color: var(--lime);
}

/* Buttons */
.glow-hover {
  transition: all 0.3s ease;
}
.glow-hover:hover {
  box-shadow: 0 0 48px -10px rgba(190, 245, 0, 0.55);
  transform: translateY(-1px);
}

/* Service cards */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  background: #0a0a0a;
  border: 1px solid rgba(67, 73, 51, 0.08);
  border-radius: 1.5rem;
  overflow: hidden;
  transition: all 0.4s ease;
  min-height: 320px;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(190, 245, 0, 0), rgba(190, 245, 0, 0.3), rgba(0, 219, 233, 0.2), rgba(190, 245, 0, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover {
  background: #121212;
  transform: translateY(-4px);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.service-icon .material-symbols-outlined {
  font-size: 1.75rem;
}

.chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(229, 226, 225, 0.7);
  border: 1px solid rgba(67, 73, 51, 0.15);
  font-family: 'Space Grotesk', sans-serif;
}

/* Floating tech chips around the hero ring */
.chip-float {
  position: absolute;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(67, 73, 51, 0.3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(229, 226, 225, 0.85);
  font-family: 'Space Grotesk', sans-serif;
  white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
}

/* Process steps */
.process-step {
  position: relative;
  padding: 2rem;
  background: #0a0a0a;
  border: 1px solid rgba(67, 73, 51, 0.1);
  border-radius: 1.25rem;
  transition: all 0.3s ease;
}
.process-step:hover {
  border-color: rgba(190, 245, 0, 0.35);
  transform: translateY(-4px);
}
.step-num {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--lime);
  margin-bottom: 1.25rem;
}

/* Floating form labels */
.field {
  position: relative;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(67, 73, 51, 0.3);
  padding: 0.85rem 0 0.7rem;
  color: #e5e2e1;
  font-size: 1rem;
  transition: border-color 0.25s ease;
  font-family: 'Inter', sans-serif;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
}
.field label {
  position: absolute;
  left: 0;
  top: 0.85rem;
  color: rgba(195, 202, 172, 0.6);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -0.75rem;
  font-size: 0.75rem;
  color: var(--lime);
  letter-spacing: 0.05em;
}

/* Honeypot — invisible to humans, visible to bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Social button */
.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(67, 73, 51, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(229, 226, 225, 0.8);
  transition: all 0.25s ease;
}
.social-btn:hover {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
  transform: translateY(-2px);
}

/* Footer */
.footer-link {
  color: rgba(229, 226, 225, 0.6);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--lime);
}

/* Reveal on scroll — only hides when JS explicitly marks .js-ready */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-ready .reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.js-ready .reveal-delay-200.in { transition-delay: 0.15s; }
.js-ready .reveal-delay-400.in { transition-delay: 0.3s; }

/* Animations */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-slower {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}
@keyframes float-c {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-8px); }
}
@keyframes float-d {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(10px); }
}
@keyframes float-e {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -8px); }
}
@keyframes float-f {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, 8px); }
}
@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.animate-spin-slow { animation: spin-slow 28s linear infinite; }
.animate-spin-slower { animation: spin-slower 45s linear infinite; }
.float-a { animation: float-a 5s ease-in-out infinite; }
.float-b { animation: float-b 6s ease-in-out infinite 0.5s; }
.float-c { animation: float-c 4.5s ease-in-out infinite 1s; }
.float-d { animation: float-d 5.5s ease-in-out infinite 0.8s; }
.float-e { animation: float-e 6.5s ease-in-out infinite 1.4s; }
.float-f { animation: float-f 5.2s ease-in-out infinite 0.3s; }
.animate-bounce-soft { animation: bounce-soft 2s ease-in-out infinite; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .service-card { padding: 1.75rem; min-height: 260px; }
  .service-icon { margin-bottom: 1.25rem; }
}
