/* css styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    margin: 0 auto;  /* Center everything */
    padding: 0;
    max-width: 900px;  /* Match bio width */
    color: #333;
    background: linear-gradient(to bottom right, #f8f9fa, #f1f3f5);
    min-height: 100vh;
}

/* Navbar Styles */
#quarto-header {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    background: none;
}

.navbar {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
    border-bottom: 1px solid #eaeaea;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.navbar-expand-lg {
    background: none;
}

.navbar-collapse {
    background: none;
}

/* Remove previous navbar styles */
.navbar-container,
.custom-navbar {
    display: none;
}

header {
    padding: 1rem 20px;  /* Match bio padding */
    margin: 0;
    width: auto;
}

h1, h2, h3 {
    color: #333;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

p {
    margin: 1rem 0;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

#main {
    padding: 2rem;
    background: #fff;
    margin-top: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#main img {
    display: block;
    margin: 0 auto;
}

#main ul {
    list-style: none;
    padding: 0;
}

#main ul li {
    background: #f4f4f4;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-left: 5px solid #333;
}

footer {
    background: white;
    color: #333;
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
}

.artistic-diagram {
  text-align: center;
  margin: 20px 0;
}

.artistic-diagram img {
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.artistic-diagram .caption {
  font-style: italic;
  color: #555;
  margin-top: 10px;
}

/* Navigation Styles */
nav {
    padding: 1rem 20px;
    margin-bottom: 2rem;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #0066cc;
}

/* Intro Section Styles */
.intro-section {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-content {
    padding: 2rem;
}

.profile-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.image-wrapper {
    flex: 0 0 auto;
    width: 200px;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.text-content {
    flex: 1;
    text-align: justify;
}

.text-content p {
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background-color: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0052a3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        align-items: center;
    }
    
    .image-wrapper {
        width: 150px;
        margin-bottom: 1.5rem;
    }
    
    .text-content {
        text-align: left;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .navbar-container {
        padding: 0 15px;
    }
    
    .navbar-toggler {
        margin-right: 0;
    }
}

/* Remove any previous .columns, .profile-container, etc. styles */

/* Clean Navbar Styling - Replace all previous navbar-related styles */
.navbar {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
    border-bottom: 1px solid #eaeaea;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.navbar-nav {
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    color: #2c3e50 !important;
    font-size: 0.95rem;
    padding: 0.5rem 0 !important;
    border: none !important;
    background: none !important;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: #0066cc !important;
}

.nav-link.active {
    color: #0066cc !important;
    font-weight: 500;
}

/* Remove all previous hover effects and transitions */
.nav-link,
.nav-link:hover,
.nav-link:after,
.nav-link:before {
    transition: none;
    border: none !important;
    text-decoration: none !important;
}

/* Force container width */
#quarto-header > * {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* Hide redundant titles */
.quarto-title, 
.title {
    display: none !important;
}

/* Hide table of contents title */
.toc-title {
    display: none !important;
}

/* Publication styling */
.publication-highlight {
    margin: 2rem 0;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.publication-image {
    width: 400px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.publication-text {
    flex: 1;
}

.publication-highlight img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    background: white;
}

@media (max-width: 768px) {
    .publication-highlight {
        flex-direction: column;
    }
    
    .publication-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto 1rem auto;
    }

    .publication-highlight img {
        width: 100%;
    }
}

/* Expandable section styling */
details {
    margin: 1em 0;
    padding: 0.5em 1em;
    background: #f8f9fa;
    border-radius: 4px;
}

summary {
    cursor: pointer;
    color: #0066cc;
    font-size: 0.9em;
}

summary:hover {
    color: #0052a3;
}

details[open] {
    padding-bottom: 1em;
}

details[open] summary {
    margin-bottom: 0.5em;
}
