.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    font-family: var(--font-body);
    z-index: 1000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-widget.minimized {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.minimized .chat-header {
    padding: 0;
    height: 100%;
    width: 100%;
    background: none;
    border: none;
}

.chat-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.minimized .chat-title { display: none; }

.chat-toggle {
    background: none;
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.minimized .chat-toggle {
    width: 100%;
    height: 100%;
    color: #000;
}

.chat-icon-svg { display: none; }
.close-icon-text { display: block; font-size: 24px; }

.minimized .chat-icon-svg { display: flex; }
.minimized .close-icon-text { display: none; }

.chat-body {
    height: 450px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: transparent;
    max-height: 350px;
}

.message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 85%;
    animation: fadeIn 0.3s ease-in;
    word-wrap: break-word;
    line-height: 1.4;
}

.user-message {
    background: var(--primary);
    color: #000;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.suggestions-content {
    padding: 12px 0; /* Vertical padding only, let chips handle horizontal */
    background: rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 0 20px 10px 20px; /* Side padding matches chat padding */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.suggestion-chips::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.suggestion-chip {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: #ccc;
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.quick-action-btn {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--primary);
}

.quick-action-btn:hover {
    background: var(--primary);
    color: #000;
}

.chat-input-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 12px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 14px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.chat-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0,255,136,0.1);
}

.send-button {
    padding: 12px 20px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.send-button:active {
    transform: translateY(0);
}

.minimized .chat-body {
    display: none;
}

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

.typing-indicator {
    display: flex;
    align-items: center;
    color: #666;
    font-style: italic;
    padding: 10px 15px;
}

.typing-dots {
    display: inline-flex;
    margin-left: 8px;
}

.typing-dots span {
    height: 6px;
    width: 6px;
    background: #666;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

.user-message .message-time {
    text-align: right;
}

.bot-message .message-time {
    text-align: left;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


 /* Portfolio Styles */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            background: #f5f5f5;
            min-height: 100vh;
        }
        
        .portfolio-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 60px 20px;
            text-align: center;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
            padding-bottom: 120px; /* Space for chat widget */
        }
        
        .section {
            background: white;
            margin: 20px 0;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

       /* Add these to your existing styles.css */

.suggestions-header {
    display: none; /* Modern: suggestions are always visible but scrollable */
}

.toggle-suggestions {
    background: none;
    border: none;
    color: #007bff;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s;
}

.toggle-suggestions:hover {
    background: #007bff;
    color: white;
}

.suggestions-content {
    padding: 10px 15px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: block; /* Always visible in modern UI */
}

.suggestions-content.expanded {
    display: block; /* Show when expanded */
}

.suggestions-collapsed {
    padding: 8px 12px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.suggestions-collapsed .toggle-suggestions {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Quick actions header */
.quick-actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.quick-actions-header h4 {
    margin: 0;
    font-size: 14px;
    color: #495057;
    font-weight: 600;
}

.quick-actions-content {
    padding: 10px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #00ff88;
    --primary-glow: rgba(0, 255, 136, 0.4);
    --secondary: #00d4ff;
    --accent: #00ff88;
    --background: #0a0a0a;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #aaaaaa;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-bg: rgba(10, 10, 10, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor is handled by JS */
}

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

h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease;
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-glow);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.2s ease;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--surface-border);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
}

nav {
    display: flex;
    gap: 32px;
}

        nav a {
            color: #ffffff;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            position: relative;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #00ff88, #00d4ff);
            transition: width 0.3s ease;
        }

        nav a:hover::after {
            width: 100%;
        }

        .hero {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .hero-bg {
            position: absolute;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.1), transparent 50%);
        }

        .particles {
            position: absolute;
            width: 100%;
            height: 100%;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: rgba(0, 255, 136, 0.5);
            border-radius: 50%;
            animation: float 20s infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
            10% { opacity: 1; }
            90% { opacity: 1; }
            100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
        }

        .hero-content {
            text-align: center;
            z-index: 10;
            padding: 0 20px;
        }

        .hero-greeting {
            font-size: 20px;
            font-weight: 500;
            color: var(--primary);
            letter-spacing: 2px;
            margin-bottom: 20px;
            text-transform: uppercase;
            animation: fadeInUp 1s ease both;
        }

.hero-title {
    font-size: clamp(48px, 8vw, 90px);
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: -3px;
    line-height: 1.1;
}

        .hero-subtitle {
            font-size: 24px;
            color: #aaaaaa;
            margin-bottom: 40px;
            animation: fadeInUp 1s ease 0.2s both;
        }

        .cta-button {
            display: inline-block;
            padding: 18px 48px;
            background: linear-gradient(135deg, #00ff88, #00d4ff);
            color: #000000;
            text-decoration: none;
            font-weight: 700;
            border-radius: 50px;
            transition: all 0.3s ease;
            animation: fadeInUp 1s ease 0.4s both;
            position: relative;
            overflow: hidden;
        }

        .cta-button::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .cta-button:hover::before {
            width: 300px;
            height: 300px;
        }

        .cta-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(0, 255, 136, 0.4);
        }

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

        section {
            padding: 120px 80px;
            position: relative;
        }

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.about-image {
    flex: 0 0 350px;
    height: 450px;
    border-radius: 30px;
    border: 1px solid var(--surface-border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text p {
    line-height: 1.8;
    color: var(--text-dim);
    font-size: 20px;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-image {
        flex: 0 0 300px;
        height: 300px;
        width: 300px;
        border-radius: 50%;
    }

    .about-text {
        text-align: center;
    }
}

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            max-width: 1200px;
            margin: 0 auto;
        }

.skill-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

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

        .skill-card:hover {
            transform: translateY(-10px);
            border-color: rgba(0, 255, 136, 0.5);
            box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
        }

        .skill-icon {
            margin-bottom: 25px;
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: flex-start;
        }

        .skill-icon svg {
            filter: drop-shadow(0 0 8px var(--primary-glow));
        }

        .skill-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .skill-description {
            color: #aaaaaa;
            line-height: 1.6;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .project-card {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            cursor: pointer;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 30px 60px rgba(0, 255, 136, 0.3);
        }

        .project-image {
            width: 100%;
            height: 250px;
            background: rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            border-bottom: 1px solid var(--surface-border);
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 10px;
            transition: transform 0.5s ease;
        }

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

        .project-image.light-img {
            background: #ffffff; /* Contrast for dark logos */
        }

        .project-image::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
            transition: left 0.5s;
        }

        .project-card:hover .project-image::after {
            left: 100%;
        }

        .project-info {
            padding: 30px;
        }

        .project-title {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .project-description {
            color: #aaaaaa;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .project-tags {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .tag {
            padding: 6px 16px;
            background: rgba(0, 255, 136, 0.1);
            border: 1px solid rgba(0, 255, 136, 0.3);
            border-radius: 20px;
            font-size: 12px;
            color: #00ff88;
        }

        .contact-container {
            max-width: 600px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-info {
            margin-bottom: 40px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            font-size: 18px;
            color: #cccccc;
        }

        .contact-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
        }

        .contact-icon svg {
            filter: drop-shadow(0 0 8px var(--primary-glow));
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-top: 40px;
        }

        .social-link {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            text-decoration: none;
            font-size: 20px;
            transition: all 0.3s ease;
        }

        .social-link:hover {
            background: linear-gradient(135deg, #00ff88, #00d4ff);
            border-color: transparent;
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
        }

        footer {
            padding: 40px;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #666666;
        }

        @media (max-width: 768px) {
            header {
                padding: 20px 30px;
            }

            .hero-title {
                font-size: 48px;
            }

            .hero-subtitle {
                font-size: 18px;
            }

            section {
                padding: 80px 30px;
            }

            .section-title {
                font-size: 36px;
            }

            nav {
                gap: 20px;
            }

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

/* Mobile: hamburger nav and chat widget adjustments */
@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 16px;
        background: rgba(10,10,10,0.95);
        padding: 12px 18px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        flex-direction: column;
        gap: 12px;
        z-index: 1100;
    }

    header .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #fff;
        cursor: pointer;
        width: 44px;
        height: 44px;
        margin-left: 12px;
    }

    /* simple hamburger lines */
    .hamburger-box {
        width: 22px;
        height: 16px;
        display: inline-block;
        position: relative;
    }
    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 22px;
        height: 2px;
        background-color: #fff;
        position: absolute;
        left: 0;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }
    .hamburger-inner { top: 7px; }
    .hamburger-inner::before { content: ''; top: -6px; }
    .hamburger-inner::after { content: ''; top: 6px; }

    /* When nav is open (header.nav-open) show nav as block */
    header.nav-open nav {
        display: flex;
    }

    /* Make nav links easier to tap */
    header nav a {
        display: block;
        padding: 10px 8px;
        font-size: 16px;
    }

    /* Chat widget: make it full-width bottom sheet on mobile */
    .ai-chat-widget {
        right: 10px;
        left: 10px;
        bottom: 12px;
        width: calc(100% - 20px);
        max-width: none;
        border-radius: 14px;
    }

    /* Minimized on mobile should be a circular floating button */
    .ai-chat-widget.minimized {
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 20px;
        left: auto; /* Reset left from the base mobile class to allow right pinning */
    }

    /* When expanded on mobile, make body a taller sheet */
    .ai-chat-widget .chat-body {
        height: 60vh;
    }

    .chat-messages {
        max-height: calc(60vh - 160px);
    }
}