* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0f0f0f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #1a1a1a;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    color: #b0b0b0;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #00d4ff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e0e0e0;
    padding-top: 80px;
    position: relative;
    justify-content: space-between;
}

.hero::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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0" stop-color="%23ffffff" stop-opacity="0.03"/><stop offset="100%" stop-color="%2300d4ff" stop-opacity="0.01"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>');
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: #b0b0b0;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: #a0a0a0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #0f0f0f;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #0f0f0f;
}

.hero-image {
    flex: 1;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image a {
    display: block;
    text-decoration: none;
}

.hero-image img {
    width: auto;
    height: 100%;
    max-height: 40vh;
    object-fit: contain;
    min-width: 0;
}

/* Books Section */
.books {
    padding: 60px 0;
    background: #0f0f0f;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.series-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.series-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

.series-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    padding: 1rem;
    text-align: center;
    color: #ffffff;
    background: #0f0f0f;
}

.series-cover {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1rem;
}

.series-description {
    padding: 1rem;
    color: #b0b0b0;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.4;
}

.book-list {
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.book-card {
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid #2a2a2a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-color: #00d4ff;
}

.book-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f0f0f;
}

.book-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    max-width: 100%;
}

.book-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    min-height: 0;
}

.book-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
    word-wrap: break-word;
}

.book-genre {
    color: #00d4ff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.book-description {
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
}

.book-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.excerpt {
    padding: 1rem;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    margin-top: 1rem;
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.excerpt-text {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-outline:hover {
    background: #00d4ff;
    color: #0f0f0f;
}

/* About Section */
.about {
    padding: 60px 0;
    background: #0f0f0f;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #b0b0b0;
    max-width: 600px;
}

.author-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.stat p {
    color: #a0a0a0;
}

.author-placeholder {
    width: 300px;
    height: 400px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    border: 1px solid #00d4ff;
    border-radius: 15px;
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f0f23, #1a1a3e);
    color: #e0e0e0;
    text-align: center;
    border-top: 1px solid #2a2a2a;
}

.newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #b0b0b0;
}

.newsletter p a {
    color: #00d4ff;
    text-decoration: none;
}

.newsletter p a:hover {
    text-decoration: underline;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
    background: #1a1a1a;
    padding: 2px;
    border-radius: 5px;
    border: 1px solid #2a2a2a;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    background: #0f0f0f;
    color: #e0e0e0;
}

.newsletter-form input::placeholder {
    color: #a0a0a0;
}

.newsletter-form button {
    border-radius: 3px;
}

#newsletter-message {
    color: #00d4ff;
    font-size: 0.9rem;
}

#newsletter-message.error {
    color: #ff4d4d;
}

/* Contact */
.contact {
    padding: 60px 0;
    background: #0f0f0f;
}

.contact h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact p {
    text-align: center;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.contact-item h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffffff;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: #a0a0a0;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    margin: 0 1rem;
    opacity: 0.8;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #00d4ff;
    opacity: 1;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        padding: 0 5px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #0f0f0f;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        border-top: 1px solid #2a2a2a;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 10px 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-height: 50vh;
    }
    
    .hero-image img {
        height: 100%;
        max-height: 50vh;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
        max-width: 100%;
    }
    
    .author-stats {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .book-links {
        flex-direction: column;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}