:root {
    /* Chic Terminal Theme - Vibrant Minimalist */
    --bg-color: #050505;
    --bg-panel: rgba(12, 12, 12, 0.6);
    /* More transparent for glass feel */
    --grid-line: rgba(255, 255, 255, 0.03);

    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #444444;

    /* Vibrant Pops */
    --pop-1: #FF3366;
    /* Vibrant Pink */
    --pop-2: #00F0FF;
    /* Cyan */
    --pop-3: #7000FF;
    /* Electric Purple */
    --pop-4: #CCFF00;
    /* Lime */

    --gradient-main: linear-gradient(135deg, var(--pop-1), var(--pop-3));
    --gradient-border: linear-gradient(135deg, rgba(255, 51, 102, 0.5), rgba(112, 0, 255, 0.5));

    --accent-primary: #FF3366;
    --accent-dim: rgba(255, 51, 102, 0.1);
    --accent-glow: 0 0 20px rgba(255, 51, 102, 0.2);

    --success: #00FF94;
    --warning: #FFD600;
    --danger: #FF0055;

    /* Layout */
    --radius-sm: 4px;
    --radius-md: 8px;
    --gap: 24px;

    /* Fonts */
    --font-mono: 'Space Mono', 'Fira Code', monospace;

    /* Animation */
    --ease-chic: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--text-muted) var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 14px;
    /* Subtle Dot Grid */
    background-image: radial-gradient(var(--text-muted) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* CRT Scanline Effect */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    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));
    z-index: 9999;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Selection */
::selection {
    background: var(--pop-1);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pop-1);
}

/* Layout Structure */
.dashboard-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px;
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto 1fr;
    gap: 40px;
    min-height: 100vh;
}

/* Top Status Bar */
.status-bar {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.status-group {
    display: flex;
    gap: 30px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Sidebar Panel */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Main Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-content: start;
}

/* Terminal Panels (Cards) */
.terminal-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0;
    position: relative;
    transition: all 0.4s var(--ease-chic);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-card:hover {
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Gradient Border on Hover */
.terminal-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-chic);
    pointer-events: none;
}

.terminal-card:hover::after {
    opacity: 1;
}

/* Panel Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.terminal-card:hover .card-header {
    color: var(--text-primary);
}

.header-title::before {
    content: '// ';
    color: var(--pop-3);
    /* Purple accent */
}

/* Panel Body */
.card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Profile Specifics */
.profile-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0) 100%);
}

.glitch-img-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    padding: 3px;
    background: var(--gradient-main);
    border-radius: 50%;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-color);
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s;
}

.terminal-card:hover .profile-img {
    filter: grayscale(0%);
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-role {
    color: var(--pop-2);
    /* Cyan */
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
}

/* Data Rows */
.data-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.data-label {
    color: var(--text-secondary);
}

.data-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* Social Links as Commands */
.command-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmd-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.cmd-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.cmd-btn::before {
    content: '>';
    color: var(--pop-1);
    /* Pink arrow */
    font-weight: bold;
}

/* Project Cards */
.project-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-tag {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.terminal-card:hover .tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Visual Elements */
.visual-area {
    height: 80px;
    margin-top: 20px;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s;
}

.terminal-card:hover .visual-area {
    background: var(--gradient-main);
    color: #000;
    /* Contrast on gradient */
}

/* Footer */
.system-footer {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.system-footer a,
.status-bar a,
.legal-copy a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-body {
    flex-direction: row;
    gap: 28px;
    align-items: center;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.1;
    max-width: 900px;
}

.hero-visual {
    min-width: 160px;
    height: 160px;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.08em;
}

.page-layout {
    grid-template-columns: 1fr;
}

.page-content {
    grid-template-columns: 1fr;
}

.legal-copy {
    gap: 14px;
    max-width: 900px;
}

.legal-copy h1,
.legal-copy h2 {
    color: var(--text-primary);
}

.legal-copy h2 {
    margin-top: 18px;
    font-size: 1.05rem;
}

.legal-copy p,
.legal-copy li {
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-copy ul {
    padding-left: 22px;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 1fr;
        padding: 20px;
    }

    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .status-bar {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .hero-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        min-width: 100%;
    }

    .system-footer {
        flex-direction: column;
        gap: 12px;
    }
}

/* Utility */
.text-accent {
    color: var(--pop-1);
}

.text-dim {
    color: var(--text-muted);
}

.blink {
    animation: blink 1s step-end infinite;
}

/* Specific Pop Colors for Variety */
.terminal-card:nth-child(2) .header-title::before {
    color: var(--pop-2);
}

.terminal-card:nth-child(3) .header-title::before {
    color: var(--pop-4);
}

.terminal-card:nth-child(4) .header-title::before {
    color: var(--pop-1);
}

.terminal-card:nth-child(5) .header-title::before {
    color: var(--pop-3);
}