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

/* ...existing code... */

.bg-animation,
.neural-bg,
.neuron,
.connection,
.floating-element,
.loading,
.cursor,
.cursor-trail {
    pointer-events: none !important;
}

/* Force chat to top of stack */
.chat-container,
.chat-input-bar,
#askInput,
#askButton {
    position: relative !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

/* Prevent body overlays */
body, html {
    position: relative;
    overflow-x: hidden;
}

        :root {
            --primary-bg: #0a0a0f;
            --secondary-bg: #1a1a2e;
            --accent-cyan: #00fff9;
            --accent-purple: #8b5cf6;
            --accent-pink: #ec4899;
            --accent-orange: #f97316;
            --text-primary: #ffffff;
            --text-secondary: #a8a8b3;
            --glass-bg: rgba(255, 255, 255, 0.05);
            --glass-border: rgba(255, 255, 255, 0.1);
        }

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

        body {
            font-family: 'Inter', sans-serif;
            background: var(--primary-bg);
            color: var(--text-primary);
            overflow-x: hidden;
            cursor: default;
        }

        /* Custom Cursor */
        .cursor {
            width: 20px;
            height: 20px;
            border: 2px solid var(--accent-cyan);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            mix-blend-mode: difference;
            transition: all 0.1s ease;
            backdrop-filter: blur(10px);
            cursor: none;
        }

        .cursor-trail {
            width: 8px;
            height: 8px;
            background: var(--accent-cyan);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9998;
            opacity: 0.6;
            transition: all 0.15s ease;
        }

        /* Animated Background */
        .bg-animation {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background:
                radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(0, 255, 249, 0.2) 0%, transparent 50%);
            animation: bgShift 20s ease-in-out infinite;
        }

        @keyframes bgShift {
            0%, 100% { transform: scale(1) rotate(0deg); }
            50% { transform: scale(1.1) rotate(180deg); }
        }

        /* Neural Network Background */
        .neural-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            opacity: 0.1;
        }

        .neuron {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--accent-cyan);
            border-radius: 50%;
            animation: pulse 3s ease-in-out infinite;
        }

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

        .connection {
            position: absolute;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
            animation: flow 4s ease-in-out infinite;
        }

        @keyframes flow {
            0% { opacity: 0; }
            50% { opacity: 0.6; }
            100% { opacity: 0; }
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            backdrop-filter: blur(20px);
            background: rgba(10, 10, 15, 0.8);
            border-bottom: 1px solid var(--glass-border);
            transition: all 0.3s ease;
        }

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

        .logo {
            font-family: 'JetBrains Mono', monospace;
            font-size: 1.5rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            position: relative;
        }

        .logo::after {
            content: '_';
            animation: blink 1s infinite;
        }

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

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

        .nav-links a {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 1rem;
        }

        .nav-links a:hover {
            color: var(--accent-cyan);
            transform: translateY(-2px);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--accent-cyan);
            transition: all 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-links a:hover::after {
            width: 80%;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: flex-start; /* Changed from center to flex-start */
            justify-content: center;
            position: relative;
            padding: min(2vh, 2rem) 2rem; /* Reduced padding from 4vh to 2vh */
            cursor: none;
            pointer-events: auto !important;
            z-index: 1;
        }

        .hero-content {
            max-width: 1200px;
            text-align: center;
            z-index: 10;
            margin-top: 15vh; /* Added specific margin for better positioning */
        }

        /* Media queries for hero section */
        @media (max-height: 800px) { /* Added specific breakpoint for 14-inch screens */
            .hero-content {
                margin-top: 10vh;
            }
        }

        @media (max-height: 600px) {
            .hero-content {
                margin-top: 8vh;
            }
        }

        .hero-intro {
            font-family: 'JetBrains Mono', monospace;
            color: var(--accent-cyan);
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            margin-bottom: 1rem;
            opacity: 0;
            animation: slideUp 1s ease 0.2s forwards;
        }

        .hero-title {
            font-size: clamp(2.5rem, 8vw, 6rem);
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            opacity: 0;
            animation: slideUp 1s ease 0.4s forwards;
        }

        .hero-title .gradient-text {
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-pink));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: gradientShift 3s ease-in-out infinite;
            background-size: 200% 200%;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .hero-subtitle {
            font-size: clamp(1.2rem, 3vw, 2rem);
            color: var(--text-secondary);
            max-width: 800px;
            margin: 0 auto 2rem;
            margin-top: 5rem;
            opacity: 0;
            animation: slideUp 1s ease 0.6s forwards;
        }

        .hero-cta {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 3rem;
            opacity: 0;
            animation: slideUp 1s ease 0.8s forwards;
        }

        .cta-button {
            padding: 1rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            text-decoration: none;
            border-radius: 50px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .cta-primary {
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            color: var(--primary-bg);
        }

        .cta-primary:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 20px 40px rgba(0, 255, 249, 0.3);
        }

        .cta-secondary {
            border: 2px solid var(--accent-cyan);
            color: var(--accent-cyan);
            background: transparent;
            backdrop-filter: blur(10px);
        }

        .cta-secondary:hover {
            background: var(--accent-cyan);
            color: var(--primary-bg);
            transform: translateY(-3px) scale(1.05);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Floating Elements */
        .floating-element {
            position: absolute;
            pointer-events: none;
            opacity: 0.6;
            z-index: 5;
        }

        .floating-code {
            font-family: 'JetBrains Mono', monospace;
            color: var(--accent-cyan);
            font-size: 0.9rem;
            animation: float 6s ease-in-out infinite;
        }

        .floating-symbol {
            font-size: 2rem;
            color: var(--accent-purple);
            animation: rotate 8s linear infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

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

        /* Sections */
        .section {
            padding: 8rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-title {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 800;
            margin-bottom: 3rem;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            width: 100px;
            height: 4px;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            transform: translateX(-50%);
            border-radius: 2px;
        }

        /* Adjust spacing for buttons and text */
        button {
            margin: 10px;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 16px;
        }

        /* Improve spacing for sections */
        section {
            margin: 40px 0;
            padding: 20px;
        }

        /* Adjust spacing for headings */
        h1, h2, h3 {
            margin-bottom: 20px;
        }

        /* Improve spacing for paragraphs */
        p {
            margin-bottom: 15px;
            line-height: 1.6;
        }

        /* Timeline Styles for Experience */
        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            left: 50%;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
            transform: translateX(-50%);
            z-index: 1;
        }

        .timeline-item {
            position: relative;
            margin: 3rem 0;
            opacity: 0;
            animation: fadeInUp 0.8s ease forwards;
            animation-delay: calc(var(--item-index) * 0.2s);
        }

        .timeline-item:nth-child(odd) .timeline-content {
            margin-left: calc(50% + 2.5rem);
            text-align: left;
        }

        .timeline-item:nth-child(even) .timeline-content {
            margin-right: calc(50% + 2.5rem);
            text-align: right;
        }

        .timeline-dot {
            position: absolute;
            left: 50%;
            top: 2.5rem;
            width: 20px;
            height: 20px;
            background: var(--accent-cyan);
            border-radius: 50%;
            transform: translateX(-50%);
            box-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-cyan);
            z-index: 10;
            transition: transform 0.3s ease;
        }

        .timeline-dot:hover {
            transform: translateX(-50%) scale(1.2);
        }

        .timeline-content {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 2rem;
            position: relative;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            border-color: var(--accent-cyan);
            box-shadow: 0 15px 30px rgba(0, 255, 249, 0.3);
        }

        .timeline-item:nth-child(odd) .timeline-content::before {
            content: '';
            position: absolute;
            left: -12px;
            top: 2.5rem;
            width: 0;
            height: 0;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            border-right: 12px solid var(--glass-border);
        }

        .timeline-item:nth-child(even) .timeline-content::before {
            content: '';
            position: absolute;
            right: -12px;
            top: 2.5rem;
            width: 0;
            height: 0;
            border-top: 12px solid transparent;
            border-bottom: 12px solid transparent;
            border-left: 12px solid var(--glass-border);
        }

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

        .company-logo {
            width: 60px;
            height: 60px;
            object-fit: contain;
            border-radius: 10px;
            background: var(--glass-bg);
            padding: 0.5rem;
        }

        .job-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
        }

        .company-info {
            text-align: right;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
        }

        .timeline-item:nth-child(even) .company-info {
            text-align: left;
        }

        .company {
            display: block;
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--accent-cyan);
            margin-bottom: 0.5rem;
            margin-right: 0.75rem;
        }

        .duration {
            display: block;
            color: var(--text-secondary);
            font-size: 1rem;
            font-style: italic;
            margin-left: 0.25rem;
        }

        .promotion-badge {
            background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
            color: white;
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            white-space: nowrap;
            display: inline-block;
            margin: 0.75rem 0 0.25rem 0;
        }

        @media (min-width: 769px) {
            .promotion-badge {
                margin: 0 0 0 1.5rem;
            }
        }

        .company-details {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
        }

        .duration {
            margin: 0 0.5rem;
        }

        .experience-description p {
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 1.5rem;
            font-size: 1rem;
        }

        .achievements {
            list-style: none;
            margin: 1.5rem 0;
            padding-left: 0;
        }

        .achievements li {
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 1rem;
            position: relative;
            padding-left: 2rem;
            font-size: 0.95rem;
        }

        .achievements li::before {
            content: '▹';
            position: absolute;
            left: 0;
            color: var(--accent-cyan);
            font-size: 1rem;
            top: 2px;
        }

        .achievements li strong {
            color: var(--accent-purple);
            font-weight: 600;
        }

        .tech-stack {
            display: flex;
            gap: 0.7rem;
            flex-wrap: wrap;
            margin-top: 1.5rem;
        }

        .tech-tag {
            background: rgba(0, 255, 249, 0.2);
            color: var(--accent-cyan);
            padding: 0.4rem 1rem;
            border-radius: 15px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .tech-tag:hover {
            background: var(--accent-cyan);
            color: var(--primary-bg);
        }

        /* Mobile Timeline */
        @media (max-width: 768px) {
            .timeline::before {
                left: 1.5rem;
            }

            .timeline-dot {
                left: 1.5rem;
                top: 2rem;
            }

            .timeline-item:nth-child(odd) .timeline-content,
            .timeline-item:nth-child(even) .timeline-content {
                margin-left: 3.5rem;
                margin-right: 1rem;
                text-align: left;
            }

            .timeline-item:nth-child(odd) .timeline-content::before,
            .timeline-item:nth-child(even) .timeline-content::before {
                left: -12px;
                right: auto;
                border-left: none;
                border-right: 12px solid var(--glass-border);
            }

            .company-info,
            .timeline-item:nth-child(even) .company-info {
                text-align: left;
            }

            .experience-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .promotion-badge {
                margin-left: 0;
                margin-top: 0.5rem;
            }

            /* Hero Section */
            .hero {
                padding: min(5vh, 5rem) 1rem 2rem;
            }

            .hero-content {
                max-width: 100%;
            }
        }

        /* Media query for very small screens */
        @media (max-height: 600px) {
            .hero {
                padding: min(3vh, 3rem) 1rem 1rem;
            }
        }

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

        .project-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.5s ease;
            position: relative;
            overflow: hidden;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 255, 249, 0.1), rgba(139, 92, 246, 0.1));
            opacity: 0;
            transition: all 0.3s ease;
        }

        .project-card:hover::before {
            opacity: 1;
        }

        .project-card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: var(--accent-cyan);
            box-shadow: 0 30px 60px rgba(0, 255, 249, 0.2);
        }

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

        .project-description {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .project-tech {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }

        .project-links {
            display: flex;
            gap: 1rem;
        }

        .project-link {
            color: var(--accent-cyan);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .project-link:hover {
            color: var(--accent-purple);
            transform: translateX(5px);
        }

        /* Skills Section */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-top: 4rem;
        }

        .skill-category {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 15px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .skill-category:hover {
            transform: translateY(-5px);
            border-color: var(--accent-purple);
        }

        .skill-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

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

        .skill-list {
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* Contact Section */
        .contact {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 30px;
            padding: 4rem;
            text-align: center;
            margin: 4rem 0;
        }

        .contact-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .contact-text {
            font-size: 1.2rem;
            color: var(--text-secondary);
            margin-bottom: 2rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .social-links {
            display: flex;
            gap: 2rem;
            justify-content: center;
            margin-top: 2rem;
        }

        .social-link {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            text-decoration: none;
            font-size: 1.5rem;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: var(--accent-cyan);
            color: var(--primary-bg);
            transform: translateY(-5px) scale(1.1);
        }

        /* Footer */
        footer {
            padding: 3rem 2rem;
            text-align: center;
            color: var(--text-secondary);
            border-top: 1px solid var(--glass-border);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }

            .hero-cta {
                flex-direction: column;
                align-items: center;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .skills-grid {
                grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            }

            .social-links {
                gap: 1rem;
            }

            .contact {
                padding: 2rem;
            }
        }

        /* Scroll animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            animation: fadeInUp 0.8s ease forwards;
        }

        /* Loading animation */
        .loading {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--primary-bg);
            z-index: 10000;
            display: none;
            align-items: center;
            justify-content: center;
            transition: opacity 0.5s ease;
        }

        .loading-spinner {
            width: 60px;
            height: 60px;
            border: 3px solid var(--glass-border);
            border-top: 3px solid var(--accent-cyan);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .ask-button {
            padding: 0.9rem 1.25rem;
            border-radius: 999px;
            border: none;
            background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
            color: var(--primary-bg);
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.15s ease, opacity 0.15s ease;
        }

        .ask-button:active { transform: translateY(1px); }
        .ask-button[disabled] { opacity: 0.7; cursor: not-allowed; }

        /* Ensure hero doesn't force sideways layout */
        .hero-content {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        /* ============================
           CHATGPT STYLE CHAT UI
        ============================ */

        .chat-container {
            width: 100%;
            max-width: 760px;
            height: 520px;
            margin-top: 3rem;
            background: rgba(15, 15, 25, 0.92);
            border: 1px solid rgba(139, 92, 246, 0.35);
            border-radius: 18px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 20;
            box-shadow: 0 0 40px rgba(139,92,246,0.25);
        }

        /* Message area */
        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        /* Messages */
        .chat-msg {
            max-width: 75%;
            padding: 14px 18px;
            border-radius: 14px;
            font-size: 15px;
            line-height: 1.5;
            animation: fadeIn 0.2s ease;
            white-space: pre-wrap;
        }

        .chat-user {
            align-self: flex-end;
            background: linear-gradient(135deg, #00fff9, #8b5cf6);
            color: #000;
            border-bottom-right-radius: 6px;
        }

        .chat-ai {
            align-self: flex-start;
            background: rgba(139,92,246,0.18);
            border: 1px solid rgba(139,92,246,0.35);
            color: #e6e6ff;
            border-bottom-left-radius: 6px;
        }

        /* Input bar */
        .chat-input-bar {
            display: flex;
            padding: 12px;
            background: rgba(10, 10, 15, 0.95);
            border-top: 1px solid rgba(139,92,246,0.25);
        }

        .chat-input-bar input {
            flex: 1;
            background: #0f1120;
            border: none;
            color: white;
            padding: 12px 14px;
            border-radius: 8px;
            outline: none;
            font-size: 15px;
        }

        .chat-input-bar button {
            margin-left: 10px;
            padding: 12px 20px;
            background: linear-gradient(135deg, #00fff9, #8b5cf6);
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
        }

        /* Suggestions */
        .chat-suggestions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 12px;
            border-top: 1px solid rgba(255,255,255,.05);
            background: rgba(10,10,20,0.95);
        }

        .chat-suggestions button {
            background: rgba(0,255,255,.08);
            border: 1px solid rgba(0,255,255,.3);
            color: #00fff9;
            border-radius: 999px;
            padding: 8px 14px;
            cursor: pointer;
            font-size: 13px;
        }

        /* Typing dots */
        .dots::after {
            content: '';
            animation: dots 1.4s infinite;
        }

        @keyframes dots {
            0% { content: ''; }
            33% { content: '.'; }
            66% { content: '..'; }
            100% { content: '...'; }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Final overrides to ensure chat input is focusable and not covered by overlays */
        .chat-container,
        #chatContainer,
        .chat-input-bar,
        #askInput,
        #askButton,
        #chatMessages {
            pointer-events: auto !important;
            position: relative !important;
            z-index: 999999 !important;
        }

        /* Ensure typing cursor shows correctly inside inputs/textareas */
        #askInput, .chat-input-bar input, textarea {
            cursor: text !important;
            -webkit-text-fill-color: inherit;
        }

        /* Remove any global cursor:none that hides caret inside hero region */
        .hero {
            cursor: auto !important;
        }

        /* === FIX INPUT NOT TYPING (MUST BE LAST) === */
        .bg-animation,
        .neural-bg,
        .floating-element,
        .cursor,
        .cursor-trail {
            pointer-events: none !important;
        }

        .hero,
        .hero-content,
        .chat-container,
        .chat-input-bar,
        #askInput,
        #askButton {
            pointer-events: auto !important;
            position: relative;
            z-index: 10;
        }

        input, textarea {
            cursor: text !important;
            pointer-events: auto !important;
            z-index: 100000 !important;
        }

        /* Ensure no overlays block the chat input */
        #chatContainer, .chat-input-bar, #askInput, #askButton {
            pointer-events: auto !important;
            z-index: 999999 !important;
            position: relative !important;
        }

        /* Add a label for accessibility */
        label[for="askInput"] {
            position: absolute;
            left: -9999px;
            top: -9999px;
            visibility: hidden;
        }

        .bridge {
          margin: 80px auto 120px;
          max-width: 1000px;
          padding: 0 20px;
        }

        .bridge-grid {
          display: grid;
          grid-template-columns: repeat(3,1fr);
          gap: 24px;
        }

        .bridge-card {
          background: rgba(255,255,255,0.03);
          border: 1px solid rgba(139,92,246,0.25);
          backdrop-filter: blur(12px);
          border-radius: 16px;
          padding: 28px;
          text-align: center;
          transition: transform .3s ease, box-shadow .3s ease;
        }

        .bridge-card:hover {
          transform: translateY(-6px);
          box-shadow: 0 0 40px rgba(139,92,246,.25);
        }

        .bridge-card span {
          font-size: 32px;
          display: block;
          margin-bottom: 12px;
        }

        .bridge-card h3 {
          margin-bottom: 10px;
          font-size: 20px;
        }

        .section-intro {
          max-width: 720px;
          margin: 80px auto 40px;
          text-align: center;
          font-size: 18px;
          color: rgba(255,255,255,.75);
        }

        .gradient-divider {
          height: 2px;
          width: 60%;
          margin: 120px auto 60px;
          background: linear-gradient(
            90deg,
            transparent,
            #00fff9,
            #8b5cf6,
            transparent
          );
          opacity: .6;
        }
