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

/* Variables */
:root {
    --neon-pink: #ff0080;
    --neon-blue: #00ffff;
    --neon-purple: #8000ff;
    --neon-green: #00ff41;
    --neon-orange: #ff6b35;
    --neon-yellow: #ffd700;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(15, 15, 15, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --gray: #cccccc;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --glow-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

/* Global Styles */
body {
    font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--dark-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Cyberpunk Scanlines Effect */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 0, 128, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(128, 0, 255, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    animation: backgroundShift 30s ease-in-out infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/images/bg.jpeg') center center / cover no-repeat;
    opacity: 0.25;
    filter: blur(3px) brightness(0.3) contrast(1.2);
    z-index: -1;
    animation: backgroundPulse 12s ease-in-out infinite;
}

/* Scanlines Overlay */
.scanlines {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        transparent 50%, 
        rgba(0, 0, 0, 0.5) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 0.1s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Floating Particles */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-pink);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    opacity: 0.6;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; background: var(--neon-blue); }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; background: var(--neon-purple); }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; background: var(--neon-green); }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; background: var(--neon-orange); }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; background: var(--neon-yellow); }
.particle:nth-child(7) { left: 70%; animation-delay: 0s; background: var(--neon-pink); }
.particle:nth-child(8) { left: 80%; animation-delay: 1s; background: var(--neon-blue); }
.particle:nth-child(9) { left: 90%; animation-delay: 2s; background: var(--neon-purple); }

/* Main Container */
.bio-container {
    max-width: 720px;
    width: 100%;
    padding: 30px;
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    animation: containerGlow 6s ease-in-out infinite alternate;
    overflow: hidden;
}

.bio-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple), var(--neon-green), var(--neon-orange));
    background-size: 400% 400%;
    animation: borderGlow 8s ease-in-out infinite;
    z-index: -1;
    opacity: 0.4;
}

/* Glitch Effect for Container */
.bio-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 128, 0.1), transparent);
    animation: glitch 3s infinite;
    pointer-events: none;
    z-index: 1;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.profile-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple), var(--neon-orange));
    background-size: 300% 300%;
    animation: borderRotate 6s linear infinite;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--dark-bg);
    z-index: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border-radius: 50%;
}

.profile h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple), var(--neon-green), var(--neon-orange));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: textGlow 6s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
    position: relative;
}

/* Glitch Effect for Title */
.profile h1::before,
.profile h1::after {
    content: 'VietDJ';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple), var(--neon-green), var(--neon-orange));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 6s ease-in-out infinite;
}

.profile h1::before {
    animation: glitchText 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.profile h1::after {
    animation: glitchText 2s infinite reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

.bio-text {
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    position: relative;
}

.bio-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue));
    animation: expandLine 3s ease-in-out infinite;
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.link-card {
    background: var(--glass-bg);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple));
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.link-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.link-card:hover::before {
    opacity: 0.1;
    animation: gradientShift 4s ease-in-out infinite;
}

.link-card:hover::after {
    left: 100%;
}

.link-card span, .link-card i {
    position: relative;
    z-index: 2;
}

.link-card i {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 30px;
    text-align: center;
    filter: drop-shadow(0 0 5px rgba(255, 0, 128, 0.3));
    animation: iconPulse 2s ease-in-out infinite;
}

.link-card span {
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.link-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 0, 128, 0.2);
    border-color: var(--neon-pink);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icon {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    filter: drop-shadow(0 0 6px rgba(255, 0, 128, 0.3));
    animation: socialGlow 6s ease-in-out infinite;
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue), var(--neon-purple)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-icon:hover::before {
    opacity: 0.5;
    animation: rotateBorder 2s linear infinite;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.15);
    filter: drop-shadow(0 0 15px rgba(255, 0, 128, 0.5));
    animation: socialPulse 0.8s ease-in-out;
}

/* Footer */
.footer {
    text-align: center;
    color: var(--gray);
    opacity: 0.8;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
    animation: pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-15px) rotate(180deg); opacity: 0.8; }
}

@keyframes containerGlow {
    0% { box-shadow: var(--card-shadow), 0 0 15px rgba(255, 0, 128, 0.2); }
    100% { box-shadow: var(--card-shadow), 0 0 20px rgba(0, 255, 255, 0.2); }
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes textGlow {
    0%, 100% { 
        background-position: 0% 50%;
        text-shadow: 0 0 15px rgba(255, 0, 128, 0.3);
    }
    50% { 
        background-position: 100% 50%;
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes socialGlow {
    0%, 100% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 6px rgba(255, 0, 128, 0.3));
    }
    50% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.3));
    }
}

@keyframes socialPulse {
    0% { transform: translateY(-5px) scale(1.15); }
    50% { transform: translateY(-8px) scale(1.2); }
    100% { transform: translateY(-5px) scale(1.15); }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    50% { transform: translateX(0); }
}

@keyframes glitchText {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-1px); }
    20% { transform: translateX(1px); }
    30% { transform: translateX(-0.5px); }
    40% { transform: translateX(0.5px); }
    50% { transform: translateX(0); }
}

@keyframes expandLine {
    0% { width: 0; }
    50% { width: 100px; }
    100% { width: 0; }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bio-container {
        padding: 20px;
        margin: 10px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .bio-text {
        font-size: 1.1rem;
    }

    .link-card {
        padding: 1rem 1.2rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .bio-container {
        padding: 15px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .profile h1 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .bio-text {
        font-size: 1rem;
    }

    .link-card {
        padding: 0.875rem 1rem;
        gap: 1rem;
    }

    .link-card i {
        font-size: 1.5rem;
        width: 25px;
    }

    .link-card span {
        font-size: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        font-size: 1.5rem;
    }
} 