/* SpicyBytes — Base styles */

/* Dot grid background */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.065) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Navbar scroll state */
.navbar-scrolled {
  background-color: rgba(13, 13, 14, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #27272A;
}

/* Mobile menu transition */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.25s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

/* Service accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-content.open {
  max-height: 600px;
  opacity: 1;
}

/* Accordion number colour on open */
.service-row.active .service-num {
  color: #FF5521;
}

/* Service row hover */
.service-row {
  transition: background-color 0.2s ease;
}
.service-row:hover {
  background-color: rgba(22, 22, 24, 0.5);
}

/* Cursor blink animation */
@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.cursor-blink {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: #FF5521;
  vertical-align: text-bottom;
  animation: cursor-blink 1.1s ease infinite;
}

/* Input / textarea focus */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #FF5521 !important;
  box-shadow: 0 0 0 1px rgba(255,85,33,0.4);
}

/* Underline nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #FF5521;
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
