/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f5f1e8;
    overflow-x: hidden;
}

/* Reading Page Body */
.reading-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(245, 241, 232, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #8b7355;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8b7355;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 120px 2rem 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.highlight {
    color: #8b7355;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #5a5a5a;
    line-height: 1.7;
}

.cta-button,
.cta-button-secondary {
    background: linear-gradient(135deg, #c49b7a, #a67c5a);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(196, 155, 122, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button:hover,
.cta-button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(196, 155, 122, 0.4);
    background: linear-gradient(135deg, #a67c5a, #8b7355);
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
}

/* Reading Habits Section */
.reading-habits {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reading-habits-content {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    height: 400px;
}

.reading-image {
    width: 100%;
    height: 100%;
}

.reading-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reading-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
}

.reading-text h2 {
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #2c2c2c;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #c49b7a, #a67c5a);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: rgba(139, 115, 85, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 115, 85, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(139, 115, 85, 0.15);
    box-shadow: 0 15px 40px rgba(139, 115, 85, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #8b7355;
}

.feature-card p {
    color: #5a5a5a;
    line-height: 1.6;
}

.start-reading-section {
    text-align: center;
}

.cta-button-secondary {
    background: linear-gradient(135deg, #8b7355, #6b5a44);
}

/* About Section */
.about {
    padding: 80px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.books-stack img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a5a5a;
    font-style: italic;
    position: relative;
    padding: 2rem;
    background: rgba(139, 115, 85, 0.05);
    border-radius: 15px;
    border-left: 4px solid #8b7355;
}

/* Contact Section */
.contact {
    padding: 80px 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(139, 115, 85, 0.2);
    border-radius: 50px;
    background-color: rgba(139, 115, 85, 0.05);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    border-radius: 20px;
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
    background-color: rgba(139, 115, 85, 0.1);
}

.submit-button {
    background: linear-gradient(135deg, #139, 115, 85, #925d18);
    color: #7B8A68;
    border: 2px solid #BA7858;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: #8b7355;
    border-top: 1px solid rgba(139, 115, 85, 0.2);
    margin-top: 4rem;
}

/* Reading Page Styles */
.reading-interface {
    flex: 1;
    padding: 120px 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.book-input-section {
    margin-bottom: 3rem;
}

.input-container {
    display: flex;
    gap: 0;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
}

.book-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #2c2c2c;
    border-radius: 50px;
    outline: none;
}

.book-input::placeholder {
    color: rgba(44, 44, 44, 0.5);
}

.summarise-button {
    background: linear-gradient(135deg, #c49b7a, #a67c5a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.summarise-button:hover {
    background: linear-gradient(135deg, #a67c5a, #8b7355);
    transform: scale(1.02);
}

.reading-area {
    margin-bottom: 3rem;
}

.reading-container {
    background: rgba(139, 115, 85, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    min-height: 400px;
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.1);
}

.reading-title {
    color: rgba(139, 115, 85, 0.8);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.reading-content {
    color: #2c2c2c;
    font-size: 1.1rem;
    line-height: 1.8;
}

.export-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.export-button {
    background: linear-gradient(135deg, #c49b7a, #a67c5a);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.export-button:hover {
    background: linear-gradient(135deg, #a67c5a, #8b7355);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 155, 122, 0.3);
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.export-button:hover .arrow {
    transform: translateX(3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .input-container {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .book-input,
    .summarise-button {
        border-radius: 15px;
    }
    
    .reading-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero,
    .features,
    .about,
    .contact,
    .reading-interface {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}