@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
    --bg-main: #0a0a0a;
    --bg-card: #121212;
    --bg-card-hover: #181818;
    --border-color: #262626;
    --border-yellow: #facc15;
    --yellow-primary: #facc15;
    --yellow-glow: rgba(250, 204, 21, 0.25);
    --yellow-subtle: rgba(250, 204, 21, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* CUSTOM 2D MINIMALIST RETICLE CURSOR */
@media (pointer: fine) {
    body {
        cursor: default;
    }
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--yellow-primary);
    box-shadow: 0 0 6px var(--yellow-primary);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease;
}

.custom-cursor-reticle {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--yellow-primary);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.2s ease,
                transform 0.08s ease-out;
}

/* Reticle crosshair tick marks */
.custom-cursor-reticle::before,
.custom-cursor-reticle::after {
    content: "";
    position: absolute;
    background-color: var(--yellow-primary);
}

.custom-cursor-reticle::before {
    top: 50%;
    left: -4px;
    width: 4px;
    height: 1.5px;
    transform: translateY(-50%);
    box-shadow: 34px 0 0 var(--yellow-primary);
}

.custom-cursor-reticle::after {
    left: 50%;
    top: -4px;
    width: 1.5px;
    height: 4px;
    transform: translateX(-50%);
    box-shadow: 0 34px 0 var(--yellow-primary);
}

.custom-cursor-reticle.active {
    width: 48px;
    height: 48px;
    border-color: #fff;
    background: rgba(250, 204, 21, 0.06);
}

#grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.portfolio-wrapper {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

/* TOP NAVIGATION / STATUS BAR */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    color: var(--yellow-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--yellow-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--yellow-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 2D MINIMALIST BUTTONS */
.btn-2d {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-2d:hover {
    border-color: var(--yellow-primary);
    color: var(--yellow-primary);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--yellow-primary);
}

.btn-yellow {
    background: var(--yellow-primary);
    color: #000;
    border: 1px solid var(--yellow-primary);
    font-weight: 700;
}

.btn-yellow:hover {
    background: #eab308;
    color: #000;
    border-color: #eab308;
    box-shadow: 3px 3px 0 #fff;
}

.btn-xs {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

/* HERO SECTION & INTERACTIVE YELLOW NAME ANIMATION */
.hero-section {
    margin-bottom: 4rem;
}

.hero-sub-id {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--yellow-primary);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(2.8rem, 6.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: #ffffff;
    cursor: pointer;
    position: relative;
    display: inline-block;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Creative Yellow Isometric Split-Shadow & Cyber Glow on Hover */
.hero-title.interactive-name:hover {
    color: var(--yellow-primary);
    transform: translate(-4px, -4px);
    text-shadow: 4px 4px 0px #1c1901,
                 8px 8px 0px rgba(250, 204, 21, 0.4),
                 0 0 35px rgba(250, 204, 21, 0.4);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 750px;
    margin-bottom: 2.5rem;
    border-left: 2px solid var(--yellow-primary);
    padding-left: 1rem;
}

.hero-cta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* DUAL DEGREE / INSTITUTION BADGE CARDS */
.education-section {
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--yellow-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::before {
    content: "//";
    color: var(--yellow-primary);
    font-weight: 700;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.edu-badge-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    position: relative;
    transition: all 0.2s ease;
}

.edu-badge-card:hover {
    border-color: var(--yellow-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--yellow-glow);
}

.edu-badge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.edu-tag {
    background: var(--yellow-primary);
    color: #000;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
}

.edu-period {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.edu-institute {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.edu-degree {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.edu-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
    color: var(--yellow-primary);
}

/* GITHUB HEATMAP & STATS DASHBOARD */
.github-section {
    margin-bottom: 4.5rem;
}

.github-heatmap-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.heatmap-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.heatmap-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.heatmap-grid-wrapper {
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.heatmap-months {
    display: flex;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: 28px;
    margin-bottom: 6px;
    justify-content: space-between;
    min-width: 680px;
}

.heatmap-body {
    display: flex;
    gap: 8px;
    min-width: 680px;
}

.heatmap-days {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    width: 28px;
    height: 98px;
}

.heatmap-cells {
    display: flex;
    gap: 3px;
}

.heatmap-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.heatmap-cell {
    width: 12px;
    height: 12px;
    background-color: #1a1a1a;
    border-radius: 2px;
    cursor: pointer;
    transition: transform 0.1s ease, border-color 0.1s ease;
}

.heatmap-cell:hover {
    transform: scale(1.35);
    border: 1px solid #fff;
    z-index: 10;
}

.heatmap-cell.level-0 { background-color: #1a1a1a; }
.heatmap-cell.level-1 { background-color: #584403; }
.heatmap-cell.level-2 { background-color: #856404; }
.heatmap-cell.level-3 { background-color: #c49a0a; }
.heatmap-cell.level-4 { background-color: #facc15; box-shadow: 0 0 5px var(--yellow-primary); }

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.legend-cell {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-cell.level-0 { background-color: #1a1a1a; }
.legend-cell.level-1 { background-color: #584403; }
.legend-cell.level-2 { background-color: #856404; }
.legend-cell.level-3 { background-color: #c49a0a; }
.legend-cell.level-4 { background-color: #facc15; }

.github-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.gh-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-val {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--yellow-primary);
}

.stat-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-link:hover {
    color: var(--yellow-primary);
}

/* PROJECTS SHOWCASE */
.projects-section {
    margin-bottom: 5rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--yellow-primary);
    color: var(--yellow-primary);
    background: var(--yellow-subtle);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all 0.2s ease;
}

.project-card:hover {
    border-color: var(--yellow-primary);
    transform: translateY(-4px);
    box-shadow: 6px 6px 0 var(--yellow-primary);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem 0;
}

.project-index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--yellow-primary);
}

.project-category-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: #1e1e1e;
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border-color);
}

.project-card-body {
    padding: 1rem 1.5rem 1.5rem;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.project-subtitle {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--yellow-primary);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-highlights {
    list-style: none;
    margin-bottom: 1.25rem;
    padding-left: 0;
}

.project-highlights li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.project-highlights li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--yellow-primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-chip {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    background: #181818;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.5rem;
}

.project-card-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.8);
}

.project-links-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.link-btn:hover {
    color: var(--yellow-primary);
}

/* EXPERIENCE TIMELINE */
.timeline-section {
    margin-bottom: 4.5rem;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    display: flex;
    gap: 1.5rem;
    transition: border-color 0.15s ease;
}

.timeline-item:hover {
    border-color: var(--yellow-primary);
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-num {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--yellow-primary);
    padding: 0.25rem 0.5rem;
    background: var(--yellow-subtle);
    border: 1px solid var(--yellow-primary);
}

.timeline-content {
    flex: 1;
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.timeline-type {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--yellow-primary);
    text-transform: uppercase;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-points {
    list-style: none;
    margin-bottom: 1rem;
}

.timeline-points li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.timeline-points li::before {
    content: "•";
    position: absolute;
    left: 0.3rem;
    color: var(--yellow-primary);
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* SKILLS MATRIX */
.skills-section {
    margin-bottom: 4.5rem;
}

.skills-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.skill-cat-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--yellow-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.3rem 0.7rem;
    transition: all 0.15s ease;
}

.skill-item:hover {
    border-color: var(--yellow-primary);
    color: var(--yellow-primary);
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* HEATMAP TOOLTIP */
.heatmap-tooltip {
    position: absolute;
    display: none;
    background: #0a0a0a;
    border: 1px solid var(--yellow-primary);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    pointer-events: none;
    z-index: 2000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .timeline-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    .custom-cursor-dot, .custom-cursor-reticle {
        display: none;
    }
}

.gh-repo-chip:hover {
    border-color: var(--yellow-primary) !important;
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--yellow-primary);
}

