:root {
    --primary-color: #c41e3a;
    --primary-dark: #8b0000;
    --primary-light: #ff6b6b;
    --secondary-color: #2c2c2c;
    --text-color: #333;
    --text-light: #f5f5f5;
    --background-light: #ffffff;
    --background-dark: #1a1a1a;
    --accent-color: #ffd700;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-light);
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-dark);
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23c41e3a"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="%23b01030" stroke-width="1"/></svg>');
    background-size: 20px 20px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.header-content {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.author {
    font-style: italic;
    margin-bottom: 2rem;
}

.decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}

.line {
    height: 1px;
    width: 100px;
    background-color: var(--text-light);
}

.symbol {
    margin: 0 15px;
    font-size: 1.5rem;
}

/* Navigation */
#main-nav {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-title {
    color: var(--text-light);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: block;
    color: var(--text-light);
    padding: 15px 20px;
    transition: background-color var(--transition-speed);
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary-color);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-toggle i {
    margin-left: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--secondary-color);
    min-width: 200px;
    box-shadow: 0 2px 5px var(--shadow-color);
    z-index: 1;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 20px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.book-cover {
    flex: 1;
    display: flex;
    justify-content: center;
}

.book {
    width: 300px;
    height: 450px;
    position: relative;
    perspective: 1000px;
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    box-shadow: 10px 10px 15px var(--shadow-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-light);
    transform: rotateY(-30deg);
    transform-style: preserve-3d;
}

.book-spine {
    position: absolute;
    width: 50px;
    height: 100%;
    background-color: var(--primary-dark);
    left: -25px;
    transform: rotateY(90deg);
    transform-origin: right;
}

.book-front h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

.book-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 40px;
}

.book-decoration {
    font-size: 3rem;
    margin: 20px 0;
}

.book-location {
    font-style: italic;
    position: absolute;
    bottom: 20px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--background-light);
}

.features .container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.feature {
    flex: 1;
    text-align: center;
    padding: 30px;
    border-radius: 5px;
    transition: transform var(--transition-speed);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Quotes Section */
.quotes {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.quotes .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.quote {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    border-left: 5px solid var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0 5px 5px 0;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 15px;
}

.quote-author {
    text-align: right;
    font-weight: 700;
}

/* Preview Section */
.preview {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.preview h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.preview-text {
    flex: 1;
}

.preview-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.map-placeholder {
    width: 400px;
    height: 300px;
    background-color: var(--primary-light);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--primary-light);
}

.footer-nav {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-nav h4 {
    color: var(--primary-light);
    margin-bottom: 15px;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-light);
}

.footer-nav a:hover {
    color: var(--primary-light);
}

.footer-quote {
    flex: 1;
    min-width: 300px;
}

.footer-quote blockquote {
    font-style: italic;
    border-left: 3px solid var(--primary-light);
    padding-left: 15px;
}

.footer-quote cite {
    display: block;
    margin-top: 10px;
    text-align: right;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chapter Content Styles */
.chapter-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.chapter-header {
    text-align: center;
    margin-bottom: 40px;
}

.chapter-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.chapter-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.chapter-decoration .line {
    background-color: var(--primary-color);
}

.chapter-decoration .symbol {
    color: var(--primary-color);
}

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

.chapter-text p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 10px;
    color: var(--primary-color);
}

.chapter-text h3 {
    color: var(--primary-color);
    margin-top: 2rem;
}

.chapter-text blockquote {
    font-style: italic;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin: 2rem 0;
}

.document-box {
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
}

.document-box .document-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-previous, .nav-next {
    display: flex;
    align-items: center;
}

.nav-previous i, .nav-next i {
    margin: 0 10px;
}

/* Interludio Styles */
.interludio-content {
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    margin: 2rem 0;
}

.interludio-title {
    color: var(--primary-color);
    font-style: italic;
}

/* Sumário Page */
.sumario-page {
    padding: 60px 0;
}

.sumario-header {
    text-align: center;
    margin-bottom: 40px;
}

.sumario-title {
    color: var(--primary-color);
}

.sumario-list {
    max-width: 800px;
    margin: 0 auto;
}

.sumario-section {
    margin-bottom: 30px;
}

.sumario-section-title {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.sumario-chapters {
    list-style: none;
}

.sumario-chapters li {
    margin-bottom: 10px;
}

.sumario-chapters a {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 5px;
    transition: background-color var(--transition-speed);
}

.sumario-chapters a:hover {
    background-color: #f0f0f0;
}

.chapter-number {
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 10px;
}

/* About Page */
.about-page {
    padding: 60px 0;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-title {
    color: var(--primary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content, .preview-content {
        flex-direction: column;
    }
    
    .features .container {
        flex-direction: column;
    }
    
    .feature {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    header {
        padding: 60px 0;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
    
    #menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle i {
        transition: transform var(--transition-speed);
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .quotes .container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .book {
        width: 250px;
        height: 375px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation: fadeIn 1s ease-in;
}

/* Document Styles */
.memo, .transcript, .news-headline {
    font-family: 'Courier New', monospace;
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin: 2rem 0;
    position: relative;
}

.memo::before, .transcript::before, .news-headline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: #e0e0e0 var(--background-light);
}

.memo-header, .transcript-header, .news-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.memo-title, .transcript-title, .news-title {
    font-weight: bold;
    text-transform: uppercase;
}

.memo-metadata, .transcript-metadata, .news-metadata {
    font-size: 0.9rem;
    color: #666;
}

.news-headline .news-title {
    font-size: 1.5rem;
    text-align: center;
}

/* Epilogue Styles */
.epilogue-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.epilogue-header {
    text-align: center;
    margin-bottom: 40px;
}

.epilogue-title {
    color: var(--primary-color);
}

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

.epilogue-text p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    float: left;
    font-size: 4rem;
    line-height: 0.8;
    margin-right: 10px;
    color: var(--primary-color);
}

.epilogue-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.epilogue-decoration .line {
    background-color: var(--primary-color);
}

.epilogue-decoration .symbol {
    color: var(--primary-color);
}

.the-end {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 60px;
}

/* Author Credit */
.author-credit {
    font-weight: 500;
}
