/* =========== FULL CSS FROM YOUR DESIGN =========== */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #1abc9c;
    --light: #ffffff;
    --dark: #000000;
    --text: #333333;
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --border: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}
.dark-mode {
    --primary: #3498db;
    --secondary: #2c3e50;
    --accent: #1abc9c;
    --light: #1a1a1a;
    --dark: #ffffff;
    --text: #e0e0e0;
    --bg: #121212;
    --card-bg: #1e1e1e;
    --border: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    transition: var(--transition);
}

/* =========== NEW: AI CHAT WIDGET STYLES =========== */
.ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.assistant-header {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-box {
    height: 250px;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--bg);
    font-size: 0.95rem;
}
.chat-input {
    display: flex;
    padding: 10px;
    background: var(--card-bg);
}
.chat-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
}
.send-btn {
    background: var(--accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========== EXISTING STYLES (truncated for brevity) =========== */
/* Paste ALL your original CSS here from the <style> tag EXCEPT the new chat styles above */
/* ... (full CSS from your HTML's <style> block) ... */

/* Responsive for chat */
@media (max-width: 768px) {
    .ai-assistant {
        width: 90vw;
        right: 5vw;
    }
}
/* The Grid Container */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exact 3 columns */
    gap: 25px; /* Space between cards */
    margin-bottom: 25px;
}

/* Tablet: 2 columns */
@media (max-width: 992px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure images fit the card */
.certificate-img {
    height: 160px; /* Fixed height for consistency */
    width: 100%;
    border-bottom: 1px solid #eee;
    background-color: #fff; /* White background for logos */
    border-radius: 12px 12px 0 0;
}

.certificate-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Makes all cards same height */
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg, #fff);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.certificate-content {
    padding: 20px;
    flex-grow: 1; /* Pushes the link to the bottom */
    display: flex;
    flex-direction: column;
}

.project-links {
    margin-top: auto; /* Forces date/link to stick to bottom */
}
/* Links Container inside Card */
.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* The View Credential Link */
.credential-btn {
    text-decoration: none;
    color: var(--accent, #007bff); /* Uses your theme color */
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.credential-btn:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* The Show More Button */
.show-more-btn {
    background: transparent;
    border: 2px solid var(--accent, #007bff);
    color: var(--accent, #007bff);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: var(--accent, #007bff);
    color: white;
}

/* Grid Layout for Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 30px;
    margin-top: 30px;
}

/* Tablet: 2 Columns */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 Column */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Styling for the "Incoming" Black Card */
.project-card.incoming {
    background: #1a1a1a; /* Dark Black/Grey */
    color: #fff;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 400px; /* Match other cards */
}

.project-card.incoming i {
    font-size: 3rem;
    color: #444;
    margin-bottom: 20px;
}

.project-card.incoming h3 {
    color: #fff;
    font-size: 1.5rem;
}

.project-card.incoming p {
    color: #888;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}