/* Background Lines Component Styles */

.bg-lines-container {
    height: 40rem;
    width: 100%;
    background-color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Rounding if needed */
    border-radius: 0.375rem;
}

.dark .bg-lines-container {
    background-color: black;
}

/* SVG Container */
.bg-lines-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let text be clickable */
    z-index: 0;
}

/* Text Content - Positioned above SVG */
.bg-lines-content {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 0 1rem;
}

/* Gradient Text Title */
.bg-lines-title {
    font-family: sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    /* tracking-tight */
    font-size: 1.5rem;
    /* 2xl */
    line-height: 2rem;
    padding: 0.5rem 0;

    /* Gradient */
    background: linear-gradient(to bottom, #171717, #404040);
    /* neutral 900 to 700 */
    -webkit-background-clip: text;
    color: transparent;
    background-clip: text;
}

.dark .bg-lines-title {
    background: linear-gradient(to bottom, #525252, #ffffff);
    /* neutral 600 to white */
    -webkit-background-clip: text;
    background-clip: text;
}

@media (min-width: 768px) {
    .bg-lines-title {
        font-size: 2.25rem;
        /* 4xl */
        padding: 2.5rem 0;
    }
}

@media (min-width: 1024px) {
    .bg-lines-title {
        font-size: 4.5rem;
        /* 7xl */
    }
}

/* Description Text */
.bg-lines-desc {
    max-width: 36rem;
    /* max-w-xl */
    margin: 0 auto;
    font-size: 0.875rem;
    /* text-sm */
    color: #404040;
    /* neutral-700 */
}

.dark .bg-lines-desc {
    color: #a3a3a3;
    /* neutral-400 */
}

@media (min-width: 768px) {
    .bg-lines-desc {
        font-size: 1.125rem;
        /* text-lg */
    }
}


/* ANIMATION KEYFRAMES for SVG Paths */
/* 
   Original Framer Motion:
   initial: { strokeDashoffset: 800, strokeDasharray: "50 800" },
   animate: { strokeDashoffset: 0, strokeDasharray: "20 800", opacity: [0, 1, 1, 0] }
*/

@keyframes path-anim {
    0% {
        stroke-dashoffset: 800;
        stroke-dasharray: 50 800;
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        stroke-dasharray: 20 800;
        opacity: 0;
    }
}

.bg-line-path {
    fill: none;
    stroke-linecap: round;
    /* Animation assigned in JS dynamically usually for random matching, 
       but here we define the base rule */
    animation-name: path-anim;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}