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

:root {
    --primary-color: #26577D;
    --primary-dark: #1d4161;
    --accent-bg: #F4F6F8;
    --white: #FFFFFF;
    --text-dark: #1B1F23;
    --text-light: #5a6c7d;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(38, 87, 125, 0.08);
    --shadow-md: 0 4px 16px rgba(38, 87, 125, 0.12);
    --shadow-lg: 0 8px 24px rgba(38, 87, 125, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    background: var(--accent-bg);
    color: var(--text-dark);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.main-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px 0;
    gap: 20px;
    align-items: flex-start;
    flex: 1;
    overflow: hidden;
}

.left-panel {
    flex: 0 0 340px;
    overflow-y: auto;
    max-height: 100%;
}

.left-panel::-webkit-scrollbar {
    width: 6px;
}

.left-panel::-webkit-scrollbar-track {
    background: transparent;
}

.left-panel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.left-panel::-webkit-scrollbar-thumb:hover {
    background: #c8d0d9;
}

.right-panel {
    flex: 1;
    min-width: 0;
    height: 100%;
}

.profile-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 24px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.profile-photo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.profile-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.profile-title {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.profile-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 0 8px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-linkedin {
    background: #0077B5;
    color: var(--white);
}

.btn-linkedin:hover {
    background: #006396;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    will-change: transform;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-chat {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-chat:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.experience-highlights {
    text-align: left;
    padding: 16px 18px;
    background: var(--accent-bg);
    border-radius: 12px;
    margin-top: 0;
}

.experience-highlights h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.experience-highlights ul {
    list-style: none;
}

.experience-highlights li {
    font-size: 12px;
    color: var(--text-light);
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.experience-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.chat-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 16px 16px 0 0;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-header svg {
    flex-shrink: 0;
}

.chat-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 3px;
}

.chat-header p {
    font-size: 13px;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--accent-bg);
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #c8d0d9;
}

.message {
    animation: fadeInUp 0.4s ease;
}

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

.message-bubble {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ai-message .message-bubble {
    justify-content: flex-start;
}

.user-message .message-bubble {
    justify-content: flex-end;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #5a6c7d;
    order: 1;
}

.message-content {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.ai-message .message-content {
    background: var(--white);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.user-message .message-content {
    background: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.chat-input-area {
    padding: 20px 28px;
    border-top: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 0 0 16px 16px;
    display: flex;
    gap: 12px;
}

#user-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

#user-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 87, 125, 0.1);
}

#send-btn {
    padding: 14px 24px;
    min-height: 48px;
    min-width: 48px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

#send-btn:active {
    transform: translateY(0);
}

#send-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

footer {
    background: transparent;
    padding: 12px 24px;
    text-align: center;
    flex-shrink: 0;
}

footer p {
    font-size: 11px;
    color: #8891a0;
    font-weight: 400;
}

@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
    }
    
    .main-container {
        flex-direction: column;
        padding: 20px;
        overflow: visible;
    }
    
    .left-panel {
        flex: none;
        width: 100%;
        max-height: none;
        overflow: visible;
    }
    
    .right-panel {
        width: 100%;
    }
    
    .chat-card {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 16px;
        gap: 20px;
    }
    
    .profile-card {
        padding: 30px 20px;
    }
    
    .profile-photo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .chat-header {
        padding: 20px;
    }
    
    .chat-header h2 {
        font-size: 18px;
    }
    
    .chat-messages {
        padding: 20px 16px;
    }
    
    .message-content {
        max-width: 85%;
        font-size: 14px;
    }
    
    .chat-input-area {
        padding: 16px;
    }
    
    #user-input {
        font-size: 14px;
    }
    
    #send-btn {
        padding: 14px 18px;
    }
    
    #send-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 13px;
        padding: 12px 20px;
    }
    
    .experience-highlights {
        padding: 20px;
    }
    
    .experience-highlights h3 {
        font-size: 14px;
    }
    
    .experience-highlights li {
        font-size: 13px;
    }
}
