:root {
    /* Pure Black & High Contrast */
    --bg-base: #030303;
    --bg-alt: #0a0a0a;
    --text-primary: #ededed;
    --text-dim: #737373;
    --accent: #d4ff00;
    /* Electric Lime for that hacker/cyber feel */
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    /* Using space grotesk for mono-like feel */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Custom cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 255, 0, 0.1);
    border-color: transparent;
    backdrop-filter: invert(1);
}

/* Subtle Fixed Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Layout - Split Screen Approach */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Persistent Sidebar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 350px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--bg-base);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1;
    display: inline-block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.role-title {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.system-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    display: inline-flex;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Navigation */
.nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 1rem;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--text-dim);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.nav-link::before {
    content: attr(data-index);
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: translateX(0);
}

/* Sidebar Bottom */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hover-underline {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    display: inline-block;
    position: relative;
    width: fit-content;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

/* Main Content Area */
.content-area {
    flex-grow: 1;
    padding: 0 4vw;
}

.section {
    min-height: 100vh;
    padding: 8rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

/* Typography elements */
.mono-label {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--text-primary);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 3rem;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--bg-base);
    background-color: var(--text-primary);
    padding: 1rem 2rem;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 100px;
    transition: background-color 0.3s, transform 0.3s;
}

.explore-btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* About Section */
.split-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 4rem;
}

.large-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.text-block p:not(.large-text) {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Experience Section */
.experience-list {
    display: flex;
    flex-direction: column;
}

.exp-item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.exp-item:first-child {
    border-top: 1px solid var(--border-color);
}

.exp-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.exp-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.exp-date {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
}

.exp-company {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.exp-role {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.exp-desc {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-stack span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--bg-base);
    background-color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 100px;
}

/* Projects Section (List Layout) */
.project-list {
    display: flex;
    flex-direction: column;
}

.project-row {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background-color 0.3s;
    align-items: start;
}

.project-row:first-child {
    border-top: 1px solid var(--border-color);
}

.project-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-cat {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.75rem;
}

.project-info {
    display: flex;
    flex-direction: column;
}

.project-name {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.project-row:hover .project-name {
    color: var(--accent);
}

.project-desc {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.project-link-icon {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.project-row:hover .project-link-icon {
    color: var(--bg-base);
    background-color: var(--accent);
    border-color: var(--accent);
    transform: rotate(45deg);
}

/* Certifications Section */
.cert-list {
    display: flex;
    flex-direction: column;
}

.cert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cert-row:first-child {
    border-top: 1px solid var(--border-color);
}

.cert-name h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.cert-issuer {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.cert-badge {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.5rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-color);
    transition: all 0.3s;
}

.cert-row:hover .cert-badge {
    color: var(--text-primary);
    -webkit-text-stroke: 1px var(--text-primary);
}

.cert-year {
    font-family: var(--font-mono);
    color: var(--accent);
}


/* Blog Timeline / Transmissions Feed */
.transmission-feed {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding-left: 1rem;
}

.transmission-entry {
    display: block;
    text-decoration: none;
    position: relative;
    padding: 2.5rem 0 2.5rem 3rem;
    background-color: transparent;
    border-left: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.transmission-entry::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px;
    height: 0;
    background-color: var(--accent);
    transition: height 0.4s ease;
}

.transmission-entry::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 2.75rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.transmission-entry:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.transmission-entry:hover::before {
    height: 100%;
}

.transmission-entry:hover::after {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.trans-date {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

.trans-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.transmission-entry:hover .trans-title {
    color: var(--accent);
}

.trans-desc {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.trans-link-text {
    font-family: var(--font-mono);
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.transmission-entry:hover .trans-link-text {
    color: var(--accent);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .layout-wrapper {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
    }

    .nav {
        display: none;
        /* Hide side nav on mobile, content just scrolls */
    }

    .social-links {
        margin-top: 2rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .content-area {
        padding: 0 2rem;
    }

    .split-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-block {
        flex-direction: row;
        flex-wrap: wrap;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 2rem;
        justify-content: space-between;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .project-link-icon {
        display: none;
        /* Hide interactive arrow on mobile to save space */
    }

    .cert-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
}