
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffd166;
    --dark-bg: #1a1a2e;
    --light-bg: #e6e6e6;
    --text-color: #333;
    --light-text: #f5f5f5;
    --transition: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', Georgia, serif;
}

body {
    background: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
header {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container {
    position: relative;
    width: 400px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 50%;
    padding: 4rem 0;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(255, 209, 102, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 209, 102, 0.2);
}

.hero-image {
    width: 50%;
    position: relative;
}

.book-stack {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 80%;
    height: 80%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.book {
    width: 80%;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 5px;
    position: relative;
    transition: var(--transition);
    transform-origin: left;
}

.book:hover {
    transform: rotateY(20deg);
}

.book:nth-child(1) {
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    height: 150px;
}

.book:nth-child(2) {
    background: linear-gradient(90deg, #4ecdc4, #7ee8fa);
    height: 130px;
    width: 75%;
}

.book:nth-child(3) {
    background: linear-gradient(90deg, #ffd166, #ffb700);
    height: 110px;
    width: 70%;
}

.book:nth-child(4) {
    background: linear-gradient(90deg, #a29bfe, #d6a1ff);
    height: 90px;
    width: 65%;
}



.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.book-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.book-cover {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.book-rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.book-author {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.book-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.book-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.book-tag {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 15px;
    color: var(--accent-color);
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.read-more:hover {
    background: #ff5252;
}

/* Categories Section */
.categories {
    padding: 5rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.categories-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.category-card {
    flex: 1;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
}

.newsletter-input:focus {
    outline: none;
}

.newsletter-btn {
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    border-radius: 0 30px 30px 0;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: #ffca2c;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-content {
        width: 60%;
    }

    .hero-image {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .search-container {
        width: 100%;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        flex-direction: column;
    }

    .hero-content, .hero-image {
        width: 100%;
    }

    .book-stack {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-input {
        border-radius: 30px;
    }

    .newsletter-btn {
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .book {
        width: 90%;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}