:root {
    --primary-color: #2c5530;
    --primary-dark: #1e3a23;
    --primary-light: #4a7856;
    --secondary-color: #8b4513;
    --accent-color: #d4af37;
    --text-color: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --medium-gray: #e2e8f0;
    --dark-bg: #1a202c;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    font-weight: 400;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: var(--primary-dark);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--medium-gray);
}

.btn-outline:hover {
    background-color: var(--light-bg);
    color: var(--text-color);
    border-color: var(--text-light);
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.site-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.site-subtitle {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
}

.main-nav {
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

/* Hamburger Animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Page Header */
.page-header {
    padding: 4rem 0 2rem;
    background-color: var(--light-bg);
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--primary-color);
}

.page-title {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.03) 0%, rgba(212, 175, 55, 0.03) 100%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    position: relative;
}

.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-light);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotate(-2deg);
    transition: var(--transition-slow);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    z-index: -1;
    border-radius: var(--border-radius-lg);
    opacity: 0.1;
}

.image-frame:hover {
    transform: rotate(0deg);
}

.author-portrait {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.image-frame:hover .author-portrait {
    transform: scale(1.05);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-link {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: auto;
}

.feature-link:hover {
    color: var(--primary-dark);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.live-link {
    color: #d4af37;
    font-weight: 600;
}

/* Book Preview Section */
.books-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.book-year {
    background-color: #d4af37;
    display: inline !important;
    color: white;
    padding: 5px 10px;
    border-radius: 50px;
    position: relative;
    top: -5px;
}

.book-description {
    padding-top: 10px;
}

/* Biography Section */
.biography {
    padding: 4rem 0;
}

.biography-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.biography-image {
    position: sticky;
    top: 100px;
}

.biography-text h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.biography-text h3 {
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-box {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    margin: 2rem 0;
}

.highlight-box h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Book Detail Section */
.book-detail {
    padding: 4rem 0;
}

.book-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.book-cover-large {
    position: sticky;
    top: 100px;
}


.book-meta-info {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.book-meta-info p {
    margin-bottom: 0.5rem;
}

.book-description-detailed h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Additional Info Section */
.additional-info {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.info-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
    position: relative;
    padding-left: 1.5rem;
}

.info-card li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
}

.info-card li:last-child {
    border-bottom: none;
}

blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    color: var(--text-color);
}

cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--light-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
}

.contact-form-container h2 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.faq-item p {
    margin-bottom: 0;
    color: var(--text-color);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 50px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--medium-gray);
    margin-bottom: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.5rem;
}

.link-group a {
    color: var(--medium-gray);
}

.link-group a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--medium-gray);
    margin-bottom: 0;
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet Styles (992px and below) */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero::before {
        width: 100%;
        height: 50%;
    }

    .accent-line {
        margin: 0 auto 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .book-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .biography-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .biography-image {
        position: static;
    }

    .book-detail-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .book-cover-large {
        position: static;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile Styles (768px and below) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .header-content {
        padding: 0;
    }

    .books-grid {
        grid-template-columns: 100%;
    }

    .footer {
        margin-top: 0;
    }

    .organization-section {
        margin-top: -80px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: var(--transition-slow);
        z-index: 999;
        margin: 0;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--medium-gray);
        width: 100%;
        text-align: left;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Overlay when menu is open */
    .nav-list::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-list.active::before {
        pointer-events: all;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero-actions,
    .book-actions {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Small Mobile Styles (576px and below) */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .feature-card,
    .faq-item,
    .contact-form-container {
        padding: 1.5rem;
    }

    .book-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .contact-icon {
        align-self: center;
    }

    .image-frame {
        transform: rotate(0deg);
    }

    .book-cover img {
        transform: rotate(0deg);
    }
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    font-weight: 600;
}

.btn:hover {
    background-color: #2980b9;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.success .modal-icon {
    color: #2ecc71;
}

.error-modal .modal-icon {
    color: #e74c3c;
}

.modal h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.modal p {
    margin-bottom: 25px;
    color: #555;
}

.modal-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.modal-btn:hover {
    background-color: #2980b9;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 10px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .contact-form-container {
        padding: 20px;
    }

    .modal-content {
        padding: 20px;
    }
}