/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --cosmic-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --dark-bg: #0a0a1a;
    --darker-bg: #060612;
    --card-bg: rgba(26, 26, 46, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --accent-color: #40e0d0;
    --highlight-color: #ff6b6b;
    --success-color: #4ecdc4;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, #0c0c1e 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Simple Background Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 10, 26, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Bar in Header */
.search-container {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(64, 224, 208, 0.3);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-color);
    background: rgba(26, 26, 46, 0.95);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    position: absolute;
    right: 5px;
    background: var(--accent-gradient);
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.search-btn:hover {
    transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(64, 224, 208, 0.05);
}

.hamburger:hover {
    border-color: var(--accent-color);
    background: rgba(64, 224, 208, 0.15);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    margin-top: 90px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 4rem;
}

.hero-badge {
    display: inline-block;
    background: var(--cosmic-gradient);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 600px;
}

.cta-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.cta-button.secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--cosmic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-books {
    position: relative;
    width: 100%;
    height: 100%;
}

.book {
    position: absolute;
    font-size: 4rem;
    animation: float-books 4s ease-in-out infinite;
}

.book1 { top: 10%; left: 20%; animation-delay: 0s; }
.book2 { top: 30%; right: 10%; animation-delay: 1s; }
.book3 { bottom: 30%; left: 10%; animation-delay: 2s; }
.book4 { bottom: 10%; right: 30%; animation-delay: 3s; }

@keyframes float-books {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 30px rgba(64, 224, 208, 0.2);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.feature-highlight {
    display: inline-block;
    background: var(--secondary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Library Preview Section */
.library-preview {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(16, 16, 32, 0.8) 100%);
    margin: 4rem 0;
}

.genre-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.genre-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.genre-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.genre-card.sci-fi { border-left: 4px solid #4facfe; }
.genre-card.fantasy { border-left: 4px solid #667eea; }
.genre-card.mystery { border-left: 4px solid #f093fb; }
.genre-card.romance { border-left: 4px solid #fa709a; }
.genre-card.biography { border-left: 4px solid #fee140; }
.genre-card.business { border-left: 4px solid #4ecdc4; }

.genre-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.genre-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.genre-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.genre-count {
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.testimonial-card .stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.3) 0%, rgba(16, 16, 32, 0.6) 100%);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.pricing-card.popular {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-gradient);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(15deg);
}

.pricing-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.price {
    margin-bottom: 2rem;
}

.price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    color: var(--text-secondary);
}

.price .amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-list li:last-child {
    border-bottom: none;
}

.plan-button {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

.plan-button.premium {
    background: var(--secondary-gradient);
}

/* Footer */
footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(64, 224, 208, 0.2);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(64, 224, 208, 0.1);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-section h3 {
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.footer-badges {
    display: flex;
    gap: 1rem;
}

.badge {
    background: rgba(64, 224, 208, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .search-container {
        max-width: 300px;
        margin: 0 1rem;
    }
}

@media (max-width: 968px) {
    .search-container {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        gap: 1rem;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 80%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        border-radius: 10px;
        background: rgba(64, 224, 208, 0.05);
        width: 100%;
    }
    
    /* Add search to mobile menu */
    .nav-links::before {
        content: '';
        width: 80%;
        padding: 1rem;
        background: rgba(26, 26, 46, 0.8);
        border: 2px solid rgba(64, 224, 208, 0.3);
        border-radius: 25px;
        margin-bottom: 1rem;
        display: block;
        text-align: center;
        color: var(--text-secondary);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .hero {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .features,
    .testimonials,
    .pricing {
        padding: 4rem 1rem;
    }

    .features-grid,
    .testimonials-container,
    .pricing-cards,
    .genre-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .feature-card,
    .testimonial-card,
    .pricing-card {
        padding: 1.5rem;
    }
}