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

:root {
    --black: #000000;
    --white: #ffffff;
    --line-width: 1px;
    
    /* Light mode (default) */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e0e0e0;
    --quote-border: #999999;
}

[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #808080;
    --border-color: #333333;
    --quote-border: #666666;
}

html {
    font-size: 16px;
}

body {
    font-family: "Inter Tight", "Inter Tight Regular", sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header {
    border-bottom: var(--line-width) solid var(--text-primary);
    padding: 2rem 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: color 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.logo {
    width: 35px;
    height: 35px;
    display: block;
    filter: none;
}

.logo-link {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: color 0.3s ease, opacity 0.2s ease;
    margin-right: 1rem;
}

.theme-toggle:hover {
    opacity: 0.6;
}

.theme-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon.moon-icon {
    display: none;
}

[data-theme="dark"] .theme-icon.sun-icon {
    display: none;
}

[data-theme="dark"] .theme-icon.moon-icon {
    display: block;
}

.nav-links a {
    font-size: 1rem;
    position: relative;
    transition: opacity 0.2s ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: var(--line-width);
    background-color: var(--text-primary);
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    opacity: 1;
}

.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 1px;
    background-color: var(--black);
    display: block;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

main {
    min-height: calc(100vh - 200px);
    padding: 4rem 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.intro {
    margin-bottom: 4rem;
}

.intro h1 {
    font-size: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    font-weight: 400;
}

#total-books-count {
    color: var(--text-primary);
    font-weight: 600;
}

.quote-block {
    margin-bottom: 3rem;
    padding: 2rem 2rem 2rem 3rem;
    border-left: 3px solid var(--quote-border);
    background-color: var(--bg-secondary);
    border-top: none;
    border-bottom: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.quote-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
    text-align: left;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.quote-author {
    font-size: 0.9rem;
    font-style: normal;
    color: var(--text-secondary);
    display: block;
    margin-top: 0.5rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .quote-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .quote-block {
        margin-bottom: 2rem;
        padding: 1.5rem 1.5rem 1.5rem 2rem;
    }
}

.line {
    width: 100%;
    height: var(--line-width);
    background-color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.content {
    margin-bottom: 4rem;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.text-block {
    margin-bottom: 2rem;
}

.text-block p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.project-item {
    padding: 2rem 0;
    border-top: var(--line-width) solid var(--text-primary);
    transition: border-color 0.3s ease;
}

.project-item:last-child {
    border-bottom: var(--line-width) solid var(--text-primary);
}

.project-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.focus-star {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
}

.project-line {
    width: 60px;
    height: var(--line-width);
    background-color: var(--black);
    margin-bottom: 1rem;
}

.project-item p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.project-item a {
    color: var(--black);
    text-decoration: none;
    border-bottom: var(--line-width) solid var(--black);
    transition: border-color 0.2s;
}

.project-item a:hover {
    border-bottom-color: transparent;
}

.project-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.hiring-box {
    display: inline-block;
    background-color: var(--bg-tertiary);
    border: var(--line-width) solid var(--border-color);
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hiring-box span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    font-style: italic;
}

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.link-preview {
    margin: 1rem 0;
}

.preview-link {
    display: block;
    border: var(--line-width) solid var(--black);
    text-decoration: none;
    color: var(--black);
    transition: background-color 0.2s, color 0.2s;
}

.preview-link:hover {
    background-color: var(--black);
    color: var(--white);
}

.preview-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.preview-url {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.preview-arrow {
    font-size: 1.25rem;
    font-weight: 400;
}

.experience-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.experience-item {
    padding: 2rem 0;
    border-top: var(--line-width) solid var(--text-primary);
    transition: border-color 0.3s ease;
}

.experience-item:last-child {
    border-bottom: var(--line-width) solid var(--text-primary);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex: 1;
    min-width: 200px;
}

.experience-period {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    white-space: nowrap;
}

.experience-company {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-location {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.experience-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.experience-description a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: var(--line-width) solid var(--text-primary);
    transition: border-color 0.2s, color 0.3s ease;
}

.experience-description a:hover {
    border-bottom-color: transparent;
}

.links {
    margin-top: 4rem;
}

.link-button {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 1rem 2rem;
    border: var(--line-width) solid var(--text-primary);
    margin-top: 2rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-align: center;
    min-width: 200px;
}

.link-button:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.link-button:active {
    transform: scale(0.98);
}

footer {
    border-top: var(--line-width) solid var(--text-primary);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    display: block;
    filter: none;
    opacity: 0.8;
}

footer p {
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
    color: var(--text-secondary);
}

.footer-contact {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    transition: opacity 0.2s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: var(--line-width);
    background-color: var(--black);
    transition: width 0.2s ease;
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-link:hover::after {
    width: 100%;
}

.contact-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: currentColor;
}

@media (max-width: 768px) {
    .footer-contact {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

.reading-list,
.books-gallery {
    margin-bottom: 2rem;
}

.books-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.books-gallery .loading-container {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.book-card {
    position: relative;
    border: var(--line-width) solid var(--text-primary);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.3s ease;
    background-color: var(--bg-primary);
}

.book-card:hover {
    transform: translateY(-2px);
}

.book-card.clickable {
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    position: relative;
}

.book-card.clickable:hover {
    opacity: 0.8;
}

.book-card.clickable * {
    pointer-events: none;
}

.book-card.clickable .book-expand-btn,
.book-card.clickable .amazon-logo-link {
    pointer-events: auto;
}

.book-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.book-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex: 1;
    line-height: 1.4;
}

.book-card-line {
    width: 100%;
    height: var(--line-width);
    background-color: var(--black);
    margin-bottom: 1rem;
}

.book-card-author {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.book-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.book-read-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.book-read-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    flex-shrink: 0;
}

.book-read-text {
    color: var(--text-tertiary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.book-card-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.book-card-status {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border: var(--line-width) solid var(--text-primary);
    margin-bottom: 0.75rem;
    align-self: flex-start;
    transition: border-color 0.3s ease;
}

.book-card-notes-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: var(--line-width) solid var(--border-color);
    animation: fadeIn 0.3s ease;
    transition: border-color 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-card-notes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-style: italic;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.book-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: var(--line-width) solid var(--black);
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 1rem;
    transition: background-color 0.2s, color 0.2s;
    font-family: inherit;
    color: var(--black);
    align-self: flex-start;
}

.book-expand-btn:hover {
    background-color: var(--black);
    color: var(--white);
}

.book-expand-btn .expand-icon {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.book-expand-btn.expanded .expand-icon {
    transform: rotate(0deg);
}

.amazon-logo-link {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--black);
    opacity: 0.6;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.amazon-logo-link:hover {
    opacity: 1;
}

.amazon-logo {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.amazon-logo-link:hover .amazon-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* Modal de Anotações */
.notes-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.notes-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.notes-modal-content {
    background-color: var(--white);
    border: var(--line-width) solid var(--black);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    margin: auto;
}

.notes-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--black);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--line-width) solid var(--black);
    transition: background-color 0.2s, color 0.2s;
    padding: 0;
    margin: 0;
    background: none;
    font-family: inherit;
}

.notes-modal-close:hover {
    background-color: var(--black);
    color: var(--white);
}

.notes-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.notes-modal-author {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-rating-stars {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--black);
    letter-spacing: 0.1em;
}

.notes-modal-line {
    width: 100%;
    height: var(--line-width);
    background-color: var(--black);
    margin-bottom: 2rem;
}

.notes-modal-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--black);
}

.notes-modal-body h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notes-modal-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notes-modal-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.notes-modal-body p {
    margin-bottom: 1rem;
}

.notes-modal-body ul,
.notes-modal-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.notes-modal-body li {
    margin-bottom: 0.5rem;
}

.notes-modal-body blockquote {
    border-left: 3px solid var(--black);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #666;
}

.notes-modal-body code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.notes-modal-body pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border: var(--line-width) solid var(--black);
    overflow-x: auto;
    margin: 1rem 0;
}

.notes-modal-body pre code {
    background-color: transparent;
    padding: 0;
}

.notes-modal-body a {
    color: var(--black);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.notes-modal-body a:hover {
    opacity: 0.7;
}

.notes-modal-body hr {
    border: none;
    border-top: var(--line-width) solid var(--black);
    margin: 1.5rem 0;
}

.notes-modal-body input[type="checkbox"] {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .notes-modal.active {
        padding: 1rem;
    }
    
    .notes-modal-content {
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .notes-modal-title {
        font-size: 1.25rem;
        padding-right: 2.5rem;
    }
    
    .notes-modal-body {
        font-size: 0.875rem;
    }
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: var(--line-width) solid var(--black);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    border: var(--line-width) solid var(--black);
    background: none;
    color: var(--black);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-family: inherit;
    padding: 0 0.75rem;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    background-color: var(--black);
    color: var(--white);
}

.pagination-btn.active {
    background-color: var(--black);
    color: var(--white);
    cursor: default;
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.pagination-info {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

@media (max-width: 768px) {
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
}

.book-rating-stars {
    font-size: 0.9rem;
    color: var(--black);
    white-space: nowrap;
}

.book-item {
    padding: 2rem 0;
    border-top: var(--line-width) solid var(--black);
}

.book-item:last-child {
    border-bottom: var(--line-width) solid var(--black);
}

.book-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.book-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex: 1;
}

.book-status {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border: var(--line-width) solid var(--black);
    white-space: nowrap;
}

.book-author {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.book-date {
    font-size: 0.875rem;
    color: #666666;
    margin-bottom: 0.5rem;
}

.book-rating {
    font-size: 0.875rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.book-notes {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
    margin-top: 0.75rem;
    font-style: italic;
}

.loading-container,
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 4rem 2rem;
    text-align: center;
    margin: 0 auto;
    min-height: 300px;
}

.loading-text,
.error-text {
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
    margin: 0;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top: 2px solid var(--black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-text code {
    background-color: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border: var(--line-width) solid #e0e0e0;
    font-family: monospace;
    font-size: 0.9em;
}

img {
    filter: grayscale(100%);
    width: 100%;
    height: auto;
    display: block;
}

.logo {
    filter: none;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin: 3rem 0 4rem 0;
    align-items: start;
}

.hero-image {
    border: var(--line-width) solid var(--black);
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
}

.zoomable-image {
    cursor: pointer;
    transition: opacity 0.2s;
}

.zoomable-image:hover {
    opacity: 0.9;
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: var(--line-width) solid var(--white);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 0.7;
}

.image-caption {
    font-size: 0.65rem;
    color: #666666;
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.image-caption .ita-logo-inline {
    width: 50px;
    height: auto;
    filter: grayscale(100%);
}

.image-caption .caption-text {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.image-caption .caption-date {
    color: #999999;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.ita-logo-inline {
    width: 65px;
    height: auto;
    filter: grayscale(100%);
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.2rem;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--black);
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        border-left: var(--line-width) solid var(--black);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 1rem 0;
        border-bottom: var(--line-width) solid var(--black);
        font-size: 1rem;
        width: 100%;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a.active {
        opacity: 1;
    }
    
    .nav-links a.active::before {
        content: '';
        position: absolute;
        left: -2rem;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background-color: var(--black);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .intro h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .experience-header h3 {
        font-size: 1rem;
    }
    
    .experience-period {
        font-size: 0.75rem;
    }
    
    .books-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .link-button {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        text-align: center;
        min-width: auto;
    }
    
    .text-block {
        width: 100%;
    }
}
