/* Global */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000;
    overflow: hidden;
}

a, link {
    color: white;
}

/* Status Colors (CSS Variables) */
body.status-online, .panels-container.status-online { --status-color: #28a745; }
body.status-idle, .panels-container.status-idle { --status-color: #ffc107; }
body.status-dnd, .panels-container.status-dnd { --status-color: #dc3545; }
body.status-offline, .panels-container.status-offline { --status-color: #6c757d; }
body.status-streaming, .panels-container.status-streaming { --status-color: #9146FF; }

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    transition: opacity 0.5s ease-in-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Background */
.background-container {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 0;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    pointer-events: none; /* Prevent direct interaction with the video */
}

/* Panel Container */
.panels-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

/* Panel Styling */
.panel {
    background-color: rgba(30, 30, 30, 0.7);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-sizing: border-box;
    width: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: hidden;
    -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.panel::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Layout for large screens */
@media (min-width: 1024px) {
    .panels-container {
        flex-direction: row;
        justify-content: center;
        width: auto;
        gap: 30px;
    }

    .panel {
        width: 380px;
        height: 540px;
        min-height: 0;
        padding: 30px;
    }

    .middle-panel {
        z-index: 2;
    }

    .left-panel,
    .right-panel {
        height: 480px;
        z-index: 1;
    }

    .panel:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
        z-index: 3;
    }

    .middle-panel:hover {
        z-index: 4;
    }
}

/* Panel Content */
.panel-title {
    font-size: 2em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    width: 100%;
}

/* Link Tree */
.link-tree-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 25px;
    flex-grow: 1;
}

.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 0;
    border-radius: 8px;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.link-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.link-item .fab, .link-item .fas { /* Added .fas for consistency */
    font-size: 1.3em;
    transition: color 0.2s ease-in-out;
}

.link-item:hover .fab.fa-twitch {
    color: #9146FF;
}

.link-item:hover .fab.fa-youtube {
    color: #FF0000;
}

.link-item:hover .fab.fa-tiktok {
    color: #69C9D0;
}

.link-item:hover .fab.fa-github {
    color: #f0f6fc;
}

/* Music Player */
.music-title {
    margin-top: auto;
    margin-bottom: 20px;
    width: 100%;
}

.music-player {
    display: flex;
    align-items: center;
    background-color: rgba(50, 50, 50, 0.8);
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    margin-bottom: 0;
}

.album-art-container {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 15px;
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-controls {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.song-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9em;
    color: #ddd;
    text-align: center;
}

.song-title {
    font-weight: bold;
    color: #fff;
}

.artist-name {
    font-size: 0.8em;
    color: #aaa;
}

.timeline {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: linear-gradient(to right, var(--status-color, #007bff) 0%, var(--status-color, #007bff) var(--value, 0%), #555 var(--value, 0%), #555 100%);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    margin: 0;
    transition: background 0.1s ease-in-out;
}

.timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 0;
    height: 0;
    background: transparent;
    cursor: pointer;
    box-shadow: none;
    border: none;
}

.timeline::-moz-range-thumb {
    width: 0;
    height: 0;
    background: transparent;
    cursor: pointer;
    box-shadow: none;
    border: none;
}

.buttons-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.music-button {
    background-color: transparent;
    color: #a7a7a7;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    cursor: pointer;
    transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.music-button:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.music-button.play-pause-button {
    color: var(--status-color, #007bff);
    font-size: 1.3em;
    transition: color 0.2s ease-in-out;
}

.music-button.play-pause-button:hover {
    color: var(--status-color, #0056b3);
    filter: brightness(85%);
}

/* Discord Panel */
.discord-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-grow: 1;
    margin-bottom: 25px;
}

.discord-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid;
    margin-bottom: 15px;
    transition: border-color 0.3s ease-in-out;
}

/* Avatar and Status colors */
.discord-avatar.status-online { border-color: #28a745; }
.discord-avatar.status-idle { border-color: #ffc107; }
.discord-avatar.status-dnd { border-color: #dc3545; }
.discord-avatar.status-offline { border-color: #6c757d; }
.discord-avatar.status-streaming { border-color: #9146FF; }

.discord-status.status-online { color: #28a745; }
.discord-status.status-idle { color: #ffc107; }
.discord-status.status-dnd { color: #dc3545; }
.discord-status.status-offline { color: #6c757d; }
.discord-status.status-streaming { color: #9146FF; }

.discord-username {
    font-size: 3em;
    font-weight: 800;
    color: #fff;
    margin-bottom: 5px;
}

.discord-status {
    font-size: 1.2em;
    color: #888;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 1em;
    margin-bottom: 10px;
}

.info-item .fas {
    font-size: 1.1em;
}

.featured-server-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    width: 100%;
}

.featured-server {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #444;
    border-radius: 10px;
    padding: 15px;
    width: 100%;
    max-width: 300px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.server-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
}

.server-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
}

.server-members {
    font-size: 0.9em;
    color: #aaa;
}

/* Portfolio Panel */

.portfolio-section {
    width: 100%;
    margin-bottom: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    width: 100%;
}

/* Languages List */
.language-list {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px; 
    width: 100%;
    max-width: 300px; 
    text-align: center; 
}

.language-item {
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    color: #ccc;
}

.language-item .fab, .language-item .fas {
    font-size: 1.5em;
    transition: color 0.2s ease-in-out;
}

.project-item {
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 10px;
    width: 100%;
    padding: 8px 0;
    border-radius: 8px;
    transition: background-color 0.2s ease-in-out;
}

/* Mobile Responsiveness */
@media (max-width: 1023px) {
    .panels-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        height: auto; 
        min-height: 100vh;
        justify-content: center;
        overflow-x: hidden; 
    }

    .panel {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
        box-sizing: border-box; 
        overflow-x: hidden;
    }

    .middle-panel,
    .right-panel {
        display: none;
    }

    .left-panel {
        display: flex;
        width: 100%; 
        max-width: 400px;
        height: auto;
        min-height: auto;
        margin-bottom: 20px;
        justify-content: center;
        align-items: center;
        overflow-x: hidden; 
    }

    .link-tree-section {
        width: 100%;
        align-items: center;
    }

    .link-item {
        width: 100%; 
        max-width: 300px; 
        margin: 0 auto; 
        box-sizing: border-box;
    }
}