/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 211, 238, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #0f172a 50%, #1e1b4b 75%, #0f172a 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.search-container {
    display: inline-block;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid white;
    border-radius: 128px;
    padding: 16px 32px 16px 24px;
}

.logo-image {
    height: 50%;
    width: auto;
    object-fit: contain;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    font-size: 16px;
    width: 200px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.clear-btn {
    position: absolute;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 4px;
}

.clear-btn svg {
    width: 16px;
    height: 16px;
    color: white;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.chat-container {
    width: 100%;
    max-width: 600px;
}

.main-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 5px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.main-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.main-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    color: white;
    font-size: 16px;
    outline: none;
}

.main-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.send-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 5px;
    font-size: 18px;
    line-height: 1;
}

.send-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.send-btn:active {
    transform: scale(0.95);
}

/* Chat Messages Styles */
.chat-messages {
    width: 100%;
    max-width: 600px;
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.message {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.message.user {
    text-align: right;
}

.message.bot {
    text-align: left;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 15px 20px;
    border-radius: 20px;
    word-wrap: break-word;
    line-height: 1.6;
}

/* Ensure images in chat messages are visible */
.message-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.message.bot .message-content {
    max-width: 100%;
}

.message.user .message-content {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.message.bot .message-content {
    background: transparent;
    border: none;
}

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

/* Role Fit Analysis Styles */
.role-fit-analysis {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.excellent-match-box {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Color variations based on fit score */
.excellent-match-box.low-fit {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.3);
}

.excellent-match-box.partial-fit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.3);
}

.excellent-match-box.good-fit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

.match-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.checkmark-icon {
    background: white;
    color: #10b981;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    min-width: 40px;
    min-height: 40px;
}

.match-text {
    color: white;
}

.match-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.match-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
}

.match-percentage {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.profile-image {
    width: 120px;
    height: 100%;
    min-height: 200px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-content {
    font-size: 0.95rem;
    color: white;
    line-height: 1.5;
    font-weight: 500;
}

.ai-analysis-note {
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design for Role Fit Analysis */
@media (max-width: 768px) {
    .excellent-match-box {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .match-percentage {
        font-size: 2.5rem;
    }
    
    .profile-card {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .profile-image {
        width: 100px;
        height: 100%;
        min-height: 150px;
        margin: 0 auto;
    }
    
    .profile-details {
        gap: 20px;
    }
    
    .section-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .excellent-match-box {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .match-title {
        font-size: 1.3rem;
    }
    
    .match-subtitle {
        font-size: 0.9rem;
    }
    
    .match-percentage {
        font-size: 2rem;
    }
    
    .profile-card {
        padding: 16px;
    }
    
    .profile-image {
        width: 80px;
        height: 100%;
        min-height: 120px;
    }
    
    .section-label {
        font-size: 0.75rem;
    }
    
    .section-content {
        font-size: 0.85rem;
    }
}

/* Projects Section Styles */
.projects-section {
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    transition: all 0.3s ease;
    opacity: 1;
}

.projects-section.hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.projects-heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    flex: 1;
}

.project-icon {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.project-icon .material-icons {
    font-size: 20px;
    color: white;
    font-weight: 500;
}

.project-icon .project-emoji {
    font-size: 20px;
    color: white;
    font-weight: 500;
}

.project-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}



.project-details-toggle {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.project-details-toggle:hover {
    color: white;
}



.project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-impact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.project-impact .rocket {
    font-size: 1.1rem;
}

.case-study-button {
    background: white;
    color: #1e3a8a;
    border: none;
    border-radius: 64px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-study-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.case-study-button:active {
    transform: translateY(0);
}

/* Action Cards Styles */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

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

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card:active {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.card:hover .card-icon {
    color: white;
    transform: scale(1.1);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.card-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Projects Display Styles */
.projects-header {
    text-align: left;
    margin-bottom: 30px;
    padding: 0;
}

.projects-title {
    font-size: 1.5rem;
    color: white;
    font-weight: 400;
    margin: 0;
}

/* About Jon Section Styles */
.about-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
}

.about-title {
    font-size: 1.8rem;
    color: white;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
    font-family: 'Rubik', sans-serif;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 20px;
}

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

.about-image-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
}

.about-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16/9 !important;
    border-radius: 64px !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
    object-fit: cover !important;
}

.about-image:hover {
    transform: translateY(-5px) !important;
    box-shadow: none !important;
}

/* Responsive adjustments for About Jon */
@media (max-width: 768px) {
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about-content {
        gap: 30px;
        padding: 0 20px;
    }
    
    .about-image {
        max-width: 100%;
    }
}

.projects-container {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    max-width: 100%;
}

.project-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 24px 0px 24px;
    margin-bottom: 8px;
}

.project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 6px 0px 0px 0px;
    transition: all 0.2s ease;
    border-radius: 8px;
}



.project-header.expanded {
    background: rgba(255, 255, 255, 0.08);
}

.project-icon {
    font-size: 1.2rem;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.project-icon .project-emoji {
    font-size: 20px;
    color: white;
    font-weight: 500;
}



.project-title {
    flex: 1;
    font-size: 1rem;
    color: white;
    font-weight: 400;
    line-height: 1.4;
}

.expand-indicator {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    min-width: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.project-item.expanded .expand-indicator {
    color: rgba(255, 255, 255, 0.8);
}

.project-details {
    margin-top: 20px;
    margin-left: 39px;
    padding-left: 20px;
    display: none;
}

.project-item.expanded .project-details {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    padding-bottom: 24px;
}

.project-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.project-impact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.impact-icon {
    font-size: 1rem;
}

.case-study-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #1e3a8a;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.case-study-link:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.no-case-study {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.link-icon {
    font-size: 1rem;
    font-weight: bold;
}

.back-button {
    text-align: center;
    margin-top: 30px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive adjustments for projects */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }
    
    .expand-indicator {
        align-self: flex-end;
        margin-top: -25px;
    }
    
    .project-details {
        margin-left: 0;
        padding-left: 15px;
    }
    
    .projects-title {
        font-size: 1.3rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .search-input {
        width: 180px;
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .main-input {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .projects-section {
        max-width: 100%;
    }
    
    .project-item {
        padding: 15px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 400px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .search-input {
        width: 150px;
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .main-input-wrapper {
        border-radius: 25px;
    }
    
    .main-input {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .send-btn {
        width: 35px;
        height: 35px;
    }
    
    .projects-heading {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .project-item {
        padding: 12px;
    }
    
    .project-title {
        font-size: 0.95rem;
    }
    
    .action-cards {
        gap: 15px;
    }
    
    .card {
        padding: 20px 15px;
    }
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Loading Animation */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 80%;
    margin-bottom: 20px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

.project-domain {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.project-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.project-content {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.project-skills {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.project-impact {
    background: rgba(16, 185, 255, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}
