:root {
    --primary-blue: #0e6ed4;
    --text-color: #000000;
    --bg-color: #ffffff;
    --border-color: #000000;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('../img/bg_geometric.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}



/* CTA Section */
.cta-section {
    background-color: #f0f7ff;
    border: 1px solid #cce5ff;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    text-align: center;
    border-left: 5px solid var(--primary-blue);
}

.cta-section h2 {
    color: var(--primary-blue);
    margin-top: 0;
    border-bottom: none;
}

.cta-section p {
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: white !important;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #0a4f99;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header & Nav */
header {
    background-color: var(--primary-blue);
    color: var(--bg-color);
    padding: 1rem 0;
    border-bottom: 2px solid var(--text-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    color: var(--bg-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

nav a {
    color: var(--bg-color);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid transparent;
}

nav a:hover,
nav a.active {
    background-color: var(--bg-color);
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid var(--bg-color);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: 80vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-blue);
}

h2 {
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 5px;
    display: inline-block;
}

/* Base list styling for items */
.item-list {
    list-style: none;
    padding: 0;
}

.item-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    margin-bottom: 15px;
    /* border-left: 5px solid var(--primary-blue); Removed extra decor to simplify */
    border-left: 5px solid var(--primary-blue);
    /* Kept as it is "Blue" */
}

/* Publication specific */
.publication-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.publication-content {
    flex: 1;
}

.publication-image img {
    max-width: 175px;
    height: auto;
    border: 1px solid var(--border-color);
}

.meta {
    font-size: 0.9em;
    color: var(--text-color);
    margin: 5px 0;
    font-style: italic;
}

.abstract {
    margin-top: 10px;
    font-size: 0.95em;
    color: var(--text-color);
    line-height: 1.5;
}

/* Grid for Books */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: center;
}

.card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

/* Subsections for Code */
.subsection {
    margin-bottom: 2rem;
}

.subsection h3 {
    font-size: 1.2rem;
    border-bottom: null;
    background-color: transparent;
    padding: 0;
    border-left: none;
    color: var(--primary-blue);
    text-decoration: underline;
}

/* Hero Section (Home) */
.hero {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--bg-color);
    padding: 30px;
    border: 1px solid var(--border-color);
    /* border-top: 5px solid var(--primary-blue); */
}

.profile-photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    /* Circle is fine */
    border: 4px solid var(--primary-blue);
}

/* Footer */
footer {
    background-color: var(--text-color);
    /* Black */
    color: var(--bg-color);
    /* White */
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    border-top: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        justify-content: center;
    }

    .container {

        width: 90%;

    }

}



/* Dropdown Menu Styles */



.dropdown {



    position: relative;



    display: inline-block;



}







.dropbtn {



    cursor: pointer;



    /* Ensure it has the same padding/border as other nav links */



    padding: 5px 10px;



    border-radius: 4px;



    border: 1px solid transparent;



}







.dropdown-content {



    display: block;
    /* Use opacity and visibility for transitions */



    position: absolute;



    background-color: #f9f9f9;
    /* Slightly off-white background */



    min-width: 180px;
    /* A bit wider */



    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);



    z-index: 1;



    border-radius: 5px;



    margin-top: 5px;
    /* Space between button and menu */







    /* Animation */



    opacity: 0;



    visibility: hidden;



    transform: translateY(-10px);



    transition: opacity 0.2s ease-out, transform 0.2s ease-out, visibility 0.2s;



}







.dropdown-content a {



    color: var(--primary-blue);



    padding: 12px 16px;



    text-decoration: none;



    display: block;



    text-align: left;



    transition: background-color 0.2s ease-in-out;



}







.dropdown-content a:hover {



    background-color: #eaf2fa;
    /* A very light blue */



    text-decoration: none;



}







.dropdown:hover .dropdown-content {















    opacity: 1;















    visibility: visible;















    transform: translateY(0);















}















/* Consulting Services Grid */







.services-grid {







    display: grid;







    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));







    gap: 20px;







    margin-bottom: 2rem;







}















.service-card {







    background: var(--bg-color);







    border: 1px solid var(--border-color);







    padding: 20px;







    border-left: 5px solid var(--primary-blue);







    border-radius: 5px;







    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);







}















.service-card h4 {







    color: var(--primary-blue);







    margin-top: 0;







    margin-bottom: 10px;







    border-bottom: 1px solid rgba(0, 0, 0, 0.1);







    padding-bottom: 5px;







}































.service-card p {































    font-size: 0.95em;































    line-height: 1.5;































}

































/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-textarea {
    width: 100%;
    height: 150px;
    margin-top: 10px;
    padding: 10px;
    font-family: monospace;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

.copy-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.9rem;
}

.copy-btn:hover {
    opacity: 0.9;
}

.cite-btn {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 10px;
    transition: background 0.3s;
}

.cite-btn:hover {
    background-color: var(--primary-blue);
    color: white;
    text-decoration: none;
}

/* Stats Container Styles */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.stat-card p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #0056b3;
}

/* Tooltip Styles */
.stat-card {
    position: relative;
    cursor: help;
}

.stat-card[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: normal;
    width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    line-height: 1.4;
    text-align: center;
}

.stat-card[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    z-index: 1000;
    pointer-events: none;
}