:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.6);
    --text-primary: #e0e0e0;
    --accent-green: #00ff41;
    --accent-cyan: #0ff;
    --accent-red: #ff003c;
    --font-mono: 'Share Tech Mono', monospace;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 4px;
}

/* Boot Screen */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-mono);
}

.boot-terminal {
    width: 80%;
    max-width: 600px;
}

#boot-text {
    color: var(--accent-green);
    margin-bottom: 20px;
    height: 150px;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.5;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    transition: width 0.1s;
}

/* Background Effects */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

#matrixCanvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* Scanline and CRT Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 999;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding-bottom: 50px;
    /* Space for footer */
}

/* Spotify Widget - Advanced Cyberpunk Design */
.spotify-widget {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: rgba(10, 10, 10, 0.85);
    /* Darker, sleek bg */
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    z-index: 1001;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0, 255, 65, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.spotify-widget:hover {
    border-color: var(--accent-green);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.15), inset 0 0 20px rgba(0, 255, 65, 0.1);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(90deg, rgba(0, 25, 0, 0.8), rgba(0, 0, 0, 0));
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    cursor: grab;
    user-select: none;
}

.widget-header:active {
    cursor: grabbing;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: bold;
    letter-spacing: 1px;
}

.pulse-icon {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        text-shadow: 0 0 0 rgba(0, 255, 65, 0.4);
        opacity: 1;
    }

    50% {
        text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
        opacity: 0.8;
    }

    100% {
        text-shadow: 0 0 0 rgba(0, 255, 65, 0.4);
        opacity: 1;
    }
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-controls button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    padding: 0 4px;
    transition: color 0.2s;
}

.window-controls button:hover {
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

#closeWidget:hover {
    color: var(--accent-red);
    text-shadow: 0 0 5px var(--accent-red);
}

.widget-content {
    padding: 10px;
    position: relative;
    transition: opacity 0.3s ease;
}

.spotify-widget.minimized {
    height: 42px;
    /* Header height only */
    border-color: #333;
}

.spotify-widget.minimized .widget-content {
    opacity: 0;
    pointer-events: none;
}

.spotify-widget.closed {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* Custom Player Styles */
.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 5px;
}

.track-art {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 50%;
    border: 1px solid var(--accent-green);
}

.spin-art {
    font-size: 24px;
    color: var(--accent-green);
    animation: spin 3s linear infinite;
    animation-play-state: paused;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.track-details {
    display: flex;
    flex-direction: column;
}

.track-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: 1px;
}

.track-artist {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent-green);
}

.custom-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.ctrl-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ctrl-btn:hover {
    color: var(--accent-green);
    text-shadow: 0 0 8px var(--accent-green);
}

.ctrl-btn.play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.ctrl-btn.play:hover {
    background: var(--accent-green);
    color: #000;
    box-shadow: 0 0 20px var(--accent-green);
}

/* Audio Visualizer & Controls */
.player-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
}

.visualizer-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2px;
    height: 30px;
    opacity: 0.6;
}

.bar {
    width: 6px;
    background: var(--accent-green);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 5px var(--accent-green);
    height: 5px;
    animation: equalize 1s infinite;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--accent-green);
    font-size: 0.8rem;
    opacity: 0.8;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-green);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-green);
}

/* Randomize bar animations */
.bar:nth-child(odd) {
    animation-duration: 0.5s;
    background: var(--accent-cyan);
    box-shadow: 0 0 5px var(--accent-cyan);
}

.bar:nth-child(even) {
    animation-duration: 0.7s;
}

.bar:nth-child(2n) {
    animation-duration: 0.8s;
}

.bar:nth-child(3n) {
    animation-duration: 0.6s;
}

.bar:nth-child(4n) {
    animation-duration: 0.9s;
}

.bar:nth-child(5n) {
    animation-duration: 0.4s;
}

@keyframes equalize {
    0% {
        height: 5px;
    }

    50% {
        height: 25px;
    }

    100% {
        height: 5px;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    width: 100%;
    margin-top: 5vh;
}

.glitch-wrapper {
    margin-bottom: 1rem;
}

.glitch {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .glitch {
        font-size: 1.8rem;
    }

    .spotify-widget {
        width: 100%;
        left: 0;
        top: 0;
        right: 0;
        border-radius: 0;
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--accent-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--accent-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(12px, 9999px, 88px, 0);
    }

    20% {
        clip: rect(62px, 9999px, 19px, 0);
    }

    40% {
        clip: rect(29px, 9999px, 3px, 0);
    }

    60% {
        clip: rect(54px, 9999px, 26px, 0);
    }

    80% {
        clip: rect(82px, 9999px, 62px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 93px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(9px, 9999px, 54px, 0);
    }

    40% {
        clip: rect(35px, 9999px, 12px, 0);
    }

    60% {
        clip: rect(76px, 9999px, 25px, 0);
    }

    80% {
        clip: rect(22px, 9999px, 86px, 0);
    }

    100% {
        clip: rect(4px, 9999px, 60px, 0);
    }
}

.sub-handle {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.sub-handle .accent {
    color: var(--accent-green);
    margin: 0 0.5rem;
}

/* Terminal Box */
.terminal-box {
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #333;
    border-radius: 6px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 2rem auto;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.terminal-header .title {
    margin-left: auto;
    margin-right: auto;
    color: #888;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.terminal-content {
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-mono);
    color: var(--accent-green);
    line-height: 1.8;
}

.typewriter-text {
    border-right: 2px solid var(--accent-green);
    animation: blink 0.75s step-end infinite;
    white-space: pre-wrap;
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-green);
    }
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

/* Skills Section */
.skills-section {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 2rem;
    margin: 0 auto 2rem auto;
    text-align: center;
    position: relative;
    display: block;
    /* Changed from inline-block to block for margin auto to work easily, or keep inline-block with parent centering */
    width: fit-content;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-red);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--accent-red);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-green);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.1);
}

.skill-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.skill-card.cyber h3 .icon {
    font-size: 1.5rem;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    font-family: var(--font-mono);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #ccc;
    transition: color 0.2s;
}

.skill-card li:hover {
    color: var(--accent-green);
    text-shadow: 0 0 5px var(--accent-green);
}

.skill-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Console/Terminal Section */
.console-section {
    width: 100%;
    margin-bottom: 3rem;
}

.console-box {
    background-color: #0c0c0c;
    border: 1px solid #444;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.console-header {
    background-color: #222;
    padding: 5px 10px;
    color: #999;
    font-size: 0.8rem;
    border-bottom: 1px solid #444;
}

.console-output {
    padding: 15px;
    color: #bbb;
    min-height: 150px;
    max-height: 300px;
    overflow-y: auto;
}

.console-output p {
    margin-bottom: 5px;
}

.console-input-area {
    display: flex;
    padding: 10px 15px;
    background-color: #111;
    border-top: 1px solid #333;
    align-items: center;
}

.console-input-area .prompt {
    color: var(--accent-green);
    margin-right: 10px;
    font-weight: bold;
}

#consoleInput {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    flex-grow: 1;
    outline: none;
}

.cmd {
    color: var(--accent-cyan);
    font-weight: bold;
}

.response-success {
    color: var(--accent-green);
}

.response-error {
    color: var(--accent-red);
}

/* System Status Footer */
footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #333;
    padding: 5px 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(5px);
    z-index: 100;
}

.system-status {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.status-item .highlight {
    color: var(--accent-green);
}

.blink {
    animation: blink-anim 1s infinite alternate;
}

@keyframes blink-anim {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.3;
    }
}

.copyright {
    font-size: 0.7rem;
    color: #444;
}

/* =========================================
   DEDICATED DISCORD STATUS COMPONENT
   ========================================= */
.discord-status-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    perspective: 1000px;
}

.discord-card {
    background: rgba(12, 12, 12, 0.85);
    border: 1px solid #333;
    border-top: 3px solid #5865F2;
    border-radius: 8px;
    width: 320px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2);
    border-color: #5865F2;
}

.discord-card .card-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.discord-card .discord-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background: rgba(88, 101, 242, 0.1);
    border-bottom: 1px solid rgba(88, 101, 242, 0.2);
    position: relative;
    z-index: 2;
}

.discord-avatar-container {
    position: relative;
    width: 50px;
    height: 50px;
}

.discord-avatar-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #2f3136;
}

.discord-status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #747f8d;
    border: 3px solid #18191c;
    transition: background-color 0.3s;
}

.discord-user-details {
    display: flex;
    flex-direction: column;
}

.discord-display-name {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.discord-unique-id {
    font-family: var(--font-mono);
    color: #b9bbbe;
    font-size: 0.7rem;
    margin-top: 2px;
}

.discord-card .discord-body {
    padding: 15px;
    position: relative;
    z-index: 2;
}

.discord-activity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-icon-small {
    color: #ccc;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.activity-text-wrapper {
    display: flex;
    flex-direction: column;
}

.activity-label {
    font-size: 0.65rem;
    color: #72767d;
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.activity-text {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-family: var(--font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Status Colors for JS to toggle */
.status-online {
    background-color: #43b581 !important;
    box-shadow: 0 0 8px #43b581;
}

.status-idle {
    background-color: #faa61a !important;
    box-shadow: 0 0 8px #faa61a;
}

.status-dnd {
    background-color: #f04747 !important;
    box-shadow: 0 0 8px #f04747;
}

.status-offline {
    background-color: #747f8d !important;
}

/* Responsive Design */

/* Tablet (768px and down) */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
        padding-top: 5rem;
        /* Space for widget if at top */
    }

    .glitch {
        font-size: 2.2rem;
    }

    .spotify-widget {
        width: 90%;
        left: 5%;
        right: auto;
        top: 10px;
        backdrop-filter: blur(20px);
    }

    .terminal-box {
        margin-bottom: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        /* Stack single column */
    }
}

/* Mobile (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
        padding-top: 80px;
    }

    .glitch {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .sub-handle {
        font-size: 0.9rem;
    }

    .terminal-content {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .skills-grid {
        gap: 1.5rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .console-input-area {
        padding: 5px 10px;
    }

    #consoleInput {
        font-size: 0.9rem;
    }

    footer {
        padding: 1rem;
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .system-status {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
}

/* Socials Section */
.social-section {
    width: 100%;
    margin-bottom: 4rem;
    text-align: center;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-node {
    position: relative;
    z-index: 10;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent-green);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
    color: var(--accent-green);
}

.social-link.github:hover {
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.social-link.discord:hover {
    color: #5865F2;
    border-color: #5865F2;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.social-link.steam:hover {
    color: #00adee;
    border-color: #00adee;
    box-shadow: 0 0 20px rgba(0, 173, 238, 0.4);
}

.social-link.spotify:hover {
    color: #1db954;
    border-color: #1db954;
    box-shadow: 0 0 20px rgba(29, 185, 84, 0.4);
}

/* Profile Preview Cards */
.profile-preview {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 220px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-green);
    padding: 0;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    text-align: left;
}

/* Hover Bridge: Prevents card from disappearing when moving mouse from icon to card */
.profile-preview::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 40px;
    /* Covers the gap between icon and card */
    background: transparent;
}

.social-node:hover .profile-preview {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
    bottom: 90px;
}

.preview-header {
    background: rgba(0, 255, 65, 0.2);
    padding: 8px 12px;
    color: var(--accent-green);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    border-bottom: 1px solid var(--accent-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-content {
    padding: 12px;
    font-family: var(--font-mono);
    color: #ccc;
    font-size: 0.8rem;
    position: relative;
}

.preview-content p {
    margin-bottom: 5px;
}

/* Scanline animation for card */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 255, 65, 0.5);
    opacity: 0.5;
    animation: scan 2s linear infinite;
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Connector Line (Optional visual) */
.profile-preview::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(10, 10, 10, 0.95);
    border-right: 1px solid var(--accent-green);
    border-bottom: 1px solid var(--accent-green);
}

.profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--accent-green);
    object-fit: cover;
}

.profile-preview.discord-widget {
    width: 300px;
    height: 160px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* =========================================
   DISCORD REAL-TIME WIDGET STYLES
   ========================================= */
.discord-live-card {
    width: 260px;
    border: 1px solid #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.2);
}

.live-header {
    background: rgba(88, 101, 242, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(88, 101, 242, 0.4);
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    font-family: 'Unbounded', sans-serif;
}

.header-user-info img {
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
}

/* Status Dots */
.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #747f8d;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.status-indicator.online {
    background: #43b581;
    box-shadow: 0 0 10px #43b581;
}

.status-indicator.idle {
    background: #faa61a;
    box-shadow: 0 0 10px #faa61a;
}

.status-indicator.dnd {
    background: #f04747;
    box-shadow: 0 0 10px #f04747;
}

.status-indicator.offline {
    background: #747f8d;
}

.live-content {
    padding: 12px;
    background: rgba(10, 10, 10, 0.95);
}

/* Activity Box */
.discord-activity-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 10px;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
    min-height: 55px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 45px;
    height: 45px;
    background: #2f3136;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #5865F2;
    overflow: hidden;
    position: relative;
}

.activity-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.act-name {
    font-size: 0.85rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.act-details {
    font-size: 0.75rem;
    color: #b9bbbe;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.act-time {
    font-size: 0.7rem;
    color: #72767d;
    margin-top: 2px;
    font-family: monospace;
}

/* Join Button */
.join-btn {
    display: block;
    text-align: center;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid #5865F2;
    color: #5865F2;
    padding: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    letter-spacing: 1px;
}

.join-btn:hover {
    background: #5865F2;
    color: #fff;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
    transform: translateY(-1px);
}

.discord-live-card .scan-line {
    background: rgba(88, 101, 242, 0.5);
    box-shadow: 0 0 5px rgba(88, 101, 242, 0.5);
}

/* =========================================
   MINI PROFILE CARD STYLES (New Request)
/* =========================================
   FUTURISTIC DASHBOARD STYLES (Glassmorphism UI)
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    --glass-bg: rgba(22, 23, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-accent: #00ff88;
    /* Cyberpunk Green */
    --neon-secondary: #00d9ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
}

.discord-card.full-profile-card {
    /* Dimensions: Increased width for better spacing */
    width: 500px;
    height: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    font-family: 'Outfit', sans-serif;
    position: relative;
    margin: 0 auto;
    color: var(--text-primary);
    padding: 24px;
    box-sizing: border-box;
    overflow: hidden;

    /* Entrance Animation */
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: all 0.4s ease;
}

/* Subtle Animated Glow Border */
.discord-card.full-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-accent), transparent);
    opacity: 0.5;
}

.discord-card.full-profile-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 255, 136, 0.1);
    /* Green ambient glow */
    border-color: rgba(0, 255, 136, 0.3);
}


/* ================== New Profile Layout (User Request) ================== */

/* Container Layout */
.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left,
.header-right {
    flex-shrink: 0;
}

.header-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 15px;
}

/* Avatar Section */
.avatar-wrap {
    position: relative;
    width: 80px;
    height: 80px;
}

.main-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.main-avatar:hover {
    transform: scale(1.05) rotate(5deg);
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid #161719;
    /* Match card bg */
    z-index: 2;
    box-shadow: 0 0 10px currentColor;
}

.status-dot.dnd {
    background-color: #f23f43;
    color: #f23f43;
}

.status-dot.online {
    background-color: #23a559;
    color: #23a559;
}

.status-dot.idle {
    background-color: #f0b232;
    color: #f0b232;
}

.status-dot.offline {
    background-color: #80848e;
    color: #80848e;
}


/* Text Section */
.username-display {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    margin-bottom: 5px;
    white-space: nowrap;
}

.custom-status-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.9;
}


/* Badges Section */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.badge-pill.cybr-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(160, 104, 255, 0.1);
    border: 1px solid rgba(160, 104, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    color: #d6b4ff;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.badge-pill.cybr-badge:hover {
    background: rgba(160, 104, 255, 0.25);
    box-shadow: 0 0 15px rgba(160, 104, 255, 0.4);
    transform: translateX(-5px);
}

.badge-icon {
    font-size: 1.2rem;
    color: var(--neon-secondary);
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.4));
}


/* Activity Body Section */
.profile-body-section {
    width: 100%;
}

.activity-card-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.large-icon-wrapper {
    margin-bottom: 15px;
    position: relative;
}

.large-activity-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.activity-info-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.activity-header {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
}

.activity-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-line {
    font-size: 0.95rem;
    color: #bbb;
}

.activity-timer {
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--neon-accent);
    margin-top: 5px;
    letter-spacing: 0.5px;
}

/* Visualizer Bars */
.visualizer-bars {
    display: flex;
    gap: 4px;
    height: 25px;
    /* Container height */
    align-items: flex-end;
    justify-content: center;
    margin-top: 15px;
}

.visualizer-bars span {
    display: block;
    width: 4px;
    background: var(--neon-accent);
    border-radius: 2px;
    animation: barBounce 1.2s infinite ease-in-out;
    box-shadow: 0 0 8px var(--neon-accent);
}

.visualizer-bars span:nth-child(1) {
    height: 10px;
    animation-delay: 0.0s;
}

.visualizer-bars span:nth-child(2) {
    height: 20px;
    animation-delay: 0.2s;
}

.visualizer-bars span:nth-child(3) {
    height: 15px;
    animation-delay: 0.4s;
}

.visualizer-bars span:nth-child(4) {
    height: 22px;
    animation-delay: 0.1s;
}

.visualizer-bars span:nth-child(5) {
    height: 12px;
    animation-delay: 0.3s;
}

@keyframes barBounce {

    0%,
    100% {
        height: 5px;
        opacity: 0.5;
    }

    50% {
        height: 25px;
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}