/* Futuristic Design by Polkadot Ambassadors */
:root {
    --primary-color: #FFD700;     /* Bright Yellow */
    --secondary-color: #FF00FF;   /* Fuchsia */
    --background-color: #000000;  /* Pure Black */
    --text-color: #E0E0FF;        /* Soft, luminescent text */
    --accent-color: #FFD700;      /* Bright Yellow */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--background-color), #1a1a2e);
    color: var(--text-color);
    font-family: 'Orbitron', 'Arial', sans-serif;
    perspective: 1000px;
    background-attachment: fixed;
}

#wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(15, 16, 32, 0.8);
    border-radius: 25px;
    box-shadow: 
        0 0 30px rgba(0, 255, 209, 0.2),
        0 0 50px rgba(255, 107, 107, 0.1);
    backdrop-filter: blur(15px);
    transform-style: preserve-3d;
    transform: rotateX(10deg);
    transition: all 0.5s ease;
}

#wrapper:hover {
    transform: rotateX(0deg) scale(1.02);
    box-shadow: 
        0 0 40px rgba(0, 255, 209, 0.4),
        0 0 60px rgba(255, 107, 107, 0.2);
}

#main {
    background: linear-gradient(
        145deg, 
        rgba(25, 26, 46, 0.9), 
        rgba(35, 36, 66, 0.7)
    );
    border-radius: 25px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transform: translateZ(20px);
}

#main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center, 
        rgba(0, 255, 209, 0.1), 
        transparent 50%
    );
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.avatar {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 
        0 0 20px var(--secondary-color),
        0 0 40px rgba(0, 255, 209, 0.5);
    transition: all 0.5s ease;
    position: relative;
}

.avatar::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center, 
        rgba(255, 107, 107, 0.2), 
        transparent 50%
    );
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

.avatar img {
    max-width: 250px;
    transform: scale(1.1);
    filter: 
        brightness(1.2) 
        saturate(1.5)
        drop-shadow(0 0 10px var(--primary-color));
    transition: all 0.5s ease;
}

.avatar:hover img {
    transform: scale(1.15) rotate(5deg);
    filter: 
        brightness(1.3) 
        saturate(1.7)
        drop-shadow(0 0 15px var(--secondary-color));
}

h1 {
    color: var(--primary-color);
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px rgba(0, 255, 209, 0.7);
    letter-spacing: 3px;
    font-size: 2.5em;
    margin-top: 20px;
    position: relative;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    2%, 64% { transform: translate(2px, 0) skew(0deg); }
    4%, 60% { transform: translate(-2px, 0) skew(0deg); }
    62% { transform: translate(0, 0) skew(5deg); }
}

button {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--background-color);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 15px rgba(255, 107, 107, 0.5),
        0 0 25px rgba(0, 255, 209, 0.3);
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent
    );
    transition: all 0.5s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-7px);
    box-shadow: 
        0 0 25px rgba(255, 107, 107, 0.7),
        0 0 35px rgba(0, 255, 209, 0.5);
}

hr {
    border: none;
    height: 3px;
    background: linear-gradient(
        to right, 
        transparent, 
        var(--primary-color), 
        transparent
    );
    margin: 40px 0;
    box-shadow: 0 0 10px var(--primary-color);
}

#footer {
    background: rgba(15, 16, 32, 0.8);
    padding: 20px;
    border-radius: 0 0 25px 25px;
    text-align: center;
}

.copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    opacity: 0.8;
}

.copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.copyright a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.copyright a:hover::after {
    transform: scaleX(1);
}

@media screen and (max-width: 600px) {
    #wrapper {
        width: 95%;
        margin: 10px;
        transform: rotateX(0deg);
    }

    #main {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    button {
        width: 100%;
        margin-bottom: 15px;
        padding: 12px 20px;
    }

    .avatar img {
        max-width: 200px;
    }
}

/* Responsive Typography */
@media screen and (max-width: 400px) {
    h1 {
        font-size: 1.6em;
    }
}

/* Animation Keyframes */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px var(--primary-color); }
    50% { text-shadow: 0 0 20px var(--secondary-color); }
}