/* CSS Variables */
:root {
    --olive-dark: #2d3a1f;
    --olive-medium: #4a5d34;
    --olive-light: #6b8e23;
    --gold-primary: #c9a227;
    --gold-secondary: #d4af37;
    --gold-light: #f4e4a6;
    --gold-dark: #b8941a;
    --page-color: #f8f5e9;
    --page-shadow: #e8e0c9;
    --text-dark: #2a2c24;
    --text-light: #5a5c54;
    --shadow-color: rgba(45, 58, 31, 0.5);
    --glow-color: rgba(201, 162, 39, 0.3);
}

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

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #1a1e17 0%, #2a2c24 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

:root {
    --olive-dark: #2d3a1f;
    --olive-medium: #4a5d34;
    --olive-light: #6b8e23;
    --gold-primary: #c9a227;
    --gold-secondary: #d4af37;
    --gold-light: #f4e4a6;
    --gold-dark: #b8941a;
    --page-color: #f8f5e9;
    --page-shadow: #e8e0c9;
    --text-dark: #2a2c24;
    --text-light: #5a5c54;
    --shadow-color: rgba(45, 58, 31, 0.5);
    --glow-color: rgba(201, 162, 39, 0.3);
}

.book-container {
    width: 95%;
    max-width: 1500px;
    position: relative;
    padding-top: 140px;
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 15px 0 60px;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(42, 44, 36, 0.95) 0%, rgba(26, 30, 23, 0.8) 100%);
    border-bottom: 3px solid var(--gold-primary);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hidden-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 101;
    pointer-events: none;
    width: 100%;
}

.site-header:hover .hidden-nav {
    max-height: 50px;
    opacity: 1;
    pointer-events: auto;
    padding: 5px 0;
}

.nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    text-decoration: none;
    padding: 8px 12px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
    text-shadow: 0 0 10px var(--glow-color);
}

.site-title {
    font-family: 'Cormorant Garamond', cursive;
    font-size: 3.8rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--gold-primary), var(--gold-light), var(--gold-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
    animation: title-glow 3s ease-in-out infinite alternate;
}

.site-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold-light);
    font-style: italic;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#magazine {
    height: 850px;
    box-shadow: 0 25px 70px var(--shadow-color), inset 0 0 50px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: var(--olive-dark);
}

.page-spread {
    width: 100%;
    height: 100%;
    display: none;
}

.page-spread.active {
    display: flex;
}

.page-spread .single-page {
    width: 100% !important;
    border-right: none !important;
    box-shadow: none !important;
}

.page {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./assets/images/textures/book-texture.webp'), linear-gradient(135deg, var(--page-color) 0%, #f0e8d0 100%), linear-gradient(90deg, transparent 79px, rgba(169, 169, 169, 0.05) 79px, rgba(169, 169, 169, 0.05) 81px, transparent 81px), linear-gradient(var(--page-shadow) 0.1em, transparent 0.1em);
    background-size: cover, auto, 100% 1.5em, 100% 1.5em;
    background-position: center, 0 0, 15px 0, 15px 0;
    background-blend-mode: multiply, normal, normal, normal;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

#cover::before {
    display: none;
}

.left-page {
    border-right: 1px solid rgba(201, 162, 39, 0.3);
    box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.05);
}
.right-page {
    border-left: 1px solid rgba(201, 162, 39, 0.1);
    box-shadow: inset 10px 0 20px rgba(0, 0, 0, 0.05);
}

#magazine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold-primary) 20%, var(--gold-primary) 80%, transparent);
    opacity: 0.4;
    z-index: 10;
    pointer-events: none;
    transform: translateX(-50%);
}

.page-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 50px 60px;
    overflow-y: auto;
    font-size: 1.2rem;
    line-height: 1.8;
    z-index: 2;
}

.page-content::-webkit-scrollbar {
    width: 6px;
}

.page-content::-webkit-scrollbar-track {
    background: rgba(201, 162, 39, 0.05);
}

.page-content::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 3px;
}

#cover {
    background: url('./assets/images/textures/book%20cover.jpeg') center / cover no-repeat, #5c4033;
    background-attachment: local;
    position: relative;
    overflow: hidden;
    filter: brightness(0.98) contrast(1.15) saturate(1.1);
    width: 100%;
    flex: 1;
    z-index: 1;
}

#cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
    backdrop-filter: blur(1.5px);
}

#cover::after {
    content: '';
    position: absolute;
    top: 40px;
    right: 40px;
    bottom: 40px;
    left: 40px;
    border: 2px solid rgba(212, 175, 55, 0.7);
    border-radius: 2px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.4), inset 0 0 60px rgba(0, 0, 0, 0.2), 0 10px 40px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

#cover .page-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 100%;
    height: 100%;
}

.cover-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3;
    width: auto;
    max-width: 700px;
    padding: 0 20px;
    margin-top: -60px;
}

.cover-ornament {
    font-size: 5rem;
    color: var(--gold-primary);
    margin-bottom: 35px;
    text-shadow: 0 0 20px var(--glow-color), 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: gentle-float 4s ease-in-out infinite;
}

.cover-title {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    color: var(--gold-primary);
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cover-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold-primary), transparent);
}

.cover-subtitle {
    font-size: 1.9rem;
    color: var(--gold-light);
    font-style: italic;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cover-quote {
    font-size: 1.4rem;
    color: var(--gold-light);
    font-style: italic;
    margin: 40px 0;
    padding: 20px;
    border-left: 3px solid var(--gold-primary);
    border-right: 3px solid var(--gold-primary);
    background: rgba(244, 228, 166, 0.08);
    max-width: 500px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.cover-quote i {
    color: var(--gold-primary);
    margin: 0 10px;
}

.cover-instruction {
    font-size: 1.3rem;
    color: var(--gold-light);
    position: absolute;
    bottom: 50px;
    font-style: italic;
    animation: gentle-pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cover-instruction i {
    animation: arrow-bounce 1.5s infinite;
}

.toc-section {
    margin: 35px 0;
}

.toc-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 22px 30px;
    margin-bottom: 20px;
    background: rgba(244, 228, 166, 0.08);
    border-radius: 8px;
    border-left: 4px solid var(--gold-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toc-item:hover {
    background: rgba(244, 228, 166, 0.15);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(201, 162, 39, 0.15);
}

.toc-number {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    color: var(--gold-primary);
    font-weight: 700;
    min-width: 55px;
    text-align: center;
}

.toc-content {
    flex: 1;
    padding: 0 25px;
}

.toc-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--olive-dark);
    margin-bottom: 8px;
}

.toc-content p {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    font-size: 1.1rem;
}

.toc-page {
    font-family: 'Cinzel', serif;
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 1.2rem;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 15px;
}

.toc-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.ornament-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.toc-ornament i {
    color: var(--gold-primary);
    font-size: 1.4rem;
}

.toc-note {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    padding: 15px;
    background: rgba(244, 228, 166, 0.05);
    border-radius: 6px;
    margin-top: 30px;
    font-size: 1rem;
}

.page-heading {
    font-family: 'Cinzel', serif;
    font-size: 2.4rem;
    color: var(--olive-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-heading i {
    color: var(--gold-primary);
}

.page-intro {
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--text-light);
    font-style: italic;
}

.page-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-align: justify;
}

.highlight {
    color: var(--gold-dark);
    font-weight: 600;
    position: relative;
}

.ornamental-divider {
    text-align: center;
    font-size: 2.4rem;
    color: var(--gold-primary);
    margin: 30px 0;
    opacity: 0.6;
    letter-spacing: 10px;
}

.skills-section {
    margin-top: 35px;
    padding: 25px;
    background: rgba(244, 228, 166, 0.08);
    border-left: 4px solid var(--gold-primary);
    border-radius: 0 8px 8px 0;
}

.skills-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    color: var(--olive-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-list {
    list-style: none;
    padding-left: 5px;
}

.skills-list li {
    font-size: 1.3rem;
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
}

.skills-list li::before {
    content: '✦';
    color: var(--gold-primary);
    position: absolute;
    left: 0;
    top: 10px;
}

/* ===== PORTFOLIO GALLERY - OPTIMAL SIZES ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 20px;
    border: 2px solid var(--gold-light);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(201, 162, 39, 0.2);
    border-color: var(--gold-primary);
}

.item-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, var(--olive-light), var(--olive-dark));
    border-radius: 6px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .item-image img {
    transform: scale(1.05);
}

.item-image::after {
    display: none;
}

.portfolio-grid.single {
    grid-template-columns: 1fr;
    justify-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-grid.single .portfolio-item {
    max-width: 100%;
    width: 100%;
}

.portfolio-grid.single .item-image {
    height: 450px;
}

.portfolio-item h5 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--olive-dark);
    margin-bottom: 5px;
    text-align: center;
}

.portfolio-item p {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.4;
    text-align: center;
    margin: 0;
}

.portfolio-note {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gold-dark);
    margin-top: 30px;
    padding: 15px;
    background: rgba(244, 228, 166, 0.15);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: rgba(45, 58, 31, 0.98);
    border: 2px solid var(--gold-primary);
    border-radius: 10px;
    padding: 30px;
    max-width: 85vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modal-pop 0.3s ease;
    box-shadow: 0 0 40px rgba(201, 162, 39, 0.4), inset 0 0 40px rgba(0, 0, 0, 0.5);
}

@keyframes modal-pop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-primary);
    color: var(--olive-dark);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    padding: 0;
}

.modal-close:hover {
    background: var(--gold-light);
    transform: rotate(90deg);
}

#modal-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 6px;
}

.modal-info {
    text-align: center;
    color: var(--gold-light);
}

.modal-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
}

.commission-process {
    margin: 30px 0;
}

.process-step {
    display: flex;
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 2px solid var(--gold-light);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.1);
}

.step-number {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 25px;
    flex-shrink: 0;
}

.step-content h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--olive-dark);
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-dark);
    line-height: 1.7;
    margin: 0;
    font-size: 1.2rem;
}

.pricing-note {
    padding: 22px;
    background: linear-gradient(135deg, rgba(244, 228, 166, 0.15), rgba(201, 162, 39, 0.08));
    border-radius: 8px;
    border-left: 4px solid var(--gold-primary);
    margin-top: 35px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.pricing-note i {
    font-size: 1.8rem;
    color: var(--gold-primary);
}

.pricing-note strong {
    color: var(--olive-dark);
}

.contact-form {
    margin-top: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group.half {
    flex: 1;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--olive-dark);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--gold-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--gold-light);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--glow-color);
}

.char-counter {
    text-align: right;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 5px;
}

.char-counter #char-count {
    color: var(--gold-primary);
    font-weight: bold;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(244, 228, 166, 0.08);
    border-radius: 6px;
    border-left: 3px solid var(--gold-primary);
}

.consent input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.consent label {
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 0;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(201, 162, 39, 0.4);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary));
}

.loading-spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 15px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-message {
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
    display: none;
    font-size: 1.1rem;
}

.form-message.success {
    background: rgba(107, 142, 35, 0.1);
    border: 2px solid var(--olive-light);
    color: var(--olive-dark);
}

.form-message.error {
    background: rgba(220, 20, 60, 0.1);
    border: 2px solid #DC143C;
    color: #8B0000;
}

.contact-info {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 2px solid var(--gold-light);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(244, 228, 166, 0.08);
    border-radius: 8px;
    border: 2px solid var(--gold-light);
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--gold-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 50%;
}

.contact-method h5 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--olive-dark);
    margin-bottom: 5px;
}

.contact-method p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(244, 228, 166, 0.15);
    border-radius: 6px;
    color: var(--olive-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: rgba(201, 162, 39, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.1);
}

.social-link i {
    color: var(--gold-primary);
}

.closing-page .page-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.closing-content {
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
}

.closing-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.closing-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.closing-note {
    color: var(--gold-primary);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.book-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    position: relative;
}

.control-btn {
    background: linear-gradient(135deg, var(--olive-dark), var(--olive-medium));
    color: var(--gold-light);
    border: 2px solid var(--gold-primary);
    padding: 12px 30px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.control-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--olive-medium), var(--olive-dark));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(45, 58, 31, 0.7);
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid var(--gold-primary);
    min-width: 180px;
    text-align: center;
    margin: 0 auto;
}

#current-pages {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold-primary);
    font-weight: 700;
}

.nav-dots {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--olive-medium);
    border: 2px solid var(--gold-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot:hover {
    background: var(--gold-primary);
    transform: scale(1.3);
}

.nav-dot.active {
    background: var(--gold-primary);
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--glow-color);
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes gentle-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

@keyframes title-glow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
    100% { text-shadow: 2px 2px 12px rgba(201, 162, 39, 0.6), 0 0 20px rgba(201, 162, 39, 0.3); }
}

.error:focus {
    box-shadow: 0 0 12px rgba(220, 20, 60, 0.3) !important;
}

.consent.error {
    border-left-color: #DC143C !important;
    background: rgba(220, 20, 60, 0.05) !important;
}

@media (max-width: 1400px) {
    .book-container {
        max-width: 1300px;
    }
    
    #magazine {
        height: 800px;
    }
    
    .item-image {
        height: 320px;
    }
    
    .portfolio-grid.single .item-image {
        height: 410px;
    }
}

@media (max-width: 1200px) {
    .book-container {
        max-width: 1100px;
    }
    
    #magazine {
        height: 750px;
    }
    
    .page-content {
        padding: 45px 50px;
    }
    
    .item-image {
        height: 300px;
    }
    
    .portfolio-grid.single .item-image {
        height: 400px;
    }
}

@media (max-width: 992px) {
    .book-container {
        max-width: 900px;
        padding-top: 120px;
    }
    
    #magazine {
        height: 700px;
    }
    
    .page-content {
        padding: 40px 45px;
    }
    
    .site-title {
        font-size: 3.2rem;
    }
    
    .item-image {
        height: 280px;
    }
    
    .portfolio-grid.single .item-image {
        height: 380px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .book-container {
        padding-top: 70px !important;
        max-width: 100%;
    }
    
    #magazine {
        height: calc(100vh - 90px) !important;
        overflow: hidden;
    }
    
    .site-header {
        padding: 10px 0 10px !important;
        background: linear-gradient(to bottom, rgba(42, 44, 36, 0.95) 0%, rgba(26, 30, 23, 0.9) 100%);
        border-bottom: 2px solid var(--gold-primary);
    }
    
    .site-title {
        font-size: 1.5rem !important;
        margin-bottom: 2px;
    }
    
    .site-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 0;
    }
    
    .hidden-nav {
        display: block;
        margin-top: 1rem;
    }
    
    .site-header:hover .hidden-nav {
        display: none !important;
    }
    
    .page-spread {
        flex-direction: row;
    }
    
    .page-spread.active {
        display: flex !important;
    }
    
    .page-spread.active .left-page {
        width: 100%;
        height: 100%;
        border-right: none;
        display: flex;
    }
    
    .page-spread.active .right-page {
        width: 100%;
        height: 100%;
        border-left: none;
        display: none;
    }
    
    .page-spread.active.mobile-show-right .left-page {
        display: none;
    }
    
    .page-spread.active.mobile-show-right .right-page {
        display: flex;
    }
    
    .page {
        height: 100%;
        position: relative;
    }
    
    .page-content {
        position: absolute;
        padding: 30px 25px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 100px; /* ensure content isn't hidden behind controls */
    }
    
    #cover {
        background: url('./assets/images/textures/book%20cover.jpeg') center / cover no-repeat, #5c4033;
        height: 100%;
        min-height: 100%;
    }
    
    #cover::after {
        display: none;
    }
    
    .cover-content {
        padding: 0 15px;
    }
    
    .cover-title {
        font-size: 2rem;
    }
    
    .cover-subtitle {
        font-size: 1.3rem;
    }
    
    .cover-instruction {
        bottom: 30px;
        font-size: 0.9rem;
        background: rgba(0, 0, 0, 0.3);
        padding: 8px 15px;
        border-radius: 30px;
        backdrop-filter: blur(3px);
    }
    
    .page-heading {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .page-intro {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .page-text {
        font-size: 1.1rem;
    }
    
    /* Portfolio on mobile */
    .portfolio-grid {
        gap: 15px;
    }
    
    .portfolio-item {
        padding: 12px;
    }
    
    .item-image {
        height: 220px;
    }
    
    .portfolio-grid.single .item-image {
        height: 300px;
    }
    
    .portfolio-item h5 {
        font-size: 1.1rem;
    }
    
    .portfolio-item p {
        font-size: 0.85rem;
    }
    
    .book-controls {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(42, 44, 36, 0.95);
        border-top: 2px solid var(--gold-primary);
        z-index: 1000;
        margin-top: 0;
        padding: 15px 10px;
    }
    
    .control-btn {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .page-indicator {
        min-width: 130px;
        padding: 10px 12px;
        font-size: 1rem;
        margin: 0;
    }
    
    #current-pages {
        font-size: 1.4rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 20px;
        align-self: center;
    }
    
    .toc-item {
        padding: 15px 20px;
        margin-bottom: 15px;
    }
    
    .toc-number {
        font-size: 2rem;
        min-width: 45px;
    }
    
    .toc-content h4 {
        font-size: 1.3rem;
    }
    
    .toc-content p {
        font-size: 1rem;
    }
    
    .nav-dots {
        position: relative;
        bottom: auto;
        margin-top: 15px;
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .item-image {
        height: 200px;
    }
    
    .portfolio-grid.single .item-image {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .book-container {
        padding-top: 60px !important;
    }
    
    #magazine {
        height: calc(100vh - 80px) !important;
    }
    
    .site-header {
        padding: 8px 0 !important;
    }
    
    .site-title {
        font-size: 1.3rem !important;
    }
    
    .site-subtitle {
        font-size: 0.65rem !important;
    }
    
    .cover-title {
        font-size: 1.8rem;
    }
    
    .cover-subtitle {
        font-size: 1.1rem;
    }
    
    .cover-quote {
        font-size: 1rem;
        padding: 10px;
    }
    
    .page-content {
        padding: 25px 20px;
    }
    
    .page-heading {
        font-size: 1.6rem;
    }
    
    .item-image {
        height: 180px;
    }
    
    .portfolio-grid.single .item-image {
        height: 260px;
    }
    
    .book-controls {
        gap: 5px;
        padding: 0 5px;
    }
    
    .control-btn {
        min-width: 85px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .page-indicator {
        min-width: 110px;
        padding: 8px 8px;
        font-size: 0.9rem;
    }
    
    #current-pages {
        font-size: 1.2rem;
    }
    
    .toc-item {
        padding: 12px 15px;
    }
    
    .toc-number {
        font-size: 1.8rem;
        min-width: 40px;
    }
}