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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0d2e 30%, #2d1b69 70%, #6b46c1 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    cursor: none; /* Hide the default cursor */
}

/* Cursor and Trail Effect */
.cursor-dot {
    width: 4px;
    height: 4px;
    background: #c084fc;
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease;
    mix-blend-mode: screen;
}

.trail-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99998;
    overflow: hidden;
}

.trail {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    background: #c084fc;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    mix-blend-mode: screen;
}

.trail::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    filter: blur(2px);
    opacity: 0.5;
}

.trail-small {
    width: 6px;
    height: 6px;
    background: #e879f9;
}

.trail-medium {
    width: 10px;
    height: 10px;
    background: #a855f7;
}

/* Hover effects */
a:hover ~ .cursor-dot,
button:hover ~ .cursor-dot,
[role="button"]:hover ~ .cursor-dot {
    width: 6px;
    height: 6px;
    background: #e879f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(16, 5, 45, 0.95);
    backdrop-filter: blur(25px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

nav.scrolled {
    background: rgba(16, 5, 45, 0.98);
    box-shadow: 0 15px 40px rgba(107, 70, 193, 0.3);
}

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

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #a855f7, #c084fc, #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #c084fc;
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(192, 132, 252, 0.4);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #a855f7, #e879f9);
    transition: width 0.4s ease;
    border-radius: 2px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    padding-left: 5%;
}

.hero-content {
    z-index: 10;
    flex: 1;
    max-width: 600px;
    position: relative;
    pointer-events: auto;
    text-align: left;
    padding-right: 2rem;
}

.hero h1 {
    text-align: left;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffffff, #c084fc, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease;
    font-weight: 800;
    text-shadow: 0 0 50px rgba(192, 132, 252, 0.3);
}

.hero p {
    text-align: left;
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 1s ease 0.2s both;
    color: #e2e8f0;
    line-height: 1.8;
}

/* 3D Canvas */
#three-canvas {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 5;
    pointer-events: auto;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    position: relative;
    z-index: 100;
    pointer-events: auto;
    outline: none;
    font-family: inherit;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.6);
    background: linear-gradient(45deg, #a855f7, #c084fc, #8b5cf6);
}

.cta-button:active {
    transform: translateY(2px) scale(0.95);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section h2 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #ffffff, #c084fc, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e2e8f0;
    background: rgba(139, 92, 246, 0.05);
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(192, 132, 252, 0.2);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
    border-color: #c084fc;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 2;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.skills {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-skill-card {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 25px;
    padding: 3rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
}

.mega-skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.3);
    border-color: #c084fc;
    background: rgba(139, 92, 246, 0.15);
}

.skill-header {
    text-align: center;
    margin-bottom: 3rem;
}

.skill-header h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #c084fc, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.skill-header p {
    color: #e2e8f0;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.skill-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.skill-category {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(192, 132, 252, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.skill-category:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #c084fc;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.skill-category h4 {
    color: #c084fc;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(192, 132, 252, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h4 i {
    font-size: 1.3rem;
    opacity: 0.9;
}

.skill-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.2);
}

.skill-icon:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(139, 92, 246, 0.2);
    border-color: #c084fc;
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.skill-icon i {
    font-size: 2rem;
    color: #c084fc;
    transition: all 0.3s ease;
}

.skill-icon:hover i {
    color: #e879f9;
    transform: scale(1.1) rotate(5deg);
}

.skill-icon span {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.project-card {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(15px);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 250px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.1), rgba(192, 132, 252, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.icon-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-container > i {
    font-size: 5rem;
    color: #c084fc;
    z-index: 2;
    transition: all 0.5s ease;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.5);
}

.project-card:hover .icon-container > i {
    transform: scale(1.1);
    color: #e879f9;
}

.icon-background {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    opacity: 0.1;
    transition: all 0.5s ease;
}

.icon-background i {
    font-size: 3rem;
    color: #c084fc;
    opacity: 0.5;
    animation: floatIcon 3s infinite;
    position: relative;
}

.icon-background i:nth-child(1) {
    animation-delay: 0s;
    top: -20px;
}

.icon-background i:nth-child(2) {
    animation-delay: -1s;
}

.icon-background i:nth-child(3) {
    animation-delay: -2s;
    top: 20px;
}

.project-card:hover .icon-background {
    opacity: 0.2;
    transform: scale(1.1);
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 80px rgba(139, 92, 246, 0.4);
    border-color: #c084fc;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.1), rgba(192, 132, 252, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #c084fc;
    transition: all 0.3s ease;
}

.project-card:hover .project-title {
    color: #e879f9;
}

.project-description {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #e2e8f0;
    flex: 1;
}

.project-tech {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-tag {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(192, 132, 252, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background: rgba(192, 132, 252, 0.25);
    border-color: rgba(192, 132, 252, 0.5);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ffffff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(192, 132, 252, 0.3);
}

.contact-item i {
    font-size: 1.5rem;
    color: #c084fc;
    background: rgba(192, 132, 252, 0.1);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item:hover i {
    transform: scale(1.1);
    color: #e879f9;
    background: rgba(192, 132, 252, 0.2);
}

.contact-item div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.contact-item a,
.contact-item span {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-item a:hover {
    color: #c084fc;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-form:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(192, 132, 252, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(192, 132, 252, 0.5);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.1);
}

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

.contact-form .cta-button {
    width: 100%;
    margin-top: 0;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .about-content {
        gap: 3rem;
    }
    .about-text {
        padding: 2.5rem;
        font-size: 1.1rem;
    }
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-info h3 {
        text-align: center;
    }
    .contact-item {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    #three-canvas { width: 100%; opacity: 0.4; }
    .skill-icons {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    .mega-skill-card {
        padding: 2rem;
    }
    .skill-categories {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; }
    .nav-links { display: none; }
    .section h2 { font-size: 2.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .skill-icons {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-icon {
        padding: 0.8rem;
    }
    
    .skill-icon i {
        font-size: 1.5rem;
    }
    .about-text {
        padding: 2rem;
    }
    .about-text p {
        font-size: 1.1rem;
        line-height: 1.8;
    }
    .skill-header h3 {
        font-size: 2rem;
    }
    .contact-item {
        padding: 1.25rem;
    }
    
    .contact-item i {
        padding: 0.75rem;
        font-size: 1.25rem;
    }
    
    .contact-form {
        padding: 2rem;
        gap: 1.5rem;
    }
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    .icon-container > i {
        font-size: 4rem;
    }
    
    .icon-background i {
        font-size: 2.5rem;
    }
    
    .icon-background {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero h1 { font-size: 2.2rem; }
    .cta-button { padding: 1rem 2rem; font-size: 1rem; }
    .about-text {
        padding: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .mega-skill-card {
        padding: 1.5rem;
    }
    
    .skill-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-icons {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 1rem;
    }
    
    .skill-icon {
        padding: 1rem;
    }
    
    .skill-icon i {
        font-size: 1.5rem;
    }
    .contact-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 1.25rem;
        gap: 1.25rem;
    }
    
    .contact-item i {
        font-size: 1.25rem;
        padding: 0.875rem;
        min-width: 3rem;
        height: 3rem;
    }
    
    .contact-item div {
        gap: 0.2rem;
    }
    
    .contact-item strong {
        font-size: 1rem;
    }
    
    .contact-item a,
    .contact-item span {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        gap: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem 1rem;
    }
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    .icon-container > i {
        font-size: 3.5rem;
    }
    
    .icon-background i {
        font-size: 2rem;
    }
    
    .icon-background {
        gap: 2rem;
    }
}

/* Chatbot Styles */
#chatbotToggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chatbotToggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}

#chatbotToggle i {
    font-size: 24px;
    color: white;
}

#chatbotWindow {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(16, 5, 45, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.chatbot-header {
    padding: 15px 20px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

#chatbotClose {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: all 0.3s ease;
}

#chatbotClose:hover {
    transform: scale(1.1);
    color: #a855f7;
}

#chatMessages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.message.bot {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    align-self: flex-start;
    color: #fff;
}

.message.user {
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid rgba(168, 85, 247, 0.3);
    align-self: flex-end;
    color: #fff;
}

.message-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

.chatbot-input {
    padding: 15px 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    gap: 10px;
}

#chatInput {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

#chatInput:focus {
    border-color: #a855f7;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

#sendMessage {
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

#sendMessage:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

#sendMessage:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px;
    align-self: flex-start;
    max-width: 100px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    opacity: 0.6;
    animation: typingAnimation 1.4s infinite;
}

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

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* Scrollbar Styles for Chat Messages */
#chatMessages::-webkit-scrollbar {
    width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

@media (max-width: 480px) {
    #chatbotWindow {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 90px;
    }

    #chatbotToggle {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
    }

    #chatbotToggle i {
        font-size: 20px;
    }

    .chatbot-header {
        padding: 12px 15px;
    }

    .chatbot-input {
        padding: 12px 15px;
    }

    #chatInput {
        padding: 8px 12px;
    }

    #sendMessage {
        padding: 8px 15px;
    }
} 