:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bg-color: #f5f6fa;
    --bot-bubble: #ffffff;
    --user-bubble: #e3f2fd;
}


.chat-container {
    top: 55%;
    left: 80%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 350px;
    background: rgba(247, 245, 245, 0.933);
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    float: right;
    position: fixed;
    margin-right: 150px;
    z-index: 100;
    transition: 0.5s ;
    
}

#chatContainer{
    display: none;
}

.chat-header {
    background: #96bedb;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    height: 80px;
   
}

.bot-avatar {
    background: var(--secondary-color);
    width: 50px;
    height: 50px;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cross{
    font-size: 30px;
    padding: 5px 10px ;
    margin-right:-5px;
    border-radius: 20px;
    color: red;
    top: 20%;
    cursor: pointer;
    background-color: #e5eff627;
    border: 1px dotted rgba(0, 0, 0, 0.082);

}

.chat-messages {
    height: 60vh;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 15px;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    background: var(--bot-bubble);
    align-self: flex-start;
    border: 1px solid #eee;
}

.message.user {
    background: var(--user-bubble);
    align-self: flex-end;
}

.project-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.tech-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.2rem;
    font-size: 0.8rem;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #eee;
}

#userInput {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    margin-right: 1rem;
    font-size: 1rem;
}

#sendButton {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

#sendButton:hover {
    background: var(--secondary-color);
}

.typing-indicator {
    display: inline-flex;
    padding: 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background: #ddd;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.suggestion-btn {
background: #e3f2fd;
border: 1px solid #2c3e50;
border-radius: 20px;
padding: 8px 15px;
cursor: pointer;
transition: all 0.3s;
}

.suggestion-btn:hover {
background: #2c3e50;
color: white;
}

/* Context Menu */
.context-indicator {
font-size: 0.8em;
color: #666;
margin-top: 5px;
}

/* Conversation History */
.history-item {
opacity: 0.7;
font-size: 0.9em;
border-left: 3px solid #2c3e50;
padding-left: 10px;
margin: 5px 0;
}
.social-links {
    margin-top: 10px;
  }
  
  .social-links a {
    margin-right: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
  }
  
  .social-links a:hover {
    text-decoration: underline;
  }
  .project-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.project-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.project-link {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.project-link:hover {
    background-color: #0056b3;
}
#chatToggle {
    position: fixed; /* Keeps the button fixed on the screen */
    bottom: 20px; /* Distance from the bottom */
    right: 100px; /* Distance from the right */
    width: 50px; /* Button width */
    height: 50px; /* Button height */
    background: #007bff; /* Button background color */
    color: white; /* Icon color */
    border-radius: 50%; /* Makes the button circular */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* Changes cursor to pointer on hover */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
    z-index: 1000; /* Ensures the button stays on top of other elements */
    transition: background 0.3s ease, transform 0.3s ease; /* Smooth hover effects */
}

#chatToggle:hover {
    background: #0056b3; /* Darker shade on hover */
    transform: scale(1.1); /* Slightly enlarges the button on hover */
}

#chatToggle i {
    font-size: 20px; /* Adjusts the icon size */
}

@media (max-width: 768px){
    .chat-container{
        left: 50%;
        z-index: 10000;

    }
}