/* --- VARIABLES & FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=VT323&display=swap');

:root {
    --neon-blue: #00f3ff;
    --deep-blue: #0044ff;
    --silver: #e0e0e0;
    --glass-bg: rgba(10, 20, 40, 0.65);
    --border-color: #5577aa;
    --grid-color: rgba(0, 243, 255, 0.1);
}

* {
    box-sizing: border-box;
    cursor: crosshair; /* Custom cursor everywhere */
}

/* --- BASE STYLES --- */
/* --- 2. 3D PERSPECTIVE GRID --- */
.desktop::before {
    content: "";
    position: fixed;
    top: 0;
    left: -50%;
    width: 200%; /* Wider than screen to cover rotation gaps */
    height: 100%;
    background-image: 
        linear-gradient(var(--neon-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--neon-blue) 1px, transparent 1px);
    background-size: 40px 40px;
    /* This creates the 3D 'Floor' look */
    transform: perspective(500px) rotateX(60deg);
    transform-origin: center bottom;
    opacity: 0.15;
    z-index: -2;
    animation: moveFloor 5s linear infinite;
}

@keyframes moveFloor {
    from { background-position: 0 0; }
    to { background-position: 0 40px; }
}

/* --- OVERLAYS (SCANLINES & NOISE) --- */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 998;
}

/* --- FULLSCREEN BOOT LOGIC --- */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: bootFadeOut 0.8s ease-in-out 4.5s forwards;
}

/* The Scanner GIF: Stretched to fill the background */
.fullscreen-bg-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes it fill the whole screen */
    opacity: 0.3; /* Keep it faint so it looks like a HUD */
    mix-blend-mode: screen; /* Removes the black background of the gif */
    filter: hue-rotate(180deg) brightness(1.5);
    z-index: 1;
}

/* The Eye GIF: Large in the center */
.boot-content-center {
    position: relative;
    z-index: 2;
    width: 80%; /* Takes up most of the width */
    max-width: 800px;
    text-align: center;
}

.main-eye-gif {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px var(--neon-blue));
    mix-blend-mode: screen;
    margin-bottom: 20px;
}

/* Loading Bar Tweaks for Fullscreen */
.boot-status {
    width: 60%;
    margin: 0 auto;
    font-family: 'VT323', monospace;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.loading-bar-border {
    width: 100%;
    height: 4px; /* Thinner for a sleeker look */
    border: 1px solid var(--neon-blue);
    background: rgba(0, 0, 0, 0.5);
}

/* Updated Fade Out to be more dramatic */
@keyframes bootFadeOut {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); filter: brightness(3); }
    100% { opacity: 0; transform: scale(1.2); pointer-events: none; }
}

/* --- DRAGGABLE WINDOWS --- */
.window {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 50, 255, 0.1);
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.1s, z-index 0s;
}

.window:active {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--deep-blue);
}

.window-header {
    background: linear-gradient(90deg, #002244, #004488);
    color: white;
    padding: 5px 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    display: flex;
    justify-content: space-between;
    cursor: move; /* Indicates drag */
    border-bottom: 1px solid var(--border-color);
}

.win-controls span {
    margin-left: 10px;
    cursor: pointer;
}
.win-controls span:hover { color: var(--neon-blue); }

.window-content {
    padding: 15px;
    color: #fff;
    flex-grow: 1;
    overflow-y: auto;
}

/* Custom Scrollbar */
.scrollable::-webkit-scrollbar { width: 8px; }
.scrollable::-webkit-scrollbar-track { background: #000; }
.scrollable::-webkit-scrollbar-thumb { background: var(--deep-blue); border: 1px solid var(--neon-blue); }

/* --- CONTENT STYLING --- */
/* User Profile */
.profile-pic-container {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid var(--neon-blue);
    margin: 0 auto 10px auto;
    overflow: hidden;
}
.profile-img { width: 100%; height: 100%; object-fit: cover; }
.overlay-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px);
    background-size: 100% 10px;
    pointer-events: none;
}

.stat-bar {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
}
.stat-bar label { width: 30px; color: var(--neon-blue); }
.bar-bg { flex-grow: 1; height: 8px; background: #000; border: 1px solid #555; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--deep-blue), var(--neon-blue)); }

/* Blog Posts */
.post {
    margin-bottom: 25px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 15px;
}
.glow-text { text-shadow: 0 0 5px var(--neon-blue); margin: 0; }
.meta { font-size: 12px; color: #88aaff; margin-bottom: 10px; }
.post-img { width: 100%; border: 1px solid white; margin-bottom: 10px; }
.border-tech {
    outline: 2px solid var(--deep-blue);
    outline-offset: 2px;
}

/* Audio Player */
.center-content { text-align: center; }
.album-art-container {
    width: 120px; height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.5);
    position: relative;
}
.album-art { width: 100%; height: 100%; object-fit: cover; }
.spin-slow { animation: spin 10s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.btn-retro {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: 'VT323';
    margin: 5px;
    padding: 2px 10px;
}
.btn-retro:hover { background: var(--neon-blue); color: #000; }
.track-info {
    margin: 15px 0;
    font-family: 'Orbitron', sans-serif;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px;
    border-left: 3px solid var(--neon-blue);
}

.track-name {
    color: var(--neon-blue);
    font-size: 14px;
    letter-spacing: 2px;
}

.track-artist {
    color: var(--silver);
    font-size: 10px;
}

/* Hide EQ by default, show it when playing */
.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 40px; /* Taller for better visibility */
    gap: 4px;
    margin-top: 15px;
    padding: 5px;
    background: rgba(0, 243, 255, 0.05);
    border-radius: 4px;
}

.bar {
    width: 6px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--deep-blue);
    /* No animation here! JavaScript will handle the height */
    transition: height 0.05s ease; 
}

/* Stagger the animation of the EQ bars */
.equalizer span:nth-child(2) { animation-delay: 0.1s; }
.equalizer span:nth-child(3) { animation-delay: 0.2s; }
.equalizer span:nth-child(4) { animation-delay: 0.3s; }
.equalizer span:nth-child(5) { animation-delay: 0.4s; }

@keyframes eq-bounce {
    0%, 100% { height: 5px; }
    50% { height: 20px; }
}

.spin-slow {
    animation: spin 10s linear infinite;
}
.mouse-trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-blue);
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 5px var(--neon-blue);
    animation: trailFade 1s linear forwards;
}

@keyframes trailFade {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    100% { transform: scale(0) rotate(90deg); opacity: 0; }
}
.noise::after {
    content: "";
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 50%,
        rgba(0, 243, 255, 0.05) 50%,
        rgba(0, 243, 255, 0.05) 100%
    );
    background-size: 100% 4px;
    animation: rain 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rain {
    0% { transform: translateY(0); }
    100% { transform: translateY(50%); }
}
.profile-pic-container::before {
    content: "";
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px dashed var(--neon-blue);
    border-radius: 50%;
    animation: rotateHUD 10s linear infinite;
    opacity: 0.5;
}

.profile-pic-container::after {
    content: "";
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border: 1px solid var(--deep-blue);
    border-radius: 50%;
    border-left-color: transparent;
    animation: rotateHUD 4s linear infinite reverse;
    opacity: 0.3;
}

@keyframes rotateHUD {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.window:active {
    animation: windowGlitch 0.2s ease infinite;
}

@keyframes windowGlitch {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    25% { transform: translate(-2px, 1px); filter: hue-rotate(90deg); }
    50% { transform: translate(2px, -1px); }
    75% { transform: translate(-1px, -2px); }
    100% { transform: translate(0); }
}
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(0, 243, 255, 0.2), 
        transparent);
    pointer-events: none;
    z-index: 999;
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { top: -10%; }
    100% { top: 110%; }
}
.profile-pic-container {
    position: relative;
    overflow: hidden;
}

/* The moving scanner line */
.profile-pic-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    z-index: 5;
    animation: scanLine 3s linear infinite;
}

/* The faint blue tint that follows the line */
.profile-pic-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 243, 255, 0.2), transparent);
    z-index: 4;
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { top: 0%; }
    100% { top: 100%; }
}
.glow-text {
    position: relative;
    display: inline-block;
}

.glow-text:hover {
    text-shadow: 
        2px 0 red, 
        -2px 0 blue;
    animation: textShake 0.1s infinite;
}

@keyframes textShake {
    0% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -1px); }
    100% { transform: translate(1px, -1px); }
}
/* --- 1. HOLOGRAPHIC SHINE EFFECT --- */
.window {
    position: relative;
    overflow: hidden; /* Keeps the shine inside the box */
}

/* The Shine Layer */
.window::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 40%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.0) 60%,
        transparent 100%
    );
    transform: skewX(-20deg);
    pointer-events: none; /* Let clicks pass through */
    transition: left 0.5s;
    z-index: 2;
}

/* Trigger the shine on hover */
.window:hover::before {
    left: 150%;
    transition: left 1s ease-in-out;
}
@keyframes turnOn {
    0% { transform: scale(1, 0.002); opacity: 0; filter: brightness(3); }
    50% { transform: scale(1, 0.002); opacity: 1; }
    75% { transform: scale(1, 1.1); }
    100% { transform: scale(1, 1); opacity: 1; filter: brightness(1); }
}

body {
    animation: turnOn 0.4s ease-out forwards;
}
.holo-orb {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--neon-blue), transparent 70%);
    opacity: 0.2;
    filter: blur(50px);
    z-index: -1;
    animation: pulseOrb 5s ease-in-out infinite alternate;
}

@keyframes pulseOrb {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.3; }
}
body::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh; /* Bottom 30% of screen */
    background: 
        linear-gradient(transparent 0%, var(--neon-blue) 2%, transparent 3%),
        linear-gradient(90deg, transparent 0%, var(--neon-blue) 2%, transparent 3%);
    background-size: 50px 50px; /* Size of grid squares */
    transform: perspective(500px) rotateX(60deg) translateY(100px);
    opacity: 0.2;
    z-index: -2;
    pointer-events: none;
}