/* =========================================
   Base & Reset
========================================= */

:root {
/* Color Palette - Futuristic Dark Theme */
    --bg-main: #060913;
    --bg-secondary: rgba(16, 20, 32, 0.6);
    --bg-tertiary: rgba(35, 213, 213, 0.1);
    
    --text-primary: #ffffff;
    --text-secondary: #aeb6d0;
    --text-tertiary: #5d6785;
    
    /* Brand Accent required by User */
    --accent: #23d5d5;
    --accent-glow: rgba(35, 213, 213, 0.4);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

/* =========================================
   Typography & Utilities
========================================= */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

a:hover {
    color: #fff;
}

/* Accessibility & Interaction */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 2px;
}

.btn:active, .project-card:active, .social-icon:active, .chat-toggle-btn:active, .skill-tag:active {
    transform: scale(0.97) !important;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

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

.mt-4 {
    margin-top: 2rem;
}

/* Accent texts and SVGs */
.accent {
    color: var(--accent);
}
.accent-stroke {
    stroke: var(--accent);
}

/* =========================================
   Buttons
========================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: rgba(35, 213, 213, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: rgba(35, 213, 213, 0.25);
    color: #fff;
    box-shadow: 0 0 15px var(--accent-glow);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* =========================================
   Navigation
========================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

header.scrolled {
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-avatar {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 0 8px rgba(35, 213, 213, 0.4));
}

.logo-link:hover .nav-avatar {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px var(--accent));
}

.logo-text {
    color: #fff;
    transition: var(--transition);
}
.logo-link:hover .logo-text {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(35, 213, 213, 0.5);
}

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

.nav-links li a:not(.btn) {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links li a:not(.btn):hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* =========================================
   Background Global Effects (Futuristic)
========================================= */

body {
    background-image: 
        linear-gradient(rgba(35, 213, 213, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 213, 213, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
}

.glow-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(35, 213, 213, 0.4) 0%, rgba(6, 9, 19, 0) 70%);
}

.orb-2 {
    bottom: -20%;
    left: -10%;
    width: 60vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(16, 42, 100, 0.6) 0%, rgba(6, 9, 19, 0) 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

/* =========================================
   Hero Section
========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-desc {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.social-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.social-link:hover::after {
    width: 100%;
}

/* =========================================
   Stats Section
========================================= */

.stats-section {
    padding: 40px 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--bg-tertiary);
    border-bottom: 1px solid var(--bg-tertiary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 900;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

/* =========================================
   Section Headings
========================================= */

.section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
}

.section-heading .line {
    flex: 1;
    height: 1px;
    background-color: var(--bg-tertiary);
    max-width: 300px;
}

/* =========================================
   About Section
========================================= */

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

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    padding: 1rem;
}

.about-image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    filter: blur(40px);
    opacity: 0.15;
    border-radius: 20px;
    z-index: 0;
    transition: var(--transition);
}

.about-image {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    filter: grayscale(20%) contrast(110%);
    transition: var(--transition);
}

.about-image-wrapper:hover .about-image {
    transform: translateY(-5px) scale(1.02);
    filter: grayscale(0%) contrast(105%);
}

.about-image-wrapper:hover .about-image-glow {
    opacity: 0.3;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* =========================================
   Experience Section (Timeline)
========================================= */

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--bg-tertiary);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: block;
}

.role-title {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.company-name {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.role-summary {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(16, 20, 32, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.2rem;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================
   Projects Section
========================================= */

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

.project-card {
    background-color: rgba(16, 20, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(35, 213, 213, 0.4);
    box-shadow: 0 12px 40px rgba(35, 213, 213, 0.15);
}

.project-header {
    margin-bottom: 1.5rem;
}

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

.project-desc {
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   Skills Section
========================================= */

.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skills-category {
    background: rgba(16, 20, 32, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.skills-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--bg-tertiary);
    padding-bottom: 0.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    cursor: default;
}

.skill-tag:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: rgba(35, 213, 213, 0.05);
}

/* =========================================
   Contact Section
========================================= */

.contact-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.contact-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* =========================================
   Footer
========================================= */

footer {
    padding: 2rem 0;
    border-top: 1px solid var(--bg-tertiary);
    margin-top: 100px;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
}

.social-icon {
    transition: var(--transition);
    color: var(--text-secondary);
}

.social-icon:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* =========================================
   Animations
========================================= */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Media Queries
========================================= */

@media (min-width: 769px) {
    .mobile-break {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 105;
        position: relative;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(6, 9, 19, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 100;
        padding-top: 80px;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease-in-out;
        transition-delay: 0s;
        width: 100%;
        text-align: center;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-links li a:not(.btn) {
        font-size: 1.5rem;
        font-weight: 600;
        letter-spacing: 1px;
        display: block;
        padding: 15px;
        width: 100%;
    }
    
    .nav-links .btn-outline {
        font-size: 1rem;
        padding: 0.8rem 2.5rem;
        margin-top: 1rem;
    }

    /* GLOBAL SPACING */
    .section {
        padding: 60px 0;
    }
    .container {
        padding: 0 1.25rem;
    }
    
    /* TYPOGRAPHY & HERO */
    .hero-name {
        font-size: 2.2rem;
        letter-spacing: 0.5px;
    }
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }
    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* SECTION TITLES */
    .section-heading {
        margin-bottom: 2.5rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    
    /* STATS */
    .stat-number {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* ABOUT */
    .about-content {
        gap: 2rem;
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        order: -1;
        max-width: 280px;
        margin: 0 auto;
    }
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* EXPERIENCE */
    .role-title {
        font-size: 1.15rem;
    }
    .company-name {
        font-size: 0.95rem;
    }
    .role-summary {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    /* PROJECTS */
    .projects-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    .project-card {
        padding: 1.5rem;
    }
    .project-title {
        font-size: 1.15rem;
    }
    .project-desc {
        font-size: 0.9rem;
    }
    
    /* SKILLS */
    .skills-wrapper {
        gap: 2rem;
        grid-template-columns: 1fr;
    }
    .skills-category h3 {
        font-size: 1.1rem;
    }
    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* CONTACT */
    .contact-title {
        font-size: 2rem;
    }
    .contact-desc {
        font-size: 0.95rem;
    }
    
    /* BUTTONS */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-dot {
        left: 4px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
}

/* =========================================
   AI Chat Widget
========================================= */

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.chat-toggle-btn {
    width: auto;
    height: 60px;
    padding: 0 1.5rem;
    border-radius: 30px;
    background: rgba(16, 20, 32, 0.8);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(35, 213, 213, 0.3);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.chat-toggle-text {
    font-size: 1rem;
    font-weight: 600;
}

.mobile-only {
    display: none;
}

.chat-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(35, 213, 213, 0.6);
    background: rgba(35, 213, 213, 0.1);
}

.chat-window {
    width: 350px;
    height: 500px;
    max-height: calc(100vh - 120px);
    background: rgba(10, 14, 23, 0.85);
    border: 1px solid rgba(35, 213, 213, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-origin: bottom right;
    pointer-events: auto;
}

.chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(20px);
}

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

.chat-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.chat-subtitle {
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close-btn:hover {
    color: #fff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ai-message {
    background: rgba(35, 213, 213, 0.1);
    border: 1px solid rgba(35, 213, 213, 0.2);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.5rem;
    background: rgba(6, 9, 19, 0.5);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.chat-input:focus {
    outline: none;
    border-color: rgba(35, 213, 213, 0.5);
    background: rgba(35, 213, 213, 0.05);
}

.chat-input::placeholder {
    color: var(--text-tertiary);
}

.chat-submit-btn {
    background: rgba(35, 213, 213, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    width: 42px;
    height: 42px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.chat-submit-btn:hover {
    background: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 0 15px var(--accent-glow);
}

.chat-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: rgba(35, 213, 213, 0.05);
    border: 1px solid rgba(35, 213, 213, 0.1);
    border-radius: 8px;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

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

@media (max-width: 768px) {
    .chat-widget {
        bottom: 30px;
        right: 15px;
    }
    .chat-window {
        width: 320px;
        max-width: calc(100vw - 40px);
    }
    .chat-toggle-btn {
        flex-direction: column;
        height: auto;
        padding: 6px 10px;
        border-radius: 12px;
        gap: 3px;
    }
    .chat-toggle-text {
        font-size: 0.6rem;
        line-height: 1.1;
        text-align: center;
    }
    svg.chat-icon {
        width: 18px;
        height: 18px;
    }
    body:has(.nav-links.active) .chat-widget {
        display: none !important;
    }
    .mobile-only {
        display: block;
    }
    .desktop-only {
        display: none;
    }
}
