@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@400;600;700;800&display=swap');

/* Default Theme: Light Mode */
:root {
    --bg-dark: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    --bg-subtle: #f1f5f9;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(2, 132, 199, 0.35);
    
    --primary: #0284c7;
    --primary-glow: rgba(2, 132, 199, 0.15);
    --secondary: #6366f1;
    --ai-accent: #059669;
    --ai-glow: rgba(5, 150, 105, 0.2);
    --purple-accent: #9333ea;
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Override */
[data-theme="dark"] {
    --bg-dark: #080c14;
    --bg-card: rgba(15, 23, 42, 0.75);
    --bg-card-hover: rgba(30, 41, 59, 0.85);
    --bg-subtle: #0d1322;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(56, 189, 248, 0.3);
    
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.25);
    --secondary: #818cf8;
    --ai-accent: #10b981;
    --ai-glow: rgba(16, 185, 129, 0.3);
    --purple-accent: #a855f7;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --nav-bg: rgba(8, 12, 20, 0.85);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Override Bootstrap section opaque backgrounds to allow background animations to show */
.bg-dark-subtle, section {
    background-color: transparent !important;
}

/* Hero Section Ambient Neural Network Background Canvas */
.hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.scroll-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
}

.orb-1 {
    top: 2%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.3) 0%, rgba(56, 189, 248, 0.1) 70%);
    animation: floatGlowPrimary 18s infinite ease-in-out;
}

[data-theme="dark"] .orb-1 {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(2, 132, 199, 0.12) 70%);
}

.orb-2 {
    top: 25%;
    right: -10%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.28) 0%, rgba(168, 85, 247, 0.1) 70%);
    animation: floatGlowSecondary 22s infinite ease-in-out;
}

[data-theme="dark"] .orb-2 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(129, 140, 248, 0.12) 70%);
}

.orb-3 {
    top: 50%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.25) 0%, rgba(16, 185, 129, 0.08) 70%);
    animation: floatGlowPrimary 25s infinite ease-in-out reverse;
}

[data-theme="dark"] .orb-3 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.32) 0%, rgba(5, 150, 105, 0.12) 70%);
}

.orb-4 {
    top: 75%;
    right: -5%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.28) 0%, rgba(147, 51, 234, 0.1) 70%);
    animation: floatGlowSecondary 20s infinite ease-in-out;
}

[data-theme="dark"] .orb-4 {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.32) 0%, rgba(168, 85, 247, 0.12) 70%);
}

/* Ambient Background Grid Pattern */
.bg-mesh-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(2, 132, 199, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(2, 132, 199, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -3;
    opacity: 0.85;
}

[data-theme="dark"] .bg-mesh-pattern {
    background-image: 
        linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating AI Chat FAB Button */
.floating-ai-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.45);
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-ai-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(5, 150, 105, 0.65);
    color: #ffffff !important;
}

.floating-ai-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-ai-tooltip {
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.floating-ai-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #34d399;
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
    animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Smooth Background Keyframe Animations */
@keyframes floatGlowPrimary {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(8vw, 10vh) scale(1.2);
    }
    66% {
        transform: translate(-6vw, 7vh) scale(0.88);
    }
}

@keyframes floatGlowSecondary {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-9vw, -8vh) scale(1.22);
    }
    66% {
        transform: translate(6vw, -6vh) scale(0.9);
    }
}

@keyframes floatGlowCenter {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-42%, -58%) scale(1.25);
        opacity: 0.85;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 4px;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

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

[data-theme="dark"] .gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-gradient-text {
    background: linear-gradient(135deg, #059669 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .ai-gradient-text {
    background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-dot {
    width: 8px;
    height: 8px;
    background-color: var(--ai-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--ai-accent);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-glow);
}

/* Glassmorphism Containers */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-highlight);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.badge-ai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: var(--ai-accent);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.badge-ai i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
}

.typing-container {
    font-size: 1.4rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    min-height: 2.2rem;
    margin-bottom: 1.5rem;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--primary);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 0.8s infinite;
}

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

.hero-bio {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin-bottom: 2rem;
}

/* Stats Counter */
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff !important;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-ai-custom {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff !important;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-ai-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.btn-outline-custom {
    background: var(--bg-card);
    color: var(--text-main) !important;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-outline-custom:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
    color: var(--primary) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* AI Engineering Section */
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ai-accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.ai-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--ai-accent), var(--primary));
}

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

.ai-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ai-accent);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.ai-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ai-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-chip {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
}

.tag-chip.ai {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.3);
    color: var(--ai-accent);
}

/* AI Assistant Sandbox Widget */
.ai-chat-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(16px);
    transition: var(--transition-normal);
}

.ai-chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ai-accent), var(--primary), var(--purple-accent));
}

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

.chat-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--ai-accent) 0%, var(--primary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px var(--ai-glow);
}

.chat-header-badge {
    background: rgba(5, 150, 105, 0.12);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: var(--ai-accent);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.chat-clear-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-clear-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.chat-body {
    height: 420px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-subtle);
}

.chat-msg {
    display: flex;
    gap: 12px;
    max-width: 88%;
}

.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.95rem 1.25rem;
    border-radius: 18px;
    font-size: 0.94rem;
    color: var(--text-main);
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg.bot .chat-bubble {
    border-color: var(--border-highlight);
    border-bottom-left-radius: 4px;
}

/* AI Collapsible Thinking Process Accordion */
.ai-thought-box {
    background: rgba(15, 23, 42, 0.04);
    border: 1px dashed var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

[data-theme="dark"] .ai-thought-box {
    background: rgba(15, 23, 42, 0.4);
}

.ai-thought-details {
    cursor: pointer;
}

.ai-thought-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ai-accent);
    font-weight: 600;
    user-select: none;
    outline: none;
    list-style: none;
}

.ai-thought-summary::-webkit-details-marker {
    display: none;
}

.ai-thought-summary i.chevron {
    transition: transform 0.2s ease;
    font-size: 0.75rem;
}

.ai-thought-details[open] .ai-thought-summary i.chevron {
    transform: rotate(90deg);
}

.ai-thought-content {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px dashed var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.ai-thought-step {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.ai-thought-step i {
    font-size: 0.75rem;
    color: var(--primary);
}

/* Thinking pulse dots animation */
.thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

.thinking-dots span {
    width: 5px;
    height: 5px;
    background-color: var(--ai-accent);
    border-radius: 50%;
    animation: thinkingDotPulse 1.4s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinkingDotPulse {
    0%, 80%, 100% { transform: scale(0.4); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.suggested-prompts {
    padding: 0.85rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.suggested-prompts::-webkit-scrollbar {
    display: none;
}

.prompt-chip {
    background: var(--primary-glow);
    border: 1px solid var(--border-highlight);
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prompt-chip:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.chat-input-area {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.85rem 1.3rem;
    border-radius: var(--radius-pill);
    font-size: 0.93rem;
    outline: none;
    transition: var(--transition-fast);
}

.chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 14px var(--primary-glow);
}

.chat-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai-accent) 0%, var(--primary) 100%);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--ai-glow);
    transition: var(--transition-normal);
}

.chat-send-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px var(--ai-glow);
}
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    background: var(--secondary);
}

/* Skills Matrix */
/* Custom Redesigned Skill Search Input */
.skill-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 6px 18px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.skill-search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
}

.skill-search-icon {
    color: var(--primary);
    font-size: 1.05rem;
    margin-right: 12px;
}

.skill-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 8px 0;
}

.skill-search-input::placeholder {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.skill-search-clear {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.skill-search-clear:hover {
    color: var(--primary);
}

.skill-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
    justify-content: center;
}

.filter-tab, .project-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active,
.project-tab:hover, .project-tab.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-color: var(--primary);
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

.skill-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.skill-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.skill-cat {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Projects Showcase */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-header-bg {
    height: 140px;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-subtle) 100%);
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--border-color);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.project-header-title {
    color: var(--text-main);
    font-weight: 700;
}

.project-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* Timeline */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--ai-accent) 100%);
}

@media (min-width: 768px) {
    .timeline-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

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

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 10;
}

@media (min-width: 768px) {
    .timeline-dot {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-content {
    margin-left: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--border-highlight);
}

@media (min-width: 768px) {
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: calc(50% + 35px);
    }
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: calc(50% + 35px);
        margin-right: 0;
    }
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.timeline-company {
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 600;
}

.timeline-date {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.timeline-badge {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
}

.timeline-badge.current {
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid rgba(5, 150, 105, 0.4);
    color: #059669 !important;
}

[data-theme="dark"] .timeline-badge.current {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.6);
    color: #34d399 !important;
}

.timeline-badge.primary {
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(2, 132, 199, 0.4);
    color: #0284c7 !important;
}

[data-theme="dark"] .timeline-badge.primary {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.6);
    color: #38bdf8 !important;
}

.timeline-badge.warning {
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.4);
    color: #d97706 !important;
}

[data-theme="dark"] .timeline-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: #fbbf24 !important;
}

.timeline-badge.secondary {
    background: rgba(100, 116, 139, 0.15);
    border: 1px solid rgba(100, 116, 139, 0.4);
    color: #475569 !important;
}

[data-theme="dark"] .timeline-badge.secondary {
    background: rgba(148, 163, 184, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e2e8f0 !important;
}

/* Recruiter Modal Drawer */
.modal-content-dark {
    background: var(--bg-dark);
    border: 1px solid var(--border-highlight);
    color: var(--text-main);
    border-radius: var(--radius-lg);
}

.modal-header-dark {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.75rem;
}

.modal-body-dark {
    padding: 1.75rem;
}

.btn-close-custom {
    filter: none;
    opacity: 0.8;
    transition: var(--transition-fast);
}

[data-theme="dark"] .btn-close-custom {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

.social-icon-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}