:root {
    --bg-color: #0d1117;
    --surface-color: #161b22;
    --surface-hover: #1f242e;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --pass-green: #10b981;
    --warn-yellow: #fbbf24;
    --fail-red: #ef4444;
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    --transition: all 0.3s ease;
}

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

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

x::selection {
    background: rgba(16, 185, 129, 0.3);
}

a { text-decoration: none; color: inherit; }

/* Utilities */
.text-green { color: var(--pass-green) !important; }
.badge {
    font-family: var(--font-code);
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    white-space: nowrap;
}
.badge.pass {
    color: var(--pass-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar .logo {
    font-family: var(--font-code);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pass-green);
    letter-spacing: -0.5px;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}
.nav-links a:not(.btn-primary):hover {
    color: var(--pass-green);
}
.btn-primary {
    background: var(--pass-green);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-primary:hover {
    background: #0ea573;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-secondary:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
}

/* Terminal Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 5%;
    position: relative;
    background: radial-gradient(circle at center, #161b22 0%, #0d1117 70%);
}
.terminal-wrapper {
    max-width: 900px;
    width: 100%;
}
.terminal-window {
    background: var(--surface-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}
.terminal-header {
    background: #090c10;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    border-bottom: 1px solid #21262d;
}
.terminal-header .btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-header .btn.red { background: #ff5f56; }
.terminal-header .btn.yellow { background: #ffbd2e; }
.terminal-header .btn.green { background: #27c93f; }
.terminal-header .title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: var(--text-primary);
    min-height: 200px;
    line-height: 1.7;
}
.terminal-line { margin-bottom: 0.5rem; }
.terminal-prompt { color: var(--pass-green); margin-right: 0.5rem; }
.terminal-cmd { color: var(--warn-yellow); }
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--text-primary);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-content {
    text-align: center;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero-content .highlight {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.card-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.card-icon {
    font-size: 2rem;
    color: var(--pass-green);
    margin-bottom: 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.card p {
    color: var(--text-secondary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}
.skill-category {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.cat-header h3 {
    font-family: var(--font-code);
    font-size: 1.1rem;
    color: #e2e8f0;
}
.cat-header .status-icon {
    color: var(--pass-green);
    font-size: 1.2rem;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tags span {
    background: rgba(255,255,255,0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-code);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.skill-category:hover .tags span {
    border-color: rgba(16, 185, 129, 0.4);
    color: var(--pass-green);
}

/* Pipeline Experience */
.pipeline-container {
    position: relative;
    padding-left: 2rem;
}
.pipeline-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
}
.pipeline-node {
    position: relative;
    margin-bottom: 3rem;
}
.pipeline-node:last-child { margin-bottom: 0; }
.node-indicator {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface-hover);
    border: 2px solid var(--text-secondary);
    z-index: 2;
    transform: translateX(-7px);
    transition: var(--transition);
}
.pipeline-node:hover .node-indicator,
.pipeline-node.active .node-indicator {
    border-color: var(--pass-green);
    background: var(--surface-color);
}
.pipeline-node.active .node-indicator {
    box-shadow: 0 0 10px var(--pass-green);
}
.pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    background: var(--pass-green);
    border-radius: 50%;
    animation: pulseAnim 2s infinite;
}
@keyframes pulseAnim {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.node-content {
    background: var(--surface-color);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.pipeline-node:hover .node-content {
    border-color: rgba(16, 185, 129, 0.3);
}
.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}
.job-header .role {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.job-header .company {
    font-size: 1rem;
    color: var(--warn-yellow);
    font-weight: 500;
}
.job-header .duration {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: var(--font-code);
}
.console-list {
    list-style: none;
}
.console-list li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-code);
    font-size: 0.9rem;
    position: relative;
}

/* Credentials */
.credential-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.cred-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.cred-icon {
    font-size: 2rem;
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
}
.cred-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.cred-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* Bugs */
.bug-tracker {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface-color);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1000;
    font-family: var(--font-code);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}
.bug-tracker i { color: var(--fail-red); }
.bug-tracker.complete i { color: var(--pass-green); }

.hidden-bug {
    position: absolute;
    font-size: 1.5rem;
    color: var(--fail-red);
    cursor: crosshair;
    z-index: 50;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: jitter 4s infinite alternate;
}
.hidden-bug:hover {
    opacity: 1;
    transform: scale(1.3);
}
.hidden-bug.squashed {
    pointer-events: none;
    color: var(--pass-green);
    animation: squashAnim 0.8s forwards;
}

@keyframes jitter {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5px, 5px) rotate(5deg); }
    50% { transform: translate(-5px, -2px) rotate(-5deg); }
    75% { transform: translate(2px, -5px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes squashAnim {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 4rem;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}
.footer-logo {
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.socials {
    display: flex;
    gap: 1rem;
}
.socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.socials a:hover {
    background: var(--pass-green);
    color: #fff;
    transform: translateY(-3px);
}

/* Floating Share Widget */
.share-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}
.share-fab-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.share-fab-label {
    background: rgba(22, 27, 34, 0.92);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.share-fab-label.visible {
    opacity: 1;
    transform: translateX(0);
}

.share-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.share-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6);
}
.share-fab.open {
    transform: rotate(45deg) scale(1.05);
}
.share-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}
.share-options.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.share-option {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.share-option:hover {
    transform: scale(1.15);
    border-color: var(--pass-green);
    color: var(--pass-green);
}
.share-option .fa-whatsapp:hover { color: #25D366; }
.share-option:has(.fa-whatsapp):hover { border-color: #25D366; color: #25D366; }
.share-option:has(.fa-linkedin-in):hover { border-color: #0A66C2; color: #0A66C2; }
.share-option:has(.fa-x-twitter):hover { border-color: #fff; color: #fff; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease;
}
.modal-content {
    background: var(--surface-color);
    margin: auto;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.close-btn {
    color: var(--text-secondary);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}
.close-btn:hover {
    color: var(--fail-red);
}
.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.modal-header h2 { font-size: 1.5rem; }
.modal-desc { margin-bottom: 2rem; color: var(--text-secondary); text-align: center; }

.ticket-form .form-group {
    margin-bottom: 1.5rem;
}
.ticket-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-code);
    color: var(--pass-green);
    font-size: 0.9rem;
}
.ticket-form input, .ticket-form textarea {
    width: 100%;
    background: #090c10;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 6px;
    font-family: var(--font-main);
    transition: var(--transition);
}
.ticket-form input:focus, .ticket-form textarea:focus {
    outline: none;
    border-color: var(--pass-green);
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
}
.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 0.8rem;
    cursor: pointer;
    border: none;
}
@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.fade-in-up {
    animation: fadeInUp 1s ease 1.5s forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(20px); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .job-header { flex-direction: column; gap: 0.5rem; }
    .nav-links a:not(.btn-primary) { display: none; }
    .skills-grid { grid-template-columns: 1fr; }
}
