* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.cv-header {
    background: linear-gradient(to right, #2c3e50, #4a6491);
    color: white;
    padding: 40px;
    text-align: center;
}

.cv-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.cv-header h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 800px;
}

@media (max-width: 900px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }
}

.cv-left, .cv-right {
    padding: 40px;
}

.cv-left {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.cv-section {
    margin-bottom: 40px;
}

.cv-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

.experience-item, .education-item, .project-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
}

.experience-item h4, .education-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.company, .institution {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.experience-item ul {
    padding-left: 20px;
    margin-top: 10px;
}

.experience-item li {
    margin-bottom: 8px;
    color: #34495e;
    line-height: 1.5;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Chat Interface Styles */
.chat-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.chat-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 20px;
    background: #fafafa;
}

.message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.bot-message {
    background: #e3f2fd;
    color: #1565c0;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: #2196f3;
    color: white;
    margin-left: auto;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.chat-input-container {
    display: flex;
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

#chat-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#chat-input:focus {
    border-color: #2196f3;
}

#send-btn {
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-left: 15px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#send-btn:hover {
    background: #1976d2;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    border-top-color: #2196f3;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}