/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple-electric: #7b00cc;
    --purple-dark: #5a0099;
    --yellow-neon: #d4e600;
    --black-worn: #1a1a1a;
    --black-lighter: #2a2a2a;
    --orange-touch: #ff6b00;
    --orange-glow: #ff9500;
    --white-grunge: #f0e6d3;
    --pink-hot: #ff00ff;
    --green-matrix: #00cc33;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'VT323', monospace;
    background-color: var(--black-worn);
    color: var(--white-grunge);
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%239b00ff' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23e6ff00'/%3E%3C/svg%3E") 12 12, auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--purple-electric);
    color: var(--white-grunge);
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-family: 'VT323', monospace;
    font-size: 18px;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 3px
    );
}

/* ============================================
   SCROLLBAR - WIN95 STYLE
   ============================================ */
::-webkit-scrollbar {
    width: 16px;
}
::-webkit-scrollbar-track {
    background: var(--black-lighter);
    border-left: 2px solid #555;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c0c0c0 25%, #a0a0a0 25%, #a0a0a0 50%, #c0c0c0 50%, #c0c0c0 75%, #a0a0a0 75%);
    border: 2px outset #dfdfdf;
}

/* ============================================
   NAVIGATION - WIN95 STYLE
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 100%);
    border-bottom: 3px outset #dfdfdf;
    padding: 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    background: linear-gradient(180deg, #000080 0%, #000060 100%);
    border: 2px outset #c0c0c0;
    margin: 2px;
}

.nav-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: white;
    background: linear-gradient(90deg, var(--purple-electric), var(--yellow-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: white;
    text-decoration: none;
    padding: 3px 10px;
    background: #c0c0c0;
    color: #000;
    border: 2px outset #dfdfdf;
    text-transform: uppercase;
    transition: all 0.1s;
}

.nav-links a:hover {
    border-style: inset;
    background: #a0a0a0;
}

.nav-links a:active {
    border-style: inset;
    padding: 4px 9px 2px 11px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px 40px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)),
        url('../img/banner.webp') center/cover no-repeat;
    overflow: hidden;
}

/* Vinyl record decoration */
.vinyl-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle,
        #111 0%, #111 15%,
        #222 15%, #222 16%,
        #111 16%, #111 30%,
        #1a1a1a 30%, #1a1a1a 31%,
        #111 31%, #111 45%,
        #1a1a1a 45%, #1a1a1a 46%,
        #111 46%, #111 60%,
        #1a1a1a 60%, #1a1a1a 61%,
        #111 61%, #111 75%,
        #1a1a1a 75%, #1a1a1a 76%,
        #111 76%, #111 90%,
        #1a1a1a 90%, #1a1a1a 91%,
        #111 91%, #111 100%
    );
    opacity: 0.15;
    animation: spin 20s linear infinite;
    pointer-events: none;
}

.vinyl-bg::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--yellow-neon);
    opacity: 0.6;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-subtitle {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--yellow-neon);
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0%, 93%, 95%, 97%, 100% { opacity: 1; }
    94%, 96% { opacity: 0.4; }
}

.hero h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 10px;
    position: relative;
}

.hero h1 .line1 {
    display: block;
    color: var(--white-grunge);
    text-shadow:
        4px 4px 0 var(--purple-electric),
        -2px -2px 0 var(--orange-touch);
    transform: rotate(-2deg);
}

.hero h1 .line2 {
    display: block;
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(0.8rem, 3vw, 1.8rem);
    color: var(--yellow-neon);
    text-shadow:
        3px 3px 0 var(--purple-electric),
        0 0 30px rgba(230, 255, 0, 0.5);
    transform: rotate(1deg);
    margin-top: 10px;
}

.hero-description {
    font-size: 24px;
    color: var(--white-grunge);
    margin: 30px auto;
    max-width: 600px;
    opacity: 0.85;
    text-shadow: 1px 1px 0 #000;
}

/* CTA Button - Win95 style */
.cta-button {
    display: inline-block;
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--purple-electric), var(--purple-dark));
    color: var(--yellow-neon);
    border: 4px outset #c0c0c0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.1s;
    cursor: pointer;
    box-shadow:
        6px 6px 0 #000,
        0 0 30px rgba(155, 0, 255, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 6px 6px 0 #000, 0 0 30px rgba(155, 0, 255, 0.4); }
    50% { box-shadow: 6px 6px 0 #000, 0 0 50px rgba(155, 0, 255, 0.7), 0 0 80px rgba(230, 255, 0, 0.2); }
}

.cta-button:hover {
    border-style: inset;
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 #000, 0 0 40px rgba(155, 0, 255, 0.6);
}

.cta-button:active {
    transform: translate(4px, 4px);
    box-shadow: 2px 2px 0 #000;
}

.cta-button::before {
    content: '▶ ';
}

/* Decorative elements */
.hero-deco {
    position: absolute;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--orange-touch);
    opacity: 0.8;
    pointer-events: none;
}

.hero-deco.top-left { top: 120px; left: 30px; transform: rotate(-90deg); }
.hero-deco.top-right { top: 120px; right: 30px; transform: rotate(90deg); }
.hero-deco.bottom-left { bottom: 30px; left: 30px; }
.hero-deco.bottom-right { bottom: 30px; right: 30px; }

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--yellow-neon);
    text-shadow:
        3px 3px 0 var(--purple-electric),
        -1px -1px 0 var(--orange-touch);
}

.section-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--purple-electric), var(--orange-touch), var(--yellow-neon), transparent);
    margin: 15px auto 0;
}

/* ============================================
   MARQUEE - RUNNING TEXT
   ============================================ */
.marquee-container {
    background: var(--purple-electric);
    border-top: 3px solid var(--yellow-neon);
    border-bottom: 3px solid var(--yellow-neon);
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}

.marquee-content span {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--yellow-neon);
    padding: 0 40px;
    text-transform: uppercase;
}

.marquee-content span.highlight {
    color: #ffffff;
    background-color: var(--orange-touch);
    padding: 2px 8px;
    border-radius: 2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   FEATURED / NEW ARRIVALS - CAROUSEL
   ============================================ */
.featured {
    padding: 80px 20px;
    background:
        linear-gradient(180deg, var(--black-worn) 0%, #0d0d0d 50%, var(--black-worn) 100%);
    position: relative;
}

.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--purple-electric) 0px,
        var(--purple-electric) 10px,
        transparent 10px,
        transparent 15px,
        var(--orange-touch) 15px,
        var(--orange-touch) 25px,
        transparent 25px,
        transparent 30px
    );
}

.carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 20px 10px 40px;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.vinyl-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--black-lighter);
    border: 3px solid #444;
    padding: 0;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
}

.vinyl-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    border-color: var(--purple-electric);
    box-shadow: 0 0 30px rgba(155, 0, 255, 0.3);
}

.vinyl-card::before {
    content: 'NEW';
    position: absolute;
    top: -2px;
    right: -2px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    background: var(--orange-touch);
    color: #000;
    padding: 5px 8px;
    z-index: 2;
    letter-spacing: 1px;
}

.vinyl-card .album-cover {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #444;
}

.vinyl-card .album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) saturate(1.1);
    transition: transform 0.3s, filter 0.3s;
}

.vinyl-card:hover .album-cover img {
    transform: scale(1.05);
    filter: contrast(1.2) saturate(1.2) brightness(1.1);
}

.vinyl-card .album-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(155, 0, 255, 0.15) 0%,
        transparent 50%,
        rgba(255, 107, 0, 0.1) 100%
    );
    pointer-events: none;
}

.vinyl-card .album-info {
    padding: 15px;
}

.vinyl-card .album-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 18px;
    color: var(--yellow-neon);
    margin-bottom: 5px;
    text-shadow: 1px 1px 0 #000;
}

.vinyl-card .album-artist {
    font-family: 'VT323', monospace;
    font-size: 20px;
    color: var(--orange-touch);
    margin-bottom: 8px;
}

.vinyl-card .album-price {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--green-matrix);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vinyl-card .album-price .old-price {
    font-size: 10px;
    color: #aaaaaa;
    text-decoration: line-through;
}

.vinyl-card .album-format {
    font-family: 'VT323', monospace;
    font-size: 16px;
    color: #cccccc;
    margin-top: 5px;
}

.vinyl-card .album-year {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--yellow-neon);
    opacity: 0.9;
}

/* Carousel controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.carousel-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    width: 50px;
    height: 50px;
    background: #c0c0c0;
    border: 3px outset #dfdfdf;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s;
}

.carousel-btn:hover {
    background: #a0a0a0;
}

.carousel-btn:active {
    border-style: inset;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: #444;
    border: 2px outset #666;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--purple-electric);
    border-color: var(--yellow-neon);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 80px 20px;
    position: relative;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(155, 0, 255, 0.15) 0%, transparent 60%),
        var(--black-worn);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--orange-touch) 0px,
        var(--orange-touch) 10px,
        transparent 10px,
        transparent 15px,
        var(--yellow-neon) 15px,
        var(--yellow-neon) 25px,
        transparent 25px,
        transparent 30px
    );
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    position: relative;
}

.about-text p {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 4px solid var(--purple-electric);
}

.about-text p:first-child::first-letter {
    font-family: 'Permanent Marker', cursive;
    font-size: 48px;
    color: var(--yellow-neon);
    float: left;
    line-height: 1;
    margin-right: 10px;
    text-shadow: 2px 2px 0 var(--purple-electric);
}

.about-quote {
    font-family: 'Permanent Marker', cursive;
    font-size: 28px !important;
    color: var(--orange-touch) !important;
    border-left-color: var(--orange-touch) !important;
    transform: rotate(-1deg);
    text-shadow: 1px 1px 0 #000;
}

.about-visual {
    position: relative;
}

.about-image-frame {
    border: 4px solid #444;
    padding: 10px;
    background: #111;
    transform: rotate(2deg);
    box-shadow: 8px 8px 0 rgba(155, 0, 255, 0.3);
}

.about-image-frame img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1) saturate(0.8);
    display: block;
}

.about-image-caption {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--yellow-neon);
    text-align: center;
    margin-top: 10px;
    opacity: 1;
}

.about-sticker {
    position: absolute;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 8px 12px;
    border: 2px dashed;
    transform: rotate(-8deg);
    animation: wobble 4s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(-8deg); }
    50% { transform: rotate(-5deg); }
}

.about-sticker.sticker-1 {
    top: -20px;
    right: -20px;
    background: var(--yellow-neon);
    color: #000;
    border-color: #000;
}

.about-sticker.sticker-2 {
    bottom: 20px;
    left: -30px;
    background: var(--orange-touch);
    color: #000;
    border-color: #000;
    transform: rotate(5deg);
}

/* ============================================
   STORE HOURS / LOCATION
   ============================================ */
.info-bar {
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--purple-dark) 0%, #3d0066 100%);
    border-top: 3px solid var(--yellow-neon);
    border-bottom: 3px solid var(--yellow-neon);
}

.info-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.info-box {
    border: 2px solid rgba(230, 255, 0, 0.3);
    padding: 25px 15px;
    background: rgba(0, 0, 0, 0.3);
}

.info-box h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--yellow-neon);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.info-box p, .info-box address {
    font-size: 20px;
    font-style: normal;
    color: var(--white-grunge);
    line-height: 1.6;
}

.info-box .highlight-text {
    color: var(--yellow-neon);
    font-family: 'Permanent Marker', cursive;
    font-size: 22px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 50px 20px 30px;
    background:
        linear-gradient(180deg, #0d0d0d 0%, #000 100%);
    border-top: 4px solid var(--purple-electric);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--purple-electric) 0px,
        var(--purple-electric) 5px,
        transparent 5px,
        transparent 8px,
        var(--yellow-neon) 8px,
        var(--yellow-neon) 13px,
        transparent 13px,
        transparent 16px,
        var(--orange-touch) 16px,
        var(--orange-touch) 21px,
        transparent 21px,
        transparent 24px
    );
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--yellow-neon);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-section p, .footer-section address {
    font-size: 20px;
    line-height: 1.8;
    color: #dddddd;
    font-style: normal;
}

.footer-section a {
    color: var(--purple-electric);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--yellow-neon);
    text-shadow: 0 0 10px rgba(230, 255, 0, 0.5);
}

/* Pixel art social icons */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black-lighter);
    border: 2px outset #555;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--white-grunge);
    text-decoration: none;
    transition: all 0.1s;
    image-rendering: pixelated;
}

.social-icon:hover {
    border-style: inset;
    background: var(--purple-electric);
    color: var(--yellow-neon);
    box-shadow: 0 0 15px rgba(155, 0, 255, 0.5);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: #999999;
    letter-spacing: 1px;
}

.footer-bottom .neon-text {
    color: var(--purple-electric);
    animation: flicker 5s infinite alternate;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-inner {
        flex-direction: column;
        gap: 5px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .vinyl-card {
        flex: 0 0 250px;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    color: var(--pink-hot);
    left: 2px;
}

.glitch-text::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    color: var(--green-matrix);
    left: -2px;
}

@keyframes glitch-1 {
    0%, 95% { transform: translateX(0); }
    96% { transform: translateX(-3px); }
    97% { transform: translateX(3px); }
    98% { transform: translateX(-1px); }
    99% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

@keyframes glitch-2 {
    0%, 95% { transform: translateX(0); }
    96% { transform: translateX(2px); }
    97% { transform: translateX(-3px); }
    98% { transform: translateX(1px); }
    99% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}

/* Torn edge effect */
.torn-edge {
    position: relative;
}

.torn-edge::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8'%3E%3Cpath d='M0,0 L5,8 L10,2 L15,7 L20,1 L25,6 L30,3 L35,8 L40,0 L45,7 L50,2 L55,6 L60,1 L65,8 L70,3 L75,7 L80,2 L85,6 L90,1 L95,7 L100,0 L100,8 L0,8 Z' fill='%231a1a1a'/%3E%3C/svg%3E") repeat-x;
    background-size: 50px 8px;
}

/* ============================================
   MUSIC PLAYER DECORATION
   ============================================ */
.player-deco {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #222;
    border: 3px outset #555;
    padding: 10px;
    z-index: 100;
    width: 200px;
    font-family: 'VT323', monospace;
}

.player-deco .player-header {
    background: linear-gradient(90deg, #000080, #0000aa);
    padding: 3px 6px;
    margin: -10px -10px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-deco .player-header span {
    font-size: 11px;
    color: white;
}

.player-deco .player-btns {
    display: flex;
    gap: 2px;
}

.player-deco .player-btns span {
    width: 12px;
    height: 12px;
    background: #c0c0c0;
    border: 1px outset #dfdfdf;
    display: block;
    font-size: 8px;
    text-align: center;
    line-height: 12px;
    color: #000;
}

.player-display {
    background: #000;
    border: 2px inset #444;
    padding: 6px;
    margin-bottom: 8px;
}

.player-display .track-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    color: var(--green-matrix);
    animation: scroll-text 10s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.player-display .eq-bars {
    display: flex;
    gap: 2px;
    margin-top: 5px;
    height: 20px;
    align-items: flex-end;
}

.eq-bar {
    width: 4px;
    background: var(--green-matrix);
    animation: eq 0.8s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.eq-bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.eq-bar:nth-child(5) { height: 10px; animation-delay: 0.4s; }
.eq-bar:nth-child(6) { height: 18px; animation-delay: 0.5s; }
.eq-bar:nth-child(7) { height: 6px; animation-delay: 0.6s; }
.eq-bar:nth-child(8) { height: 14px; animation-delay: 0.7s; }

@keyframes eq {
    0% { height: 4px; }
    100% { height: 20px; }
}

@media (max-width: 768px) {
    .player-deco {
        display: none;
    }
}

/* ============================================
   FOCUS STYLES FOR ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--yellow-neon);
    outline-offset: 2px;
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   WILL-CHANGE HINTS FOR PERFORMANCE
   ============================================ */
.vinyl-bg {
    will-change: transform;
}

.marquee-content {
    will-change: transform;
}

.hero h1 .line1,
.hero h1 .line2 {
    will-change: transform;
}
