* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --light-blue: #9bc4cb;
    --golden-chestnut: #c08552;
    --charcoal-blue: #2e4057;
    --lemon-lime: #c1df1f;
    --amethyst: #a833b9;
    
    --primary: #a833b9;
    --primary-dark: #8a2a99;
    --primary-light: #c75dd6;
    --dark: #2e4057;
    --gray: #64748b;
    --light: #f0f7f8;
    --white: #ffffff;
    --accent: #c1df1f;
    --gradient: linear-gradient(135deg, #a833b9 0%, #c08552 50%, #c1df1f 100%);
    --gradient-alt: linear-gradient(135deg, #2e4057 0%, #a833b9 100%);
    
    /* Theme-specific variables */
    --bg-primary: #f0f7f8;
    --bg-secondary: #ffffff;
    --text-primary: #2e4057;
    --text-secondary: #64748b;
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.08);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --navbar-bg: rgba(15, 23, 42, 0.98);
    --card-bg: #1e293b;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --light: #1e293b;
    --white: #0f172a;
    --dark: #f1f5f9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease, background 0.5s ease;
}

.navbar.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--white);
}

[data-theme="dark"] .logo-text {
    color: #f1f5f9;
}

.logo-dot {
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-number {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.nav-links a:hover {
    color: #f1f5f9;
}

.nav-btn {
    background: var(--gradient);
    padding: 10px 24px !important;
    border-radius: 50px;
    color: var(--white) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(168, 51, 185, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 51, 185, 0.4);
}

.nav-btn .nav-number {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #f1f5f9;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Theme Toggle */
.theme-toggle {
    cursor: pointer;
    margin-right: 15px;
}

.toggle-track {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    transition: background 0.5s ease;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.toggle-icon {
    font-size: 14px;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.toggle-icon.sun {
    opacity: 0.4;
}

.toggle-icon.moon {
    opacity: 1;
}

.toggle-thumb {
    position: absolute;
    right: 3px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Light mode toggle styles */
[data-theme="light"] .toggle-track {
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 100%);
}

[data-theme="light"] .toggle-thumb {
    right: calc(100% - 27px);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

[data-theme="light"] .toggle-icon.sun {
    opacity: 1;
}

[data-theme="light"] .toggle-icon.moon {
    opacity: 0.4;
}

/* Theme transition overlay */
.theme-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Cat Animation Stage */
.cat-stage {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 10000;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(to top, rgba(46, 64, 87, 0.95) 0%, rgba(46, 64, 87, 0.8) 70%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cat-stage.visible {
    transform: translateY(0);
}

.cat-stage::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #1a2634;
}

/* Ground line */
.cat-stage::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #9bc4cb, #c08552, #a833b9, #c1df1f, transparent);
}

.theme-cat {
    position: absolute;
    bottom: 22px;
    left: -120px;
    width: 100px;
    height: 70px;
    z-index: 10001;
    pointer-events: none;
}

.theme-cat.walking {
    animation: catWalk 3s ease-in-out forwards;
}

.theme-cat.walking-back {
    animation: catWalkBack 3s ease-in-out forwards;
}

@keyframes catWalk {
    0% {
        left: -120px;
        transform: scaleX(1);
    }
    40% {
        left: calc(50% - 80px);
        transform: scaleX(1);
    }
    50% {
        left: calc(50% - 80px);
        transform: scaleX(1);
    }
    60% {
        left: calc(50% - 80px);
        transform: scaleX(-1);
    }
    100% {
        left: calc(100% + 120px);
        transform: scaleX(-1);
    }
}

@keyframes catWalkBack {
    0% {
        left: calc(100% + 120px);
        transform: scaleX(-1);
    }
    40% {
        left: calc(50% - 80px);
        transform: scaleX(-1);
    }
    50% {
        left: calc(50% - 80px);
        transform: scaleX(-1);
    }
    60% {
        left: calc(50% - 80px);
        transform: scaleX(1);
    }
    100% {
        left: -120px;
        transform: scaleX(1);
    }
}

/* Cat paw reaching animation */
.cat-paw-reach {
    transform-origin: bottom right;
    transition: transform 0.2s ease;
}

.theme-cat.reaching .cat-paw-reach {
    animation: pawReach 0.4s ease-in-out;
}

@keyframes pawReach {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-15px); }
    100% { transform: rotate(0deg) translateY(0); }
}

.cat-body {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cat SVG Animation */
.cat-body svg {
    width: 100%;
    height: 100%;
}

.cat-legs-front, .cat-legs-back {
    animation: legMove 0.15s ease-in-out infinite alternate;
    transform-origin: top center;
}

.cat-legs-back {
    animation-delay: 0.075s;
}

@keyframes legMove {
    0% { transform: rotate(-20deg); }
    100% { transform: rotate(20deg); }
}

.cat-tail {
    animation: tailWag 0.4s ease-in-out infinite alternate;
    transform-origin: right center;
}

@keyframes tailWag {
    0% { transform: rotate(-15deg); }
    100% { transform: rotate(15deg); }
}

/* Light switch on the stage */
.light-switch {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 22px;
    width: 30px;
    height: 80px;
    z-index: 10000;
}

.switch-pole {
    fill: #64748b;
}

.switch-box {
    fill: #4a5568;
    stroke: #64748b;
    stroke-width: 2;
}

.switch-toggle {
    transition: transform 0.3s ease;
    transform-origin: center;
}

.light-switch.on .switch-toggle {
    transform: rotate(-30deg);
}

.light-switch.off .switch-toggle {
    transform: rotate(30deg);
}

/* Lamp posts on the stage */
.lamp-post {
    position: absolute;
    bottom: 20px;
    width: 30px;
    height: 70px;
}

.lamp-post.left {
    left: 20%;
}

.lamp-post.right {
    right: 20%;
}

.lamp-glow {
    transition: all 0.5s ease;
}

.lamp-post.on .lamp-glow {
    fill: #ffd700;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
}

.lamp-post.off .lamp-glow {
    fill: #4a5568;
    filter: none;
}

/* Screen darkness overlay */
.darkness-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    background: #0f172a;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.darkness-overlay.active {
    visibility: visible;
    animation: fadeInDarkness 0.3s ease forwards;
}

.darkness-overlay.fade-out {
    animation: fadeOutDarkness 0.3s ease forwards;
}

@keyframes fadeInDarkness {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOutDarkness {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

/* Message on stage */
.stage-message {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #c1df1f;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stage-message.visible {
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    transition: background 0.5s ease;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(168, 51, 185, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 133, 82, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(193, 223, 31, 0.08) 0%, transparent 40%);
    animation: bgPulse 8s ease-in-out infinite;
}

[data-theme="dark"] .hero-bg-animation {
    background: 
        radial-gradient(circle at 20% 80%, rgba(168, 51, 185, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 133, 82, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(193, 223, 31, 0.1) 0%, transparent 40%);
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes bgPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.greeting {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    min-height: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
    transition: color 0.5s ease;
}

.typing-text {
    color: var(--primary);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
    transition: color 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 60px;
    text-align: center;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

.scroll-indicator p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(168, 51, 185, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 51, 185, 0.5);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
    position: relative;
    transition: color 0.5s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 120px 20px;
    background: var(--bg-secondary);
    transition: background 0.5s ease;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
    transition: color 0.5s ease;
}

/* Skills Section */
.skills {
    padding: 120px 20px;
    background: var(--bg-primary);
    transition: background 0.5s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px var(--card-shadow);
    transition: all 0.4s ease, background 0.5s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(168, 51, 185, 0.15);
}

.skill-icon {
    margin-bottom: 20px;
}

.skill-gif {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--light-blue);
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    transition: color 0.5s ease;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background 0.5s ease;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.5s ease;
}

/* Experience Section */
.experience {
    padding: 120px 20px;
    background: var(--bg-secondary);
    transition: background 0.5s ease;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 2px;
}

.experience-card {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.experience-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.experience-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 5px 20px rgba(168, 51, 185, 0.3);
    position: relative;
    z-index: 1;
    transition: border-color 0.5s ease;
}

.exp-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-content {
    flex: 1;
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 5px 20px var(--card-shadow);
    transition: background 0.5s ease;
}

.experience-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 35px;
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    transform: rotate(45deg);
    transition: background 0.5s ease;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    transition: color 0.5s ease;
}

.experience-date {
    background: var(--gradient);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.experience-date.past {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
}

.experience-company {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 15px;
}

.experience-list {
    list-style: none;
}

.experience-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

.experience-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Contact Section */
.contact {
    padding: 120px 20px;
    background: var(--dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Projects Section */
.projects {
    padding: 120px 20px;
    background: var(--bg-primary);
    transition: background 0.5s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0;
    }
    
    .project-card {
        margin: 0 auto;
        max-width: 100%;
    }
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--card-shadow);
    transition: all 0.4s ease, background 0.5s ease, opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(40px);
    display: flex;
    flex-direction: column;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(168, 51, 185, 0.15);
}

.project-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--golden-chestnut) 100%);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.project-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    transition: color 0.5s ease;
}

.project-content > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    transition: color 0.5s ease;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    background: rgba(168, 51, 185, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

[data-theme="dark"] .project-tech span {
    background: rgba(168, 51, 185, 0.2);
}

.project-highlights {
    margin-bottom: 20px;
}

.project-highlights ul {
    list-style: none;
    padding: 0;
}

.project-highlights li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    transition: color 0.5s ease;
}

.project-highlights li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: scale(1.1);
}

/* Home Projects Section */
.home-projects {
    padding: 120px 20px;
    background: var(--bg-secondary);
    transition: background 0.5s ease;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -50px;
    margin-bottom: 60px;
    transition: color 0.5s ease;
}

.home-projects-grid {
    max-width: 900px;
    margin: 0 auto;
}

.home-project-card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--card-shadow);
    transition: all 0.4s ease, background 0.5s ease;
    opacity: 0;
    transform: translateY(40px);
}

.home-project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.home-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(168, 51, 185, 0.15);
}

.home-project-header {
    background: linear-gradient(135deg, #1a2634 0%, #2e4057 50%, #1a2634 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-project-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(168, 51, 185, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(193, 223, 31, 0.1) 0%, transparent 50%);
    animation: headerPulse 4s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.home-project-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.home-project-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.status-text {
    color: #f1f5f9;
    font-size: 0.85rem;
    font-weight: 500;
}

.home-project-content {
    padding: 30px;
}

.home-project-content h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    transition: color 0.5s ease;
}

.home-project-content > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    transition: color 0.5s ease;
}

.home-project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.home-project-tech span {
    background: rgba(168, 51, 185, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.home-project-tech span:hover {
    background: rgba(168, 51, 185, 0.2);
}

[data-theme="dark"] .home-project-tech span {
    background: rgba(168, 51, 185, 0.2);
}

.home-project-features {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    transition: background 0.5s ease;
}

.home-project-features h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.home-project-features ul {
    list-style: none;
    padding: 0;
}

.home-project-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    transition: color 0.5s ease;
}

.home-project-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.home-project-features li strong {
    color: var(--text-primary);
}

.home-project-roadmap {
    background: linear-gradient(135deg, rgba(168, 51, 185, 0.08) 0%, rgba(193, 223, 31, 0.08) 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(168, 51, 185, 0.15);
    transition: background 0.5s ease, border-color 0.5s ease;
}

[data-theme="dark"] .home-project-roadmap {
    background: linear-gradient(135deg, rgba(168, 51, 185, 0.15) 0%, rgba(193, 223, 31, 0.1) 100%);
    border-color: rgba(168, 51, 185, 0.25);
}

.home-project-roadmap h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.home-project-roadmap ul {
    list-style: none;
    padding: 0;
}

.home-project-roadmap li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    transition: color 0.5s ease;
}

.home-project-roadmap li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.home-project-roadmap li strong {
    color: var(--text-primary);
}

.home-project-architecture {
    margin-bottom: 25px;
}

.home-project-architecture h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.architecture-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 16px;
    transition: background 0.5s ease;
}

.arch-node {
    background: var(--gradient);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 4px 15px rgba(168, 51, 185, 0.3);
}

.arch-arrow {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.home-project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.home-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.home-project-link:hover {
    background: var(--primary);
    color: #ffffff;
}

.home-project-link svg {
    transition: transform 0.3s ease;
}

.home-project-link:hover svg {
    transform: rotate(90deg);
}

.home-project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
}

.home-project-badge svg {
    fill: #ffffff;
}

/* Responsive for Home Projects */
@media (max-width: 768px) {
    .architecture-diagram {
        flex-direction: column;
    }
    
    .arch-arrow {
        transform: rotate(90deg);
    }
    
    .home-project-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .home-project-links {
        justify-content: center;
    }
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 51, 185, 0.1) 0%, transparent 50%);
    animation: contactBg 15s linear infinite;
}

@keyframes contactBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact .section-title {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.contact-text {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.contact .btn {
    position: relative;
    z-index: 1;
}

.contact-buttons {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .social-link {
    color: #2e4057;
    background: rgba(46, 64, 87, 0.2);
    border: 1px solid rgba(46, 64, 87, 0.4);
}

.social-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(168, 51, 185, 0.4);
}

[data-theme="dark"] .social-link:hover {
    color: #ffffff;
}

/* Footer */
.footer {
    background: #0a0f1a;
    padding: 25px;
    text-align: center;
}

.footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .name {
        font-size: 2.8rem;
    }
    
    .title {
        font-size: 1.4rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .experience-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experience-icon {
        width: 70px;
        height: 70px;
        margin-left: -15px;
    }
    
    .experience-content::before {
        display: none;
    }
}


/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-trail.particle {
    width: 8px;
    height: 8px;
    background: var(--gradient);
    animation: cursorFade 1s ease forwards;
}

.cursor-trail.symbol {
    font-size: 14px;
    animation: cursorSymbolFade 1.2s ease forwards;
}

@keyframes cursorFade {
    0% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

@keyframes cursorSymbolFade {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5) rotate(180deg) translateY(-20px);
    }
}

/* Main cursor dot */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent);
}

/* Cursor ring */
.cursor-ring {
    position: fixed;
    width: 35px;
    height: 35px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
    opacity: 0.5;
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
    opacity: 0.8;
}

.cursor-ring.click {
    transform: translate(-50%, -50%) scale(0.8);
    border-width: 3px;
}


/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #2e4057 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 4rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 30px;
    animation: logoFloat 2s ease-in-out infinite;
}

.loader-dot {
    color: var(--primary);
    display: inline-block;
    animation: dotPulse 1s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.loader-bar {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto 25px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 4px;
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    20% { width: 20%; }
    50% { width: 60%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

.loader-text {
    color: #94a3b8;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    margin-bottom: 30px;
    min-height: 24px;
}

.loader-typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}

.loader-particles {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.loader-particles span {
    font-size: 1.8rem;
    opacity: 0;
    animation: particlePop 0.5s ease forwards;
}

.loader-particles span:nth-child(1) { animation-delay: 0.3s; }
.loader-particles span:nth-child(2) { animation-delay: 0.5s; }
.loader-particles span:nth-child(3) { animation-delay: 0.7s; }
.loader-particles span:nth-child(4) { animation-delay: 0.9s; }
.loader-particles span:nth-child(5) { animation-delay: 1.1s; }

@keyframes particlePop {
    0% {
        opacity: 0;
        transform: scale(0) translateY(20px);
    }
    50% {
        transform: scale(1.3) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Page content hidden during load */
body.loading .navbar,
body.loading .hero,
body.loading .about,
body.loading .skills,
body.loading .experience,
body.loading .contact,
body.loading .footer {
    opacity: 0;
}

/* Reveal animation after load */
body:not(.loading) .navbar {
    animation: slideDown 0.6s ease forwards;
}

body:not(.loading) .hero-content {
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Performance Optimizations */
.hero-content,
.skill-card,
.experience-card,
#particles-canvas {
    will-change: transform, opacity;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg-animation,
    .cursor-trail,
    .cursor-dot,
    .cursor-ring,
    #particles-canvas {
        display: none !important;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .cursor-dot,
    .cursor-ring,
    .cursor-trail {
        display: none !important;
    }
    
    .hero-bg-animation {
        animation: none;
    }
    
    .skill-card {
        will-change: auto;
    }
}

/* GPU acceleration for animations */
.theme-cat,
.cat-stage,
.loader-content,
.navbar {
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* Chatbot Widget */
.chatbot-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(168, 51, 185, 0.4);
    z-index: 9990;
    transition: all 0.3s ease;
    animation: chatPulse 3s ease-in-out infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(168, 51, 185, 0.6);
}

.chatbot-toggle svg {
    stroke: #ffffff;
}

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(168, 51, 185, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(168, 51, 185, 0.7); }
}

.chatbot-widget {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 370px;
    max-height: 500px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    z-index: 9990;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(168, 51, 185, 0.15);
    overflow-x: hidden;
}

.chatbot-widget.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--gradient);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.chatbot-header h4 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.chatbot-status {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #ffffff;
}

.chatbot-close svg {
    stroke: #ffffff;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 250px;
    max-height: 320px;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 51, 185, 0.3) transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 5px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(168, 51, 185, 0.3);
    border-radius: 10px;
}

.chat-message {
    display: flex;
    max-width: 85%;
    min-width: 0;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.chat-message.bot .chat-bubble {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message.bot .chat-bubble strong {
    color: var(--primary);
    font-weight: 600;
}

.chat-message.bot .chat-bubble em {
    opacity: 0.9;
}

.chat-message.bot .chat-bubble a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-message.bot .chat-bubble a:hover {
    opacity: 0.8;
}

.chat-message.bot .chat-bubble pre {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 8px 0;
    overflow-x: auto;
    font-size: 0.82rem;
    max-width: 100%;
    white-space: pre-wrap;
    word-break: break-all;
}

.chat-message.bot .chat-bubble code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.chat-inline-code {
    background: rgba(168, 51, 185, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
}

.chat-message.bot .chat-bubble ul,
.chat-message.bot .chat-bubble ol {
    margin: 6px 0;
    padding-left: 18px;
}

.chat-message.bot .chat-bubble li {
    margin: 3px 0;
    font-size: 0.88rem;
}

.chat-heading {
    display: block;
    font-size: 1.05rem;
    color: var(--primary);
    margin: 8px 0 4px;
}

.chat-subheading {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
    margin: 6px 0 3px;
}

.chat-hr {
    border: none;
    border-top: 1px solid rgba(168, 51, 185, 0.2);
    margin: 8px 0;
}

.chat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    font-size: 0.82rem;
}

.chat-table th,
.chat-table td {
    border: 1px solid rgba(168, 51, 185, 0.2);
    padding: 6px 10px;
    text-align: left;
}

.chat-table th {
    background: rgba(168, 51, 185, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.chat-table tr:nth-child(even) td {
    background: rgba(168, 51, 185, 0.04);
}

.chat-message.user .chat-bubble {
    background: var(--gradient);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-typing {
    display: flex;
    gap: 5px;
    padding: 12px 18px;
    align-items: center;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    animation: typingDot 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-5px); }
}

.chatbot-input-area {
    display: flex;
    padding: 14px;
    gap: 10px;
    border-top: 1px solid rgba(168, 51, 185, 0.1);
    flex-shrink: 0;
    background: var(--card-bg);
}

#chatbot-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid rgba(168, 51, 185, 0.15);
    border-radius: 25px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
}

#chatbot-input::placeholder {
    color: var(--text-secondary);
}

#chatbot-input:focus {
    border-color: var(--primary);
}

#chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#chatbot-send:hover {
    transform: scale(1.1);
}

#chatbot-send svg {
    fill: #ffffff;
}

/* Mobile chatbot */
@media (max-width: 768px) {
    .chatbot-widget {
        width: calc(100% - 30px);
        right: 15px;
        bottom: 85px;
        max-height: 70vh;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
