:root {
    /* YELLOW - BLACK THEME */
    --bg-color: #050505; /* Pure Deep Black */
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent-yellow: #FFD700; /* Gold/Yellow */
    --accent-dim: rgba(255, 215, 0, 0.15);
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- THE DIAGNOSTIC CONSOLE (Amber Style) --- */
.test-console {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: #000;
    border: 2px solid var(--accent-yellow);
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 0 15px var(--accent-dim);
    border-radius: 0px; /* Square corners for industrial look */
}

.console-header {
    border-bottom: 1px dashed var(--accent-yellow);
    padding-bottom: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    color: var(--accent-yellow);
    font-weight: bold;
}

.console-log {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    color: var(--text-secondary);
}

.console-log li.pass {
    color: var(--accent-yellow);
    font-weight: bold;
}

.console-log li::before {
    content: "> ";
}

/* --- LAYOUT --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    min-height: 80vh;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-in-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 5px solid var(--accent-yellow);
    padding-left: 20px;
}

.highlight {
    color: var(--accent-yellow);
    font-family: var(--font-mono);
}

/* --- HERO SPLIT SECTION --- */
.hero {
    flex-direction: row; /* Split layout */
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.hero h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-family: var(--font-mono);
}

/* PORTRAIT STYLING */
.hero-img-container {
    flex: 0 0 350px;
    height: 400px;
    position: relative;
}

.hero-img-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-yellow);
    z-index: -1;
    transition: 0.3s;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* MAKES ANY PHOTO LOOK PROFESSIONAL & ON THEME */
    filter: grayscale(100%) contrast(1.2); 
    transition: 0.5s;
}

.hero-img-container:hover .profile-img {
    filter: grayscale(0%) contrast(1); /* Reveals color on hover */
}

.hero-img-container:hover::before {
    top: 10px;
    left: 10px;
}

.btn {
    display: inline-block;
    background: var(--accent-yellow);
    color: #000;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* --- CARDS & STATS --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
}

.stat-box:hover {
    border-color: var(--accent-yellow);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-yellow);
    display: block;
}

/* JOB CARDS */
.job-card {
    background: var(--card-bg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #333;
    transition: 0.3s;
}

.job-card:hover {
    border-left: 4px solid var(--accent-yellow);
    background: #1a1a1a;
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.job-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
}

.job-company {
    color: var(--accent-yellow);
    font-family: var(--font-mono);
}

.job-details li {
    list-style: none;
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #ccc;
}

.job-details li::before {
    content: "⚡"; /* Changed bullet to lightning for 'Power' theme */
    position: absolute;
    left: 0;
    font-size: 12px;
    color: var(--accent-yellow);
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skill-category h4 {
    color: var(--accent-yellow);
    margin-bottom: 15px;
    font-family: var(--font-mono);
    border-bottom: 1px solid #333;
    display: inline-block;
}

.tag {
    background: #222;
    color: var(--accent-yellow);
    padding: 6px 12px;
    margin: 0 5px 10px 0;
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    border: 1px solid #333;
}

.tag:hover {
    border-color: var(--accent-yellow);
}

/* CONTACT */
.contact-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #333;
    padding: 50px;
    background: var(--card-bg);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero { flex-direction: column-reverse; text-align: center; justify-content: center; }
    .hero-text { padding-right: 0; margin-top: 40px; }
    .hero-img-container { flex: 0 0 300px; height: 300px; width: 300px; margin: 0 auto; }
    .skills-grid { grid-template-columns: 1fr; }
    .test-console { display: none; }
    h2 { font-size: 2rem; }
}

/* ===============================
   INTERACTIVE LAB SECTION
================================ */

#interactive-lab {
    margin-top: 60px;
}

#interactive-lab .lab-title {
    color: #6cf;
    border-color: #6cf;
}

#interactive-lab .lab-desc {
    max-width: 600px;
    color: #9bb;
    margin-bottom: 40px;
}

/* Grid layout */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Base tile */
.lab-tile {
    position: relative;
    min-height: 200px;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* Active module */
.lab-tile.active {
    background: #0b1e2d;
    border: 1px solid #2d5f7a;
    color: #cfefff;
    text-decoration: none;
    overflow: hidden;
}

/* Active meta */
.lab-meta {
    font-size: 0.75rem;
    color: #6cf;
    margin-bottom: 8px;
}

/* Active name */
.lab-name {
    color: #fff;
    margin-bottom: 10px;
}

/* Active description */
.lab-text {
    font-size: 0.9rem;
    color: #b7d7e8;
}

/* Subtle preview effect */
.lab-preview {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 40%;
    background:
        linear-gradient(transparent 60%, rgba(0,0,0,.6)),
        repeating-linear-gradient(
            to right,
            #6cf 0,
            #6cf 2px,
            transparent 2px,
            transparent 6px
        );
    opacity: 0.15;
}

/* CTA */
.lab-cta {
    position: absolute;
    bottom: 16px;
    left: 24px;
    font-size: 0.8rem;
    color: #6cf;
}

/* Coming soon tiles */
.lab-tile.coming-soon {
    background: #0a141c;
    border: 1px dashed #234;
    color: #678;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Hover effect (active only) */
.lab-tile.active:hover {
    border-color: #6cf;
}
