/* ===== PERUIBE BOOK STYLES ===== */
:root {
    --primary-dark: #1a2a3a;
    --primary-color: #2c3e50;
    --secondary-color: #f39c12;
    --accent-color: #8a5500;
    --light-color: #ecf0f1;
    --light-gray: #95a5a6;
    --dark-gray: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--primary-dark);
    line-height: 1.6;
    background-color: #f9f9f9;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 2rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    background: none;
    border: none;
}

nav {
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* ===== BOOK CONTAINER ===== */
.book-container {
    padding-top: 100px;
    padding-bottom: 60px;
}

.book-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 0;
}

.book-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.book-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===== NAVIGATION BUTTONS ===== */
.book-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.nav-btn {
    padding: 12px 25px;
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-btn:hover,
.nav-btn.active {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ===== BOOK SECTIONS ===== */
.book-section {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}

.book-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.book-section h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.book-section h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ===== INFO GRID ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.info-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%);
    border-left: 5px solid var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.highlight-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.highlight-box h3 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.highlight-box p,
.highlight-box ol {
    color: var(--dark-gray);
    line-height: 1.8;
}

.highlight-box ol {
    margin-left: 20px;
    margin-top: 15px;
}

.highlight-box li {
    margin-bottom: 10px;
}

/* ===== SPECS TABLE ===== */
.specs-table {
    width: 100%;
    margin-bottom: 50px;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.specs-table thead {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

.specs-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.specs-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--dark-gray);
}

.specs-table tbody tr:hover {
    background-color: #f5f5f5;
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== TIMELINE ===== */
.timeline {
    max-width: 800px;
    margin: 50px auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--secondary-color), var(--light-gray));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 45%;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    border: 3px solid var(--white);
    border-radius: 50%;
    top: 10px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -32px;
}

.timeline-item:nth-child(even)::before {
    left: -32px;
}

.timeline-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-item h4 i {
    color: var(--secondary-color);
    margin-right: 10px;
}

.timeline-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== GALLERY SHOWCASE ===== */
.gallery-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 350px;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card-content {
    transform: translateY(0);
}

.gallery-card-content h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.gallery-card-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 60px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 60px;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section h2::after {
    background-color: var(--secondary-color);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn i {
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .book-header h1 {
        font-size: 2.3rem;
    }

    .book-header p {
        font-size: 1.1rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item::before {
        left: 0;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        left: 0;
    }
}

@media (max-width: 768px) {
    .book-nav-buttons {
        gap: 10px;
        margin-bottom: 40px;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .book-header {
        padding: 60px 20px;
        margin-bottom: 40px;
    }

    .book-header h1 {
        font-size: 2rem;
    }

    .book-header p {
        font-size: 1rem;
    }

    .book-section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
    }

    nav.active ul {
        display: flex;
        flex-direction: column;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-showcase {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .book-header {
        padding: 40px 15px;
    }

    .book-header h1 {
        font-size: 1.5rem;
    }

    .book-header p {
        font-size: 0.95rem;
    }

    .book-nav-buttons {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .book-section h2 {
        font-size: 1.5rem;
    }

    .specs-table {
        font-size: 0.85rem;
    }

    .specs-table th,
    .specs-table td {
        padding: 12px 10px;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .timeline-item {
        margin-bottom: 30px;
        padding-left: 50px;
    }

    .highlight-box {
        padding: 20px;
    }

    .info-card {
        padding: 20px;
    }
}