/* Autom8teX — custom styles layered on top of Tailwind */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* offset for sticky header */
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom selection */
::selection {
  background: #5dc1f0;
  color: #0a0e1a;
}

/* Header scroll state — toggled via JS */
#site-header.is-scrolled {
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Nav links */
.nav-link {
  color: rgb(203 213 225); /* slate-300 */
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #fff;
}
.nav-link.nav-active {
  color: #fff;
}
.nav-link.nav-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #5dc1f0;
}

/* Subtle card hover lift on services + portfolio */
section#services article,
section#work a {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
section#services article:hover,
section#work a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(93, 193, 240, 0.25);
}

/* Embossed image effect — uses drop-shadow so it respects the PNG's alpha channel */
.image-embossed {
  filter:
    /* Crisp top-left highlight (catches the "light" on the raised edge) */
    drop-shadow(-1px -1px 0 rgba(255, 255, 255, 0.25))
    drop-shadow(-2px -2px 1px rgba(255, 255, 255, 0.1))
    /* Layered bottom-right shadow for the cliff edge */
    drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.9))
    drop-shadow(4px 4px 3px rgba(0, 0, 0, 0.7))
    /* Ambient drop shadow for depth */
    drop-shadow(0 16px 32px rgba(0, 0, 0, 0.7))
    drop-shadow(0 32px 64px rgba(0, 0, 0, 0.4))
    /* Subtle brand glow underneath */
    drop-shadow(0 40px 80px rgba(93, 193, 240, 0.15));
}

/* Embossed text effect — for hero A8X */
.text-embossed {
  color: #0e1322; /* nearly bg, letters read as faint relief */
  text-shadow:
    /* Sharp multi-layer top-left highlight (catches the "light") */
    -1px -1px 0 rgba(255, 255, 255, 0.38),
    -2px -2px 0 rgba(255, 255, 255, 0.22),
    -3px -3px 1px rgba(255, 255, 255, 0.12),
    -4px -4px 3px rgba(255, 255, 255, 0.06),
    /* Deep stepped bottom-right shadow (creates the cliff edge) */
    1px 1px 0 rgba(0, 0, 0, 1),
    3px 3px 0 rgba(0, 0, 0, 0.95),
    5px 5px 0 rgba(0, 0, 0, 0.8),
    8px 8px 5px rgba(0, 0, 0, 0.7),
    /* Strong ambient drop shadow */
    0 20px 48px rgba(0, 0, 0, 0.8),
    0 40px 96px rgba(0, 0, 0, 0.5),
    /* Wide brand-blue glow underneath for atmosphere */
    0 60px 120px rgba(93, 193, 240, 0.12);
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
}

/* Form field focus glow */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(93, 193, 240, 0.18);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
