:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --text-muted: #6f7782;
    --accent: #00f3ff; /* Cyber Cyan */
    --accent-dim: rgba(0, 243, 255, 0.1);
    --border-color: #333;
    --grid-line: rgba(255, 255, 255, 0.03);
    
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --scanline-color: rgba(0, 243, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair; /* Technical cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    
    /* Grid Background */
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

/* Scanline Effect */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.3;
}

/* System Status Bar */
.system-status-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    z-index: 100;
}

.status-left, .status-right {
    display: flex;
    gap: 2rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: blink 2s infinite;
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

a:hover {
    background-color: var(--accent);
    color: var(--bg-color);
}

/* Hero Section */
.hero-section {
    min-height: 40vh;
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    margin-bottom: 4rem;
    background: rgba(5, 5, 5, 0.8);
}

.hero-section::before {
    content: 'SECTION: IDENTITY';
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-color);
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.hero-section::after { /* Corner marker */
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
}

.intro-line {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.name {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.glitch-text {
    position: relative;
}

.title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.bio-block {
    border-left: 2px solid var(--border-color);
    padding-left: 1rem;
    max-width: 600px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.25rem;
}

/* Section Styling */
section {
    margin-bottom: 6rem;
}

.section-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
}

.section-header h3 {
    font-size: 1.25rem;
    margin-right: 1rem;
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--border-color),
        var(--border-color) 4px,
        transparent 4px,
        transparent 8px
    );
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1px; /* Gap for border */
    background-color: var(--border-color); /* Creates the borders */
    border: 1px solid var(--border-color);
}

.card {
    background-color: var(--bg-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card:hover {
    background-color: var(--accent-dim);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card-icon {
    font-size: 1.5rem;
}

.card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.card-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Resume Table-ish Layout */
.resume-container {
    border: 1px solid var(--border-color);
}

.resume-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--border-color);
}

.resume-row:last-child {
    border-bottom: none;
}

.resume-left {
    padding: 2rem;
    border-right: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.resume-right {
    padding: 2rem;
}

.exp-item, .edu-item {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}

.exp-item::before, .edu-item::before {
    content: '>';
    position: absolute;
    left: -6px;
    top: 0;
    background: var(--bg-color);
    color: var(--accent);
    font-weight: bold;
    font-size: 0.8rem;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.exp-role {
    color: var(--accent);
    font-weight: 600;
}

.exp-date {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.exp-company {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exp-details li {
    list-style: none;
    margin-bottom: 0.4rem;
    color: #ccc;
    font-size: 0.95rem;
}

.exp-details li::before {
    content: '- ';
    color: var(--text-muted);
}

.tech-tags span {
    display: inline-block;
    font-size: 0.75rem;
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    margin-right: 5px;
    margin-top: 5px;
    color: var(--text-muted);
}

.tech-tags span:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Footer */
.terminal-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-cmd {
    background: #111;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .resume-row {
        grid-template-columns: 1fr;
    }
    .resume-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 2rem;
    }
    .name { font-size: 2rem; }
    .status-right { display: none; }
    .grid { grid-template-columns: 1fr; }
}
