/* =========================================
   NEON PROFILE THEME
   ========================================= */

:root {
    /* Color Palette */
    --color-bg-dark: #050510;
    --color-bg-card: rgba(20, 20, 35, 0.6);
    --color-neon-blue: #00f3ff;
    --color-neon-purple: #bd00ff;
    --color-text-main: #ffffff;
    --color-text-muted: #8b8b9e;

    /* Gradients */
    --gradient-avatar: linear-gradient(135deg, var(--color-neon-blue), var(--color-neon-purple));
    --gradient-glow: radial-gradient(circle at center, rgba(0, 243, 255, 0.15), transparent 70%);

    /* Spacing & Layout */
    --max-width: 600px;
    --spacing-md: 1.5rem;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-backdrop: blur(12px);
    --shadow-glow: 0 0 20px rgba(0, 243, 255, 0.15);
    --transition-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-main);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    overflow: hidden;
    /* Prevent scrolling as requested */
    position: relative;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Main Container */
.main-container {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Left Pane Container */
.left-pane {
    position: fixed;
    top: 6rem;
    left: 2rem;
    width: 520px;
    max-width: 42vw;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
}

/* Right Pane Container */
.right-pane {
    position: fixed;
    top: 6rem;
    right: 2rem;
    width: 520px;
    max-width: 42vw;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-speed);
}

.lang-link {
    cursor: pointer;
    font-weight: 700;
    color: var(--color-neon-blue);
    transition: color 0.3s;
    user-select: none;
}

.lang-link:hover {
    color: var(--color-text-main);
    text-shadow: 0 0 10px var(--color-neon-blue);
}

/* Header & Hero */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 40;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
    position: relative;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

/* Glitch Effect */
.glitch-text {
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--color-neon-purple);
    animation: glitch-anim 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    transform: translateX(-2px);
}

.glitch-text::after {
    color: var(--color-neon-blue);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    transform: translateX(2px);
}

@keyframes glitch-anim {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-1px);
    }

    80% {
        transform: translateX(1px);
    }
}

@keyframes glitch-anim2 {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-2px);
    }

    75% {
        transform: translateX(1px);
    }
}

@keyframes glitch-skew {

    0%,
    100% {
        transform: skew(0deg);
    }

    5% {
        transform: skew(-0.5deg);
    }

    10% {
        transform: skew(0.5deg);
    }
}

.highlight {
    color: var(--color-neon-blue);
}

.profile-title {
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: #00ff88;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Terminal Card */
.terminal-card {
    background: rgba(10, 10, 20, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    height: 320px;
    /* Synchronized with explorer */
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Dragging state - disables transitions for smooth movement */
.terminal-card.dragging,
.explorer-card.dragging,
.software-card.dragging,
.htop-card.dragging {
    transition: none !important;
    will-change: transform;
    user-select: none;
    position: relative;
    z-index: 100 !important;
    opacity: 1 !important;
}

.terminal-card:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.35), 0 0 50px rgba(0, 243, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 243, 255, 0.4);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.terminal-title {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.terminal-body {
    padding: 1rem;
    font-size: 0.85rem;
    flex: 1;
    overflow: hidden;
}

.terminal-line {
    margin-bottom: 0.3rem;
    opacity: 0;
    transform: translateY(10px);
    animation: terminalLineIn 0.4s ease forwards;
}

.terminal-line:nth-child(1) {
    animation-delay: 0.3s;
}

.terminal-line:nth-child(3) {
    animation-delay: 0.8s;
}

.terminal-line:nth-child(5) {
    animation-delay: 1.3s;
}

.terminal-line:nth-child(7) {
    animation-delay: 1.8s;
}

@keyframes terminalLineIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prompt {
    color: var(--color-neon-blue);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.cmd {
    color: var(--color-neon-purple);
    font-weight: 600;
}

.terminal-output {
    color: var(--color-text-muted);
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
    border-left: 2px solid rgba(0, 243, 255, 0.2);
    padding-left: 0.75rem;
    opacity: 0;
    animation: terminalLineIn 0.4s ease forwards;
}

.terminal-output:nth-of-type(1) {
    animation-delay: 0.5s;
}

.terminal-output:nth-of-type(2) {
    animation-delay: 1.0s;
}

.terminal-output:nth-of-type(3) {
    animation-delay: 1.5s;
}

.text-neon {
    color: var(--color-neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.term-highlight strong {
    color: var(--color-neon-purple);
}

/* Typing line with cursor */
.terminal-line.typing {
    animation-delay: 2.2s;
}

.cursor {
    display: inline-block;
    color: var(--color-neon-blue);
    font-weight: 700;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Typing text animation */
.typing-text {
    display: inline;
    overflow: hidden;
    white-space: nowrap;
    border-right: none;
}

/* Explorer & Software Cards */
.explorer-card,
.software-card {
    background: rgba(10, 10, 20, 0.95);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.explorer-card:hover,
.software-card:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.35), 0 0 50px rgba(0, 243, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 243, 255, 0.4);
}

.explorer-card {
    height: 320px;
}

.software-card {
    height: 380px;
}

.explorer-header,
.software-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.explorer-title,
.software-title {
    flex: 1;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.explorer-body {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.software-body {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    flex: 1;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-icon {
    width: 20px;
    height: 20px;
    color: var(--color-neon-blue);
}

.tool-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.tool-ver {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

.folder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-main);
}

.folder-icon {
    width: 56px;
    height: 56px;
}

.folder-name {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* htop Card */
.htop-card {
    background: rgba(5, 5, 15, 0.98);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 380px;
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.htop-card:hover {
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.35), 0 0 50px rgba(0, 243, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 243, 255, 0.4);
}

.htop-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.htop-title {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.htop-body {
    padding: 0.8rem 1rem;
    flex: 1;
}

.meter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.meter-label {
    width: 30px;
    color: var(--color-neon-blue);
}

.meter-bar {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    transition: width 0.5s ease-out;
}

.cpu-fill {
    background: linear-gradient(90deg, #00ff88, #ffbd2e);
}

.mem-fill {
    background: linear-gradient(90deg, var(--color-neon-blue), var(--color-neon-purple));
}

/* Htop Table Styling */
.htop-table {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.htop-table-header {
    display: flex;
    gap: 0.5rem;
    color: var(--color-neon-blue);
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.htop-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-family: 'JetBrains Mono', monospace;
}

.htop-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.col-pid {
    width: 30px;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.col-name {
    width: 90px;
    color: var(--color-text-main);
    font-weight: 500;
}

.col-level {
    flex: 1;
    display: flex;
    align-items: center;
    padding-right: 0.5rem;
}

.col-pct {
    width: 40px;
    text-align: right;
    color: var(--color-text-muted);
}

.col-rank {
    width: 80px;
    text-align: right;
    font-weight: 600;
}

.col-rank.senior {
    color: #00ff88;
}

.col-rank.advanced {
    color: var(--color-neon-blue);
}

.col-rank.middle {
    color: #ffbd2e;
}

.col-rank.junior {
    color: #ff6b6b;
}

/* Skill Bars */
.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    animation: skillGlitch 8s ease-in-out infinite 2s;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-neon-blue), var(--color-neon-purple));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    transform-origin: left;
    animation: skillFillIn 1.2s ease-out forwards, skillPulse 3s ease-in-out infinite 1.5s;
    transform: scaleX(0);
    position: relative;
    overflow: hidden;
}

/* Shimmer scan effect */
.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: skillShimmer 4s ease-in-out infinite;
}

/* Different shimmer delays for variety */
.htop-row:nth-child(2) .skill-fill::after {
    animation-delay: 0s;
}

.htop-row:nth-child(3) .skill-fill::after {
    animation-delay: 0.7s;
}

.htop-row:nth-child(4) .skill-fill::after {
    animation-delay: 1.4s;
}

.htop-row:nth-child(5) .skill-fill::after {
    animation-delay: 2.1s;
}

.htop-row:nth-child(6) .skill-fill::after {
    animation-delay: 2.8s;
}

.htop-row:nth-child(7) .skill-fill::after {
    animation-delay: 3.5s;
}

@keyframes skillShimmer {

    0%,
    100% {
        left: -100%;
    }

    50% {
        left: 200%;
    }
}

@keyframes skillGlitch {

    0%,
    94%,
    100% {
        filter: none;
    }

    95% {
        filter: hue-rotate(90deg) brightness(1.3);
    }

    96% {
        filter: hue-rotate(-60deg) brightness(0.8);
    }

    97% {
        filter: hue-rotate(120deg) brightness(1.2);
    }

    98% {
        filter: hue-rotate(-30deg) brightness(1.1);
    }
}

/* Staggered animation delays for each skill row */
.htop-row:nth-child(2) .skill-fill {
    animation-delay: 0.8s, 2s;
}

.htop-row:nth-child(3) .skill-fill {
    animation-delay: 0.95s, 2.15s;
}

.htop-row:nth-child(4) .skill-fill {
    animation-delay: 1.1s, 2.3s;
}

.htop-row:nth-child(5) .skill-fill {
    animation-delay: 1.25s, 2.45s;
}

.htop-row:nth-child(6) .skill-fill {
    animation-delay: 1.4s, 2.6s;
}

.htop-row:nth-child(7) .skill-fill {
    animation-delay: 1.55s, 2.75s;
}

@keyframes skillFillIn {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes skillPulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.7), 0 0 25px rgba(189, 0, 255, 0.3);
    }
}

/* Htop Footer */
.htop-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    margin-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.htop-footer strong {
    color: #00ff88;
    font-weight: 600;
}

/* Social & Buttons */
.social-corner {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    gap: 0.8rem;
    z-index: 100;
}

.social-corner .link-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
}

.social-corner .btn-text {
    display: none;
}

.cv-corner-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(10, 10, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    z-index: 100;
    text-decoration: none;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.minimal-footer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.minimal-footer .lang-link {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.7rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 1200px) {
    body {
        overflow-y: auto;
    }

    .left-pane,
    .right-pane {
        position: relative;
        width: 100%;
        max-width: 600px;
        top: 0;
        left: 0;
        right: 0;
        margin: 0 auto 2rem;
    }

    .profile-header {
        margin-top: 6rem;
    }
}

/* Mobile Overlay - Coming Soon */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.mobile-overlay-content {
    text-align: center;
    max-width: 320px;
}

.mobile-overlay-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mobile-overlay-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1rem;
}

.mobile-overlay-title .highlight {
    color: var(--color-neon-blue);
}

.mobile-overlay-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.mobile-overlay-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 8px;
    color: var(--color-neon-blue);
    font-size: 0.85rem;
}

.mobile-overlay-hint svg {
    width: 20px;
    height: 20px;
}

/* Show overlay on mobile devices */
@media (max-width: 768px) {
    .mobile-overlay {
        display: flex;
    }

    .main-container,
    .blog-container,
    .post-container {
        display: none;
    }
}