/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Sci-fi color palette */
    --primary-blue: #00d4ff;
    --secondary-blue: #0066cc;
    --accent-cyan: #00ffff;
    --dark-bg: #0a0a0a;
    --darker-bg: #000000;
    --card-bg: rgba(20, 20, 40, 0.8);
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --text-accent: #00d4ff;
    --gradient-primary: linear-gradient(45deg, #00d4ff, #0066cc);
    --gradient-secondary: linear-gradient(135deg, #1a1a2e, #16213e);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-strong: 0 0 40px rgba(0, 212, 255, 0.5);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated starfield background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -2;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 100, 200, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: nebula-drift 30s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

@keyframes nebula-drift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(5deg); }
}

/* Typography */
h1, h2, h3 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
    text-shadow: var(--shadow-glow);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--shadow-glow);
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.cta-button:hover::before {
    left: 100%;
}

.hologram-effect {
    position: absolute;
    top: 50%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: hologram-float 6s ease-in-out infinite;
}

@keyframes hologram-float {
    0%, 100% { transform: translateY(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateY(-60%) scale(1.1); opacity: 1; }
}

/* Sections */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--gradient-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.author-photo {
    float: left;
    margin: 0 2rem 1rem 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-blue);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

.author-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.author-photo:hover .author-image {
    transform: scale(1.1);
}

.about-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-blue);
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Books Section */
.books {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.series-info {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
}

.series-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.series-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.series-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.series-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.book-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-blue);
}

.book-cover {
    height: 300px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.book-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 200px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px dashed rgba(0, 212, 255, 0.3);
    border-radius: 10px;
}

.book-icon {
    font-size: 3rem;
    opacity: 0.7;
}

.coming-soon {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
}

.book-info {
    padding: 2rem;
}

.book-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.book-subtitle {
    font-size: 1rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.book-genre {
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.book-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.book-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.book-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.book-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gradient-secondary);
    text-align: center;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.contact-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-cyan);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-photo {
        float: none;
        margin: 0 auto 2rem auto;
        width: 150px;
        height: 150px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-card {
        margin: 0 1rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .book-info {
        padding: 1.5rem;
    }
    
    .about-stats {
        gap: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
.book-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-image.loaded {
    opacity: 1;
}