/* ===== RESET & 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: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #3498db;
}

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

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: #3498db;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

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

/* ===== HERO SECTION ===== */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-top: 60px;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
}

.bg-light {
    background: #f8f9fa;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.author-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.highlight {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.highlight:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.highlight i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.highlight h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.highlight p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 0;
}

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

.book-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.book-cover {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover i {
    font-size: 4.5rem;
    color: white;
    opacity: 0.9;
}

.book-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book-info h3 {
    margin-bottom: 0.75rem;
    color: #2c3e50;
    font-size: 1.5rem;
    line-height: 1.3;
}

.book-meta {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.book-info p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.book-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.feature-tag {
    background: #f0f7ff;
    color: #3498db;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e1f0ff;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.btn-small:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-small.outline {
    background: transparent;
    color: #3498db;
}

.btn-small.outline:hover {
    background: #3498db;
    color: white;
}

/* ===== PUBLICATIONS INFO ===== */
.publications-info {
    background: white;
    padding: 4rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    margin-top: 4rem;
}

.publications-info h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.info-card h4 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 1.75rem;
    font-size: 1rem;
}

.info-card li:before {
    content: "✓";
    color: #2ecc71;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    margin-top: 5rem;
}

.testimonials h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card:before {
    content: '"';
    font-size: 8rem;
    color: #f8f9fa;
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1;
    z-index: 0;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author strong {
    display: block;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content > p {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.contact-method i {
    font-size: 1.5rem;
    color: #3498db;
    min-width: 2rem;
}

.contact-method p {
    margin: 0;
    font-size: 1.1rem;
}

.contact-method a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.contact-note {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    margin-top: 2rem;
    font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #bdc3c7;
    margin: 0;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #3498db;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-bottom p {
    margin: 0.5rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image img {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-highlights {
        gap: 1.5rem;
    }
    
    .highlight {
        min-width: 100%;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn, .btn-small {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .book-actions {
        flex-direction: column;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    .btn,
    .btn-small {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .section {
        padding: 20pt 0;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}
/* ===== BOOK COVERS STYLES ===== */
.book-cover {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

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

.book-cover-overlay {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: flex-start;
    padding: 0 20px;
}

.book-badge {
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Updated book info section */
.book-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.book-year, .book-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-year:before {
    content: "📅";
}

.book-pages:before {
    content: "📖";
}

/* Remove button styles */
.book-actions {
    display: none;
}

/* Publications Summary */
.publications-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.summary-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.summary-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 20px;
}

.summary-card h4 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.summary-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

/* Responsive adjustments for book covers */
@media (max-width: 768px) {
    .book-cover {
        height: 250px;
    }
    
    .publications-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .book-cover {
        height: 200px;
    }
    
    .summary-card {
        padding: 20px;
    }
}

/* Placeholder for missing book covers */
.book-cover-img:not([src*=".jpg"]):not([src*=".png"]):not([src*=".jpeg"]) {
    display: none;
}

.book-cover:has(.book-cover-img:not([src*=".jpg"]):not([src*=".png"]):not([src*=".jpeg"])) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover:has(.book-cover-img:not([src*=".jpg"]):not([src*=".png"]):not([src*=".jpeg"])):before {
    content: "📚";
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}