/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Add floating magical particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.1) 0%, transparent 1%),
        radial-gradient(circle at 90% 10%, rgba(168, 85, 247, 0.1) 0%, transparent 1%),
        radial-gradient(circle at 30% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 1%),
        radial-gradient(circle at 70% 60%, rgba(251, 191, 36, 0.1) 0%, transparent 1%),
        radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.1) 0%, transparent 1%);
    background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px, 220px 220px;
    animation: floatingParticles 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatingParticles {
    0%, 100% { 
        transform: translateX(0px) translateY(0px);
    }
    25% { 
        transform: translateX(10px) translateY(-10px);
    }
    50% { 
        transform: translateX(-5px) translateY(-5px);
    }
    75% { 
        transform: translateX(-10px) translateY(10px);
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #1a1c3a 0%, #2d1b69 50%, #1a1c3a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.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: left 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    border: 2px solid #a855f7;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.4);
    animation: buttonWiggle 0.5s ease-in-out;
}

@keyframes buttonWiggle {
    0%, 100% { transform: translateY(-3px) scale(1.05) rotate(0deg); }
    25% { transform: translateY(-3px) scale(1.05) rotate(1deg); }
    75% { transform: translateY(-3px) scale(1.05) rotate(-1deg); }
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    color: #a855f7;
    border: 2px solid #a855f7;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.btn-outline {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
    color: #fbbf24;
    border: 2px solid #fbbf24;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border-color: #f59e0b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

/* Header */
.header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(168, 85, 247, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    position: relative;
}

.logo h1::after {
    content: '✨';
    position: absolute;
    right: -25px;
    top: -5px;
    font-size: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0.4; 
        transform: rotate(0deg) scale(1);
    }
    50% { 
        opacity: 1; 
        transform: rotate(180deg) scale(1.2);
    }
}

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

.nav-link {
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link.active {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #312e81 50%, #1e1b4b 75%, #0f172a 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    color: white;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: magicalFloat 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes magicalFloat {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-10px); }
    66% { transform: translateY(5px); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    position: relative;
}

.hero-title::after {
    content: '🪄';
    position: absolute;
    right: -60px;
    top: 0;
    font-size: 2rem;
    animation: wandWave 3s ease-in-out infinite;
}

@keyframes wandWave {
    0%, 100% { 
        transform: rotate(-10deg);
        filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
    }
    50% { 
        transform: rotate(10deg);
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-stack {
    position: relative;
    width: 300px;
    height: 400px;
}

.book {
    position: absolute;
    width: 180px;
    height: 240px;
    border-radius: 12px;
    border: 3px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    cursor: pointer;
}

.book::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #a855f7, #6366f1);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.book:hover::before {
    opacity: 1;
}

.book:hover {
    transform: translateY(-20px) scale(1.1);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.3);
}

.book-1 {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    background: linear-gradient(45deg, #fef3c7 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4);
}

.book-2 {
    top: 20px;
    left: 30px;
    transform: rotate(3deg);
    background: linear-gradient(45deg, #dbeafe 0%, #6366f1 50%, #4338ca 100%);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.book-3 {
    top: 40px;
    left: 60px;
    transform: rotate(-2deg);
    background: linear-gradient(45deg, #f3e8ff 0%, #a855f7 50%, #7c3aed 100%);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.4);
}

/* Featured Books Section */
.featured-books {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    position: relative;
}

.featured-books::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    position: relative;
}

.section-title::before {
    content: '✨';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite alternate;
}

.section-title::after {
    content: '✨';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: twinkle 2s ease-in-out infinite alternate 1s;
}

@keyframes twinkle {
    0% { 
        opacity: 0.3; 
        transform: translateY(-50%) scale(0.8);
    }
    100% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1.2);
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
}

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

/* Add some humorous cursor effects */
.book-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text y="28" font-size="24">📚</text></svg>'), auto;
}

.book-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fbbf24, #a855f7, #6366f1, #fbbf24);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    animation: borderRotate 3s linear infinite;
    transition: opacity 0.4s ease;
}

.book-card::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.9);
    color: #fbbf24;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(251, 191, 36, 0.3);
    z-index: 10;
}

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

.book-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02) rotate(1deg);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2), 0 0 30px rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
}

/* Ensure text remains readable during hover with magical effects */
.book-card:hover .book-info {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 0 0 14px 14px;
    position: relative;
    z-index: 15;
}

.book-card:hover .book-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(251, 191, 36, 0.6);
    font-weight: 700;
}

.book-card:hover .book-author {
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.book-card:hover .book-description {
    color: #f1f5f9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.book-cover {
    height: 200px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(251, 191, 36, 0.1) 0%, 
        rgba(168, 85, 247, 0.1) 50%, 
        rgba(99, 102, 241, 0.1) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.cover-placeholder {
    font-size: 4rem;
    color: #fbbf24;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
    z-index: 1;
    position: relative;
}

.book-info {
    padding: 1.5rem;
}

.book-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fbbf24;
    font-weight: 600;
}

.book-author {
    color: #94a3b8;
    margin-bottom: 1rem;
    font-style: italic;
}

.book-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.book-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.genre {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
    color: #c084fc;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(10px);
}

.release-date {
    color: #94a3b8;
    font-size: 0.85rem;
    font-style: italic;
}

.book-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.5rem 0;
    color: #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.about-features li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: #fbbf24;
    animation: sparkle 2s ease-in-out infinite;
}

.about-stats {
    display: grid;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    color: white;
    border-radius: 16px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fbbf24, #a855f7, #6366f1, #fbbf24);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    animation: borderRotate 4s linear infinite;
    transition: opacity 0.4s ease;
}

.stat:hover::before {
    opacity: 1;
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1.1rem;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 60% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #94a3b8;
    margin: 0;
}

.contact-form {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(51, 65, 85, 0.9) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #fbbf24, #a855f7, #6366f1, #fbbf24);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    animation: borderRotate 5s linear infinite;
    transition: opacity 0.4s ease;
}

.contact-form:hover::before {
    opacity: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    background: rgba(15, 23, 42, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: white;
    padding: 60px 0 20px;
    border-top: 2px solid rgba(168, 85, 247, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fbbf24;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: #fbbf24;
    transform: translateY(-2px);
}

.footer-section a:hover::before {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(51, 65, 85, 0.8) 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0f172a;
    border-color: #f59e0b;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(168, 85, 247, 0.3);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .book-stack {
        width: 250px;
        height: 300px;
    }

    .book {
        width: 140px;
        height: 180px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .featured-books,
    .about,
    .contact {
        padding: 60px 0;
    }
}

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

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}