/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-main: #090d16;
    --bg-card: rgba(15, 23, 42, 0.55);
    --bg-terminal: #0b0f19;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon Gradients */
    --neon-cyan: #06b6d4;
    --neon-purple: #8b5cf6;
    --neon-emerald: #10b981;
    --neon-rose: #f43f5e;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
    --grad-text: linear-gradient(90deg, #06b6d4 0%, #8b5cf6 50%, #10b981 100%);
    --grad-badge: linear-gradient(90deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    
    /* Borders & Shadow */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(6, 182, 212, 0.25);
    --shadow-glass: rgba(0, 0, 0, 0.3);
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* ==========================================================================
   BACKGROUND ANIMATION & BLOBS
   ========================================================================== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: floatBlob 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--neon-cyan);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: var(--neon-purple);
    bottom: -15%;
    right: -10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--neon-emerald);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    50% {
        transform: translate(40px, -60px) scale(1.1);
    }
    100% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(9, 13, 22, 0.85);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    font-family: var(--font-sans);
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-neon {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    border: 1px solid var(--neon-cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: var(--text-primary);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background: var(--grad-primary);
    border-color: transparent;
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.badge {
    background: var(--grad-badge);
    border: 1px solid var(--border-glass);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.05);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.typing-text {
    color: var(--neon-cyan);
    border-right: 2px solid var(--neon-cyan);
    animation: blinkCursor 0.75s step-end infinite;
    white-space: nowrap;
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-cyan); }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0.5rem 0 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--bg-main);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6, 182, 212, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--neon-purple);
}

.social-links-hero {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links-hero a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links-hero a:hover {
    color: var(--neon-cyan);
    transform: translateY(-3px) scale(1.15);
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   GLASSMORPHISM CARDS
   ========================================================================== */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-glass);
    transition: var(--transition);
}

.glass:hover {
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.1);
}

/* ==========================================================================
   TERMINAL CLI CONSOLE
   ========================================================================== */
.terminal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header {
    background: #141b2b;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.t-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.t-btn.close { background-color: var(--neon-rose); }
.t-btn.minimize { background-color: #eab308; }
.t-btn.maximize { background-color: var(--neon-emerald); }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.terminal-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.terminal-body {
    background-color: var(--bg-terminal);
    padding: 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.terminal-line {
    word-break: break-all;
    line-height: 1.5;
}

.terminal-welcome {
    color: var(--neon-purple);
    font-weight: bold;
}

.terminal-prompt {
    color: var(--neon-emerald);
    margin-right: 0.5rem;
    user-select: none;
}

.input-line {
    display: flex;
    align-items: center;
}

.input-line input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    flex: 1;
    width: 100%;
}

.text-cyan { color: var(--neon-cyan); }
.text-purple { color: var(--neon-purple); }
.text-green { color: var(--neon-emerald); }
.font-bold { font-weight: 700; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

/* Terminal output list layout */
.t-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.t-list li {
    margin-bottom: 0.25rem;
}

.t-header {
    color: var(--neon-cyan);
    margin-top: 0.5rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.2rem;
    display: inline-block;
}

/* ==========================================================================
   SKILLS SECTION & GRID
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-icon {
    font-size: 2rem;
    color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.1);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.skill-card:nth-child(2n) .skill-icon {
    color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.skill-card:nth-child(3n) .skill-icon {
    color: var(--neon-emerald);
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.5rem;
}

.skill-name {
    color: var(--text-secondary);
}

.skill-badge-level {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
}

.skill-badge-level.expert {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.skill-badge-level.intermediate {
    background: rgba(6, 182, 212, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 7px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--bg-main) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-marker {
    position: absolute;
    top: 8px;
    left: -2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
    z-index: 10;
}

.timeline-item:nth-child(2) .timeline-marker {
    border-color: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

.timeline-content {
    padding: 2.2rem;
}

.timeline-date {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.company-name {
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.badge-domain {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-summary {
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    font-style: italic;
}

.experience-bullets {
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.experience-bullets li {
    line-height: 1.5;
}

.experience-bullets strong {
    color: var(--text-primary);
}

/* ==========================================================================
   CREDENTIALS & EDUCATION
   ========================================================================== */
.grid-two-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.flex-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flex-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 0.75rem;
}

.justify-center {
    justify-content: flex-start;
}

/* Cert Items */
.cert-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.cert-icon {
    font-size: 1.8rem;
    color: var(--neon-purple);
    width: 45px;
    height: 45px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.cert-issuer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.1rem;
}

.cert-code {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    margin-top: 0.2rem;
}

/* Edu Items */
.edu-item {
    display: flex;
    gap: 1.2rem;
}

.edu-icon {
    font-size: 1.8rem;
    color: var(--neon-emerald);
    width: 45px;
    height: 45px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edu-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.edu-details h5 {
    color: var(--neon-cyan);
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 0.2rem;
}

.edu-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.edu-description {
    color: var(--text-secondary);
    margin-top: 0.8rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.contact-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
}

.contact-methods {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.contact-badge {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.contact-badge i {
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.contact-badge:hover {
    border-color: var(--neon-cyan);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
    transform: translateY(-3px);
}

.contact-badge:nth-child(2):hover {
    border-color: var(--neon-purple);
    background: rgba(139, 92, 246, 0.05);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.contact-badge:nth-child(2) i {
    color: var(--neon-purple);
}

.contact-badge:nth-child(3):hover {
    border-color: var(--neon-emerald);
    background: rgba(16, 185, 129, 0.05);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.contact-badge:nth-child(3) i {
    color: var(--neon-emerald);
}

.contact-footer {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 2rem;
    background: rgba(6, 9, 15, 0.9);
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-container p {
    color: var(--text-muted);
}

.footer-meta {
    font-size: 0.85rem;
}

.text-red {
    color: var(--neon-rose);
}

/* ==========================================================================
   PIPELINE STYLES
   ========================================================================== */
.pipeline-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.pipeline-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 1.5rem;
}

.pipeline-status-text {
    font-size: 1.1rem;
    font-weight: 600;
}

.status-badge {
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.idle {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.status-badge.running {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
    animation: pulse 1.5s infinite;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--neon-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.failed {
    background: rgba(244, 63, 94, 0.15);
    color: var(--neon-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* Visual Stages Grid */
.pipeline-visual-wrapper {
    overflow-x: auto;
    padding: 1.5rem 0.5rem;
}

.pipeline-stages {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 800px;
}

.stage-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pipeline-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    width: 140px;
    transition: var(--transition);
}

.stage-node {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-muted);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pipeline-stage h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.25rem;
    color: var(--text-primary);
}

.pipeline-stage p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stage-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
}

.stage-badge.pending {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
}

.stage-badge.active {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.stage-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--neon-emerald);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Stage status colors on node */
.pipeline-stage.active .stage-node {
    border-color: #eab308;
    color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
    transform: scale(1.08);
}

.pipeline-stage.success .stage-node {
    border-color: var(--neon-emerald);
    color: var(--neon-emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Connectors */
.pipeline-connector {
    flex-grow: 1;
    height: 4px;
    background: var(--border-glass);
    position: relative;
    border-radius: 2px;
    min-width: 40px;
    margin-top: 30.5px; /* Centers connector with 65px height stage circles */
}

.connector-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--neon-cyan);
    transition: width 0.1s linear;
}

.connector-progress.active {
    background: linear-gradient(to right, #eab308, var(--neon-purple));
    box-shadow: 0 0 8px #eab308;
}

.connector-progress.success {
    width: 100%;
    background: linear-gradient(to right, var(--neon-emerald), var(--neon-cyan));
    box-shadow: 0 0 8px var(--neon-emerald);
}

/* Pipeline logs styling */
.pipeline-logs-wrapper {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.pipeline-logs-header {
    background: #0f1626;
    padding: 0.6rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.logs-clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logs-clear-btn:hover {
    color: var(--neon-rose);
}

.pipeline-logs {
    background: #06090f;
    padding: 1.2rem;
    height: 180px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.log-row {
    line-height: 1.4;
    word-break: break-all;
}

.log-row.info { color: var(--text-secondary); }
.log-row.run { color: var(--neon-cyan); }
.log-row.success { color: var(--neon-emerald); }
.log-row.warning { color: #eab308; }
.log-row.err { color: var(--neon-rose); }

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.7rem; }
    .grid-two-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .nav-links {
        display: none; /* Mobile menu toggling */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 13, 22, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-glass);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.5rem; }
    .section-title { font-size: 2rem; }
    .timeline { padding-left: 1.5rem; }
    .timeline-content { padding: 1.5rem; }

    /* Visual Pipeline Mobile Overrides */
    .pipeline-stages {
        flex-direction: column;
        min-width: unset;
        gap: 1rem;
        align-items: stretch;
    }
    
    .pipeline-stage {
        width: 100%;
        flex-direction: row;
        text-align: left;
        gap: 1.2rem;
        padding: 0.5rem 1rem;
        align-items: center;
    }
    
    .stage-content {
        align-items: flex-start;
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .pipeline-stage h4 {
        margin-top: 0;
    }
    
    .pipeline-stage .stage-node {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    
    .pipeline-connector {
        width: 4px;
        height: 35px;
        min-height: 30px;
        flex-grow: 0;
        margin-left: 23px; /* Align with node center (50px/2 + padding shift) */
        margin-top: -0.5rem;
        margin-bottom: -0.5rem;
    }
    
    .connector-progress {
        width: 100%;
        height: 0%;
        background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-purple));
        transition: height 0.1s linear;
    }
    
    .connector-progress.success {
        height: 100%;
        background: linear-gradient(to bottom, var(--neon-emerald), var(--neon-cyan));
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.3rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; text-align: center; }
    .contact-badge { width: 100%; justify-content: center; }
}
