/* ==========================================================================
   Design System & Styling for Deshraj Jogiya's Data Portfolio
   Theme: Cyber-Dark with Glassmorphism & Neon Accents
   ========================================================================== */

/* Color Tokens & Variables */
:root {
    --bg-dark: #070a13;
    --card-bg: rgba(13, 20, 38, 0.4);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon Gradients */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    
    --grad-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    --grad-accent: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-blue) 100%);
    --grad-amber: linear-gradient(135deg, var(--accent-amber) 0%, #ef4444 100%);
    
    /* Layout & Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --max-width-content: 1200px;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, .logo-text, .btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Floating Blurred Background Orbs */
.bg-orbs-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    animation: pulseOrbs 15s infinite alternate ease-in-out;
}

.orb-1 {
    top: 5%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-indigo);
}

.orb-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
    animation-delay: -5s;
}

.orb-3 {
    bottom: 5%;
    left: 20%;
    width: 450px;
    height: 450px;
    background: var(--accent-blue);
    animation-delay: -10s;
}

@keyframes pulseOrbs {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, 50px); }
}

/* Header & Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    background-color: rgba(7, 10, 19, 0.7);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    white-space: nowrap;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Main Content Wrapper */
.main-content {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 8rem 2rem 4rem 2rem;
}

/* Glassmorphic Cards Styling */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Buttons Utility */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-accent {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Badges Utility */
.badge {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.badge-accent {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Hero Section Styles */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0 6rem 0;
}

.hero-title {
    font-size: 3.25rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terminal-text {
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: var(--accent-emerald);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.console-prompt {
    color: var(--accent-purple);
    font-weight: bold;
    margin-right: 0.5rem;
}

.cursor {
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Professional Profile Card */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.profile-image-container {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-indigo);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.profile-details h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.profile-title {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Stats Counter Grid */
.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem 1.5rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

/* Projects Section Styles */
.projects-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

/* Projects Grid & Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.project-card.hidden {
    display: none;
}

/* Card Image Layout */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-image-wrapper:hover .card-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.image-overlay span {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-content {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card:hover {
    transform: translateY(-6px);
}

.card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-indigo);
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.tech-tags span {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 1rem;
}

.btn-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    background: transparent;
    border: none;
}

.btn-link:hover {
    color: var(--accent-indigo);
    text-decoration: underline;
    background: transparent;
}

/* Skills Section Styles */
.skills-section {
    padding: 6rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    padding: 2.25rem 2rem;
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
}

.skill-category li::before {
    content: "⚡";
    margin-right: 0.65rem;
    font-size: 0.8rem;
    color: var(--accent-indigo);
}

/* Contact Section Styles */
.contact-section {
    padding: 6rem 0;
    display: flex;
    justify-content: center;
}

.contact-card {
    padding: 4rem 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.contact-info-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-icon {
    font-size: 1.4rem;
}

.info-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
}

.info-item a:hover {
    color: var(--accent-indigo);
}

/* Interactive Dashboard Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 13, 0.85);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 1000px;
    width: 90%;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    color: var(--text-primary);
}

.modal-image-container {
    width: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-caption h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-caption p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer Section */
.footer-bar {
    border-top: 1px solid var(--card-border);
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: rgba(7, 10, 19, 0.5);
}

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

/* Responsive Media Queries (Mobile First) */

@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .quick-stats-grid {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding-top: 6rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* simple mobile nav override */
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   Added Styles for Theme Toggle, Contact, Timeline, Resume & Widgets
   ========================================================================== */

/* Light Theme Variables & Overrides */
body.light-theme {
    --bg-dark: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

body.light-theme .logo-text {
    background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .navbar {
    background-color: rgba(248, 250, 252, 0.8);
}

body.light-theme .terminal-text {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.light-theme .profile-card {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .stat-number {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .tech-tags span {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

body.light-theme .filter-btn {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .filter-btn:hover, body.light-theme .filter-btn.active {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .bg-orb {
    opacity: 0.08;
}

body.light-theme .modal-overlay {
    background-color: rgba(5, 7, 13, 0.6);
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.1);
}

/* Contact Grid and Form Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    width: 100%;
}

.contact-details-card, .contact-form-card {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details-card h2, .contact-form-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-icon {
    font-size: 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.info-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.info-item a:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-input {
    resize: none;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    font-weight: 600;
}

.form-result-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.form-result-text.success {
    color: var(--accent-emerald);
}

.form-result-text.error {
    color: #ef4444;
}

body.light-theme .form-input {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

body.light-theme .form-input:focus {
    background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Learning Logs Timeline */
.learning-section {
    padding: 6rem 0;
}

.learning-feed {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(99, 102, 241, 0.2);
}

.learning-item {
    position: relative;
    margin-bottom: 3rem;
    transition: var(--transition-smooth);
}

.learning-item::before {
    content: "";
    position: absolute;
    left: calc(-2rem - 6px);
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-indigo);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    transition: var(--transition-smooth);
}

.learning-item:hover::before {
    transform: scale(1.3);
    background: var(--accent-emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.8);
}

.learning-card {
    padding: 2rem;
}

.learning-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.learning-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.learning-takeaways {
    list-style: none;
}

.learning-takeaways li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
    position: relative;
    padding-left: 1.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

.learning-takeaways li::before {
    content: "▹";
    color: var(--accent-indigo);
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-weight: bold;
}

.learning-takeaways li code {
    word-break: break-all !important;
}

.learning-loading {
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-indigo);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.light-theme .learning-feed {
    border-left-color: rgba(99, 102, 241, 0.15);
}

body.light-theme .learning-item::before {
    border-color: var(--bg-dark);
}

/* Resume Modal and Paper Sheet Styling */
.resume-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.resume-modal-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.resume-modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.resume-modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.close-resume-btn {
    position: static;
    font-size: 1.75rem;
    color: var(--text-secondary);
}

.resume-paper {
    padding: 3rem;
    overflow-y: auto;
    background-color: #0b0f19;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    flex: 1;
    min-height: 0;
}

.resume-header-block {
    text-align: center;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.resume-header-block h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.resume-sub {
    font-size: 1.05rem;
    color: #818cf8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.resume-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.resume-meta a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.resume-meta a:hover {
    text-decoration: underline;
    color: #818cf8;
}

.resume-body-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.resume-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    border-bottom: 1.5px solid #1e293b;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.resume-skill-group {
    margin-bottom: 1.25rem;
}

.resume-skill-group h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.resume-skill-group p {
    font-size: 0.85rem;
    color: #94a3b8;
}

.resume-edu-item {
    margin-bottom: 1.25rem;
}

.resume-edu-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.resume-edu-inst {
    font-size: 0.85rem;
    font-weight: 600;
    color: #818cf8;
}

.resume-edu-date {
    font-size: 0.8rem;
    color: #64748b;
}

.resume-job-item {
    margin-bottom: 1.5rem;
}

.resume-job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.resume-job-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.resume-job-header span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
}

.resume-job-company {
    font-size: 0.85rem;
    font-weight: 600;
    color: #818cf8;
    margin-bottom: 0.5rem;
}

.resume-job-item ul {
    list-style: square;
    padding-left: 1.25rem;
}

.resume-job-item li {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
    .resume-body-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .resume-paper {
        padding: 1.5rem;
    }
}

/* Print Stylesheet Override */
@media print {
    body > *:not(#resume-modal) {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
        background-color: #fff !important;
        overflow: visible !important;
        height: auto !important;
    }
    #resume-modal {
        position: relative !important;
        display: block !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        background: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    .resume-modal-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        border: none !important;
        background: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        padding: 0 !important;
    }
    .resume-modal-header {
        display: none !important;
    }
    .resume-paper {
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
        color: #000 !important;
    }

    /* Force high-contrast dark text and reset highlights/dimming for all elements on print */
    .resume-header-block h1,
    .resume-section-title,
    .resume-skill-group h3,
    .resume-edu-item h4,
    .resume-job-header h4 {
        color: #000000 !important;
    }
    
    .resume-sub {
        color: #4f46e5 !important; /* Professional dark blue/indigo color for subheadings */
    }
    
    .resume-meta,
    .resume-meta a,
    .resume-skill-group p,
    .resume-edu-inst,
    .resume-edu-date,
    .resume-job-company,
    .resume-job-item li,
    .resume-bullet {
        color: #222222 !important;
        opacity: 1 !important;
        background: none !important;
        border: none !important;
        padding-left: 0 !important;
    }

    .resume-job-header span {
        color: #475569 !important; /* Clear dark grey for dates */
    }
    
    .resume-job-item ul {
        list-style: square !important;
        padding-left: 1.25rem !important;
    }
}

/* ==========================================================================
   Observability Widget & SQL Playground Styles
   ========================================================================== */

/* Observability Widget */
.observability-widget {
    margin-top: 3rem;
    padding: 2.25rem 2rem;
}

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

.obs-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.obs-status {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.obs-status.idle {
    color: var(--text-muted);
}

.obs-status.running {
    color: var(--accent-emerald);
}

.obs-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

.obs-pulse.active {
    animation: obsPulse 1s infinite alternate;
}

@keyframes obsPulse {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.obs-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.obs-console {
    background-color: #030712;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.6);
}

.obs-log {
    line-height: 1.4;
    word-break: break-all;
    opacity: 0.85;
}

.obs-log.info {
    color: #94a3b8;
}

.obs-log.success {
    color: var(--accent-emerald);
}

.obs-log.warn {
    color: var(--accent-amber);
}

.obs-log.error {
    color: #ef4444;
}

.obs-metrics-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.obs-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    width: 100%;
}
@media (max-width: 992px) {
    .obs-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .obs-metrics-grid {
        grid-template-columns: 1fr;
    }
}

.obs-metric-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    text-align: center;
}

.obs-metric-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.obs-metric-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.obs-actions {
    display: flex;
    gap: 1rem;
}

.btn-obs-run {
    width: 100%;
    font-weight: 600;
}

body.light-theme .obs-console {
    background-color: #0f172a;
}

/* obs-content is now flex column by default */

/* SQL Playground */
.sql-widget {
    margin-top: 3rem;
    padding: 2.25rem 2rem;
}

.sql-header {
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.sql-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.sql-selector-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.sql-select {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.sql-select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.sql-editor-container {
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    white-space: pre;
    color: #a5b4fc;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.sql-keyword { color: #f472b6; font-weight: bold; }
.sql-table { color: #60a5fa; }
.sql-string { color: #34d399; }
.sql-number { color: #fbbf24; }

.sql-btn-run {
    font-weight: 600;
}

.sql-results-panel {
    margin-top: 1.5rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.sql-results-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sql-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.sql-table-data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.sql-table-data th {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sql-table-data td {
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sql-table-data tr:last-child td {
    border-bottom: none;
}

body.light-theme .sql-select {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

body.light-theme .sql-editor-container {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
    color: #4338ca;
}

body.light-theme .sql-table-container {
    border-color: rgba(0, 0, 0, 0.08);
    background: #fff;
}

body.light-theme .sql-table-data th {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Navbar Resume Button */
.btn-resume-nav {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
}

.btn-resume-nav:hover {
    background: var(--accent-indigo);
    color: #fff;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

body.light-theme .btn-resume-nav {
    background: rgba(99, 102, 241, 0.05);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.25);
}

body.light-theme .btn-resume-nav:hover {
    background: var(--accent-indigo);
    color: #fff;
}

/* ==========================================================================
   Mobile Responsive Navigation & Hamburger Override
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(7, 10, 19, 0.98);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--card-border);
        padding: 6rem 2rem 2rem 2rem;
        gap: 2rem;
        z-index: 105;
        transition: var(--transition-smooth);
    }
    
    .nav-links.mobile-active {
        right: 0;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ==========================================================================
   SQL Analytics Recruiter Insights Card
   ========================================================================== */
.recruiter-insights-card {
    background: rgba(16, 185, 129, 0.02);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: var(--transition-smooth);
}

.recruiter-insight-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-emerald);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recruiter-insight-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.recruiter-insight-takeaway {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}

body.light-theme .recruiter-insights-card {
    background: rgba(16, 185, 129, 0.01);
    border-color: rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   Observability Pipeline Node Flow Diagram
   ========================================================================== */
.pipeline-flow-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
}

.pipeline-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.pipeline-node-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    width: 80px;
}

.pipeline-node-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #111827;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.pipeline-node-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.pipeline-line {
    position: absolute;
    top: 24px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--text-muted);
    opacity: 0.3;
    z-index: 1;
}

.pipeline-progress-line {
    position: absolute;
    top: 24px;
    left: 40px;
    width: 0%;
    height: 2px;
    background: var(--grad-primary);
    box-shadow: 0 0 8px var(--accent-indigo);
    z-index: 1;
    transition: width 0.3s ease;
}

.pipeline-node-item.active .pipeline-node-icon {
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    transform: scale(1.1);
    animation: nodePulse 1.5s infinite alternate;
}

.pipeline-node-item.active .pipeline-node-label {
    color: var(--accent-blue);
}

.pipeline-node-item.success .pipeline-node-icon {
    border-color: var(--accent-emerald);
    color: #fff;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.pipeline-node-item.success .pipeline-node-label {
    color: var(--accent-emerald);
}

.pipeline-node-item.warning .pipeline-node-icon {
    border-color: var(--accent-amber);
    color: #fff;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.pipeline-node-item.warning .pipeline-node-label {
    color: var(--accent-amber);
}

body.light-theme .pipeline-flow-container {
    background: rgba(0, 0, 0, 0.02);
}

body.light-theme .pipeline-node-icon {
    background: #f3f4f6;
}

@keyframes nodePulse {
    0% { transform: scale(1.1); box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
    100% { transform: scale(1.15); box-shadow: 0 0 20px rgba(59, 130, 246, 0.7); }
}

/* ==========================================================================
   Experience Showcase Section
   ========================================================================== */
.experience-section {
    padding: 4rem 0;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2rem;
}

.experience-card {
    padding: 1.75rem 2rem;
    border-radius: var(--border-radius-lg);
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

.experience-title-area {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.experience-role {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.experience-company {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent-blue);
}

.experience-date {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-secondary);
}

.experience-bullets {
    margin: 0 0 1.25rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

.experience-bullets li {
    margin-bottom: 0.6rem;
}

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

body.light-theme .experience-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .experience-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

body.light-theme .experience-date {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Live Visitor Analytics & ML Forecast Widget
   ========================================================================== */
.visitor-widget {
    margin-bottom: 2rem;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
}

.visitor-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.visitor-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.visitor-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.visitor-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
}

.visitor-forecast-box {
    background: rgba(99, 102, 241, 0.04);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--border-radius-md);
    padding: 0.85rem;
    margin-top: 0.85rem;
    text-align: center;
}

.visitor-forecast-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    margin: 0.15rem 0;
}

.visitor-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.visitor-progress-fill {
    height: 100%;
    background: var(--grad-primary);
    width: 0%;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light-theme .visitor-stats-row {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .visitor-location-badge {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .visitor-forecast-box {
    background: rgba(99, 102, 241, 0.02);
}

/* ==========================================================================
   Multi-Column Sticky Layout (Desktop Grid & Sidebar)
   ========================================================================== */
@media (min-width: 1025px) {
    .portfolio-layout {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 2.5rem;
        align-items: start;
    }
    
    .portfolio-sidebar {
        position: sticky;
        top: 100px;
    }
}

/* ==========================================================================
   Interactive Resume Filters & Highlights
   ========================================================================== */
.resume-modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.resume-filters {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.resume-filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.resume-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.resume-filter-btn.active {
    background: var(--grad-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.resume-bullet {
    transition: all 0.25s ease-in-out;
    position: relative;
}

.resume-bullet.highlighted-de {
    background: rgba(59, 130, 246, 0.15) !important;
    border-left: 3px solid #3b82f6 !important;
    padding-left: 0.5rem !important;
    color: #60a5fa !important;
    opacity: 1 !important;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.resume-bullet.highlighted-ds {
    background: rgba(139, 92, 246, 0.15) !important;
    border-left: 3px solid #8b5cf6 !important;
    padding-left: 0.5rem !important;
    color: #c084fc !important;
    opacity: 1 !important;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.resume-bullet.highlighted-sde {
    background: rgba(16, 185, 129, 0.15) !important;
    border-left: 3px solid #10b981 !important;
    padding-left: 0.5rem !important;
    color: #34d399 !important;
    opacity: 1 !important;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.resume-bullet.dimmed {
    opacity: 0.55 !important;
}

/* Light Theme Overrides for Resume Filters & Paper */
body.light-theme .resume-paper {
    background-color: #ffffff;
    color: #1e293b;
}

body.light-theme .resume-header-block {
    border-bottom-color: #e2e8f0;
}

body.light-theme .resume-header-block h1 {
    color: #0f172a;
}

body.light-theme .resume-sub {
    color: #4f46e5;
}

body.light-theme .resume-meta {
    color: #64748b;
}

body.light-theme .resume-meta a {
    color: #475569;
}

body.light-theme .resume-meta a:hover {
    color: #4f46e5;
}

body.light-theme .resume-section-title {
    color: #0f172a;
    border-bottom-color: #cbd5e1;
}

body.light-theme .resume-skill-group h3 {
    color: #334155;
}

body.light-theme .resume-skill-group p {
    color: #475569;
}

body.light-theme .resume-edu-item h4 {
    color: #0f172a;
}

body.light-theme .resume-edu-inst {
    color: #4f46e5;
}

body.light-theme .resume-edu-date {
    color: #64748b;
}

body.light-theme .resume-job-header h4 {
    color: #0f172a;
}

body.light-theme .resume-job-header span {
    color: #475569;
}

body.light-theme .resume-job-company {
    color: #4f46e5;
}

body.light-theme .resume-job-item li {
    color: #334155;
}

body.light-theme .resume-filters {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .resume-filter-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}

body.light-theme .resume-filter-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

body.light-theme .resume-filter-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

body.light-theme .resume-bullet.highlighted-de {
    background: rgba(37, 99, 235, 0.05) !important;
    border-left-color: #2563eb !important;
    color: #1e293b !important;
}

body.light-theme .resume-bullet.highlighted-ds {
    background: rgba(124, 58, 237, 0.05) !important;
    border-left-color: #7c3aed !important;
    color: #1e293b !important;
}

body.light-theme .resume-bullet.highlighted-sde {
    background: rgba(5, 150, 105, 0.05) !important;
    border-left-color: #059669 !important;
    color: #1e293b !important;
}

/* ==========================================================================
   Resume AI Chatbot Widget (RAG Simulation)
   ========================================================================== */
.ai-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 10100;
    font-family: 'Inter', sans-serif;
}

.chat-launcher-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--grad-primary);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    transition: var(--transition-smooth);
    position: relative;
}

.chat-launcher-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
}

.launcher-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    border: 2px solid rgba(99, 102, 241, 0.5);
    animation: launcherPulse 2s infinite;
}

@keyframes launcherPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.15); opacity: 0; }
}

.chat-container {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

.chat-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.chat-avatar {
    font-size: 1.5rem;
}

.chat-bot-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    display: inline-block;
}

.close-chat-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.close-chat-btn:hover {
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 240px;
    background: rgba(7, 10, 19, 0.4);
}

.chat-msg {
    max-width: 80%;
    padding: 0.65rem 0.85rem;
    border-radius: 15px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.bot-msg {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-msg {
    background: var(--grad-primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.chat-suggestions {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0,0,0,0.1);
    white-space: nowrap;
    scrollbar-width: none;
}

.chat-suggestions::-webkit-scrollbar {
    display: none;
}

.chat-suggest-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    font-size: 0.72rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-suggest-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.chat-form {
    display: flex;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.01);
}

.chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.55rem 0.85rem;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.chat-send-btn {
    background: var(--grad-primary);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chat-send-btn:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

/* Light Theme Overrides for Chatbot */
body.light-theme .chat-container {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
body.light-theme .chat-messages {
    background: rgba(248, 250, 252, 0.95);
}
body.light-theme .bot-msg {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: #334155;
}
body.light-theme .chat-suggestions {
    background: rgba(241, 245, 249, 0.8);
    border-top-color: rgba(0,0,0,0.05);
}
body.light-theme .chat-suggest-btn {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
    color: #475569;
}
body.light-theme .chat-suggest-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #0f172a;
}
body.light-theme .chat-form {
    border-top-color: rgba(0,0,0,0.06);
    background: #fff;
}
body.light-theme .chat-input {
    background: rgba(241, 245, 249, 0.7);
    border-color: rgba(0,0,0,0.08);
    color: #0f172a;
}

/* Typing Indicator Animation */
.typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 10px;
}
.typing-dots span {
    width: 5px;
    height: 5px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typingPulse 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.architecture-widget {
    margin-top: 3rem;
    padding: 2.25rem 2rem;
    width: 100%;
    min-width: 0;
}

.arch-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.arch-diagram-card, .arch-info-pane {
    min-width: 0;
    width: 100%;
}

.arch-tab-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}
.arch-tab-btn:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}
.arch-tab-btn.active {
    background: var(--grad-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

#arch-tour-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}
#arch-tour-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

body.light-theme #arch-tour-btn {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
    color: #047857;
}
body.light-theme #arch-tour-btn:hover {
    background: rgba(16, 185, 129, 0.1);
}

.arch-node-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
    min-width: 70px;
}
.arch-node-item:hover {
    transform: translateY(-3px);
}
.arch-node-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
}
.arch-node-item.active .arch-node-circle {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3), inset 0 0 8px rgba(139, 92, 246, 0.1);
}
.arch-node-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    text-align: center;
    transition: var(--transition-smooth);
}
.arch-node-item.active .arch-node-lbl {
    color: var(--text-primary);
}

/* Connector wires */
.arch-connector {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.08);
    position: relative;
    z-index: 1;
    min-width: 30px;
}
.arch-connector.active {
    background: var(--grad-primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

body.light-theme .arch-tab-btn {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
    color: #475569;
}
body.light-theme .arch-tab-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #0f172a;
}
body.light-theme .arch-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border: none;
}
body.light-theme .arch-node-circle {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
body.light-theme .arch-node-item.active .arch-node-circle {
    background: rgba(79, 70, 229, 0.05);
    border-color: #4f46e5;
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.2);
}
body.light-theme .arch-connector {
    background: rgba(0,0,0,0.06);
}
body.light-theme .arch-connector.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* ==========================================================================
   Data QA & Validation Report widgets
   ========================================================================== */
.obs-tab-nav {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem;
    border-radius: 30px;
    gap: 0.25rem;
    margin-bottom: 1rem;
}
.obs-tab-btn {
    background: transparent;
    border: none !important;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.obs-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.obs-tab-btn.active {
    background: var(--grad-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

body.light-theme .obs-tab-nav {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}
body.light-theme .obs-tab-btn {
    background: transparent;
    color: #475569;
}
body.light-theme .obs-tab-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
}
body.light-theme .obs-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.qa-rule-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.65rem 0.5rem;
    transition: var(--transition-smooth);
}
.qa-rule-item:last-child {
    border-bottom: none;
}
.qa-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.qa-rule-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}
.qa-rule-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}
.qa-badge-pass {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}
.qa-badge-warn {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-amber);
}
.qa-rule-details {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 0.5rem;
    border-radius: 4px;
    overflow-x: auto;
}

body.light-theme .qa-rule-item {
    border-bottom-color: rgba(0,0,0,0.04);
}
body.light-theme .qa-rule-details {
    background: rgba(0,0,0,0.03);
}

/* ==========================================================================
   ML Metrics sliders & confusion matrix styles
   ========================================================================== */
.threshold-badge {
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.matrix-cell {
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

body.light-theme .ml-modal-tabs button {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.06);
    color: #475569;
}
body.light-theme .ml-modal-tabs button.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
}
body.light-theme .ml-controls-card {
    background: rgba(0,0,0,0.01);
    border-color: rgba(0,0,0,0.06);
}
body.light-theme .confusion-matrix-card {
    background: rgba(0,0,0,0.01);
    border-color: rgba(0,0,0,0.06);
}
body.light-theme .matrix-cell {
    background: rgba(0,0,0,0.02) !important;
    border-color: rgba(0,0,0,0.04);
    color: #334155;
}
body.light-theme #cell-tp {
    background: rgba(16, 185, 129, 0.05) !important;
}
body.light-theme #cell-fp, body.light-theme #cell-fn {
    background: rgba(239, 68, 68, 0.05) !important;
}
body.light-theme .curve-block {
    background: rgba(0,0,0,0.02) !important;
    border-color: rgba(0,0,0,0.06);
}

/* Slider Track Customization */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}
input[type=range]:focus {
    outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
body.light-theme input[type=range]::-webkit-slider-runnable-track {
    background: rgba(0, 0, 0, 0.08);
}
input[type=range]::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #8b5cf6;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -5px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}
body.light-theme input[type=range]::-webkit-slider-thumb {
    background: #4f46e5;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.3);
}

/* Responsive fixes for new columns */
@media (max-width: 768px) {
    .ml-metrics-details-row {
        grid-template-columns: 1fr !important;
    }
    .curves-wrapper {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* Chatbot responsive design for mobile */
@media (max-width: 480px) {
    .ai-chat-widget {
        right: 15px;
        bottom: 15px;
    }
    .chat-container {
        width: calc(100vw - 30px);
        max-width: 360px;
    }
}

/* ==========================================================================
   Recruiter Guided Tour & D.S./ML Experiments Styles
   ========================================================================== */

/* Navbar Tour Button */
.btn-tour-nav {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    padding: 0.4rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}
.btn-tour-nav:hover {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    transform: translateY(-1px);
}
body.light-theme .btn-tour-nav {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

/* Hero Tour Button */
.btn-tour-hero {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
    animation: tour-pulse 2s infinite alternate;
}
.btn-tour-hero:hover {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.7);
    transform: translateY(-2px);
}
@keyframes tour-pulse {
    0% {
        box-shadow: 0 0 8px rgba(139, 92, 246, 0.4), 0 0 0 0px rgba(139, 92, 246, 0.2);
    }
    100% {
        box-shadow: 0 0 16px rgba(236, 72, 153, 0.6), 0 0 0 6px rgba(236, 72, 153, 0);
    }
}

/* Tour Backdrop */
.tour-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.35); /* soft dark slate tint */
    z-index: 100000; /* lower than highlighted items but above standard elements */
    backdrop-filter: blur(1.5px);
    transition: opacity 0.3s ease;
}

/* Tour Overlay Card */
.tour-overlay-card {
    position: fixed;
    bottom: 2rem;
    left: 2rem; /* placed at bottom-left to avoid blocking center contents */
    width: 380px;
    max-width: calc(100vw - 4rem);
    padding: 1.5rem;
    z-index: 100005; /* higher than highlighted items */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
    .tour-overlay-card {
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        bottom: 1rem;
    }
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tour-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tour-step-indicator {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tour-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.tour-step-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

body.light-theme .tour-overlay-card {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
body.light-theme .tour-step-title {
    color: #0f172a;
}

/* Tour Highlight outline and glow */
.tour-highlight {
    position: relative !important;
    z-index: 100003 !important; /* sits on top of backdrop but behind tour card */
    outline: 3px solid #8b5cf6 !important;
    outline-offset: 4px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.8) !important;
    transition: all 0.3s ease-in-out;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Ensure the background becomes opaque so the blurred backdrop from behind doesn't show through */
.glass-card.tour-highlight {
    background: rgba(15, 23, 42, 0.95) !important;
}

body.light-theme .glass-card.tour-highlight {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Special overrides for modal overlay highlighting */
.modal-overlay.tour-highlight {
    z-index: 100003 !important;
    box-shadow: none !important;
    outline: none !important;
    position: fixed !important;
}

/* D.S. & ML Experiments Widget Styling */
#ab-testing-widget, #threshold-widget {
    padding: 1.75rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.confusion-table th, .confusion-table td {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .confusion-table th, body.light-theme .confusion-table td {
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #334155;
}

body.light-theme #ab-a-cr, body.light-theme #ab-b-cr, body.light-theme #val-precision, body.light-theme #val-recall, body.light-theme #val-net-profit {
    color: #0f172a !important;
}

body.light-theme .ab-stats-output, body.light-theme .profit-calculator {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .ab-result-card {
    background: rgba(0, 0, 0, 0.01) !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
}

.badge-status-neutral {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
body.light-theme .badge-status-neutral {
    background: rgba(0, 0, 0, 0.05);
    color: #475569;
    border-color: rgba(0, 0, 0, 0.1);
}

.badge-status-sig {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status-not-sig {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Elevate any containers containing a tour-highlight to make sure they render above the backdrop */
section:has(.tour-highlight),
div:has(.tour-highlight):not(.ai-chat-widget):not(.modal-overlay):not(.visitor-analytics-widget) {
    z-index: 100002 !important;
    position: relative !important;
}

/* Tour Skip button styles to prevent white box on hover in dark mode */
#tour-skip-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--text-secondary) !important;
    cursor: pointer;
    text-decoration: none !important;
}
#tour-skip-btn:hover {
    color: var(--accent-indigo, #6366f1) !important;
    background: transparent !important;
    text-decoration: underline !important;
    box-shadow: none !important;
}

/* Responsive horizontal layout for the full-width visitor analytics widget */
.visitor-widget-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr;
    gap: 1.75rem;
    align-items: stretch;
    margin-top: 1.25rem;
}

.visitor-widget-layout .visitor-forecast-box {
    margin-top: 0;
}

@media (max-width: 768px) {
    .visitor-widget-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* Responsive grid layouts for simulator inputs and results to prevent mobile clipping */
.ab-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.ab-results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.threshold-metrics-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

/* Architecture Explorer visual flow input-process-output grid */
.arch-visual-flow {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
    text-align: center;
}

@media (max-width: 768px) {
    .ab-inputs-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .ab-results-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .threshold-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sql-editor-container {
        font-size: 0.8rem !important;
        white-space: pre !important;
        overflow-x: auto !important;
    }
    
    /* Stack Architecture Visual Flow at 768px instead of 576px */
    .arch-visual-flow {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    .arch-visual-flow .arrow-symbol {
        transform: rotate(90deg) !important;
        margin: 0.25rem 0 !important;
        display: inline-block !important;
    }
    .arch-visual-flow div {
        margin: 0 auto;
        width: 100%;
    }
    
    /* Collapse AI Chatbot launcher button to a clean circle on screens <= 768px */
    .chat-launcher-btn {
        padding: 0.75rem !important;
        border-radius: 50% !important;
        width: 48px !important;
        height: 48px !important;
        justify-content: center !important;
    }
    .chat-launcher-btn .launcher-text {
        display: none !important;
    }

    /* TIL section responsive padding to prevent viewport overflow */
    .learning-feed {
        padding-left: 1.25rem !important;
    }
    .learning-item::before {
        left: calc(-1.25rem - 6px) !important;
    }
    .learning-card {
        padding: 1.25rem !important;
    }
    
    /* Hero section actions wrap */
    .hero-actions {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    .architecture-widget {
        padding: 1.25rem 1rem !important;
        margin-top: 1.5rem !important;
    }

    /* Reduce Explorer card paddings on mobile/tablet and prevent overflow */
    .arch-diagram-card, .arch-info-pane {
        padding: 1rem !important;
        min-width: 0 !important;
    }
}

@media (max-width: 576px) {
    /* SQL Query selector block stacking on small screens */
    .sql-selector-group {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    .sql-btn-run {
        width: 100% !important;
        text-align: center !important;
    }

    /* Hero section actions vertical stacking on mobile */
    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }
    .hero-actions .btn, .hero-actions button {
        width: 100% !important;
        text-align: center !important;
        margin-right: 0 !important;
    }
    
    /* Further compact TIL section on very small mobile screens */
    .learning-feed {
        padding-left: 1rem !important;
    }
    .learning-item::before {
        left: calc(-1rem - 6px) !important;
    }
    .learning-card {
        padding: 1rem !important;
    }

    /* Stack Data Pipeline Explorer tabs on mobile */
    .arch-tabs {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }
    .arch-tab-btn {
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important; /* Allow text wrapping */
    }
    #arch-tour-btn {
        width: 100% !important;
        text-align: center !important;
        white-space: normal !important;
    }
}

/* Mobile Visitor Section */
.mobile-visitor-only {
    display: none;
    margin: 3rem 0;
}

@media (max-width: 991px) {
    .mobile-visitor-only {
        display: block !important;
    }
    
    /* Style the visitor container when it is portaled to the page flow on mobile */
    #mobile-visitor-section .visitor-container {
        position: static !important;
        width: 100% !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column;
        border-radius: var(--border-radius-lg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        max-height: none !important; /* let it expand naturally */
    }
    
    #mobile-visitor-section .close-visitor-btn {
        display: none !important; /* Hide close button on mobile embedded layout */
    }
}

/* ==========================================================================
   Live Visitor Analytics Floating Widget Styling (Adaptive Panel)
   ========================================================================== */
.visitor-analytics-widget {
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* 1. Gutter Mode (Widescreen monitors: >= 1600px) */
@media (min-width: 1600px) {
    .visitor-analytics-widget {
        position: fixed;
        top: 120px;
        /* Positioned inside the outer viewport right margin, completely clear of content */
        right: 40px;
        width: 320px;
    }
    
    .ai-chat-widget {
        right: 390px !important;
    }
    
    .visitor-launcher-btn {
        display: none !important; /* Panel is always fully visible */
    }
    
    .visitor-container {
        position: static !important;
        width: 100% !important;
        max-height: 580px;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column;
        border-radius: var(--border-radius-lg);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    /* Hide the close button since it is always open in gutter mode */
    .close-visitor-btn {
        display: none !important;
    }
}

/* 2. Collapsed Tab Mode (Laptops/Medium screens: 992px to 1599px) */
@media (min-width: 992px) and (max-width: 1599px) {
    .visitor-analytics-widget {
        position: fixed;
        top: 180px; /* Positioned below navbar/scroll path */
        right: 0;
    }
    
    .visitor-launcher-btn {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        background: var(--grad-accent);
        border: none;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        padding: 1.1rem 0.6rem;
        color: #fff;
        cursor: pointer;
        box-shadow: -4px 0 15px rgba(16, 185, 129, 0.3);
        transition: var(--transition-smooth);
        width: 45px;
        position: relative;
    }
    
    .visitor-launcher-btn:hover {
        transform: translateX(-3px);
        box-shadow: -6px 0 20px rgba(16, 185, 129, 0.4);
    }
    
    .launcher-text-vertical {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        font-size: 0.72rem;
        font-weight: 750;
        letter-spacing: 0.12em;
        margin-top: 0.25rem;
        text-transform: uppercase;
    }
    
    .visitor-launcher-btn .launcher-pulse {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border: 2px solid rgba(16, 185, 129, 0.5);
        animation: visitorLauncherPulse 2s infinite;
        pointer-events: none;
    }
    
    @keyframes visitorLauncherPulse {
        0% { transform: scale(1); opacity: 1; }
        100% { transform: scale(1.15, 1.05); opacity: 0; }
    }
    
    .visitor-container {
        position: absolute;
        top: 0;
        right: 55px; /* Slides out to the left next to the tab launcher */
        width: 340px;
        max-height: 580px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateX(30px) scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        border-radius: var(--border-radius-lg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .visitor-container.active {
        transform: translateX(0) scale(1) !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }
}

/* 3. Mobile/Tablet Mode (Screens < 992px) */
@media (max-width: 991px) {
    .visitor-analytics-widget {
        display: none !important; /* Hide launcher and panel to avoid mobile clutter */
    }
}

/* Common Widget Internal Elements */
.visitor-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.visitor-header-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.visitor-avatar {
    font-size: 1.3rem;
}

.visitor-widget-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.visitor-widget-status {
    font-size: 0.68rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.close-visitor-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
}

.close-visitor-btn:hover {
    color: var(--text-primary);
}

.visitor-widget-content {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: rgba(7, 10, 19, 0.4);
    scrollbar-width: thin;
}

/* Light Theme Overrides for Floating Visitor Widget */
body.light-theme .visitor-container {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
body.light-theme .visitor-widget-content {
    background: rgba(248, 250, 252, 0.95);
}
body.light-theme .close-visitor-btn {
    color: #64748b;
}
body.light-theme .close-visitor-btn:hover {
    color: #0f172a;
}

/* Pulsing heartbeat for visitor widget status dot */
.visitor-status-dot {
    background-color: var(--accent-emerald) !important;
    box-shadow: 0 0 8px var(--accent-emerald) !important;
    animation: visitorStatusPulse 2s infinite ease-in-out !important;
}

@keyframes visitorStatusPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}



