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

:root {
    /* palette */
    --primary-bg: #0a0e27;
    --secondary-bg: #1a1f3a;
    --card-bg: #1e2338;
    --primary-purple: #8b5cf6;
    --secondary-purple: #a78bfa;
    --accent-blue: #3b82f6;
    --text-white: #ffffff;
    --text-gray: #cbd5e1;
    --border-color: #334155;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* spacing scale */
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;

    /* radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* shadows */
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.25);
    --shadow-strong: 0 18px 60px rgba(0, 0, 0, 0.35);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 30px;
    box-shadow: 3px 12px 14px rgb(205, 201, 201);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-purple);
}

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

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-purple);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-purple));
    border-radius: 2px;
}

/* Home Section */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    position: relative;
}

.home-content {
    max-width: 800px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-purple);
    border-radius: 25px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-white);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.badge i {
    color: var(--primary-purple);
}

.main-heading {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.subtitle {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.tech-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tech-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-btn:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typed cursor */
.typed-cursor {
    color: var(--primary-purple);
    font-weight: 700;
}

.btn {
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--text-white);
    box-shadow: var(--shadow-strong);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    box-shadow: var(--shadow-soft);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--primary-bg);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tagline {
    text-align: center;
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.section-tagline i {
    color: var(--primary-purple);
}

.section-description {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text {
    padding: 2rem;
}

.greeting {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.bio {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-purple);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, rgba(5, 8, 21, 0.98) 0%, rgba(10, 12, 34, 0.98) 100%);
}

.portfolio-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    padding: 0 0.4rem;
}

.portfolio-controls__group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.portfolio-search,
.portfolio-category,
.portfolio-sort {
    min-width: 220px;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    font-size: 0.96rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.portfolio-search {
    flex: 1 1 320px;
    max-width: 420px;
}

.portfolio-category,
.portfolio-sort {
    width: 180px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-white) 50%),
                      linear-gradient(135deg, var(--text-white) 50%, transparent 50%);
    background-position: calc(100% - 1.1rem) calc(50% + 0.1rem), calc(100% - 0.4rem) calc(50% + 0.1rem);
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

.portfolio-search:focus,
.portfolio-category:focus,
.portfolio-sort:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.9);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 1.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--text-white);
    font-size: 0.98rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgba(139,92,246,0.95), rgba(59,130,246,0.95));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.24);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.project-card {
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: calc(var(--space-5) + 0.5rem);
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 92, 246, 0.35);
}

.project-logo {
    width: 90px;
    height: 90px;
    margin: 0 0 1.25rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(59, 130, 246, 0.18));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-white);
    overflow: hidden;
}

.project-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 0.6rem;
    font-weight: 800;
}

.project-description {
    color: var(--text-gray);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-start;
}

.project-link {
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-purple));
    color: var(--text-white);
    text-decoration: none;
    border-radius: 14px;
    font-size: 0.92rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-link:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.certificates-grid,
.techstack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.certificate-card,
.tech-item {
    background: var(--card-bg);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.certificate-card:hover,
.tech-item:hover {
    border-color: var(--primary-purple);
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--primary-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.card-header {
    margin-bottom: 2rem;
    position: relative;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header p {
    color: var(--text-gray);
}

.card-header .fa-share-alt {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--primary-purple);
    font-size: 1.2rem;
}

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

.form-group i {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--primary-purple);
}

.form-group label {
    display: block;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
    color: var(--primary-purple);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

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

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-purple));
    color: var(--text-white);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
    z-index: 1100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}

.back-to-top:hover {
    transform: translateY(-6px);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-purple));
    z-index: 1100;
    transition: width 0.15s ease;
}

.mobile-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
}

.project-tags span {
    display: inline-flex;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    color: var(--text-gray);
    font-size: 0.85rem;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.project-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.project-modal__content {
    position: relative;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--secondary-bg);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-strong);
    color: var(--text-white);
    z-index: 1;
}

.project-modal__content h3 {
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.project-modal__content p {
    color: var(--text-gray);
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.comments-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.comment-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.comment-item__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.85rem;
    color: var(--text-white);
    font-weight: 600;
}

.comment-item__header span {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.comment-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.comment-like,
.comment-delete {
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-white);
    transition: all 0.25s ease;
}

.comment-like:hover {
    background: rgba(59, 130, 246, 0.18);
}

.comment-delete {
    background: rgba(244, 63, 94, 0.12);
    color: #ffccd5;
}

.comment-delete:hover {
    background: rgba(244, 63, 94, 0.2);
}

html {
    scroll-behavior: smooth;
}

/* Clean Scroll Headline Section */
.clean-scroll {
    min-height: 80vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.08), transparent 35%),
                radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.07), transparent 30%),
                var(--primary-bg);
    padding: clamp(64px, 12vw, 120px) 20px;
}

.clean-scroll__container {
    max-width: 900px;
    width: min(90vw, 720px);
    padding: clamp(32px, 6vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.clean-scroll__viewport {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    display: grid;
    align-items: center;
}

.clean-scroll__line {
    font-size: clamp(2rem, 6vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-white);
    will-change: transform, opacity, filter;
    opacity: 0;
    text-align: center;
}

.clean-scroll__hint {
    margin-top: 18px;
    color: var(--text-gray);
    font-size: 0.95rem;
    text-align: center;
}

.clean-scroll__line.reveal-in {
    animation: typeIn 0.85s ease forwards;
}

.clean-scroll__line.clean-out {
    animation: cleanOut 0.65s ease forwards;
}

@keyframes typeIn {
    0% { opacity: 0; transform: translateY(18px); filter: blur(6px); }
    40% { opacity: 1; transform: translateY(0); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes cleanOut {
    0% { opacity: 1; filter: blur(0); transform: translateY(0); }
    100% { opacity: 0; filter: blur(18px); transform: translateY(-12px); }
}

@media (max-width: 540px) {
    .clean-scroll__container { padding: 28px; }
    .clean-scroll__line { font-size: clamp(1.75rem, 8vw, 2.4rem); }
}

/* AI Chatbot */
.ai-chatbot {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    top:12vh;
    align-items: flex-end;
    
}

.ai-chatbot__launcher {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-purple));
    color: var(--text-white);
    box-shadow: 0 12px 34px rgba(99, 102, 241, 0.38), 0 0 0 0 rgba(139, 92, 246, 0.35);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    animation: pulseGlow 2.4s ease-in-out infinite;
}

.ai-chatbot__launcher:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 36px rgba(99, 102, 241, 0.55), 0 0 0 12px rgba(139, 92, 246, 0.18);
    filter: brightness(1.05);
}

.ai-chatbot__panel {
    width: min(360px, 90vw);
    background: rgba(61, 71, 116, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    backdrop-filter: blur(8px);
}

.ai-chatbot__panel.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(139,92,246,0.22));
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ai-chatbot__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-purple));
    display: grid;
    place-items: center;
    color: var(--text-white);
    margin-right: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    flex-shrink: 0;
}

.ai-chatbot__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    flex-shrink: 0;
    margin-right: 10px;
}

.ai-chatbot__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-chatbot__titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.ai-chatbot__eyebrow {
    font-size: 0.78rem;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.ai-chatbot__title {
    font-size: 1.05rem;
    color: var(--text-white);
    font-weight: 700;
}

.ai-chatbot__close {
    border: none;
    background: transparent;
    color: var(--text-white);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
}

.ai-chatbot__messages {
    max-height: 320px;
    overflow-y: auto;
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
}

.ai-chatbot__messages::-webkit-scrollbar {
    width: 6px;
}
.ai-chatbot__messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
}

.ai-chatbot__msg {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
}

.ai-chatbot__msg--bot {
    background: rgba(139, 92, 246, 0.12);
    color: var(--text-white);
    border: 1px solid rgba(139, 92, 246, 0.35);
    align-self: flex-start;
}

.ai-chatbot__msg--user {
    background: rgba(255,255,255,0.08);
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.1);
    align-self: flex-end;
}

.ai-chatbot__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ai-chatbot__input input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text-white);
    font-size: 0.95rem;
}

.ai-chatbot__input input:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.ai-chatbot__input button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-purple));
    color: var(--text-white);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35), 0 0 0 0 rgba(139, 92, 246, 0.35); }
    70% { box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35), 0 0 0 14px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35), 0 0 0 0 rgba(139, 92, 246, 0); }
}

@media (max-width: 480px) {
    .ai-chatbot { right: 12px; bottom: 18px; }
    .ai-chatbot__panel { width: 92vw; }
    .ai-chatbot__label { display: none; }
}

