@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

body {
    font-family: 'Press Start 2P', cursive;
    background: #0a1a1a;
    color: #7fffd4;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(127, 255, 212, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(127, 255, 212, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
    z-index: 0;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 90%;
    padding: 40px;
}

.profile-section {
    text-align: center;
    margin-bottom: 40px;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 2px); }
    94% { transform: translate(2px, -2px); }
    96% { transform: translate(-2px, -2px); }
    98% { transform: translate(2px, 2px); }
}

.avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border: 4px solid #66ffcc;
    box-shadow: 0 0 30px rgba(102, 255, 204, 0.6), inset 0 0 20px rgba(102, 255, 204, 0.2);
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
    border-radius: 50%;
    background-image: url('profile.png');
    background-size: cover;
    background-position: center;
    background-color: #1a3a3a;
    background-repeat: no-repeat;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(102, 255, 204, 0.6), inset 0 0 20px rgba(102, 255, 204, 0.2);
        border-color: #66ffcc;
    }
    50% {
        box-shadow: 0 0 50px rgba(102, 255, 204, 0.9), inset 0 0 40px rgba(102, 255, 204, 0.4);
        border-color: #99ffdd;
    }
}

h1 {
    font-size: 24px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #1a5544, -2px -2px 0 #66ffcc, 0 0 20px rgba(102, 255, 204, 0.5);
    letter-spacing: 2px;
    color: #99ffdd;
}

.subtitle {
    font-size: 10px;
    color: #66ffcc;
    text-shadow: 0 0 15px rgba(102, 255, 204, 0.8);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.link-btn {
    background: linear-gradient(135deg, rgba(102, 255, 204, 0.15), rgba(26, 58, 58, 0.3));
    border: 3px solid #66ffcc;
    padding: 20px;
    text-decoration: none;
    color: #99ffdd;
    font-size: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    box-shadow: 0 0 20px rgba(102, 255, 204, 0.4);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
    will-change: transform, box-shadow;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 255, 204, 0.5), transparent);
    transition: left 0.5s;
}

.link-btn:hover::before {
    left: 100%;
}

.link-btn:hover {
    border-color: #99ffdd;
    color: #ccffee;
    box-shadow: 0 0 40px rgba(102, 255, 204, 0.8);
    background: linear-gradient(135deg, rgba(102, 255, 204, 0.25), rgba(26, 58, 58, 0.5));
}

.link-btn:active {
    transform: translateY(0);
}

.link-icon {
    display: inline-block;
    margin-right: 10px;
    animation: float 2s ease-in-out infinite;
    color: #66ffcc;
    transition: opacity 0.3s ease;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.link-btn:has(.discord-uid):hover .link-icon {
    opacity: 0;
    width: 0;
    margin-right: 0;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #66ffcc;
    box-shadow: 0 0 10px #66ffcc;
    animation: particle-float 10s linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 8px;
    color: #66ffcc;
    text-shadow: 0 0 10px rgba(102, 255, 204, 0.6);
}

.hover-text {
    text-align: center;
    margin-top: 30px;
    font-size: 10px;
    color: #99ffdd;
    text-shadow: 0 0 15px rgba(102, 255, 204, 0.7);
    min-height: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-style: italic;
}

.hover-text.show {
    opacity: 1;
}

.discord-uid {
    display: inline-block;
    font-size: 10px;
    color: #ccffee;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 10px rgba(102, 255, 204, 0.8);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -5px;
}

.link-btn:hover .discord-uid {
    opacity: 1;
}

.about-section {
    margin-top: 40px;
    border: 3px solid #66ffcc;
    background: linear-gradient(135deg, rgba(102, 255, 204, 0.1), rgba(26, 58, 58, 0.2));
    box-shadow: 0 0 20px rgba(102, 255, 204, 0.3);
    padding: 20px;
}

.about-header {
    color: #99ffdd;
    font-size: 12px;
    text-align: center;
    margin-bottom: 15px;
}

.about-content {
    font-size: 9px;
    line-height: 1.8;
    color: #99ffdd;
    text-align: center;
}

.about-content p {
    margin-bottom: 10px;
}

@media (max-width: 600px) {
    h1 { font-size: 18px; }
    .link-btn { font-size: 10px; padding: 15px; }
    .container { padding: 20px; }
}