body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f2f5;
    /* Added a gradient to make the blur effect visible */
    background: linear-gradient(to right top, #65dfc9, #6cdbeb);
    /* The background is now handled by the video element */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Prevent scrolling on all devices */
}

#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Place it behind all other content */
}

#video-background iframe {
    /* Position the iframe to cover the entire background */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio for 100vh height */
    transform: translate(-50%, -50%);
    pointer-events: none; /* Make it unclickable */
}

.profile-container {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    text-align: center;
    width: 320px;
    /* Enable 3D space for children and set a smooth transition */
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
    will-change: transform; /* Performance optimization */
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    /* Pop the image out in 3D space */
    transform: translateZ(40px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.profile-name {
    font-size: 1.5rem; /* 24px */
    color: transparent;
    margin: 0;
    /* Pop the name out in 3D space */
    transform: translateZ(20px);
    -webkit-text-stroke: 1px white;
}

/* Mute Button Styles */
.mute-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.mute-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.mute-btn svg {
    width: 24px;
    height: 24px;
    fill: #111827;
}

/* Responsive adjustments for mobile view */
@media (max-width: 480px) {
    .profile-container {
        width: calc(80% - 40px); /* Ensures 20px of space on the left and right */
        margin-bottom: 10vh; /* Pushes the card up from the bottom */
    }
}
