/* 16-Bit Pixel Art Ghost with Headphones */

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    filter: drop-shadow(0 0 15px #00ff00);
}

.ghost-logo {
    position: relative;
    width: 160px;
    height: 160px;
    animation: pixelFloat 2s ease-in-out infinite;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* 16-bit Pixel Float */
@keyframes pixelFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Ghost Body - Pixelated Style */
.ghost-body {
    position: absolute;
    width: 100px;
    height: 100px;
    top: 20px;
    left: 30px;
}

/* Pixel grid for ghost body */
.pixel-row {
    display: flex;
    height: 10px;
}

.pixel {
    width: 10px;
    height: 10px;
    background: #00ff00;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.5);
}

.pixel.dark {
    background: #00aa00;
}

.pixel.black {
    background: #000000;
    box-shadow: 0 0 5px #00ff00;
}

.pixel.empty {
    background: transparent;
}

/* Simple CSS Ghost Body */
.ghost-body {
    position: relative;
    width: 80px;
    height: 100px;
    background:
        /* Eyes */
        linear-gradient(#000 0 0) 20px 30px / 15px 20px no-repeat,
        linear-gradient(#000 0 0) 45px 30px / 15px 20px no-repeat,
        /* Smile */
        radial-gradient(ellipse 30px 15px at center, transparent 45%, #000 46%, #000 54%, transparent 55%) 50% 60px no-repeat,
        /* Body */
        linear-gradient(#00ff00 0 0);
    border-radius: 40px 40px 0 0;
    box-shadow:
        inset 0 0 0 3px #00aa00,
        0 0 20px rgba(0, 255, 0, 0.6);
}

/* Bottom waves - pixelated */
.ghost-body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background:
        linear-gradient(#00ff00 0 0) 0 0 / 20px 20px,
        linear-gradient(#00ff00 0 0) 20px 0 / 20px 20px,
        linear-gradient(#00ff00 0 0) 40px 0 / 20px 20px,
        linear-gradient(#00ff00 0 0) 60px 0 / 20px 20px;
    background-repeat: no-repeat;
    clip-path: polygon(
        0% 0%, 12.5% 100%, 25% 0%,
        37.5% 100%, 50% 0%,
        62.5% 100%, 75% 0%,
        87.5% 100%, 100% 0%, 100% 100%, 0% 100%
    );
}

/* Headphones - 16-bit style */
.headphones {
    position: absolute;
    top: 10px;
    left: 71px;
    transform: translateX(-50%);
    width: 120px;
    height: 90px;
}

/* Headband - pixelated arc */
.headband {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    border: 5px solid #00ff00;
    border-bottom: none;
    border-radius: 40px 40px 0 0;
    box-shadow:
        0 0 10px rgba(0, 255, 0, 0.8),
        inset 0 0 10px rgba(0, 255, 0, 0.3);
}

/* Ear cups - chunky pixels */
.ear-cup {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #00aa00;
    border: 4px solid #00ff00;
    box-shadow:
        0 0 15px rgba(0, 255, 0, 0.8),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.ear-cup.left {
    left: 0;
    top: 25px;
}

.ear-cup.right {
    right: 0;
    top: 25px;
}

/* Inner speaker detail */
.ear-cup::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #000000;
    border: 2px solid #00ff00;
    box-shadow: 0 0 8px #00ff00;
}

/* Animated soundwaves - pixel style */
.soundwave {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00;
    opacity: 0;
    animation: pixelWave 1.5s ease-in-out infinite;
}

.soundwave.left-1 {
    left: -12px;
    top: 50%;
    animation-delay: 0s;
}

.soundwave.left-2 {
    left: -18px;
    top: 50%;
    animation-delay: 0.3s;
}

.soundwave.right-1 {
    right: -12px;
    top: 50%;
    animation-delay: 0.15s;
}

.soundwave.right-2 {
    right: -18px;
    top: 50%;
    animation-delay: 0.45s;
}

@keyframes pixelWave {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(2);
    }
    100% {
        opacity: 0;
        transform: scale(3);
    }
}

/* Logo text - Terminal style */
.logo-text {
    margin-left: 30px;
}

.logo-text h1 {
    margin: 0;
    font-size: 3rem;
    font-family: 'VT323', monospace;
    color: #00ff00;
    text-shadow:
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00;
    letter-spacing: 3px;
    line-height: 1;
}

.logo-text h1::before {
    content: '> ';
}

.logo-text .tagline {
    margin: 10px 0 0 0;
    font-size: 1.3rem;
    color: #00aa00;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 2px;
}

.logo-text .tagline::before {
    content: '// ';
    color: #00ff00;
}

/* Pixel blink animation */
@keyframes pixelBlink {
    0%, 85%, 100% {
        opacity: 1;
    }
    90%, 95% {
        opacity: 0;
    }
}

.ghost-body {
    animation: pixelBlink 4s infinite;
}

/* Retro glitch effect on hover */
.ghost-logo:hover .ghost-body {
    animation:
        pixelFloat 2s ease-in-out infinite,
        glitch 0.3s infinite;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text h1 {
        font-size: 2rem;
    }

    .logo-text .tagline {
        font-size: 1rem;
    }

    .ghost-logo {
        transform: scale(0.8);
    }
}
