:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #9ca3af;
    --accent-color: #ffffff;
    --font-main: 'Inter', sans-serif;
}

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

body,
html {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
}

.logo {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Bio Section */
.bio-section {
    padding-top: 4rem;
    padding-bottom: 8rem;
}

.bio-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4rem;
    padding-left: 5px;
    border-left: 3px solid var(--text-muted);
    padding-left: 1rem;
}

.bio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.bio-image img {
    width: 100%;
    max-width: 500px;
    filter: grayscale(100%);
    border-radius: 8px;
    /* Optional: Slight rounding */
    transition: filter 0.3s;
}

.bio-image img:hover {
    filter: grayscale(0%);
}

.bio-text {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
}

.bio-block {
    margin-bottom: 2rem;
}

.bio-divider {
    height: 1px;
    background-color: #333;
    width: 60px;
    margin: 3rem 0;
}

.lang-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #cc8e35;
    /* Gold/Orange accent from image */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Projects & Sections */
.section-heading {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 3rem;
    border-top: 1px solid #333;
    padding-top: 3rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.project-card {
    background: #111;
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #222;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #4ade80;
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.1);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.result {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #4ade80;
    /* Keep green for results */
}

/* Social & Footer */
.social-section {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid #333;
}

.social-links a {
    color: #4ade80;
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: #444;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .bio-title {
        font-size: 5rem;
    }

    .bio-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-image img {
        width: 100%;
        max-width: 100%;
    }

    .navbar {
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
        /* Can implement hamburger later if needed, or simple stacking */
    }
}

/* Certification Page Styles */
.page-title {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab:hover {
    color: var(--text-color);
}

.tab.active {
    color: var(--text-color);
    border-bottom-color: var(--text-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cert-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: #444;
}

.cert-img-container {
    height: 200px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.cert-card:hover .cert-img-container img {
    opacity: 1;
}

.cert-info {
    padding: 1.5rem;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cert-info .date {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    object-fit: contain;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
    }
}

/* Project Details Page Styles */
.project-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.project-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.text-link {
    color: #4ade80;
    text-decoration: none;
    transition: color 0.3s;
}

.text-link:hover {
    color: #fff;
}

.project-result {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.result-label {
    color: #4ade80;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: #222;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.back-link:hover {
    background: #333;
    transform: translateY(-2px);
    border-color: #555;
}

/* Chatbot Styles */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
    transition: transform 0.3s ease, background 0.3s;
}

.chat-button:hover {
    transform: scale(1.1);
    background: #22c55e;
}

.chat-button i {
    font-size: 1.5rem;
    color: #000;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 400px;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}

.chat-window.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    background: #222;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.chat-header span {
    font-weight: 700;
    color: #fff;
    font-size: 0.9rem;
}

.chat-header button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 90%;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
    /* Prevents overflow */
}

.message.bot {
    align-self: flex-start;
    background: #222;
    color: #eee;
    border-bottom-left-radius: 2px;
}

.message.user {
    align-self: flex-end;
    background: #4ade80;
    color: #000;
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.action-chip {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid #4ade80;
    color: #4ade80;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.action-chip:hover {
    background: #4ade80;
    color: #000;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid #333;
    display: flex;
    gap: 0.5rem;
    background: #111;
}

.chat-input-area input {
    flex: 1;
    background: #222;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.chat-input-area input:focus {
    border-color: #4ade80;
}

.chat-input-area button {
    background: #4ade80;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area button:hover {
    background: #22c55e;
}