* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    background-color: #000;
    cursor: url('images/cross.png') 16 16, auto;
}

body * {
    cursor: url('images/cross.png') 16 16, auto;
}

/* Grid overlay effect */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* Entry overlay (blurred screen) */
.entry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url('images/cross.png') 16 16, auto;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.entry-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.entry-message {
    text-align: center;
    color: white;
}

.entry-message h2 {
    font-size: 48px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Audio controls */
.audio-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(137, 53, 139, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.audio-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.mute-button {
    background: transparent;
    border: none;
    cursor: url('images/cross.png') 16 16, auto;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease;
}

.mute-button:hover {
    transform: scale(1.1);
}

.mute-button:active {
    transform: scale(0.95);
}

.mute-button svg {
    width: 20px;
    height: 20px;
}

.volume-control {
    display: flex;
    align-items: center;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: url('images/cross.png') 16 16, auto;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Video background */
#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

/* Main translucent overlay */
.main-overlay {
    background: rgba(137, 53, 139, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr auto auto;
    gap: 30px;
    position: relative;
}

/* Profile section */
.profile-section {
    grid-column: 1;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.avatar-container {
    position: relative;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(60, 20, 30, 0.75);
    background: #747f8d;
}

.status-indicator.online {
    background: #23a55a;
}

.status-indicator.idle {
    background: #f0b232;
}

.status-indicator.dnd {
    background: #f23f43;
}

.status-indicator.offline {
    background: #80848e;
}

.username {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.user-tag {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 20px;
}

.discord-logo {
    margin-top: 10px;
}

/* Links section */
.links-section {
    grid-column: 2;
    grid-row: 1 / 3;
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: url('images/cross.png') 16 16, auto;
    text-decoration: none;
    color: white;
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.link-item .link-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.link-item .link-content {
    flex: 1;
}

.link-item .link-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.link-item .link-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.link-item .link-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.link-item .link-badges {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.link-badge {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

/* About section */
.about-section {
    grid-column: 2;
    grid-row: 3;
}

.about-section h2 {
    color: white;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.about-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
}

/* Stats section */
.stats-section {
    grid-column: 2;
    grid-row: 4;
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.stat-item svg {
    width: 16px;
    height: 16px;
}

/* Responsive design */
@media (max-width: 768px) {
    .main-overlay {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        padding: 30px 20px;
    }
    
    .profile-section {
        grid-column: 1;
        grid-row: 1;
    }
    
    .links-section {
        grid-column: 1;
        grid-row: 2;
    }
    
    .about-section {
        grid-column: 1;
        grid-row: 3;
    }
    
    .stats-section {
        grid-column: 1;
        grid-row: 4;
    }
}