@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

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

body {
    font-family: 'EB Garamond', serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    padding: 40px 0 60px 0;
    border-bottom: 1px solid #000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

main {
    padding: 60px 0;
    min-height: 60vh;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.title-orange {
    color: #800000; /* Maroon for "jects" (projects) */
}

.title-blue {
    color: #4285F4; /* Blue for "ducts" (products) */
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thesis {
    font-size: 26px;
    font-weight: 500;
    font-style: italic;
    text-align: center;
    margin-top: 30px;
}

.email-contact {
    font-size: 18px;
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.social-section {
    margin-top: 40px;
    text-align: center;
}

.social-links {
    display: inline-flex;
    gap: 24px;
    margin: 0;
}

.social-icon {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-links svg {
    width: 32px;
    height: 32px;
    fill: #000;
}

.section {
    margin-bottom: 60px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    border: 2px solid #000;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-card {
    border-color: #800000; /* Maroon border for projects */
}

.product-card {
    border-color: #4285F4 !important; /* Blue border for products */
}

.project-card h3 {
    margin-bottom: 15px;
}

.publication-list {
    max-width: 600px;
    margin: 40px auto 0;
}

.publication-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.publication-meta {
    font-style: italic;
    color: #666;
    font-size: 16px;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #000;
    margin-top: 80px;
    font-size: 16px;
}

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

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

#modalContent h2 {
    margin-top: 0;
    color: #000;
    font-size: 28px;
    margin-bottom: 10px;
}

#modalContent h3 {
    color: #666;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

#modalContent ul {
    margin: 20px 0;
    padding-left: 20px;
}

#modalContent li {
    margin-bottom: 10px;
    line-height: 1.5;
}

#modalContent p {
    margin-top: 20px;
}

#modalContent a {
    color: #4285F4;
    text-decoration: none;
    font-weight: 500;
}

#modalContent a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 0 15px;
    }

    nav ul {
        gap: 20px;
    }

    nav a {
        font-size: 16px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 20px;
    }

    #modalContent h2 {
        font-size: 24px;
    }
}