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

body {
    background: #000000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
    position: relative;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

.character {
    width: 200px;
    height: auto;
    position: fixed;
    left: 50%;
    top: 0;
}

.boxes-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 250px;
    padding: 0 30px;
    width: 100%;
    max-width: 1200px;
}

.box {
    background: rgba(80, 0, 0, 0.4);
    border: 1px solid rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.25), inset 0 0 20px rgba(255, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 240px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.profile-name {
    color: white;
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.profile-name:hover {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.profile-name:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.profile-bio {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
    margin: 15px 0;
    padding: 8px;
    border-radius: 5px;
    min-height: 60px;
    transition: background-color 0.3s;
}

.profile-bio:hover,
.profile-bio:focus {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
    display: inline-block;
}

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

.social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(1);
    transition: filter 0.3s;
}

.social-link:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(1) brightness(120%);
}

.box:hover {
        transform: translateY(-12px) scale(1.03);
    background: rgba(100, 0, 0, 0.5);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.4), inset 0 0 25px rgba(255, 0, 0, 0.2);
}

@-webkit-keyframes swing {
    0% {
        -webkit-transform: translateX(-50%) rotate(0deg);
        transform: translateX(-50%) rotate(0deg);
    }
    25% {
        -webkit-transform: translateX(-50%) rotate(6deg);
        transform: translateX(-50%) rotate(6deg);
    }
    50% {
        -webkit-transform: translateX(-50%) rotate(-6deg);
        transform: translateX(-50%) rotate(-6deg);
    }
    75% {
        -webkit-transform: translateX(-50%) rotate(6deg);
        transform: translateX(-50%) rotate(6deg);
    }
    100% {
        -webkit-transform: translateX(-50%) rotate(0deg);
        transform: translateX(-50%) rotate(0deg);
    }
}

@keyframes swing {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }
    25% {
        transform: translateX(-50%) rotate(6deg);
    }
    50% {
        transform: translateX(-50%) rotate(-6deg);
    }
    75% {
        transform: translateX(-50%) rotate(6deg);
    }
    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

.swing {
    transform-origin: top center;
    -webkit-animation-name: swing;
    animation-name: swing;
    -webkit-animation-duration: 4s;
    animation-duration: 4s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
}
