/* Universal Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif; }

/* Premium Dark Background with Subtle Grid */
body {
    background-color: #050505;
    background-image: radial-gradient(circle at 50% 0%, #1a153a 0%, #050505 60%);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 40px 0;
}

/* --- CONSOLE LOADING OVERLAY --- */
#console-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #020205;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 25px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: pointer;
}

#console-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.console-box {
    width: 650px;
    max-width: 100%;
    height: 380px;
    background: rgba(10, 10, 16, 0.85);
    border: 1px solid rgba(55, 118, 171, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(55, 118, 171, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.console-header {
    background: rgba(20, 20, 30, 0.9);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.console-header .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.console-header .dot.red { background: #f23f42; }
.console-header .dot.yellow { background: #f0b232; }
.console-header .dot.green { background: #23a559; }

.console-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #71717a;
    margin-left: 6px;
    font-weight: bold;
}

.console-body {
    padding: 18px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #05050a;
}

.console-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #3776ab;
    line-height: 1.5;
    word-break: break-all;
    animation: terminalLinePop 0.15s ease-out forwards;
}

.console-line .prompt {
    color: #ffd343;
    font-weight: bold;
    margin-right: 4px;
}

/* Custom low-key color treatment for secret elements */
.console-line.secret-line {
    color: #1a1a20 !important; /* Made even more subtle to hide in the noise */
    font-style: italic;
}
.console-line.secret-line .prompt { color: #222228 !important; }

.console-line.sub-secret-line {
    color: #23a559 !important;
    font-weight: bold;
}
.console-line.sub-secret-line .prompt { color: #23a559 !important; }

/* Accent targeted line colors */
.console-line:nth-child(4) { color: #23a559; }

@keyframes terminalLinePop {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- CLICK TO ENTER ROW --- */
.enter-prompt {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.enter-prompt.visible {
    opacity: 1;
    transform: translateY(0);
}

.blink-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #ffd343;
    font-weight: bold;
    letter-spacing: 1px;
    animation: textBlink 1.2s step-end infinite;
    text-shadow: 0 0 10px rgba(255, 211, 67, 0.3);
}

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

/* Rest of your custom app background */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    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: 30px 30px;
}

.container { padding: 0 20px; width: 100%; display: flex; justify-content: center; }

/* Dark Glassmorphism Card */
.profile-card {
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 50px;
    border-radius: 24px;
    text-align: center;
    width: 600px;
    max-width: 100%;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Avatar & Status Dot */
.pfp-wrapper { position: relative; display: inline-block; margin-bottom: 15px; }
.avatar {
    width: 130px; height: 130px; border-radius: 50%;
    border: 4px solid #1a1a24; object-fit: cover;
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.2);
}
.status-dot {
    position: absolute; bottom: 8px; right: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    background-color: #80848e; border: 5px solid #1a1a24;
}

h1 { font-size: 38px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; }

/* Custom Status Badge */
.custom-status {
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #e4e4e7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.status-emoji { width: 20px; height: 20px; vertical-align: middle; }

.bio { margin-bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bio p { font-size: 18px; color: #a1a1aa; font-weight: 500; }
.donate-text {
    font-size: 13px !important;
    color: #f0b232 !important;
    font-weight: 600 !important;
    background: rgba(240, 178, 50, 0.1);
    border: 1px solid rgba(240, 178, 50, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
}

/* Prominent Python Banner */
.python-banner {
    background: linear-gradient(90deg, rgba(55, 118, 171, 0.2), rgba(255, 211, 67, 0.1));
    border: 1px solid rgba(55, 118, 171, 0.3);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    flex-wrap: wrap;
}

.python-banner i { font-size: 22px; color: #FFD343; }
.python-banner .fa-discord { color: #5865F2; }
.banner-divider { color: rgba(255,255,255,0.2); font-weight: 300; font-size: 20px; }

/* Section Cards */
.section-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 18px;
    text-align: left;
}

.section-header {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}
.section-header i { font-size: 16px; color: #a1a1aa; }
.section-body { font-size: 14px; color: #a1a1aa; line-height: 1.6; }

/* Lanyard Cafe Embedded Badge Styles */
.lanyard-badge {
    border: 1px solid rgba(255,255,255,0.07);
    margin-top: 15px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.webring-title {
    font-size: 14px;
    font-weight: 700;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.webring-title i { color: #f0b232; }

.webring-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.webring-links a { text-decoration: none; font-size: 13px; font-weight: 600; transition: all 0.2s ease; }
.webring-nav { color: #fff; opacity: 0.7; display: flex; align-items: center; gap: 4px; }
.webring-nav:hover { opacity: 1; color: #f0b232; }

.webring-home { display: flex; align-items: center; justify-content: center; padding: 2px; border-radius: 8px; transition: all 0.2s ease; }
.webring-img { height: 28px; width: auto; object-fit: contain; display: block; filter: drop-shadow(0 0 4px rgba(240, 178, 50, 0.2)); transition: transform 0.2s ease; }
.webring-home:hover .webring-img { transform: scale(1.08); }

/* Projects */
.projects-list { display: flex; flex-direction: column; gap: 12px; }
.project-item { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 14px; }
.project-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fbi-icon { background: rgba(0, 40, 104, 0.3); border: 1px solid rgba(255,215,0,0.3); }
.project-name { font-size: 14px; font-weight: 700; color: #fff; }
.project-desc { font-size: 12px; color: #71717a; margin-top: 2px; }

/* Clock Badge */
.time-container {
    background: rgba(255, 255, 255, 0.05); padding: 8px 20px; border-radius: 30px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; margin-bottom: 25px; color: #a1a1aa; border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Spotify Live Widget */
.spotify-widget {
    display: flex; align-items: center; gap: 15px; background: rgba(30, 215, 96, 0.1); padding: 15px; border-radius: 16px; margin-bottom: 25px;
    border: 1px solid rgba(30, 215, 96, 0.2); text-align: left;
}
.spot-art { width: 50px; height: 50px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.spot-info { flex-grow: 1; overflow: hidden; }
.spot-title { font-weight: 700; font-size: 15px; color: #fff; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.spot-artist { font-size: 13px; color: #1ed760; }
.spot-logo { font-size: 24px; color: #1ed760; margin-right: 10px; }

/* Local Music Player */
.music-player {
    display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.05); padding: 15px 25px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.05);
}
.music-icon { color: #a1a1aa; font-size: 20px; }
.ctrl-btn {
    background: #fff; color: #000; border: none; padding: 8px 18px; border-radius: 20px;
    cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 8px; transition: 0.2s;
}
.ctrl-btn:hover { background: #e0e0e0; transform: scale(1.05); }
.volume-control { display: flex; align-items: center; gap: 8px; }
.volume-label { font-size: 12px; color: #a1a1aa; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.volume-label i { font-size: 14px; }

input[type=range] {
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    width: 100px; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: #fff; cursor: pointer; }
input[type=range]::-moz-range-thumb { height: 16px; width: 16px; border-radius: 50%; background: #fff; border: none; cursor: pointer; }
input[type=range]::-moz-range-track { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; }
input[type=range]::-moz-range-progress { height: 4px; background: rgba(255, 255, 255, 0.6); border-radius: 2px; }

/* Links */
.links { display: flex; flex-direction: column; gap: 15px; }
.btn {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 18px; color: #fff; text-decoration: none; border-radius: 14px;
    font-size: 16px; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03);
}
.btn i { font-size: 20px; }

/* Hover States */
.btn:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.btn.discord:hover { background: rgba(88, 101, 242, 0.2); border-color: #5865F2; color: #fff; }
.btn.roblox:hover { background: rgba(255, 255, 255, 0.9); border-color: #fff; color: #000; }
.btn.github:hover { background: rgba(43, 49, 55, 0.8); border-color: #8b949e; }
.btn.roleplay:hover { background: rgba(15, 157, 88, 0.2); border-color: #0F9D58; }
.btn.paypal:hover { background: rgba(0, 112, 186, 0.2); border-color: #009cde; }

/* --- ENTRANCE ANIMATIONS --- */
.animate-pop { animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.animate-up { animation: fadeInUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }

@keyframes popIn { 0% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
