:root {
    --bg-main: #f0f4f8;        /* Very light pastel blue-grey */
    --accent-blue-soft: #e1effe; /* Soft sky blue */
    --accent-blue-vibrant: #7dd3fc; /* For borders/accents */
    --text-main: #2d3748;      /* Dark slate for readability */
    --primary-blue: #2c5282;   /* Deep professional blue */
    --secondary-blue: #2b6cb0; /* Lighter professional blue */
    --border-color: #cbd5e0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-main);
    margin: 0;
    padding: 40px 20px;
}

.container {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.chat-wrapper {
    background: var(--bg-main);
    border: 1px solid var(--accent-blue-vibrant);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

#user-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

#ask-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

#ask-btn:hover { background: var(--secondary-blue); }

#chat-response-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--accent-blue-vibrant);
    font-size: 0.95rem;
    color: var(--text-main);
}

.hidden { display: none; }

/* Header Layout */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Download Button */
.download-btn {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.download-btn:hover {
    background: var(--secondary-blue);
}

/* Competency Bar */
.competency-bar {
    background: var(--accent-blue-soft);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-blue-vibrant);
    margin-top: 10px;
    text-align: center;
}

/* Responsive Header */
@media (max-width: 600px) {
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
}

/* Framing & Header */
header {
    text-align: center;
    border-bottom: 2px solid var(--accent-blue-soft);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

h1 { 
    margin: 0; 
    color: var(--primary-blue); 
    font-size: 2.2rem; 
    letter-spacing: -0.5px; 
}

h2 { 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: var(--secondary-blue); 
    margin-top: 40px;
    border-left: 4px solid var(--accent-blue-vibrant);
    padding-left: 15px;
}

/* Section Styling */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.cert-item {
    background: var(--accent-blue-soft);
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.project-card {
    border: 1px solid var(--accent-blue-vibrant);
    background-color: #fafdff; /* Crisp blue-white */
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.job {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
}

.job:last-child { border: none; }

.job-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: var(--secondary-blue);
}

/* Footer & Counter Styling */
footer {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

#visitor-box {
    display: inline-block;
    background: var(--secondary-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: white; /* Contrast for the blue badge */
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(43, 108, 176, 0.2);
}

/* Print Optimization */
@media print {
    body { background: white; padding: 0; }
    .container { box-shadow: none; border: none; width: 100%; max-width: 100%; }
    footer { display: none; }
    .project-card { border: 1px solid #eee; }
    h2 { border-left: 4px solid #333; }

}
