@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Lora:wght@400;500;600;700&family=Merriweather:wght@300;400;700&display=swap');

/* Reset and Base Styles */
/* General reset to ensure consistent styling across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --terracotta: #C2410C;
    --parchment: #FEF3C7;
    --copper: #B45309;
    --text-dark: #3E2723;
    --text-light: #5D4037;
    --shadow-soft: 0 4px 20px rgba(194, 65, 12, 0.15);
    --shadow-book: 0 8px 30px rgba(194, 65, 12, 0.25);
    --shadow-deep: 0 12px 40px rgba(194, 65, 12, 0.3);
}

body {
    font-family: 'Lora', 'Merriweather', Georgia, serif;
    line-height: 1.8;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--parchment);
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(194, 65, 12, 0.03) 2px, rgba(194, 65, 12, 0.03) 4px);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1.3;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--terracotta);
    color: var(--parchment);
    padding: 20px;
    z-index: 10000;
    box-shadow: var(--shadow-book);
    display: none;
    border-top: 3px solid var(--copper);
}

.cookie-notice.show {
    display: block;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

.cookie-content a {
    color: var(--parchment);
    text-decoration: underline;
}

.cookie-btn {
    background: var(--copper);
    color: var(--parchment);
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 16px;
    font-family: 'Lora', serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-btn:hover {
    background: #924308;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Header */
.main-header {
    background: var(--parchment);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid var(--copper);
    transition: all 0.3s ease;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--terracotta);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.logo:hover {
    color: var(--copper);
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    font-family: 'Lora', serif;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--terracotta);
    transition: all 0.3s ease;
}

/* Hero Section - Full Screen Slider */
.hero-section.hero-slider {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    padding: 0;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-slide .hero-content {
    text-align: center;
    color: #FFFFFF;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Decorative Flying Elements */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.decoration-page {
    position: absolute;
    background: rgba(194, 65, 12, 0.08);
    border: 1px solid rgba(194, 65, 12, 0.15);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(194, 65, 12, 0.1);
    animation: floatPage 15s ease-in-out infinite;
}

.decoration-1 {
    width: 80px;
    height: 120px;
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.decoration-2 {
    width: 60px;
    height: 90px;
    top: 25%;
    left: 8%;
    animation-delay: 1.5s;
    transform: rotate(20deg);
}

.decoration-3 {
    width: 70px;
    height: 110px;
    top: 45%;
    left: 3%;
    animation-delay: 3s;
    transform: rotate(-10deg);
}

.decoration-4 {
    width: 90px;
    height: 130px;
    top: 60%;
    left: 6%;
    animation-delay: 4.5s;
    transform: rotate(25deg);
}

.decoration-5 {
    width: 65px;
    height: 95px;
    top: 75%;
    left: 4%;
    animation-delay: 6s;
    transform: rotate(-20deg);
}

.decoration-6 {
    width: 85px;
    height: 125px;
    top: 10%;
    right: 5%;
    animation-delay: 0.8s;
    transform: rotate(18deg);
}

.decoration-7 {
    width: 70px;
    height: 105px;
    top: 30%;
    right: 8%;
    animation-delay: 2.3s;
    transform: rotate(-22deg);
}

.decoration-8 {
    width: 75px;
    height: 115px;
    top: 50%;
    right: 4%;
    animation-delay: 3.8s;
    transform: rotate(12deg);
}

.decoration-9 {
    width: 60px;
    height: 90px;
    top: 65%;
    right: 7%;
    animation-delay: 5.3s;
    transform: rotate(-18deg);
}

.decoration-10 {
    width: 80px;
    height: 120px;
    top: 80%;
    right: 5%;
    animation-delay: 6.8s;
    transform: rotate(15deg);
}

@keyframes floatPage {
    0% {
        transform: translateY(0) translateX(0) rotate(var(--initial-rotate, 0deg));
        opacity: 0.5;
    }
    20% {
        transform: translateY(-40px) translateX(20px) rotate(calc(var(--initial-rotate, 0deg) + 8deg));
        opacity: 0.7;
    }
    40% {
        transform: translateY(-60px) translateX(-15px) rotate(calc(var(--initial-rotate, 0deg) - 8deg));
        opacity: 0.8;
    }
    60% {
        transform: translateY(-40px) translateX(25px) rotate(calc(var(--initial-rotate, 0deg) + 6deg));
        opacity: 0.75;
    }
    80% {
        transform: translateY(-20px) translateX(10px) rotate(calc(var(--initial-rotate, 0deg) - 4deg));
        opacity: 0.65;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(var(--initial-rotate, 0deg));
        opacity: 0.5;
    }
}

/* Individual rotation adjustments */
.decoration-1 {
    --initial-rotate: -15deg;
}

.decoration-2 {
    --initial-rotate: 20deg;
}

.decoration-3 {
    --initial-rotate: -10deg;
}

.decoration-4 {
    --initial-rotate: 25deg;
}

.decoration-5 {
    --initial-rotate: -20deg;
}

.decoration-6 {
    --initial-rotate: 18deg;
}

.decoration-7 {
    --initial-rotate: -22deg;
}

.decoration-8 {
    --initial-rotate: 12deg;
}

.decoration-9 {
    --initial-rotate: -18deg;
}

.decoration-10 {
    --initial-rotate: 15deg;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
    pointer-events: none;
}

.slider-btn {
    width: 60px;
    height: 60px;
    background: rgba(254, 243, 199, 0.9);
    border: 2px solid var(--terracotta);
    border-radius: 50%;
    color: var(--terracotta);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-book);
}

.slider-btn:hover {
    background: var(--terracotta);
    color: var(--parchment);
    transform: scale(1.1);
}

.slider-btn span {
    line-height: 1;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(254, 243, 199, 0.5);
    border: 2px solid var(--parchment);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: var(--parchment);
    transform: scale(1.2);
}

/* Open Book Design */
.open-book-container {
    position: relative;
    perspective: 1500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.open-book {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    transform-style: preserve-3d;
    animation: bookAppear 1.5s ease-out;
}

@keyframes bookAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.book-left-page,
.book-right-page {
    position: absolute;
    width: 50%;
    height: 100%;
    background: #FFFFFF;
    box-shadow: var(--shadow-book);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: left;
    transition: transform 0.8s ease;
    border: 1px solid rgba(194, 65, 12, 0.1);
}

.book-left-page {
    left: 0;
    border-radius: 5px 0 0 5px;
    background: linear-gradient(to right, #FFFFFF 0%, #FEFEFE 100%);
}

.book-right-page {
    right: 0;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(to left, #FFFFFF 0%, #FEFEFE 100%);
    transform-origin: right;
}

.book-spine {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, var(--copper) 0%, var(--terracotta) 50%, var(--copper) 100%);
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.book-content {
    text-align: center;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--terracotta);
    margin-bottom: 15px;
    line-height: 1.3;
}

.book-text {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.bookmark {
    position: absolute;
    width: 40px;
    height: 60px;
    background: var(--terracotta);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: bookmarkFloat 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.bookmark-1 {
    top: 5%;
    right: -10px;
    animation-delay: 0s;
}

.bookmark-2 {
    bottom: 10%;
    left: -10px;
    animation-delay: 1.5s;
    background: var(--copper);
}

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

.hero-text-content {
    text-align: left;
    position: relative;
    z-index: 4;
}

.hero-slide .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: textReveal 1s ease-out 0.5s both;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
    color: var(--terracotta);
    animation: textReveal 1s ease-out 0.5s both;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slide .hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: #FFFFFF;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: textReveal 1s ease-out 0.7s both;
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: var(--text-light);
    line-height: 1.8;
    animation: textReveal 1s ease-out 0.7s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: textReveal 1s ease-out 0.9s both;
}

.btn {
    padding: 15px 35px;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: 'Lora', serif;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    background: var(--terracotta);
    color: var(--parchment);
}

.btn-primary:hover {
    background: var(--copper);
    transform: translateY(-3px);
    box-shadow: var(--shadow-book);
}

.hero-slide .btn-primary {
    background: var(--terracotta);
    color: #FFFFFF;
}

.hero-slide .btn-primary:hover {
    background: var(--copper);
    color: #FFFFFF;
}

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

.btn-secondary:hover {
    background: var(--terracotta);
    color: var(--parchment);
    transform: translateY(-3px);
    box-shadow: var(--shadow-book);
}

.hero-slide .btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.hero-slide .btn-secondary:hover {
    background: #FFFFFF;
    color: var(--terracotta);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Section Backgrounds */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.section-background ~ .container {
    position: relative;
    z-index: 1;
}

/* Book Categories Accordion */
.categories-section {
    padding: 100px 0;
    background: var(--parchment);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: 15px;
}

.section-header p {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: var(--text-light);
}

.book-categories-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.category-item {
    background: #FFFFFF;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(194, 65, 12, 0.1);
    transition: all 0.4s ease;
}

.category-item:hover {
    box-shadow: var(--shadow-book);
}

.category-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #FFFFFF 0%, #FEFEFE 100%);
    transition: all 0.3s ease;
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--terracotta);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.category-item.active .category-header::before {
    transform: scaleY(1);
}

.category-header:hover {
    background: linear-gradient(to right, #FFFBF5 0%, #FFFEF9 100%);
}

.category-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--terracotta);
    margin: 0;
}

.category-icon {
    font-size: 24px;
    color: var(--copper);
    transition: transform 0.4s ease;
    font-weight: bold;
}

.category-item.active .category-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.category-item.active .category-content {
    max-height: 800px;
}

.page-flip-wrapper {
    padding: 30px;
    background: linear-gradient(to bottom, #FFFFFF 0%, #FFFBF5 100%);
    perspective: 1000px;
    transform-style: preserve-3d;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.category-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-book);
    border: 2px solid var(--terracotta);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
    display: block;
}

.category-subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    animation: pageFlip 0.8s ease-out;
}

@keyframes pageFlip {
    0% {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    100% {
        opacity: 1;
        transform: rotateY(0);
    }
}

.subcategory-item {
    background: var(--parchment);
    padding: 25px;
    border-radius: 5px;
    border: 1px solid rgba(194, 65, 12, 0.15);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
}

.subcategory-item::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--terracotta);
    color: var(--parchment);
    padding: 8px 15px;
    border-radius: 3px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 100;
    font-family: 'Lora', serif;
    box-shadow: var(--shadow-soft);
}

.subcategory-item::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-2px);
    border: 6px solid transparent;
    border-top-color: var(--terracotta);
    opacity: 0;
    transition: all 0.3s ease;
}

.subcategory-item:hover::before,
.subcategory-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.subcategory-item:hover {
    transform: rotateY(5deg) translateY(-5px);
    box-shadow: var(--shadow-book);
    border-color: var(--terracotta);
}

.subcategory-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--terracotta);
    margin-bottom: 12px;
}

.subcategory-item p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    line-height: 1.7;
}

/* Services Section - Book Cards */
.services-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--parchment) 0%, #FFFBF5 100%);
    position: relative;
}

.book-shelf {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 2000px;
}

.book-card-wrapper {
    perspective: 1500px;
    height: 450px;
}

.book-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
    animation: bookShelfAppear 0.8s ease-out;
    animation-fill-mode: both;
}

.book-card-wrapper:nth-child(1) .book-card {
    animation-delay: 0.1s;
}

.book-card-wrapper:nth-child(2) .book-card {
    animation-delay: 0.2s;
}

.book-card-wrapper:nth-child(3) .book-card {
    animation-delay: 0.3s;
}

.book-card-wrapper:nth-child(4) .book-card {
    animation-delay: 0.4s;
}

.book-card-wrapper:nth-child(5) .book-card {
    animation-delay: 0.5s;
}

.book-card-wrapper:nth-child(6) .book-card {
    animation-delay: 0.6s;
}

@keyframes bookShelfAppear {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.book-card:hover {
    transform: rotateY(-15deg) translateZ(20px);
}

.book-cover {
    position: relative;
    width: 100%;
    height: 350px;
    transform-style: preserve-3d;
    transition: all 0.6s ease;
}

.book-card:hover .book-cover {
    transform: rotateY(-25deg);
}

.book-cover-image {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: var(--shadow-book);
    border: 2px solid var(--terracotta);
    background: var(--parchment);
}

.book-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-card:hover .book-cover-image img {
    transform: scale(1.05);
}

.book-spine-side {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 15px;
    background: linear-gradient(to right, var(--copper) 0%, var(--terracotta) 50%, var(--copper) 100%);
    transform: rotateY(-90deg) translateZ(-15px);
    transform-origin: left;
    box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.3);
    border-radius: 3px 0 0 3px;
}

.book-info {
    margin-top: 20px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 3px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(194, 65, 12, 0.1);
    transition: all 0.3s ease;
}

.book-card:hover .book-info {
    box-shadow: var(--shadow-book);
    transform: translateY(-5px);
}

.book-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--terracotta);
    margin-bottom: 12px;
}

.book-info p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Solutions Section */
.solutions-section {
    padding: 100px 0;
    background: var(--parchment);
    position: relative;
}

.solutions-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.solution-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.solution-item.reverse {
    direction: rtl;
}

.solution-item.reverse > * {
    direction: ltr;
}

.solution-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-book);
    border: 2px solid var(--terracotta);
    transition: all 0.4s ease;
}

.solution-image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-deep);
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 350px;
}

.solution-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--terracotta);
    margin-bottom: 25px;
}

.solution-text p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.solution-features {
    list-style: none;
    padding: 0;
}

.solution-features li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    font-family: 'Lora', serif;
    font-size: 1.05rem;
}

.solution-features li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--terracotta);
    font-size: 1.2rem;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #FFFBF5 0%, var(--parchment) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-box {
    background: #FFFFFF;
    padding: 35px;
    border-radius: 5px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(194, 65, 12, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(194, 65, 12, 0.05), transparent);
    transition: left 0.5s ease;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-book);
    border-color: var(--terracotta);
}

.feature-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--terracotta);
    margin-bottom: 15px;
}

.feature-box p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    line-height: 1.8;
}

/* Experience Section */
.experience-section {
    padding: 100px 0;
    background: var(--parchment);
}

.experience-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.experience-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-book);
    border: 2px solid var(--terracotta);
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.experience-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--terracotta);
    margin-bottom: 30px;
}

.experience-content > p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.experience-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: #FFFFFF;
    border-radius: 5px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(194, 65, 12, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-book);
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--terracotta);
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-family: 'Lora', serif;
    color: var(--text-light);
    font-size: 1rem;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--parchment) 0%, #FFFBF5 100%);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
}

.process-step {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 5px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    border: 1px solid rgba(194, 65, 12, 0.1);
    transition: all 0.4s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-book);
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    color: var(--terracotta);
    opacity: 0.2;
    margin-bottom: 20px;
}

.process-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--terracotta);
    margin-bottom: 18px;
}

.process-step p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--parchment);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--terracotta);
    margin-bottom: 35px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item strong {
    display: block;
    font-family: 'Playfair Display', serif;
    color: var(--terracotta);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-item p {
    font-family: 'Lora', serif;
    color: var(--text-light);
    line-height: 1.9;
}

.contact-item a {
    color: var(--terracotta);
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--copper);
    text-decoration: underline;
}

.contact-form-wrapper {
    background: #FFFFFF;
    padding: 45px;
    border-radius: 8px;
    box-shadow: var(--shadow-book);
    border: 2px solid var(--terracotta);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    color: var(--terracotta);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(194, 65, 12, 0.2);
    border-radius: 3px;
    font-size: 16px;
    font-family: 'Lora', serif;
    transition: all 0.3s ease;
    background: var(--parchment);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.main-footer {
    background: var(--terracotta);
    color: var(--parchment);
    padding: 70px 0 25px;
    border-top: 4px solid var(--copper);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--parchment);
}

.footer-section p {
    font-family: 'Lora', serif;
    line-height: 1.9;
    margin-bottom: 12px;
    opacity: 0.95;
}

.footer-section a {
    color: var(--parchment);
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #FFF9E6;
    text-decoration: underline;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(254, 243, 199, 0.3);
    padding-top: 25px;
    text-align: center;
    opacity: 0.9;
    font-family: 'Lora', serif;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* Policy Pages Styles */
.policy-page {
    padding: 120px 0 80px;
    background: var(--parchment);
    min-height: 100vh;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: #FFFFFF;
    padding: 60px;
    border-radius: 8px;
    box-shadow: var(--shadow-book);
    border: 2px solid rgba(194, 65, 12, 0.1);
}

.policy-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: 25px;
}

.policy-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--terracotta);
    margin-top: 50px;
    margin-bottom: 20px;
}

.policy-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--terracotta);
    margin-top: 35px;
    margin-bottom: 15px;
}

.policy-content p {
    font-family: 'Lora', serif;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.policy-content ul,
.policy-content ol {
    margin-left: 35px;
    margin-bottom: 25px;
}

.policy-content li {
    font-family: 'Lora', serif;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.policy-content a {
    color: var(--terracotta);
    transition: all 0.3s ease;
}

.policy-content a:hover {
    color: var(--copper);
    text-decoration: underline;
}

/* Thanks Page */
.thanks-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--parchment);
    text-align: center;
    padding: 60px 20px;
}

.thanks-content {
    max-width: 650px;
    background: #FFFFFF;
    padding: 70px 50px;
    border-radius: 8px;
    box-shadow: var(--shadow-book);
    border: 2px solid var(--terracotta);
}

.thanks-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--terracotta);
    margin-bottom: 25px;
}

.thanks-content p {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-slide .hero-content {
        padding: 40px 30px;
    }
    
    .hero-slide .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .page-flip-wrapper {
        grid-template-columns: 1fr;
    }
    
    .category-image {
        min-height: 200px;
    }
    
    .open-book {
        height: 450px;
        max-width: 100%;
    }
    
    .book-left-page,
    .book-right-page {
        padding: 30px 20px;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .book-content {
        width: 100%;
    }
    
    .book-title {
        font-size: 1.5rem;
        margin-bottom: 12px;
    }
    
    .book-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .solution-item {
        grid-template-columns: 1fr;
    }
    
    .solution-item.reverse {
        direction: ltr;
    }
    
    .experience-wrapper {
        grid-template-columns: 1fr;
    }
    
    .experience-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Hide some decorative elements on mobile to reduce clutter */
    .decoration-2,
    .decoration-4,
    .decoration-7,
    .decoration-9 {
        display: none;
    }
    
    .decoration-page {
        opacity: 0.4;
    }
    
    /* Adjust bookmarks position on mobile */
    .bookmark {
        width: 30px;
        height: 50px;
    }
    
    .bookmark-1 {
        top: 2%;
        right: -8px;
    }
    
    .bookmark-2 {
        bottom: 5%;
        left: -8px;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--parchment);
        box-shadow: var(--shadow-book);
        transition: left 0.3s ease;
        padding: 25px 0;
        border-bottom: 2px solid var(--copper);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0 25px;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(194, 65, 12, 0.2);
    }
    
    .main-nav a {
        display: block;
        padding: 18px 0;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-section.hero-slider {
        height: 80vh;
        min-height: 600px;
    }
    
    .slider-controls {
        padding: 0 15px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .book-left-page,
    .book-right-page {
        padding: 25px;
    }
    
    .book-title {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .category-subcategories {
        grid-template-columns: 1fr;
    }
    
    .book-shelf {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .policy-content {
        padding: 40px 25px;
    }
    
    .contact-form-wrapper {
        padding: 35px 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slide .hero-content {
        padding: 30px 20px;
    }
    
    .hero-slide .hero-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .open-book {
        height: 350px;
        min-height: 350px;
    }
    
    .open-book-container {
        height: 400px;
        min-height: 400px;
    }
    
    .book-left-page,
    .book-right-page {
        padding: 20px 15px;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .book-title {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .book-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Hide or minimize bookmarks on very small screens */
    .bookmark {
        width: 25px;
        height: 40px;
        opacity: 0.6;
    }
    
    .bookmark-1 {
        top: 1%;
        right: -6px;
    }
    
    .bookmark-2 {
        bottom: 3%;
        left: -6px;
    }
}
