:root {
    --bg-color: #050505;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00f0ff;
    /* Cyan Neon */
    --accent-hover: #00c0cc;
    --border-color: #333333;
    --chip-bg: #1a1a1a;
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.nav-links a {
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* About Section */
.about-section {
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glitch-text {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, #888);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: 0.3s;
}

.profile-container {
    margin-bottom: 25px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.glitch-text:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
}

.role-line {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.about-chips {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.chip {
    background: linear-gradient(110deg, #111 8%, #222 18%, #111 33%);
    background-size: 200% 100%;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-color);
    animation: shine-sweep 4s infinite linear;
    position: relative;
    /* For tooltip positioning */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Chip Glow Animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
    }
}

.chip {
    animation: pulse-glow 3s infinite ease-in-out;
}

.chip:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 0 20px var(--accent-color);
}

/* Tooltip Styles */
.chip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    /* Position above chip */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 250px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-color);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.chip:hover::before {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Arrow for tooltip */
.chip::after {
    content: '';
    position: absolute;
    bottom: 110%;
    /* Just below the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent-color) transparent transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.chip:hover::after {
    visibility: visible;
    opacity: 1;
}

.looking-for {
    margin-bottom: 40px;
}

.looking-for .label {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.epic-list li {
    font-size: 1.1rem;
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.epic-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.cta-group {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
}

.btn.primary {
    background: var(--accent-color);
    color: #000;
}

.btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn.secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Section Common */
.section-pad {
    padding: 80px 0;
    border-bottom: 1px solid #111;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.card-header h3 {
    font-size: 1.2rem;
    margin-right: 10px;
}

.card-header .links a {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-left: 10px;
    text-decoration: underline;
}

.card-header .links a:hover {
    color: var(--accent-color);
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.telemetry-header {
    background: #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.telemetry-status {
    font-size: 0.6rem;
    color: #888;
    font-weight: normal;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 3px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.placeholder-card {
    border-style: dashed;
    background: transparent;
    opacity: 0.6;
}

.placeholder-card .highlight {
    color: var(--accent-color);
}

/* Experience Badges */
/* Experience Table */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.exp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.exp-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--accent-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.exp-table td {
    padding: 15px;
    border-bottom: 1px solid #222;
    vertical-align: top;
}

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

.exp-table .dates {
    width: 15%;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #888;
}

.exp-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Mobile Table (Stacking) */
@media (max-width: 768px) {

    .exp-table,
    .exp-table tbody,
    .exp-table tr,
    .exp-table td,
    .exp-table th {
        display: block;
        width: 100%;
    }

    .exp-table thead {
        display: none;
        /* Hide headers */
    }

    .exp-table tr {
        margin-bottom: 20px;
        border: 1px solid #333;
        border-radius: 8px;
        background: #0e0e0e;
        padding: 15px;
    }

    .exp-table td {
        padding: 5px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
    }

    .exp-table .role {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .exp-table .dates {
        margin-bottom: 10px;
        color: #666;
    }
}

/* Education & Skills */
.center-content {
    text-align: center;
}

.center-content .section-title {
    border-left: none;
    border-bottom: 4px solid var(--accent-color);
    display: inline-block;
    padding-left: 0;
    padding-bottom: 5px;
}

.edu-degree {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    font-weight: 600;
}

.lang-chips {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chip-sm {
    background: #222;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #ccc;
}

.tech-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

/* Shine Animation */
@keyframes shine-sweep {
    0% {
        background-position: 100% 0;
    }

    20% {
        background-position: -100% 0;
    }

    /* Swipe fast */
    100% {
        background-position: -100% 0;
    }

    /* Pause */
}

/* GitHub-style Tech Chips */
.tech {
    font-family: var(--font-main);
    color: var(--accent-color);
    background: linear-gradient(110deg, rgba(0, 240, 255, 0.05) 8%, rgba(0, 240, 255, 0.25) 18%, rgba(0, 240, 255, 0.05) 33%);
    background-size: 200% 100%;
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 6px 16px;
    border-radius: 2rem;
    /* Pill shape */
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    display: inline-flex;
    align-items: center;
    position: relative;
    /* For tooltip positioning */
    animation: shine-sweep 5s infinite linear;
}

.tech:hover {
    background-color: rgba(0, 240, 255, 0.15);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.1);
    color: #fff;
    z-index: 10;
}

/* Tech Tooltip Styles */
.tech::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    /* Position above chip */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-color);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    white-space: normal;
}

.tech:hover::before {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Arrow for tech tooltip */
.tech::after {
    content: '';
    position: absolute;
    bottom: 115%;
    /* Just below the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--accent-color) transparent transparent transparent;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tech:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Experience Table */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.exp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.exp-table th {
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid var(--accent-color);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.exp-table td {
    padding: 15px;
    border-bottom: 1px solid #222;
    vertical-align: top;
}

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

.exp-table .dates {
    width: 15%;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #888;
}

.exp-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Mobile Table (Stacking) */
@media (max-width: 768px) {

    .exp-table,
    .exp-table tbody,
    .exp-table tr,
    .exp-table td,
    .exp-table th {
        display: block;
        width: 100%;
    }

    .exp-table thead {
        display: none;
        /* Hide headers */
    }

    .exp-table tr {
        margin-bottom: 20px;
        border: 1px solid #333;
        border-radius: 8px;
        background: #0e0e0e;
        padding: 15px;
    }

    .exp-table td {
        padding: 5px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
    }

    .exp-table .role {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .exp-table .dates {
        margin-bottom: 10px;
        color: #666;
    }
}

.step-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.step-desc {
    color: var(--text-secondary);
}

.cta-big {
    display: block;
    width: fit-content;
    margin: 80px auto 0;
    /* More spacing on top */
    font-size: 1.5rem;
    padding: 20px 50px;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: #444;
    font-size: 0.9rem;
}


/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes glitch {
    0% {
        transform: translate(0)
    }

    20% {
        transform: translate(-2px, 2px)
    }

    40% {
        transform: translate(-2px, -2px)
    }

    60% {
        transform: translate(2px, 2px)
    }

    80% {
        transform: translate(2px, -2px)
    }

    100% {
        transform: translate(0)
    }
}

/* Mobile */
@media (max-width: 768px) {

    .glitch-text {
        font-size: 2.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
    }

    .cta-big {
        width: 100%;
        text-align: center;
    }

    .telemetry-console {
        display: none;
        /* Hide on small screens to save space */
    }
}

/* Telemetry Console */
.telemetry-console {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 290px;
    /* Slightly wider */
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid #333;
    border-left: 3px solid var(--accent-color);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s;
    border-radius: 4px;
}

.telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #222;
    padding-bottom: 4px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.telemetry-status {
    font-size: 0.6rem;
    color: #666;
    font-weight: normal;
    text-align: right;
}

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

.telemetry-body {
    display: flex;
    flex-wrap: wrap;
    /* Allow side-by-side */
    gap: 0;
    /* Tight spacing */
    row-gap: 8px;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    width: 50%;
    /* 2 items per row */
}

.telemetry-item.full-width {
    width: 100%;
    /* Full row */
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
    flex-direction: column;
    /* Stack label and value */
    align-items: flex-start;
    gap: 2px;
}

.telemetry-item.full-width .label {
    min-width: auto;
}

.telemetry-item .label {
    color: #555;
    margin-bottom: 2px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.telemetry-item .value {
    color: #ccc;
    font-weight: 600;
    font-size: 0.85rem;
}

.telemetry-item .value.highlight {
    color: var(--accent-color);
}

.telemetry-item .value.blink {
    animation: text-blink 0.5s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 1;
        box-shadow: 0 0 5px var(--accent-color);
    }

    50% {
        opacity: 0.3;
        box-shadow: 0 0 0 transparent;
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 5px var(--accent-color);
    }
}

@keyframes text-blink {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

.vector-display {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #555;
    background: #0a0a0a;
    padding: 2px 5px;
    border-radius: 2px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}