:root {
    --primary: #00d9ff;
    --primary-glow: rgba(0, 217, 255, 0.3);
    --secondary: #ff006e;
    --bg-dark: #0a0e27;
    --bg-darker: #050814;
    --text-light: #e0e6ed;
    --text-dim: #8892a6;
    --accent: #7b2cbf;
    --accent-glow: rgba(123, 44, 191, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 20% 30%, var(--accent-glow) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, var(--primary-glow) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(2deg); }
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.hero-content {
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch-wrapper {
    margin-bottom: 1.5rem;
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px var(--primary-glow));
    }
    to {
        filter: drop-shadow(0 0 40px var(--primary-glow)) drop-shadow(0 0 60px var(--accent-glow));
    }
}

/* Glitch effect on hover */
.glitch {
    position: relative;
}

.glitch:hover::before,
.glitch:hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch:hover::before {
    animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(40% 0 50% 0); }
    20% { clip-path: inset(54% 0 30% 0); }
    40% { clip-path: inset(17% 0 60% 0); }
    60% { clip-path: inset(68% 0 15% 0); }
    80% { clip-path: inset(25% 0 58% 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(50% 0 40% 0); }
    20% { clip-path: inset(30% 0 54% 0); }
    40% { clip-path: inset(60% 0 17% 0); }
    60% { clip-path: inset(15% 0 68% 0); }
    80% { clip-path: inset(58% 0 25% 0); }
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-style: italic;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.author {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.author-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
}

.author-name {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--primary));
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: translateX(-50%) rotate(45deg);
}

/* Sections */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 0 auto;
}

/* About Section */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.5) 100%);
}

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

.about-text .lead {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

.themes {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 217, 255, 0.05);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
}

.themes h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.themes ul {
    list-style: none;
}

.themes li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dim);
}

.themes li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Book Showcase */
.book-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.book-cover {
    width: 320px;
    height: 480px;
    border-radius: 8px;
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.6s ease;
    box-shadow: 
        -20px 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px var(--primary-glow);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

.book-cover:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

@keyframes float {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(-15deg) rotateX(5deg) translateY(-20px); }
}

/* Features Grid */
.why-read {
    background: rgba(123, 44, 191, 0.05);
}

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

.feature-card {
    padding: 2.5rem 2rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
}

.feature-card p {
    color: var(--text-dim);
    line-height: 1.6;
    position: relative;
}

/* Author Section */
.author-section {
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 39, 0.5) 100%);
}

.author-content {
    max-width: 800px;
    margin: 0 auto;
}

.author-bio h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.author-bio p {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Buy Section */
.buy-section {
    background: rgba(0, 217, 255, 0.03);
}

.buy-lead {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-style: italic;
}

.buy-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.buy-button {
    display: block;
    padding: 2rem;
    background: rgba(10, 14, 39, 0.8);
    border: 2px solid var(--primary);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.buy-button.amazon:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
    transform: translateY(-5px);
}

.buy-button.local {
    border-color: var(--text-dim);
    opacity: 0.7;
    cursor: default;
}

.buy-button-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.buy-icon {
    font-size: 3rem;
}

.buy-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.buy-platform {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.buy-format {
    font-size: 1rem;
    color: var(--text-dim);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, transparent 0%, rgba(123, 44, 191, 0.1) 100%);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    transform: translateY(-2px);
}

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

.footer p {
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .book-cover {
        width: 280px;
        height: 420px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

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

/* Selection */
::selection {
    background: var(--primary);
    color: var(--bg-dark);
}
