/* Root Variables */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004dff;
    --primary-light: #e6f0ff;
    --secondary-color: #00a8ff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --background: #ffffff;
    --background-light: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 5px 20px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 102, 204, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.logo:hover {
    transform: translateY(-2px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: orange;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f8ff 100%);
    padding: 88px 20px 72px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-circle {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
    border: 5px solid white;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 0.8s ease-out;
}

.hero-visual:hover .avatar-circle {
    box-shadow: 0 15px 50px rgba(0, 102, 204, 0.3), var(--shadow-lg);
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Section Styles */
section {
    padding: 80px 20px;
}

body.view-home section[data-reveal] {
    display: block;
}

body.view-learn-more section[data-reveal] {
    display: block;
}

body.view-contact-only section[data-reveal]:not(#contact) {
    display: none;
}

body.view-about-only section[data-reveal]:not(#about) {
    display: none;
}

body.view-skills-only section[data-reveal]:not(#skills) {
    display: none;
}

body.view-experience-only section[data-reveal]:not(#experience) {
    display: none;
}

body.view-education-only section[data-reveal]:not(#education) {
    display: none;
}

body.view-projects-only section[data-reveal]:not(#projects) {
    display: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Projects Section */
.projects {
    background: var(--background-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 850px);
    justify-content: center;
}

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    background: #eef5ff;
}

.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.project-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.project-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.project-status {
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-card h3 {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin: 0;
}

.project-card h4 {
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem;
}

.project-description,
.project-note {
    color: var(--text-light);
    line-height: 1.8;
}

.project-features,
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.25rem;
}

.project-features span,
.project-tech span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-features span {
    color: var(--primary-color);
    background: var(--primary-light);
}

.project-tech span {
    color: var(--text-dark);
    background: #eef2f7;
}

.project-note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

/* About Section */
.about {
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 3rem;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight-card h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.highlight-card small {
    color: var(--primary-color);
    font-weight: 600;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category i {
    font-size: 1.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 8px;
    background: var(--primary-light);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        width: 0 !important;
    }
}

.competencies {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.competencies h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.competency-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Experience Section */
.experience {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f8ff 100%);
}

.experience-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.exp-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.exp-date {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.exp-role {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.exp-details {
    list-style: none;
}

.exp-details li {
    color: var(--text-light);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.exp-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Education Section */
.education-timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.education-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.edu-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow);
}

.edu-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.edu-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.edu-program {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.edu-level,
.edu-time {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.edu-description {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-light) 0%, #f0f8ff 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 3rem;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.contact-method h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-method a,
.contact-method p {
    color: var(--text-light);
    text-decoration: none;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-icon.linkedin {
    color: #0077B5;
}

.social-icon.instagram {
    color: #e4405f;
}

.social-icon.twitter {
    color: #000000;
}

.social-icon.whatsapp {
    color: #25d366;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.contact-form button {
    width: 100%;
    margin-bottom: 1rem;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2rem;
    text-align: center;
}

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

.footer-social-links a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: var(--transition);
}

.footer-social-links a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.footer p {
    margin-bottom: 0.5rem;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .avatar-circle {
        width: 200px;
        height: 200px;
        font-size: 80px;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .education-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .edu-icon {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    .portfolio-services {
        gap: 0.5rem;
    }

    .service-pill {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .avatar-circle {
        width: 150px;
        height: 150px;
        font-size: 60px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 50px 20px;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .competency-tags {
        gap: 0.75rem;
    }

    .tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 180px;
    }

    .project-overlay h3 {
        font-size: 1.2rem;
    }

    .portfolio-kicker {
        letter-spacing: 0.12em;
    }

    .footer-social-links {
        gap: 0.75rem;
    }

    .footer-social-links a {
        width: 38px;
        height: 38px;
    }
}  

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1.05rem 1.25rem;
        border-bottom: none;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0;
        color: rgba(255, 255, 255, 0.96);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        padding: 1.25rem 0;
    }

    .nav-link {
        font-size: 1.05rem;
        padding: 1rem 1.25rem;
    }
}

/* Experience Gallery */
.exp-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.exp-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: contain;
    background: #eef5ff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.exp-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Chatbot Section */
/* ==================== CHATBOT SECTION - FULLY UPDATED ==================== */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Minimized state */
.chatbot-container.minimized {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.25);
    background: var(--primary-color);
    border: 3px solid rgba(255,255,255,0.3);
    animation: chatbotPulse 2.8s ease-in-out infinite;
}

.chatbot-container.minimized .chatbot-messages,
.chatbot-container.minimized .chatbot-input-area {
    display: none;
}

.chatbot-container.minimized .chatbot-header {
    border-radius: 50%;
    padding: 0;
    height: 100%;
    cursor: pointer;
}

.chatbot-container.minimized .chatbot-title-area {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-container.minimized .chatbot-title-text,
.chatbot-container.minimized .chatbot-close {
    display: none;
}

.chatbot-container.minimized .chatbot-robot-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-container.minimized .chatbot-icon {
    font-size: 1.8rem;
    padding-left: 0 !important;
}

/* Expanded state */
.chatbot-container:not(.minimized) {
    max-height: 680px;
    max-width: 420px;
    animation: chatbotOpen 0.35s ease-out both;
}

/* Header */
.chatbot-header {
    background: var(--primary-color);
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.chatbot-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-title-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chatbot-title-text h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.chatbot-title-text span {
    font-size: 0.78rem;
    opacity: 0.9;
}

.chatbot-close {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.chatbot-icon {
    font-size: 1.45rem;
}

.chatbot-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Messages */
.chatbot-messages {
    height: 380px;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f9fbff;
}

/* Input Area - FIXED & IMPROVED */
.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: white;
}

.chatbot-input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 30px;
    padding: 14px 20px;
    font-size: 0.98rem;
    background: #fff;
    transition: all 0.3s ease;
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
}

.chatbot-input::placeholder {
    color: #999;
}

/* Send Button - Modern & Clean (Matches your screenshot style) */
.chatbot-send {
    background: var(--primary-color);
    color: white;

    border: none;
    border-radius: 6px;
    padding:2px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
}

.chatbot-send:hover {
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.chatbot-send:active {
    transform: scale(0.92);
}

/* Message Styles */
.chatbot-message {
    display: flex;
    animation: chatbotMessageIn 0.35s ease-out both;
}

.typing-indicator .message-content {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 54px;
}

.typing-indicator .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: chatbotTyping 1.2s ease-in-out infinite;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.3s;
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 82%;
    word-wrap: break-word;
    font-size: 0.96rem;
    line-height: 1.45;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message .message-content {
    background: #f1f5f9;
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
}

.cv-action-message .message-content { background: transparent; padding: 0; }
.cv-download-btn { border: 0; border-radius: 8px; padding: 10px 14px; background: var(--primary-color); color: #fff; cursor: pointer; font: inherit; }
.cv-download-btn:hover { background: var(--primary-dark); }

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

@keyframes chatbotPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 102, 204, 0.25); }
    50% { box-shadow: 0 4px 28px rgba(0, 168, 255, 0.55); }
}

@keyframes chatbotOpen {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes chatbotMessageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes chatbotTyping {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .chatbot-container,
    .chatbot-message,
    .typing-indicator .dot {
        animation: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: 310px;
        bottom: 12px;
        right: 12px;
    }
    
    .chatbot-send {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }
    
    .chatbot-messages {
        height: 340px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        width: 92%;
        max-width: 320px;
        bottom: 8px;
        right: 8px;
    }
    
    .chatbot-send {
        width: 44px;
        height: 44px;
    }
}

/* Mobile project layout */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-card-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .project-title-group {
        gap: 0.75rem;
    }

    .project-card h3 {
        font-size: 1.4rem;
    }

    .project-image {
        max-height: none;
    }
}

@media (max-width: 480px) {
    .project-card-header {
        gap: 0.75rem;
    }

    .project-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .project-logo {
        width: 48px;
        height: 48px;
    }

    .project-status {
        font-size: 0.78rem;
        padding: 0.35rem 0.65rem;
    }

    .project-card h3 {
        font-size: 1.25rem;
    }

    .project-description,
    .project-note {
        font-size: 0.95rem;
    }

    .project-features,
    .project-tech {
        gap: 0.45rem;
    }

    .project-features span,
    .project-tech span {
        font-size: 0.78rem;
        padding: 0.4rem 0.6rem;
    }
}
