/* Color Palette */
:root {
    --autumn-leaf: #E16214;
    --olive-leaf: #3F4620;
    --cream: #F5F1E8;
    --dark-brown: #2A2618;
    --light-olive: #5C6B3A;
    --burnt-orange: #C44D0F;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: var(--cream);
    color: var(--dark-brown);
    line-height: 1.6;
}

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

/* Header */
header {
    background-color: var(--light-olive);
    color: var(--cream);
    padding: 3rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    font-weight: 300;
}

/* Tab Navigation */
.tab-nav {
    background-color: var(--olive-leaf);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-nav .container {
    display: flex;
    gap: 0;
    padding: 0;
}

.tab-button {
    flex: 1;
    background: none;
    border: none;
    color: var(--cream);
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background-color: var(--autumn-leaf);
    border-bottom-color: var(--autumn-leaf);
    font-weight: 600;
}

/* Main Content */
main {
    padding: 3rem 2rem;
    min-height: 60vh;
}

.tab-content {
    animation: fadeIn 0.5s ease;
}

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

.tab-content h2 {
    color: var(--olive-leaf);
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--light-olive);
    font-style: italic;
    margin-bottom: 2rem;
}

/* Placeholder Styling */
.placeholder {
    background: linear-gradient(135deg, rgba(225, 98, 20, 0.1) 0%, rgba(63, 70, 32, 0.1) 100%);
    border: 2px dashed var(--light-olive);
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.placeholder p {
    font-size: 1.3rem;
    color: var(--light-olive);
    font-style: italic;
}

/* Footer */
footer {
    background-color: var(--olive-leaf);
    color: var(--cream);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal Content Images (shared by books and projects) */
.reflection-content img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.reflection-content img[alt] {
    display: block;
}

.reflection-content p img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .tab-nav .container {
        flex-direction: column;
    }

    .tab-button {
        padding: 1rem;
    }

    .tab-content h2 {
        font-size: 2rem;
    }

    .gallery,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}