:root {
    --bg-dark: #05060d;
    --bg-panel: rgba(10, 12, 32, 0.85);
    --accent: #00ff85;
    --accent-2: #ff6ad5;
    --accent-3: #ffc857;
    --text-main: #f5f5f5;
    --muted: #94a3b8;
    --border: rgba(0, 255, 133, 0.2);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    --font-base: 'Space Grotesk', sans-serif;
        --font-heading: 'Space Grotesk', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background: radial-gradient(circle at top, #081226, #03040c 60%);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

#particles {
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    animation: drift 15s linear infinite;
    filter: saturate(1.2);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 133, 0.9);
    border-radius: 50%;
    opacity: 0.75;
        box-shadow: 0 0 12px rgba(0, 255, 133, 0.8);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.6); opacity: 0.2; }
    50% { transform: scale(1); opacity: 0.7; }
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-5%, -5%, 0); }
}

.retro-shell {
    position: relative;
    z-index: 1;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.retro-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.retro-hero .lead {
    max-width: 52ch;
}

.terminal-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(16px);
}

h1,
h2,
h3,
h4,
h5,
h6,
.terminal-card h1,
.terminal-card h2,
.terminal-card h3,
.experience-card h3,
.project-card h3,
.contact-card h2,
.section-heading h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.terminal-card ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-3);
}

.lead {
    color: var(--muted);
    font-size: 1rem;
}

.badge-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.status-pill {
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .status-pill:hover {
        background: linear-gradient(120deg, rgba(0, 255, 133, 0.25), rgba(255, 106, 213, 0.25));
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn.neon {
    background: var(--accent);
    border: none;
    color: #041b11;
    font-weight: 700;
    box-shadow: 0 0 20px rgba(0, 255, 133, 0.6);
}

.btn-outline-light {
    border-width: 2px;
}

.scoreboard {
    border-radius: 20px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(4, 12, 34, 0.95), rgba(14, 22, 48, 0.95));
    border: 1px solid rgba(0, 255, 133, 0.2);
    display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;
}

.linkedin-card .badge-base {
    /* background: rgba(255, 255, 255, 0.05); */
    border-radius: 16px;
    padding: 1rem;
}

.linkedin-card .eyebrow {
    letter-spacing: 3px;
}

.hero-linkedin {
    width: 100%;
}

.stat-list li {
    display: flex;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.stat-list i {
    color: var(--accent);
    font-size: 1.4rem;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-chip {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        cursor: pointer;
    }

    .social-chip:hover {
        background: linear-gradient(120deg, rgba(0, 255, 133, 0.2), rgba(255, 106, 213, 0.2));
        border-color: rgba(0, 255, 133, 0.6);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
        transform: translateY(-2px);
    }

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

    .skill-pills .pill {
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 999px;
        padding: 0.35rem 0.9rem;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text-main);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        cursor: pointer;
    }

    .skill-pills .pill:hover {
        background: linear-gradient(120deg, rgba(0, 255, 133, 0.25), rgba(255, 106, 213, 0.25));
        border-color: rgba(0, 255, 133, 0.6);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
        transform: translateY(-2px) scale(1.03);
}

.section-heading {
    margin-bottom: 2rem;
}

.section-heading span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-3);
}

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

.experience-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    background: rgba(6, 9, 24, 0.85);
}

.experience-card header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 255, 133, 0.15);
    border: 1px solid rgba(0, 255, 133, 0.5);
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}
.experience-card ul {
    margin-bottom: 1rem;
}

.experience-card li {
    margin-bottom: 0.4rem;
}

.meta {
    text-align: right;
    font-size: 0.8rem;
    color: var(--muted);
}

.tag-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-stack span {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        cursor: pointer;
    }

    .tag-stack span:hover {
        background: rgba(0, 255, 133, 0.18);
        border-color: rgba(0, 255, 133, 0.6);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px);
}

.project-card ul {
    margin-top: 1rem;
}

.linkedin-badge-wrapper {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.5rem;
}

.glass-modal {
    background: rgba(7, 9, 25, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.glass-modal .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.glass-modal .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(0, 255, 133, 0.15);
}

.glass-modal .alert {
    border: none;
    border-radius: 12px;
}
.contact-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 2rem;
}

.contact-text {
    flex: 1 1 280px;
}

.contact-form {
    flex: 1 1 340px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.contact-form .form-label {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 133, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .alert {
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
}

.chat-link-box {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.4);
}

.chat-link {
    color: var(--accent);
    text-decoration: none;
    word-break: break-all;
}

.chat-link:hover {
    text-decoration: underline;
}

.contact-actions {
    margin-bottom: 10px;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-meta p {
    margin-top: 10px;
    margin: 0;
    color: var(--muted);
}

.site-footer {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Chatbot */
.cat-chatbot {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.cat-toggle {
    background: var(--accent-2);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-size: 2rem;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
    cursor: pointer;
}

.cat-toggle .blip {
    position: absolute;
    top: -10px;
    left: -30px;
    background: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.7rem;
}

.chat-panel {
    width: 320px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-panel.active {
    display: flex;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.chat-messages {
    max-height: 260px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-bubble.bot {
    background: rgba(255, 255, 255, 0.08);
    align-self: flex-start;
}

.chat-bubble.user {
    background: var(--accent);
    color: #041b11;
    align-self: flex-end;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
}

.chat-input input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    padding: 0.4rem 0.9rem;
    color: var(--text-main);
}

.chat-input button {
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #041b11;
    padding: 0.4rem 1rem;
}

.chat-close {
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .scoreboard {
        margin-top: 1rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .cat-chatbot {
        right: 1rem;
        bottom: 1rem;
    }

    .chat-panel {
        width: 90vw;
    }
}
