/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    --teal: #01A695;
    --lime: #D0E148;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #666;
    --light-gray: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===========================
   Header & Navigation
   =========================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--teal);
}

.chess-icon {
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.btn-preorder-header {
    background: var(--teal);
    color: var(--light) !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-preorder-header:hover {
    background: #018c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 166, 149, 0.3);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(208, 225, 72, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInLeft 0.8s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 32px;
    line-height: 1.7;
}

.btn-preorder {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--teal);
    color: var(--light);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(1, 166, 149, 0.3);
}

.btn-preorder:hover {
    background: #018c7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(1, 166, 149, 0.4);
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
}

.book-cover-wrapper {
    position: relative;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.book-cover-wrapper:hover {
    transform: translateY(-10px) rotate(2deg);
}

.book-cover {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

/* ===========================
   Testimonial Section
   =========================== */

.testimonial-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(1, 166, 149, 0.03) 0%, rgba(208, 225, 72, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background: rgba(208, 225, 72, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.testimonial-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-image-wrapper {
    position: relative;
}

.testimonial-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.testimonial-image:hover {
    transform: scale(1.05);
}

.testimonial-text {
    position: relative;
}

.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    line-height: 0.8;
    color: var(--teal);
    opacity: 0.15;
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: 0;
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.7;
    color: var(--dark);
    font-style: italic;
    margin: 0 0 24px 0;
    position: relative;
    z-index: 1;
}

.testimonial-attribution {
    border-top: 2px solid var(--lime);
    padding-top: 16px;
}

.testimonial-author {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 4px;
}

.testimonial-credentials {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
}

/* ===========================
   Book Description Section
   =========================== */

.book-description {
    padding: 100px 0;
    background: var(--light);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--lime);
    margin: 20px auto 0;
    border-radius: 2px;
}

.description-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
}

.description-content p {
    margin-bottom: 24px;
}

.description-highlight {
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    background: linear-gradient(120deg, rgba(208, 225, 72, 0.2) 0%, rgba(1, 166, 149, 0.1) 100%);
    padding: 24px;
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    margin-top: 32px;
}

.book-description-cta {
    margin-top: 40px;
    text-align: center;
}

.btn-read-sample {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--teal);
    color: var(--light);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(1, 166, 149, 0.3);
}

.btn-read-sample:hover {
    background: #018c7e;
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(1, 166, 149, 0.4);
}

/* ===========================
   Author Section
   =========================== */

.author-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
}

.author-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.author-image-wrapper {
    position: relative;
}

.author-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.author-image:hover {
    transform: scale(1.05);
}

.author-bio h3 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
}

.author-bio p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

/* ===========================
   Footer CTA Section
   =========================== */

.footer-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--teal) 0%, #018c7e 100%);
    color: var(--light);
    text-align: center;
}

.footer-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--light);
    color: var(--teal);
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--lime);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Footer
   =========================== */

.footer {
    padding: 40px 0;
    background: var(--dark);
    color: var(--light);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* ===========================
   Animations
   =========================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .author-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .author-image {
        margin: 0 auto;
    }
    
    .testimonial-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .testimonial-image {
        margin: 0 auto;
    }
    
    .quote-mark {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
        font-size: 14px;
    }
    
    .logo span:last-child {
        display: none;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .book-cover {
        max-width: 300px;
    }
    
    .description-content {
        font-size: 16px;
    }
    
    .testimonial-quote {
        font-size: 18px;
    }
    
    .quote-mark {
        font-size: 80px;
        top: -20px;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
    
    .nav {
        flex-wrap: wrap;
    }
    
    .nav-links {
        gap: 12px;
        font-size: 13px;
    }
    
    .nav-links li:first-child {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-preorder,
    .btn-secondary,
    .btn-read-sample {
        font-size: 16px;
        padding: 14px 24px;
        width: 100%;
        justify-content: center;
    }
    
    .book-cover {
        max-width: 280px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .author-content {
        gap: 32px;
    }
    
    .author-image {
        height: 250px;
        width: 250px;
    }
    
    .author-bio h3 {
        font-size: 26px;
    }
    
    .author-bio p {
        font-size: 16px;
    }
    
    .testimonial-quote {
        font-size: 17px;
    }
    
    .testimonial-image {
        height: 180px;
        width: 180px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-preorder,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }
    
    .nav-links {
        gap: 8px;
        font-size: 12px;
    }
    
    .nav-links li:nth-child(2) {
        display: none;
    }
    
    .btn-preorder-header {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .book-cover {
        max-width: 240px;
    }
    
    .footer-cta h2 {
        font-size: 32px;
    }
    
    .footer-cta p {
        font-size: 16px;
    }
}
