/* VoidDev — custom styles (Tailwind via CDN) */

/* Background */
.void-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 255, 255, 0.03), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 255, 255, 0.02), transparent),
    #050505;
}

.void-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Display headings — prevent descender clipping (Syne g, y, p) */
.headline-display {
  line-height: 1.22;
  padding-bottom: 0.12em;
}

/* Typography accents */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #9a9a9a 50%, #6b6b6b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #2a2a2a 20%, #2a2a2a 80%, transparent);
}

/* Navigation */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9a9a9a;
  transition: color 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.mobile-nav-link {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #c4c4c4;
  padding: 0.75rem 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.mobile-nav-link:hover {
  color: #ffffff;
  transform: translateX(8px);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #050505;
  background: #ffffff;
  border-radius: 0.5rem;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: #e8e8e8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c4c4c4;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  background: transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover {
  color: #ffffff;
  border-color: #404040;
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
}

/* Header scrolled state */
#header.is-scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f1f1f;
}

#header.is-scrolled > div {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 18px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #e8e8e8;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle[aria-expanded='true'] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#menu-toggle[aria-expanded='true'] .hamburger span:nth-child(2) {
  opacity: 0;
}

#menu-toggle[aria-expanded='true'] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

/* Pulse dot */
.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* Cards */
.stat-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #1f1f1f;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  border-color: #404040;
  transform: translateY(-2px);
}

.approach-card {
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid #1f1f1f;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.9));
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.approach-card:hover {
  border-color: #404040;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid #1f1f1f;
  background: #0a0a0a;
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.service-card:hover {
  border-color: #404040;
  background: #141414;
  transform: translateY(-4px);
}

.service-number {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #404040;
  transition: color 0.35s ease;
}

.service-card:hover .service-number {
  color: #9a9a9a;
}

.tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9a9a9a;
  background: #1f1f1f;
  border-radius: 9999px;
  border: 1px solid #2a2a2a;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.service-card:hover .tag {
  border-color: #404040;
  color: #c4c4c4;
}

/* Tech stack */
.stack-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stack-category {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #1f1f1f;
  background: rgba(10, 10, 10, 0.8);
  transition: border-color 0.3s ease;
}

.stack-category:hover {
  border-color: #2a2a2a;
}

.stack-category--highlight {
  border-color: #404040;
  background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
}

.stack-category--highlight:hover {
  border-color: #6b6b6b;
}

.stack-category-title {
  margin-bottom: 1rem;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stack-item {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #9a9a9a;
  background: #141414;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.stack-item:hover {
  color: #ffffff;
  border-color: #2a2a2a;
  background: #1f1f1f;
  transform: translateX(4px);
}

/* CTA */
.cta-block {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid #2a2a2a;
  background: linear-gradient(145deg, #0a0a0a 0%, #141414 45%, #0a0a0a 100%);
}

.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 255, 255, 0.04), transparent 50%);
  pointer-events: none;
}

.cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(135deg, black 0%, transparent 65%);
  pointer-events: none;
}

.cta-corner {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  border-color: #404040;
  pointer-events: none;
}

.cta-corner--tl {
  top: 1.25rem;
  left: 1.25rem;
  border-top: 1px solid;
  border-left: 1px solid;
}

.cta-corner--br {
  right: 1.25rem;
  bottom: 1.25rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 1.75rem;
}

@media (min-width: 1024px) {
  .cta-inner {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 3.5rem 3rem;
  }
}

.cta-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a9a9a;
  border: 1px solid #2a2a2a;
  border-radius: 9999px;
  background: rgba(20, 20, 20, 0.8);
}

.cta-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.cta-perks li {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: #9a9a9a;
  border: 1px solid #1f1f1f;
  border-radius: 9999px;
  background: #0a0a0a;
}

.cta-channels {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  text-decoration: none;
  border: 1px solid #1f1f1f;
  border-radius: 0.875rem;
  background: rgba(10, 10, 10, 0.85);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.cta-channel:hover {
  border-color: #404040;
  background: #141414;
  transform: translateX(4px);
}

.cta-channel--primary {
  border-color: #404040;
  background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
}

.cta-channel--primary:hover {
  border-color: #6b6b6b;
  background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
}

.cta-channel-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #e8e8e8;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  background: #0a0a0a;
}

.cta-channel-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
}

.cta-channel-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.cta-channel-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #e8e8e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cta-channel-arrow {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: #404040;
  transition: color 0.25s ease, transform 0.25s ease;
}

.cta-channel:hover .cta-channel-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

/* Footer */
.footer-link {
  color: #9a9a9a;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #6b6b6b;
  border: 1px solid #2a2a2a;
  border-radius: 0.5rem;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.social-link:hover {
  color: #ffffff;
  border-color: #404040;
  background: #141414;
  transform: translateY(-2px);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(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.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pulse-dot {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
