/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #1a1a2e; }
::-webkit-scrollbar-thumb { background: #e34168; border-radius: 3px; }

/* ========== MUSCLE FIBER PATTERN ========== */
.fiber-pattern {
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 2px,
        rgba(227, 65, 104, 0.03) 2px,
        rgba(227, 65, 104, 0.03) 4px
    );
}

/* ========== EMG LINE ANIMATION ========== */
.emg-line {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: drawLine 3s ease-in-out forwards;
}
@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* ========== CARD GLOW EFFECT ========== */
.card-glow {
    position: relative;
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(227,65,104,0.3), transparent, rgba(207,34,82,0.2));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}
.card-glow:hover::before {
    opacity: 1;
}

/* ========== GRAIN TEXTURE OVERLAY ========== */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* ========== GLASS NAVIGATION ========== */
.nav-glass {
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ========== MUSCLE MAP GLOW ANIMATION ========== */
.muscle-point {
    animation: muscleGlow 2.5s ease-in-out infinite;
}
.muscle-point:nth-child(2n) { animation-delay: 0.5s; }
.muscle-point:nth-child(3n) { animation-delay: 1s; }
@keyframes muscleGlow {
    0%, 100% { r: 4; opacity: 0.6; }
    50% { r: 6; opacity: 1; }
}

/* ========== SECTION DEFAULTS ========== */
section {
    position: relative;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ========== SCROLL SNAP (MOBILE HORIZONTAL) ========== */
.scroll-snap-x {
    scroll-snap-type: x mandatory;
}
.scroll-snap-x > * {
    scroll-snap-align: start;
}
