:root {
    --bg-color: hsl(47, 33%, 92%);
    --text-color: #272A34;
    --primary-color: #E36166;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #4A4A4A;
    --card-bg: #FFFFFF;
    --accent-color: #FF4500;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Playfair Display', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
}

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: absolute;
    width: 100%;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.header-logo {
    width: 60px;
    height: 60px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

.cta-small {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 97, 102, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    background: radial-gradient(circle at 70% 50%, rgba(227, 97, 102, 0.05) 0%, transparent 50%);
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
}

.cta-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(227, 97, 102, 0.3);
}

.cta-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-secondary:hover {
    background-color: var(--text-color);
    color: var(--white);
}

.hero-image {
    width: 40%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: rotateY(-10deg) rotateX(10deg);
}

/* Features */
.features {
    padding: 120px 10%;
    background-color: var(--white);
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--gray);
}

.feature-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--bg-color);
    padding: 50px;
    border-radius: 24px;
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
}

/* Gallery Split Layout */
.gallery-split {
    padding: 120px 10%;
    display: flex;
    align-items: center;
    gap: 80px;
    background-color: var(--bg-color);
}

.gallery-carousel-container {
    flex: 1.2;
    position: relative;
    max-width: 500px;
}

.carousel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    aspect-ratio: 0.63;
}

.carousel-inner {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.gallery-content {
    flex: 1;
}

.gallery-content h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.gallery-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.book-list {
    list-style: none;
}

.book-list li {
    font-size: 1.4rem;
    padding: 12px 0;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    border-bottom: 1px solid rgba(39, 42, 52, 0.1);
    position: relative;
}

.book-list li:hover,
.book-list li.active {
    color: var(--primary-color);
    padding-left: 20px;
}

.book-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: var(--transition);
}

.book-list li:hover::before,
.book-list li.active::before {
    opacity: 1;
}

/* CTA Final */
.cta-final {
    padding: 120px 10%;
    text-align: center;
    background-color: var(--text-color);
    color: var(--white);
}

.cta-final h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.cta-final p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Footer */
footer {
    padding: 60px 10%;
    text-align: center;
    background-color: var(--bg-color);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

footer p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Animations */
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.fade-in-delay {
    animation: fadeIn 1.2s ease-out 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-more {
    animation: fadeIn 1.2s ease-out 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating {
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0) rotateY(-10deg) rotateX(10deg);
    }

    50% {
        transform: translateY(-25px) rotateY(-5deg) rotateX(5deg);
    }

    100% {
        transform: translateY(0) rotateY(-10deg) rotateX(10deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-split {
        flex-direction: column;
        text-align: center;
    }

    .gallery-carousel-container {
        width: 100%;
        max-width: 400px;
    }

    .gallery-content h2 {
        font-size: 2.8rem;
    }

    .book-list li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        margin-bottom: 60px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-image {
        width: 80%;
    }

    .feature-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}