* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: "Courier New", Courier, monospace;
    background-color: #0a0a0a;
    color: #f2f2f2;
    overflow-x: hidden;
}

.spectrum-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, rgb(255 51 51 / 38%), #000);
    opacity: 0.25;
}

.bar {
    width: 4px;
    background: linear-gradient(to top, #ff3333, #fff);
    height: 10%;
    animation: beat 600ms infinite ease-in-out;
}

@keyframes beat {
    0% {
        height: 10%;
        opacity: 0.6;
    }

    20% {
        height: 70%;
        opacity: 1;
    }

    40% {
        height: 30%;
        opacity: 0.8;
    }

    60% {
        height: 90%;
        opacity: 1;
    }

    80% {
        height: 20%;
        opacity: 0.7;
    }

    100% {
        height: 10%;
        opacity: 0.6;
    }
}

@keyframes vibrate {
    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);
    }
}

@keyframes flyIn {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.content-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #1e1e1e;
}

.logo img {
    height: auto;
    filter: brightness(0.8) contrast(1.2);
}

.logo img.vibrate {
    animation: vibrate 0.2s infinite;
}

.logo img:hover {
    animation: vibrate 0.1s infinite;
}

nav a {
    color: #aaa;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ff3333;
}

p a {
    text-decoration: none;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 0 0;
    text-align: center;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    max-width: 800px;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

.subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 2rem;
}

blockquote {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 2rem auto;
    opacity: 0.9;
    line-height: 1.6;
    font-style: italic;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 2rem auto;
    position: relative;
}

.skill-card {
    background-color: #111;
    border: 1px solid #222;
    padding: 1rem;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.skill-card:nth-child(1) {
    animation-delay: 0.2s;
}

.skill-card:nth-child(2) {
    animation-delay: 0.3s;
}

.skill-card:nth-child(3) {
    animation-delay: 0.4s;
}

.skill-card:nth-child(4) {
    animation-delay: 0.5s;
}

.skill-card:nth-child(5) {
    animation-delay: 0.6s;
}

.skill-card:nth-child(6) {
    animation-delay: 0.7s;
}

.skill-card:nth-child(7) {
    animation-delay: 0.8s;
}

.skill-card:nth-child(8) {
    animation-delay: 0.9s;
}

.skill-card:hover {
    background-color: #1a0000;
    border-color: #ff3333;
    color: #ff3333;
}

.modding-section {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.youtube {
    display: flex;
    align-items: center;
    justify-content: center;
}

#yt-toggle {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: #111;
    color: #ff3333;
    border: 1px solid #ff3333;
    border-radius: 4px;
    cursor: pointer;
}

footer {
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #9d9d9d;
    background-color: #000;
    border-top: 1px solid #111;
}

@media (max-width: 600px) {
    .logo img {
        width: 100vw;
    }

    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    blockquote {
        font-size: 1.1rem;
    }

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

    .bar {
        width: 2px;
    }
}
