/* Additional modern design elements */

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Apply animations */
.hero-content {
    animation: fadeIn 1.5s ease-out;
}

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

.hero-content .tagline {
    animation: slideInUp 1.2s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.character-card:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Modern UI improvements */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(44, 62, 80, 0.9);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Gradient text for headings */
.page-header h1 {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Glass morphism effect */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Improved buttons */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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: all 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

/* Scroll reveal effect */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .book-item, .character-profile-container {
        grid-template-columns: 1fr;
    }
}

/* Dark mode toggle (placeholder) */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Book cover hover effect */
.book-cover {
    position: relative;
    overflow: hidden;
}

.book-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%);
    transition: all 0.3s ease;
}

.book-cover:hover::after {
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
}

/* Character image hover effect */
.character-image {
    position: relative;
    overflow: hidden;
}

.character-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: all 0.3s ease;
    z-index: 1;
}

.character-image:hover::before {
    background: rgba(0,0,0,0.2);
}

.placeholder-character h3 {
    transition: all 0.3s ease;
}

.character-image:hover .placeholder-character h3 {
    transform: scale(1.2);
}
