/* ================================================================ */
/* BASE STYLES                                                      */
/* ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: linear-gradient(to bottom, #d1e4dd, #f0f7f4, #ffffff);
    background-attachment: fixed;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

.section-headline {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2F4858;
    margin-bottom: 3rem;
    text-align: center;
}

/* ================================================================ */
/* HEADER                                                           */
/* ================================================================ */
header {
    background-color: #2F4858;
    padding: 1rem 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
}

header nav a {
    color: #EAEAEA;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #a8e6cf;
}

.social-links {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #EAEAEA;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* ================================================================ */
/* HERO & CAROUSEL                                                  */
/* ================================================================ */

/* This rule is now used by both the name section and the old motto section */
.fullscreen-section {
    min-height: 75vh;
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section {
    /* This class is now just a marker for the top section */
}

.hero-content-left {
    text-align: center;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #2F4858;
    margin-bottom: 0;
    padding: 0;
}

.hero-section .title-credential {
    font-size: 1.5rem;
    font-weight: 400;
    color: #555;
    margin-top: -0.5rem;
}

.carousel-section {
    padding: 3rem 0;
    display: flex;
    align-items: center;
}

.swiper {
    width: 100%;
    height: auto;
}

.swiper-slide {
    width: 70%;
    max-width: 650px;
    opacity: 0.4;
    transform: scale(0.9);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.swiper-button-next,
.swiper-button-prev {
    color: #004D40;
}

.swiper-pagination-bullet-active {
    background: #004D40;
}


/* ================================================================ */
/* CONTENT SECTIONS                                                 */
/* ================================================================ */

.about-section {
    padding: 3rem 2rem 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-section h3 {
    font-size: 1.5rem; /* Copied from your original .hero-content-right h3 */
    font-weight: 700;
    color: #2F4858;
    margin-bottom: 1rem;
}
.about-section p {
    font-size: 1.1rem; /* Copied from your original .hero-content-right p */
    line-height: 1.7;
    color: #333;
    text-align: center;
}
/* In style.css, find and replace this rule */

.cv-download-wrapper {
    margin-top: 2rem; /* The "paragraph of space" */
    text-align: center; /* ADDED: This centers the button */
}

.cv-button {
    display: inline-block;
    background-color: #2F4858; /* Using existing header/footer color */
    color: #EAEAEA;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.cv-button:hover {
    color: #a8e6cf;
    transform: translateY(-2px);
}

.features-section {
    padding: 3rem 2rem;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-box {
    flex: 1;
    min-width: 280px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.feature-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #004D40;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
    hyphens: auto;
}

.interactive-publications {
    padding: 3rem 2rem;
}

.pub-instructions {
    text-align: center;
    color: #555;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.pub-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pub-list-column {
    flex: 1;
    min-width: 350px;
    height: 640px;
    overflow-y: auto;
    display: flex;
}

.publication-list-interactive {
    list-style: none;
    padding: 0;
    overflow-y: auto;
    flex-grow: 1;
}

.publication-item {
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.publication-item:hover {
    background-color: #f8f9fa;
}

.publication-item.active {
    background-color: #eaf4f4;
    border-color: #a8e6cf;
}

.publication-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.publication-title a {
    color: #004D40;
    text-decoration: none;
}

.publication-title a:hover {
    text-decoration: underline;
}

.publication-authors {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.publication-meta {
    font-size: 1rem;
    color: #555;
}

.pub-display-column {
    flex: 1;
    min-width: 350px;
    height: 640px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#publication-display-image {
    width: 100%;
    max-width: 450px;
    max-height: 100%;
    aspect-ratio: 1 / 1.41;
    object-fit: contain;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #ccc;
    mix-blend-mode: multiply;
}

.pub-display-column a {
    display: block;
    line-height: 0;
}

/* ================================================================ */
/* FOOTER & WIDGETS                                                 */
/* ================================================================ */
.contact-footer {
    background-color: #2F4858;
    color: #EAEAEA;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.2rem;
    margin-top: auto;
}

.contact-footer a {
    color: #a8e6cf;
    font-weight: 700;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.contact-footer a:hover {
    text-decoration: underline;
}

#back-to-top-btn {
    display: block;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: #a8e6cf;
    color: #004D40;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out, background-color 0.3s ease;
}

#back-to-top-btn:hover {
    background-color: #95dac1;
}

#back-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

/* ================================================================ */
/* MOBILE OPTIMIZATION STYLES                                       */
/* ================================================================ */
@media (max-width: 992px) {
    
    header nav {
        flex-direction: column;
        gap: 1rem;
    }
    header nav ul {
        flex-wrap:wrap;
        gap: 1.2rem;
    }
    
    header nav a {
        font-size: 0.9rem;
    }
    
    .social-links {
        position: static;
        transform: none;
        padding-bottom: 0.5rem;
    }

    .hero-section {
        min-height: 0;
        padding: 4rem 1rem;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .about-section, .features-section, .interactive-publications {
        padding: 2.5rem 1rem;
    }
    .about-section p {
        text-align: center;
    }
    
    .section-headline { font-size: 2rem; }
    
    .features-container {
        flex-direction: column;
        align-items: center;
    }
    
    .pub-container {
        flex-direction: column;
    }
    .pub-list-column, .pub-display-column {
        height: auto;
    }
    .pub-list-column {
        max-height: 400px;
    }
    
    .contact-footer {
        padding: 2.5rem 1rem;
        font-size: 1rem;
    }
}