* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    cursor: url('Assets/Cursor.cur'), auto;
    user-select: none;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    text-align: center;
    z-index: 10;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.4);
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    max-width: 350px;
    width: 100%;
    display: none;
}

.profile-container {
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    max-width: 350px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-top: 20px;
    z-index: 6;
    min-height: 400px;
    transition: min-height 0.3s ease;
    transform: perspective(1000px) rotateX(var(--xv)) rotateY(var(--yv));
    transition: transform 0.1s ease-out;
    will-change: transform;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

:root {
    --xv: 0deg;
    --yv: 0deg;
}

.profile-container:hover {
    transform: perspective(1000px) rotateX(var(--xv)) rotateY(var(--yv));
}

.avatar-container {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: spin 7s linear infinite;
}

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

.username {
    font-size: 2.5rem;
    margin-top: 20px;
    text-transform: capitalize;
    font-weight: 600;
    position: relative;
    display: block;
}

.uid {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.username:hover .uid {
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    flex-wrap: wrap;
}

.badge {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-name {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.badge:hover .badge-name {
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

.badge:hover {
    transform: translateY(-5px);
}

.profile-description {
    margin-top: 10px;
    font-size: 1.2rem;
}

#typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.line {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 20px auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
    align-items: center;
}

.social-icons .icon {
    width: 40px;
    height: 40px;
    background-color: transparent;
    position: relative;
    transition: transform 0.3s ease;
    border-radius: 8px;
    padding: 4px;
}

.social-icons .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

/* Special styling for Modrinth logo */
.social-icons .icon[data-name="Modrinth"] {
    background: rgba(30, 215, 96, 0.1);
    border: 1px solid rgba(30, 215, 96, 0.3);
}

.social-icons .icon[data-name="Modrinth"] img {
    filter: brightness(1.2) contrast(1.2) saturate(1.1);
}

.social-icons .icon[data-name="Modrinth"]:hover {
    background: rgba(30, 215, 96, 0.2);
    border-color: rgba(30, 215, 96, 0.5);
}

.social-icons .icon:hover img {
    transform: scale(1.1);
}

.social-icons .icon:hover {
    transform: translateY(-5px);
}

.social-icons .icon .social-name {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    border-radius: 5px;
    font-size: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.social-icons .icon:hover .social-name {
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.volume-controller {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 7;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    transition: opacity 0.3s ease;
}

.volume-button {
    width: 50px;
    height: 50px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    margin: 0;
    padding: 0;
}

.volume-button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.volume-slider {
    -webkit-appearance: none;
    width: 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    border-radius: 4px;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin: 0;
    padding: 0;
}

.volume-controller:hover .volume-slider {
    width: 150px;
    opacity: 1;
}

.volume-slider:hover {
    background: rgba(255, 255, 255, 0.5);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    cursor: url('Assets/Cursor.cur'), auto;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #e0e0e0;
}

.download-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.download-button:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.download-button img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}