h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 0.5rem;
}

.section {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.navbar.bg-primary,
.hero-section,
footer {
    background-color: #1A4371 !important;
}

.hero-section .display-6,
.hero-section .lead,
.hero-section .social-links a,
footer p,
footer small {
    color: #fff !important;
}

body {
    font-size: 1.1rem !important;
    font-family: 'Inter', Arial, sans-serif;
}

.card-title {
    color: #1A4371 !important;
}

h1 {
    font-size: 2.5rem !important;
}

h2 {
    font-size: 2rem !important;
}

h3 {
    font-size: 1.75rem !important;
}

h4 {
    font-size: 1.5rem !important;
}

h5 {
    font-size: 1.25rem !important;
}

h6 {
    font-size: 1.1rem !important;
}

.social-links a {
    text-decoration: none !important;
    color: #fff !important;
    margin-right: 1rem;
}

.social-links a:hover {
    text-decoration: none !important;
    color: #ccc !important;
}

.social-links i {
    font-size: 2.5rem;
}

.publication-card {
    background-color: #f8f9fa !important;
    border: 1px solid #d1d1d1 !important;
    border-radius: 10px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    margin: 0.4rem 0 !important;
    padding: 0.2rem 0.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }

    100% {
        transform: translateY(0);
    }
}

.section-title {
    display: inline-block;
    position: relative;
    margin-bottom: 1rem;
    font-weight: bold;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background-color: #1A4371;
    border-radius: 2px;
}

.card-text-small {
    font-size: 0.9rem;
    color: #3f3f3f;
}

.card-text-tiny {
    font-size: 0.8rem;
    color: #3f3f3f;
}

.publication-card .card-body {
    padding: 0.75rem !important;
}

.publication-card .card-title,
.publication-card .card-text,
.card-text-small {
    margin-bottom: 0.25rem;
}

.award-highlight {
    display: inline-block;
    background-color: #d6e4f0 !important;
    border-left: 4px solid #1A4371;
    padding: 0.3rem 0.5rem;
    font-weight: bold;
    color: #1A4371 !important;
}

.award-highlight a {
    color: inherit;
    text-decoration: underline;
}

section.section:nth-of-type(odd) {
    background-color: #ffffff !important;
}

section.section:nth-of-type(even) {
    background-color: #f9f9f9 !important;
}


.projects-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
}

.project-tile {
    flex: 0 0 auto;
    width: 350px;
    height: 100px;
    background-color: #e9e9e9;
    border-radius: 10px;
    border: 3px solid #1A4371;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, filter 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    padding: 10px;
    color: #1A4371
}

.project-tile:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: #1A4371;
    border: 3px solid #1A4371;
    color: #fff;
    border-color: #fff;
}

.project-tile.active {
    background-color: #1A4371;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    transform: none;
    filter: none;
}

.project-details {
    display: block;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#project-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.btn-cv {
    background-color: #fff !important;
    border-color: #fff !important;
    color: #1A4371 !important;
}

.btn-cv:hover {
    opacity: 0.8;
}


.project-image-container {
    text-align: center;
    margin-top: 10px;
}


.project-image-preview {
    max-width: 30%;
    cursor: pointer;
    transition: transform 0.3s ease;
}


.project-image-preview:hover {
    transform: scale(1.05);
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}


.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}


.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.project-details-container {
    margin-top: 1rem;
    position: relative;
}


.project-details {
    display: none;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.project-details.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


.publication-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1A4371;
    display: inline-block;
    padding-bottom: 5px;
}


.btn-pdf, .btn-patent, .btn-github {
    background-color: #1A4371 !important;
    border-color: #1A4371 !important;
    color: #fff !important;
    display: inline-block;
}

.btn-pdf:hover, .btn-patent:hover, .btn-github:hover {
    background-color: #0B263B !important;
    border-color: #0B263B !important;
}