
:root {
    --bg-color: #08080b;
    --card-bg: rgba(15, 15, 20, 0.75);
    --accent-white: #ffffff;
    --text-main: #f0f0f5;
    --text-dim: #8e8e9c;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.4);
    --glow-color: rgba(255, 255, 255, 0.1);
    --font-mono: 'Fira Code', monospace;
    --font-hdr: 'Orbitron', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    margin: 0;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

/* CRT Scanlines Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.15) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.35;
}

/* Matrix Background Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    opacity: 0.18;
    pointer-events: none;
}

/* Glowing background overlay */
.wave-bg {
    position: fixed;
    bottom: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* Big Outline Background Text */
.background-text {
    position: fixed;
    top: 10%;
    left: 5%;
    font-size: 12vw;
    font-family: var(--font-hdr);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.005);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
    z-index: -1;
    transform: rotate(-5deg);
    white-space: nowrap;
    user-select: none;
    pointer-events: none;
}

.main-container {
    width: 90%;
    max-width: 1300px;
    z-index: 2;
    padding: 40px 0;
}

.row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* High-Tech Card Styles with Glassmorphism */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    flex: 1;
    min-width: 300px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05), 0 0 15px rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

/* Card Decorative Corners */
.card-corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--accent-white);
    opacity: 0.25;
    transition: all 0.3s ease;
}

.card-corner.top-left {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.card-corner.top-right {
    top: -1px;
    right: -1px;
    border-left: none;
    border-bottom: none;
}

.card-corner.bottom-left {
    bottom: -1px;
    left: -1px;
    border-right: none;
    border-top: none;
}

.card-corner.bottom-right {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.card:hover .card-corner {
    opacity: 0.9;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 5px var(--accent-white);
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    z-index: 2;
    position: relative;
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-white);
    filter: blur(12px);
    opacity: 0.12;
    z-index: 1;
    border-radius: 6px;
    transition: opacity 0.3s ease;
}

.card:hover .avatar-glow {
    opacity: 0.25;
}

.profile h1 {
    font-family: var(--font-hdr);
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 1px;
}

.sys-badge {
    font-family: var(--font-hdr);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-top: 6px;
    letter-spacing: 1px;
}

/* Diagnostics system box */
.sys-info {
    margin: 20px 0;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
}

.sys-item {
    margin-bottom: 6px;
    display: flex;
}

.sys-item:last-child {
    margin-bottom: 0;
}

.sys-label {
    color: var(--text-dim);
    width: 90px;
    font-weight: 600;
}

.pulse-text {
    color: var(--accent-white);
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.6);
    animation: text-pulse 2s infinite alternate;
}

@keyframes text-pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.bio {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.bio-author {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    margin: 0;
}

/* Terminal Window Card styling */
.terminal-card {
    background: rgba(8, 8, 10, 0.9);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 280px;
    min-height: 280px;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
}

.terminal-buttons .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.terminal-buttons .dot.close { background: rgba(255, 255, 255, 0.15); }
.terminal-buttons .dot.minimize { background: rgba(255, 255, 255, 0.25); }
.terminal-buttons .dot.maximize { background: rgba(255, 255, 255, 0.35); }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 15px 20px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#terminal-history {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-main);
}

.terminal-input-line {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 5px;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.8rem;
    flex: 1;
    caret-color: var(--accent-white);
}

.prompt {
    color: var(--text-dim);
    font-weight: 500;
}

/* Scrollbar customizations */
.terminal-body::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 6px;
}

.terminal-body::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.terminal-body::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* FAQ Label Area */
.projects-label {
    flex: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-box {
    text-align: left;
}

.label-box .glitch-text {
    font-family: var(--font-hdr);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}

.label-box .accent-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: block;
    letter-spacing: 1px;
}

/* Project Cards */
.project-tag {
    font-family: var(--font-hdr);
    font-size: 0.6rem;
    color: var(--text-dim);
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: bold;
}

.project-card h3 {
    font-family: var(--font-hdr);
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

.project-card p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-dim);
}

.btn-link {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.25s;
    background: rgba(255, 255, 255, 0.02);
}

.btn-link:hover {
    background: var(--accent-white);
    color: var(--bg-color);
    border-color: var(--accent-white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Glitch effects & helpers */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0.8;
}

.glitch-text:hover::before {
    left: 2px;
    text-shadow: -1px 0 rgba(255,255,255,0.7);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
    left: -2px;
    text-shadow: -1px 0 rgba(255,255,255,0.7), 0 1px rgba(255,255,255,0.7);
    clip: rect(85px, 450px, 140px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(15px, 9999px, 66px, 0); }
  50% { clip: rect(32px, 9999px, 5px, 0); }
  100% { clip: rect(88px, 9999px, 99px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(76px, 9999px, 5px, 0); }
  50% { clip: rect(22px, 9999px, 78px, 0); }
  100% { clip: rect(5px, 9999px, 44px, 0); }
}

@media(max-width: 768px) {
    .row {
        flex-direction: column;
    }
    .projects-label {
        align-items: flex-start;
        justify-content: flex-start;
        margin-top: 20px;
    }
}

