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

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.7;
    color: #2c2c2c;
    background-color: #fafafa;
}

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

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="2" cy="2" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="15" cy="8" r="0.3" fill="rgba(255,255,255,0.08)"/><circle cx="8" cy="15" r="0.4" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
    opacity: 0.3;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.logo-container {
    flex-shrink: 0;
}

.logo-image {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
}

.brand-info {
    flex: 1;
}

.brand-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.brand-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    font-style: italic;
}

/* Navigation Styles */
.main-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.nav-link {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: #1a1a2e;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.05), rgba(15, 52, 96, 0.05));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.9) 0%, 
        rgba(22, 33, 62, 0.8) 50%, 
        rgba(15, 52, 96, 0.9) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23f8f9fa;stop-opacity:0.1"/><stop offset="100%" style="stop-color:%23e9ecef;stop-opacity:0.05"/></linearGradient></defs><rect width="1000" height="300" fill="url(%23bg)"/></svg>');
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.6;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.content-section {
    display: none;
    animation: fadeInUp 0.6s ease-out;
}

.content-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.book-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.book-card:hover::before {
    transform: scaleX(1);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.book-cover-container {
    text-align: center;
    margin-bottom: 2rem;
}

.book-cover {
    width: 180px;
    height: 240px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Fallback for placeholder covers */
.book-cover-placeholder {
    width: 180px;
    height: 240px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    font-size: 1.1rem;
    line-height: 1.4;
}

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

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.book-description {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1rem;
}

.book-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.book-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

.book-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.4);
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
}

.book-link.download {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.book-link.download:hover {
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

/* Coming Soon */
.coming-soon {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.02), rgba(15, 52, 96, 0.05));
    border: 2px dashed rgba(26, 26, 46, 0.1);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.coming-soon h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.coming-soon p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* About Section */
.author-bio {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
}

.author-intro {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.author-photo {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 3px solid rgba(26, 26, 46, 0.1);
}

.author-intro-text {
    flex: 1;
}

.author-bio h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 1rem;
}

.author-bio p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.author-intro p {
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background: #1a1a2e;
    color: white;
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .brand-info h1 {
        font-size: 2.2rem;
    }

    .brand-tagline {
        font-size: 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-card {
        padding: 2rem;
    }

    .book-cover {
        width: 150px;
        height: 200px;
    }

    .book-cover-placeholder {
        width: 150px;
        height: 200px;
    }

    .author-bio {
        padding: 2rem;
    }

    .author-intro {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .author-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .brand-info h1 {
        font-size: 1.8rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .book-links {
        flex-direction: column;
        align-items: center;
    }

    .book-link {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}