/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Thread Path Animation Styles */
#thread-path {
  stroke-dasharray: 200; /* Approximate path length */
  stroke-dashoffset: 200;
}

/* Writing mode for vertical marquee */
.writing-vertical-rl {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Service Background Pattern */
.service-bg-pattern {
  background-image: linear-gradient(0deg, transparent 24%, rgba(188, 124, 68, .3) 25%, rgba(188, 124, 68, .3) 26%, transparent 27%, transparent 74%, rgba(188, 124, 68, .3) 75%, rgba(188, 124, 68, .3) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(188, 124, 68, .3) 25%, rgba(188, 124, 68, .3) 26%, transparent 27%, transparent 74%, rgba(188, 124, 68, .3) 75%, rgba(188, 124, 68, .3) 76%, transparent 77%, transparent);
  background-size: 40px 40px;
}

/* Input Focus Stitch Border */
.form-group input:focus ~ .stitch-border,
.form-group textarea:focus ~ .stitch-border,
.form-group input:valid ~ .stitch-border,
.form-group textarea:valid ~ .stitch-border {
  width: 100%;
  /* Create dashed effect */
  background: repeating-linear-gradient(to right, #BC7C44 0, #BC7C44 5px, transparent 5px, transparent 10px);
}

/* Custom text selection */
::selection {
  background: #BC7C44;
  color: #fff;
}
