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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: #1e293b;
    min-height: 100vh;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* Optimized Background - Static for better performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 138, 76, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #334155 0%, #475569 50%, #334155 100%);
    z-index: -2;
}

/* Simplified Pattern - Reduced complexity */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, transparent 40%, rgba(255, 138, 76, 0.04) 50%, transparent 60%);
    background-size: 100px 100px;
    z-index: -1;
}

.chat-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 138, 76, 0.2);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Premium Header */
.chat-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255, 138, 76, 0.2);
    backdrop-filter: blur(15px);
}

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

.ai-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.1rem;
}

.ai-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    border-radius: 50%;
    animation: premiumPulse 2s infinite;
    box-shadow: 0 0 15px rgba(255, 138, 76, 0.4);
}

@keyframes premiumPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Premium Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.message {
    animation: premiumFadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes premiumFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.message-content {
    max-width: 85%;
}

.ai-message .message-content {
    margin-right: auto;
}

.user-message .message-content {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Ensure user message header also aligns to the right */
.user-message .message-header {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.user-message .message-info {
    align-items: flex-end;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    overflow: hidden;
    position: relative;
}

.avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a4c, #3b82f6);
    z-index: -1;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ai-avatar {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
}

.user-avatar {
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 138, 76, 0.25);
}

.message-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sender {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.timestamp {
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.8);
    font-weight: 500;
}

.message-body {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    backdrop-filter: blur(15px);
    border-radius: 1.25rem;
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 138, 76, 0.15);
    color: #e2e8f0;
    line-height: 1.7;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
}

.message-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 76, 0.3), transparent);
}

.user-message .message-body {
    background: linear-gradient(135deg, rgba(255, 138, 76, 0.15) 0%, rgba(255, 107, 53, 0.1) 100%);
    border: 1px solid rgba(255, 138, 76, 0.25);
    display: inline-block;
    max-width: 100%;
    width: fit-content;
}

/* Premium Intro Section */
.intro-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.intro-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.intro-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text p {
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.6;
    font-weight: 400;
}

.profile-image {
    flex-shrink: 0;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(120, 119, 198, 0.3);
    object-fit: cover;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    text-decoration: none;
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 138, 76, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff8a4c, #3b82f6);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.social-link:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Premium Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin: 1rem 0;
}

.typing-dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    border-radius: 50%;
    animation: premiumTyping 1.6s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(255, 138, 76, 0.25);
}

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

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

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

@keyframes premiumTyping {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Optimized Projects Grid - N×3 Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.6) 100%);
    border-radius: 1rem;
    padding: 0;
    border: 1px solid rgba(255, 138, 76, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
    backdrop-filter: blur(15px);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Ultra-light hover for performance */
.project-card:hover {
    transform: translateY(-3px);
}

.project-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.project-card:hover .thumbnail-img {
    transform: scale(1.02);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.publication-venue {
    color: #ff8a4c;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.project-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 138, 76, 0.2);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.paper-btn {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(30, 64, 175, 0.1));
    color: #3b82f6;
}

.code-btn {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    color: #22c55e;
}

.project-action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 0.5rem;
}

.paper-btn::before {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.code-btn::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.project-action-btn:hover::before {
    opacity: 1;
}

.project-action-btn:hover {
    transform: translateY(-1px) scale(1.05);
    border-color: rgba(255, 138, 76, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-action-btn:hover {
    color: white;
}

.project-action-btn i {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, rgba(255, 138, 76, 0.2), rgba(255, 107, 53, 0.15));
    color: #fbbf24;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 138, 76, 0.3);
    backdrop-filter: blur(8px);
}

/* Testimonials Section */
.testimonials-container {
    margin-top: 1.5rem;
}

.testimonials-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border: 1px solid rgba(255, 138, 76, 0.2);
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    border-color: rgba(255, 138, 76, 0.5);
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.testimonials-slider {
    flex: 1;
    position: relative;
    min-height: 120px;
}

.testimonial {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.testimonial.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.testimonial-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(51, 65, 85, 0.4));
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 138, 76, 0.1);
    backdrop-filter: blur(10px);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.9);
}

.testimonial-author strong {
    color: #f8fafc;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #ff8a4c;
    font-size: 0.875rem;
    font-weight: 500;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 138, 76, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: #ff8a4c;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 138, 76, 0.6);
}

/* Premium Chat Input */
.chat-input-container {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-top: 1px solid rgba(255, 138, 76, 0.2);
    backdrop-filter: blur(15px);
    position: relative;
}

/* Scroll to Bottom Button */
.scroll-to-bottom {
    position: absolute;
    top: -60px;
    right: 2rem;
    z-index: 10;
    animation: fadeInUp 0.3s ease-out;
}

.scroll-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 8px 20px rgba(255, 138, 76, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff6b35, #3b82f6);
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 50%;
}

.scroll-btn:hover::before {
    opacity: 1;
}

.scroll-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 138, 76, 0.4);
}

.scroll-btn i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-2px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    background:
        linear-gradient(135deg, rgba(255, 138, 76, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.8));
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 1.25rem;
    padding: 1.2rem 1.8rem;
    color: #f1f5f9;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 0 1px rgba(255, 138, 76, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 2px 8px rgba(255, 138, 76, 0.08),
        inset 0 -2px 8px rgba(59, 130, 246, 0.06);
    position: relative;
    overflow: hidden;
}

.chat-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 138, 76, 0.15), transparent);
    transition: left 0.5s ease;
}

.chat-input:hover::before {
    left: 100%;
}

.chat-input::placeholder {
    color: rgba(148, 163, 184, 0.7);
    font-weight: 500;
}

.chat-input:focus {
    background:
        linear-gradient(135deg, rgba(255, 138, 76, 0.12) 0%, rgba(59, 130, 246, 0.1) 100%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(51, 65, 85, 0.9));
    box-shadow:
        0 0 0 2px rgba(255, 138, 76, 0.4),
        0 0 20px rgba(255, 138, 76, 0.3),
        0 0 40px rgba(255, 138, 76, 0.1),
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 12px rgba(255, 138, 76, 0.12),
        inset 0 -2px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px) scale(1.005);
    color: #ffffff;
}

.chat-input:hover {
    background:
        linear-gradient(135deg, rgba(255, 138, 76, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.97), rgba(51, 65, 85, 0.85));
    box-shadow:
        0 0 0 1px rgba(255, 138, 76, 0.3),
        0 10px 36px rgba(0, 0, 0, 0.35),
        inset 0 2px 10px rgba(255, 138, 76, 0.1),
        inset 0 -2px 10px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.send-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    border: none;
    border-radius: 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(255, 138, 76, 0.25);
    position: relative;
    overflow: hidden;
}

.send-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff6b35, #ff8a4c);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.send-button:hover::before {
    opacity: 1;
}

.send-button i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.send-button:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Premium Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: premiumFadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes premiumFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 138, 76, 0.2);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    animation: premiumSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

@keyframes premiumSlideIn {
    from {
        transform: translateY(-40px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 138, 76, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(51, 65, 85, 0.3));
}

.modal-header h2 {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.close-button {
    background: rgba(255, 138, 76, 0.1);
    border: 1px solid rgba(255, 138, 76, 0.2);
    color: rgba(255, 138, 76, 0.8);
    cursor: pointer;
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.close-button:hover {
    background: rgba(255, 138, 76, 0.2);
    border-color: rgba(255, 138, 76, 0.4);
    color: #ff8a4c;
    transform: scale(1.05);
}

.modal-body {
    padding: 2rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.7;
}

/* Modal Project Details Styling */
.project-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-meta {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(51, 65, 85, 0.4));
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 138, 76, 0.1);
    backdrop-filter: blur(10px);
}

.project-meta p {
    margin-bottom: 0.5rem;
    color: rgba(226, 232, 240, 0.9);
}

.project-meta p:last-child {
    margin-bottom: 0;
}

.project-description h3 {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.project-description h3:first-child {
    margin-top: 0;
}

.project-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-description li {
    margin-bottom: 0.75rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.6;
}

/* Fancy Modal Project Links */
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.modal-project-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 138, 76, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-width: 140px;
    justify-content: center;
}

.paper-link {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(30, 64, 175, 0.1));
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.code-link {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.1));
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.3);
}

.results-link,
.benchmark-link {
    background: linear-gradient(135deg, rgba(255, 138, 76, 0.15), rgba(255, 107, 53, 0.1));
    color: #fbbf24;
    border-color: rgba(255, 138, 76, 0.3);
}

.experiment-link {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(147, 51, 234, 0.1));
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

.demo-link,
.video-link {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.modal-project-link::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 0.75rem;
}

.paper-link::before {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.code-link::before {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.results-link::before,
.benchmark-link::before {
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
}

.experiment-link::before {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.demo-link::before,
.video-link::before {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.modal-project-link:hover::before {
    opacity: 1;
}

.modal-project-link:hover {
    transform: translateY(-2px) scale(1.02);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.modal-project-link i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.modal-project-link span {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
}

/* Optimized Credits Modal */
.credits-content {
    text-align: center;
    padding: 1rem 0;
}

.credits-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.credits-content p {
    margin-bottom: 1.25rem;
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-options {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 2rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    color: white;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: transform 0.2s ease;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(255, 138, 76, 0.25);
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff6b35, #3b82f6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.contact-btn:hover::before {
    opacity: 1;
}

.contact-btn span,
.contact-btn i {
    position: relative;
    z-index: 1;
}

.contact-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Premium Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .chat-container {
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }

    .chat-messages {
        padding: 1.5rem;
    }

    .intro-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

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

    .message-content {
        max-width: 95%;
    }

    .contact-options {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-input-container {
        padding: 1rem 1.5rem;
    }

    .modal-content {
        max-width: 95%;
        margin: 1rem;
    }

    .testimonials-nav {
        flex-direction: column;
        gap: 0.75rem;
    }

    .testimonials-slider {
        width: 100%;
        min-height: 140px;
        margin: 0.5rem 0;
    }

    .nav-btn {
        width: 35px;
        height: 35px;
        margin: 0.25rem 0;
    }
}

/* Optimized Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(255, 138, 76, 0.2);
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b35, #ff8a4c);
}

/* Project Page Styles */
.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: rgba(255, 138, 76, 0.1);
    border: 1px solid rgba(255, 138, 76, 0.2);
    transition: all 0.2s ease;
    font-weight: 500;
}

.back-button:hover {
    background: rgba(255, 138, 76, 0.2);
    border-color: rgba(255, 138, 76, 0.4);
    transform: translateX(-2px);
}

.project-page {
    padding: 2rem 3rem;
}

.project-hero {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 0rem;
    text-align: center;
}

.project-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

.project-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0rem;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-tagline {
    font-size: 1.25rem;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.github-link {
    background: linear-gradient(135deg, #1f2937, #374151);
    color: #f3f4f6;
}

.github-link:hover {
    background: linear-gradient(135deg, #374151, #4b5563);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.demo-link {
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    color: white;
}

.demo-link:hover {
    background: linear-gradient(135deg, #ff6b35, #ff8a4c);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 138, 76, 0.4);
}

.paper-link {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.paper-link:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.project-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-section h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    position: relative;
}

.project-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, #ff8a4c, #3b82f6);
    border-radius: 1.5px;
}

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

.feature-card,
.viz-card,
.platform-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border: 1px solid rgba(255, 138, 76, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.feature-card:hover,
.viz-card:hover,
.platform-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 138, 76, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon,
.viz-icon,
.platform-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h3,
.viz-card h3,
.platform-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.feature-card p,
.viz-card p,
.platform-card p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
}

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

.tech-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(255, 138, 76, 0.2), rgba(59, 130, 246, 0.15));
    border: 1px solid rgba(255, 138, 76, 0.3);
    border-radius: 1.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(255, 138, 76, 0.1), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(255, 138, 76, 0.2);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff8a4c;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(226, 232, 240, 0.8);
    font-weight: 500;
}

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

.method-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border: 1px solid rgba(255, 138, 76, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
}

.method-number {
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8a4c, #ff6b35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.method-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
}

.method-card p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
}

.findings-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.finding-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border: 1px solid rgba(255, 138, 76, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
}

.finding-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.finding-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.finding-content p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.6;
}

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

/* Image Gallery Styles */
.image-gallery {
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem; */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.gallery-item {
    width: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(51, 65, 85, 0.6));
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 138, 76, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    /* height: 250px; */
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.image-caption {
    padding: 1.5rem;
}

.image-caption h4 {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.image-caption p {
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .project-page {
        padding: 1rem 1.5rem;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .project-links {
        flex-direction: column;
        align-items: center;
    }

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

    .tech-stack {
        grid-template-columns: 1fr;
    }

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

    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.publication-badge {
    color: #ff8a4c;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 0rem;
}