/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    height: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #050507;
    color: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Subtle cursor glow - minimalist */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Particles - neon glow effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    bottom: -10px;
    animation: riseUp linear infinite, drift ease-in-out infinite;
}

/* Green neon particles */
.particle:nth-child(1) { 
    left: 8%; 
    animation-duration: 22s, 3s; 
    animation-delay: 0s, 0s;
    background: #1a7a52;
    box-shadow: 0 0 6px #1a7a52, 0 0 12px rgba(26, 122, 82, 0.5);
}
.particle:nth-child(2) { 
    left: 22%; 
    animation-duration: 28s, 4s; 
    animation-delay: 2s, 1s;
    background: #1a7a52;
    box-shadow: 0 0 6px #1a7a52, 0 0 12px rgba(26, 122, 82, 0.5);
    width: 3px;
    height: 3px;
}
.particle:nth-child(3) { 
    left: 38%; 
    animation-duration: 20s, 3.5s; 
    animation-delay: 5s, 0.5s;
    background: #1a7a52;
    box-shadow: 0 0 6px #1a7a52, 0 0 12px rgba(26, 122, 82, 0.5);
}

/* Purple neon particles */
.particle:nth-child(4) { 
    left: 52%; 
    animation-duration: 25s, 4s; 
    animation-delay: 1s, 2s;
    background: #7b68ee;
    box-shadow: 0 0 6px #7b68ee, 0 0 12px rgba(123, 104, 238, 0.5);
}
.particle:nth-child(5) { 
    left: 68%; 
    animation-duration: 24s, 3s; 
    animation-delay: 4s, 0s;
    background: #7b68ee;
    box-shadow: 0 0 6px #7b68ee, 0 0 12px rgba(123, 104, 238, 0.5);
    width: 3px;
    height: 3px;
}
.particle:nth-child(6) { 
    left: 82%; 
    animation-duration: 19s, 3.5s; 
    animation-delay: 7s, 1.5s;
    background: #7b68ee;
    box-shadow: 0 0 6px #7b68ee, 0 0 12px rgba(123, 104, 238, 0.5);
}

/* Cyan neon particles */
.particle:nth-child(7) { 
    left: 15%; 
    animation-duration: 26s, 4s; 
    animation-delay: 3s, 0.5s;
    background: #40e0d0;
    box-shadow: 0 0 6px #40e0d0, 0 0 12px rgba(64, 224, 208, 0.4);
}
.particle:nth-child(8) { 
    left: 45%; 
    animation-duration: 21s, 3s; 
    animation-delay: 6s, 2s;
    background: #40e0d0;
    box-shadow: 0 0 6px #40e0d0, 0 0 12px rgba(64, 224, 208, 0.4);
    width: 3px;
    height: 3px;
}
.particle:nth-child(9) { 
    left: 75%; 
    animation-duration: 23s, 4s; 
    animation-delay: 0s, 1s;
    background: #40e0d0;
    box-shadow: 0 0 6px #40e0d0, 0 0 12px rgba(64, 224, 208, 0.4);
}

/* Pink/magenta neon particles */
.particle:nth-child(10) { 
    left: 92%; 
    animation-duration: 27s, 3.5s; 
    animation-delay: 2s, 0s;
    background: #ff0080;
    box-shadow: 0 0 6px #ff0080, 0 0 12px rgba(255, 0, 128, 0.4);
}
.particle:nth-child(11) { 
    left: 5%; 
    animation-duration: 22s, 4s; 
    animation-delay: 8s, 1.5s;
    background: #ff0080;
    box-shadow: 0 0 6px #ff0080, 0 0 12px rgba(255, 0, 128, 0.4);
}
.particle:nth-child(12) { 
    left: 60%; 
    animation-duration: 20s, 3s; 
    animation-delay: 4s, 0.5s;
    background: #ff0080;
    box-shadow: 0 0 6px #ff0080, 0 0 12px rgba(255, 0, 128, 0.4);
    width: 3px;
    height: 3px;
}

/* Additional subtle particles */
.particle:nth-child(13) { 
    left: 30%; 
    animation-duration: 30s, 4s; 
    animation-delay: 10s, 2s;
    background: #1a7a52;
    box-shadow: 0 0 4px #1a7a52;
    width: 1px;
    height: 1px;
}
.particle:nth-child(14) { 
    left: 88%; 
    animation-duration: 25s, 3.5s; 
    animation-delay: 5s, 0s;
    background: #7b68ee;
    box-shadow: 0 0 4px #7b68ee;
    width: 1px;
    height: 1px;
}
.particle:nth-child(15) { 
    left: 55%; 
    animation-duration: 28s, 4s; 
    animation-delay: 12s, 1s;
    background: #40e0d0;
    box-shadow: 0 0 4px #40e0d0;
    width: 1px;
    height: 1px;
}

@keyframes riseUp {
    0% {
        bottom: -10px;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 110%;
        opacity: 0;
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateX(0) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateX(8px) scale(1.15);
        filter: brightness(1.2);
    }
}

main {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: 30px 20px 15px;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-wrapper {
    --glow-gradient: conic-gradient(from 0deg, #ff0080, #ff8c00, #40e0d0, #7b68ee, #ff0080);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

/* Animated glow ring around avatar */
.avatar-wrapper::before,
.avatar-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--glow-gradient);
    animation: rotateGlow 3s linear infinite;
    animation-play-state: paused;
}

.avatar-wrapper::before {
    z-index: -1;
}

.avatar-wrapper::after {
    filter: blur(15px);
    opacity: 0.4;
    z-index: -2;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.avatar-wrapper:hover::before,
.avatar-wrapper:hover::after {
    animation-play-state: running;
}

.avatar-wrapper:hover::after {
    opacity: 1;
    filter: blur(25px);
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.username {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

/* Bio Section */
.bio {
    text-align: center;
    padding: 0;
    margin: 0 auto 30px;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio p {
    font-size: 14px;
    font-weight: 300;
    color: #fff;
    line-height: 1.9;
}

/* Links Section */
.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-card {
    display: flex;
    align-items: center;
    background: #151518;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 18px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out backwards;
}

.link-card:nth-child(1) { animation-delay: 0.3s; }
.link-card:nth-child(2) { animation-delay: 0.4s; }
.link-card:nth-child(3) { animation-delay: 0.5s; }
.link-card:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card:hover {
    border-color: rgba(34, 192, 110, 0.6);
    background: #1a1a1e;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(34, 192, 110, 0.3),
        0 0 30px rgba(34, 192, 110, 0.2),
        inset 0 0 20px rgba(34, 192, 110, 0.05);
}

/* Link Icon - Material Design style */
.link-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
    background: #ff2a1c;
    color: #fff;
    transition: all 0.3s ease;
}

.link-card:hover .link-icon {
    transform: scale(1.1);
}

.link-icon svg {
    width: 22px;
    height: 22px;
}

.link-icon-soundcloud {
    background: #ff5500;
}

.link-icon-listenbrainz {
    background: #e91e63;
}

.link-icon-telegram {
    background: #26a5e4;
}

/* Link Content */
.link-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.link-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.link-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.3;
}

/* Badge - centered vertically */
.badge {
    margin-left: auto;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    flex-shrink: 0;
}

.badge-red {
    background: #ff2a1c;
    box-shadow: 0 0 12px rgba(255, 42, 28, 0.5);
}

.badge-blue {
    background: #169fff;
    box-shadow: 0 0 12px rgba(22, 159, 255, 0.5);
}

.badge-green {
    background: #40bc32;
    box-shadow: 0 0 12px rgba(64, 188, 50, 0.5);
}

/* Skills Section - bottom of page */
.skills-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeIn 0.8s ease-out 0.7s backwards;
}

.skills {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
}

.skill-tag {
    font-size: 12px;
    font-weight: 500;
    color: #22c06e;
    text-shadow: 0 0 6px rgba(34, 192, 110, 0.4);
    transition: all 0.3s ease;
    cursor: default;
    white-space: nowrap;
}

.skill-tag:not(:last-child)::after {
    content: '·';
    margin: 0 8px;
    color: rgba(34, 192, 110, 0.5);
    text-shadow: none;
}

.skill-tag:hover {
    color: #3fffaa;
    text-shadow: 0 0 10px rgba(63, 255, 170, 0.8), 0 0 25px rgba(63, 255, 170, 0.5), 0 0 40px rgba(63, 255, 170, 0.3);
}

/* Copyright */
.copyright {
    margin-top: 25px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.copyright span:first-child::after {
    content: '·';
    margin: 0 6px;
}

/* Responsive - Tablet */
@media (min-width: 601px) {
    main {
        padding: 60px 30px 70px;
    }

    .profile {
        margin-bottom: 35px;
    }

    .avatar {
        width: 140px;
        height: 140px;
    }

    .username {
        font-size: 22px;
    }

    .tagline {
        font-size: 15px;
    }

    .bio {
        margin-bottom: 35px;
    }

    .bio p {
        font-size: 15px;
        line-height: 2;
    }

    .links {
        gap: 12px;
    }

    .link-card {
        padding: 16px 20px;
    }

    .badge {
        padding: 7px 16px;
        font-size: 10px;
    }

    .link-icon {
        width: 42px;
        height: 42px;
        margin-right: 16px;
        border-radius: 10px;
    }

    .link-icon svg {
        width: 24px;
        height: 24px;
    }

    .link-title {
        font-size: 16px;
    }

    .link-subtitle {
        font-size: 13px;
    }
    
    .skills-section {
        margin-top: 45px;
        padding-top: 35px;
    }

    .skill-tag {
        font-size: 13px;
    }
}

/* Desktop */
@media (min-width: 993px) {
    main {
        padding: 70px 40px 80px;
    }

    .profile {
        margin-bottom: 40px;
    }

    .avatar {
        width: 150px;
        height: 150px;
    }

    .username {
        font-size: 24px;
    }

    .tagline {
        font-size: 16px;
    }

    .bio {
        margin-bottom: 40px;
    }

    .bio p {
        font-size: 16px;
        line-height: 2.1;
    }

    .links {
        gap: 14px;
    }

    .link-card {
        padding: 18px 22px;
    }

    .badge {
        padding: 8px 18px;
        font-size: 11px;
    }

    .link-icon {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    .link-icon svg {
        width: 26px;
        height: 26px;
    }

    .link-title {
        font-size: 17px;
    }

    .link-subtitle {
        font-size: 14px;
    }
    
    .skills-section {
        margin-top: 50px;
        padding-top: 40px;
    }

    .skill-tag {
        font-size: 13px;
    }
}

/* Touch devices - hide cursor glow */
@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .cursor-glow {
        display: none;
    }
}