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

:root {
    /* Book Cover Inspired Color Palette - Fantasy Magical Theme */
    --primary-color: #4a2c5a;
    --secondary-color: #6b3d7a;
    --accent-color: #d4af37;
    --accent-gold: #f4d03f;
    --accent-purple: #8b5fbf;
    --accent-blue: #5d8aa8;
    --accent-magical: #b19cd9;
    --text-light: #ffffff;
    --text-dark: #2c2c2c;
    --bg-dark: #1a0d24;
    --bg-secondary: #f5f0fa;
    --bg-warm: #faf8fc;
    --bg-magical: #2d1b3d;
    --border-radius: 15px;
    --shadow-light: 0 5px 15px rgba(74, 44, 90, 0.2);
    --shadow-medium: 0 8px 25px rgba(74, 44, 90, 0.3);
    --shadow-heavy: 0 15px 35px rgba(74, 44, 90, 0.4);
    --shadow-magical: 0 10px 30px rgba(212, 175, 55, 0.3);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #1a0d24 0%, #2d1b3d 50%, #4a2c5a 100%);
    min-height: 100vh;
}

/* Enhanced Navbar Styles */
.navbar {
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(74, 44, 90, 0.5), 0 0 20px rgba(212, 175, 55, 0.2);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.navbar-brand i {
    font-size: 2rem;
    color: var(--accent-gold);
    animation: bookGlow 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

@keyframes bookGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.9));
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.9);
    }
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem !important;
    margin: 0 0.5rem;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::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;
}

.navbar-nav .nav-link:hover::before {
    left: 100%;
}

.navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

/* Hero Section - Enhanced with Galaxy Background */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-galaxy-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: galaxyParallax 30s ease-in-out infinite;
    transform: scale(1.05);
    filter: brightness(0.9) contrast(1.1) saturate(1.05);
    will-change: transform, filter;
    z-index: 0;
    min-width: 100%;
    min-height: 100%;
    display: block;
    background: linear-gradient(135deg, #1a0d24 0%, #2d1b3d 50%, #4a2c5a 100%);
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes galaxyParallax {
    0%, 100% { 
        transform: scale(1.05) translateY(0);
        filter: brightness(0.9) contrast(1.1) saturate(1.05);
    }
    50% { 
        transform: scale(1.1) translateY(-15px);
        filter: brightness(0.95) contrast(1.15) saturate(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 13, 36, 0.3) 0%,
        rgba(45, 27, 61, 0.2) 30%,
        rgba(74, 44, 90, 0.25) 60%,
        rgba(26, 13, 36, 0.35) 100%
    );
    z-index: 1;
    pointer-events: none;
    animation: overlayPulse 10s ease-in-out infinite;
}

@keyframes overlayPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.hero-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.2) 30%,
        rgba(212, 175, 55, 0.35) 50%,
        rgba(139, 95, 191, 0.25) 70%,
        transparent 100%
    );
    animation: shimmer 12s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
    transform: skewX(-20deg);
}

@keyframes shimmer {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 150%; opacity: 1; }
    51% { opacity: 0; }
    100% { left: 150%; opacity: 0; }
}

/* Hero Content - Enhanced Layout */
.hero-content {
    position: relative;
    z-index: 10;
    color: var(--text-light);
    padding: 3rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8),
                 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9),
                 0 0 40px rgba(212, 175, 55, 0.7),
                 0 0 60px rgba(212, 175, 55, 0.5),
                 0 0 80px rgba(139, 95, 191, 0.3);
    background: linear-gradient(135deg, #f4d03f, #d4af37, #f4d03f, #b19cd9, #f4d03f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: titleGlow 3s ease-in-out infinite, titleShimmer 4s ease-in-out infinite;
    font-family: 'Playfair Display', serif;
    position: relative;
}

@keyframes titleGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.7));
    }
    50% { 
        filter: drop-shadow(0 0 35px rgba(212, 175, 55, 1));
    }
}

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

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--accent-magical);
    font-weight: 500;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8),
                 0 0 25px rgba(177, 156, 217, 0.6),
                 0 0 35px rgba(139, 95, 191, 0.4);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.8;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8),
                 0 0 20px rgba(0, 0, 0, 0.5);
}

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

.hero-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-medium);
    font-size: 1.1rem;
    border: none;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary {
    background: linear-gradient(135deg, #4a2c5a, #6b3d7a);
    color: var(--text-light);
    box-shadow: 0 8px 25px rgba(74, 44, 90, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b3d7a, #4a2c5a);
    box-shadow: 0 12px 35px rgba(74, 44, 90, 0.6), 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    border: 3px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Hero Book Display - Enhanced */
.hero-book-display {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.book-showcase {
    position: relative;
    width: 100%;
    height: 500px;
}

.academy-scene {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.academy-building {
    position: relative;
    width: 300px;
    height: 200px;
}

.academy-towers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.tower {
    position: absolute;
    bottom: 0;
    width: 40px;
    height: 80px;
    background: linear-gradient(135deg, #4a4a4a, #2d2d2d);
    border-radius: 5px 5px 0 0;
}

.tower-1 { left: 20px; height: 100px; }
.tower-2 { left: 130px; height: 120px; }
.tower-3 { right: 20px; height: 90px; }

.academy-windows {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
}

.window {
    position: absolute;
    width: 15px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.8);
    animation: windowGlow 3s ease-in-out infinite;
}

.window-1 { left: 30px; top: 10px; animation-delay: 0s; }
.window-2 { left: 80px; top: 15px; animation-delay: 1s; }
.window-3 { left: 140px; top: 8px; animation-delay: 2s; }
.window-4 { right: 80px; top: 12px; animation-delay: 0.5s; }
.window-5 { right: 30px; top: 18px; animation-delay: 1.5s; }

@keyframes windowGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(201, 169, 97, 0.8); }
    50% { box-shadow: 0 0 20px rgba(201, 169, 97, 1); }
}

.academy-entrance {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.entrance-stairs {
    width: 120px;
    height: 20px;
    background: linear-gradient(135deg, #6b6b6b, #4a4a4a);
    border-radius: 5px;
}

.entrance-door {
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #8b4513, #654321);
    border-radius: 5px 5px 0 0;
    margin: 0 auto;
}

.book-3d-wrapper {
    perspective: 1000px;
    position: relative;
    z-index: 2;
}

.book-3d {
    transform: rotateY(-15deg) rotateX(10deg);
    transition: var(--transition);
    position: relative;
}

.book-3d:hover {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.05);
}

.featured-book-cover {
    width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.book-shadow {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 25px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    filter: blur(15px);
}

.book-badge {
    position: absolute;
    top: -25px;
    right: -25px;
    background: linear-gradient(135deg, #4a2c5a, #6b3d7a);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-medium);
    animation: pulse 2s infinite;
    font-size: 0.9rem;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    opacity: 0.9;
    animation: bounce 2s infinite;
    z-index: 10;
    text-shadow: 0 0 10px rgba(201, 169, 97, 0.8);
}

.scroll-arrow {
    width: 3px;
    height: 40px;
    background: var(--text-light);
    position: relative;
    border-radius: 2px;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 3px solid var(--text-light);
    border-bottom: 3px solid var(--text-light);
    transform: rotate(45deg);
}

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

/* About Section - Enhanced Professional Design */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #4a2c5a 0%, #6b3d7a 35%, #5d8aa8 70%, #b19cd9 100%);
    position: relative;
    overflow: hidden;
    color: white;
    background-image: url('./Banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 44, 90, 0.9) 0%, rgba(107, 61, 122, 0.85) 40%, rgba(93, 138, 168, 0.8) 75%, rgba(177, 156, 217, 0.85) 100%);
    opacity: 0.95;
    z-index: 0;
}
.about-section::after {
    content: none;
}

.about-section .floating-element-1 {
    position: absolute;
    top: 20%;
    left: 5%;
    font-size: 2rem;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.about-section .floating-element-2 {
    position: absolute;
    bottom: 20%;
    right: 15%;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 5s ease-in-out infinite reverse;
}

.about-content {
    padding-right: 3rem;
    padding-left: 3rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    z-index: 3;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7),
                 0 0 25px rgba(255, 255, 255, 0.5),
                 0 0 50px rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
    position: relative;
    z-index: 3;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ffffff, #ffeaa7, #ffffff);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.8),
                0 0 20px rgba(255, 234, 167, 0.6);
    animation: underlineGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 3;
}

@keyframes underlineGlow {
    0%, 100% { 
        box-shadow: 0 2px 12px rgba(255, 255, 255, 0.8),
                    0 0 20px rgba(255, 234, 167, 0.6);
    }
    50% { 
        box-shadow: 0 2px 16px rgba(255, 255, 255, 1),
                    0 0 30px rgba(255, 234, 167, 0.9);
    }
}

.about-text .lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5),
                 0 0 15px rgba(212, 175, 55, 0.6);
}

.author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

.stat-item:hover::before {
    left: 100%;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(212, 175, 55, 0.7);
}

.stat-label {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 3rem;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
}

.image-container {
    position: relative;
}

.author-photo {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.decoration-dots {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, var(--accent-color) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* Books Section - Enhanced Professional Design */
.books-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    color: white;
    background-image: url('./Banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

.books-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.8) 50%, rgba(240, 147, 251, 0.85) 100%);
    opacity: 0.95;
    z-index: 0;
}
.books-section::after {
    content: none;
}

.books-section .floating-element-1 {
    position: absolute;
    top: 30%;
    right: 8%;
    font-size: 2rem;
    opacity: 0.4;
    animation: float 4s ease-in-out infinite reverse;
}

.books-section .floating-element-2 {
    position: absolute;
    bottom: 25%;
    left: 12%;
    font-size: 1.8rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.book-info {
    padding-right: 3rem;
    padding-left: 3rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.book-title {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(212, 175, 55, 0.7),
                 0 0 40px rgba(139, 95, 191, 0.4);
    font-family: 'Playfair Display', serif;
    animation: bookTitleGlow 4s ease-in-out infinite;
}

@keyframes bookTitleGlow {
    0%, 100% { 
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7),
                     0 0 25px rgba(255, 255, 255, 0.6),
                     0 0 50px rgba(255, 234, 167, 0.4);
    }
    50% { 
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7),
                     0 0 35px rgba(255, 255, 255, 0.9),
                     0 0 70px rgba(255, 234, 167, 0.7);
    }
}

.section-subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6),
                 0 0 20px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 3;
}

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

.book-genre,
.book-age {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.book-genre:hover,
.book-age:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.book-description p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: white;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.book-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.feature-item i {
    color: var(--accent-gold);
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5),
                 0 0 15px rgba(212, 175, 55, 0.6);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.feature-item span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.purchase-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.purchase-btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-medium);
    font-size: 1.1rem;
    border: none;
}

.purchase-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.btn-primary {
    background: linear-gradient(135deg, #4a2c5a, #6b3d7a);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 44, 90, 0.4), 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6b3d7a, #4a2c5a);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(74, 44, 90, 0.6), 0 0 25px rgba(212, 175, 55, 0.4);
}

.btn-outline-primary {
    background: transparent;
    border: 3px solid #4a2c5a;
    color: #4a2c5a;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #4a2c5a, #6b3d7a);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    border-color: var(--accent-gold);
}

.book-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 3rem;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
}

.book-showcase-large {
    position: relative;
}

.book-3d-large {
    perspective: 1000px;
}

.book-3d-large .book-cover-large {
    width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    transform: rotateY(-20deg) rotateX(15deg);
    transition: var(--transition);
}

.book-3d-large:hover .book-cover-large {
    transform: rotateY(-10deg) rotateX(10deg) scale(1.05);
}

.book-shadow-large {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(15px);
}

.floating-elements-book > div {
    position: absolute;
    font-size: 1.5rem;
    animation: float 4s ease-in-out infinite;
}

.floating-sparkle { top: 20%; left: 10%; animation-delay: 0s; }
.floating-star-book { top: 60%; right: 20%; animation-delay: 1s; }
.floating-heart { top: 40%; left: 20%; animation-delay: 2s; }

/* Reviews Section - Enhanced Professional Design */
.reviews-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #8b5fbf 0%, #6b3d7a 50%, #4a2c5a 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="d" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(201, 169, 97, 0.15)"/><stop offset="100%" stop-color="rgba(201, 169, 97, 0)"/></radialGradient></defs><circle cx="25" cy="25" r="2" fill="url(%23d)"/><circle cx="75" cy="25" r="2" fill="url(%23d)"/><circle cx="50" cy="75" r="2" fill="url(%23d)"/></svg>');
    opacity: 0.6;
}

.reviews-section::after {
    content: '⭐';
    position: absolute;
    top: 10%;
    right: 10%;
    font-size: 3rem;
    opacity: 0.3;
    animation: float 4s ease-in-out infinite;
}

.reviews-section .floating-element-1 {
    position: absolute;
    top: 25%;
    left: 8%;
    font-size: 2rem;
    opacity: 0.4;
    animation: float 5s ease-in-out infinite;
}

.reviews-section .floating-element-2 {
    position: absolute;
    bottom: 20%;
    right: 15%;
    font-size: 1.8rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite reverse;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    padding-left: 3rem;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

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

.review-card:hover::before {
    left: 100%;
}

.review-card .quote-mark {
    content: '"';
    position: absolute;
    top: -15px;
    left: 25px;
    font-size: 5rem;
    color: var(--accent-gold);
    opacity: 0.4;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.15);
}

.review-header {
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    font-size: 2.5rem;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-light);
}

.reviewer-details h4 {
    margin-bottom: 0.8rem;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.review-text {
    font-style: italic;
    line-height: 1.8;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="e" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255, 255, 255, 0.1)"/><stop offset="100%" stop-color="rgba(255, 255, 255, 0)"/></radialGradient></defs><path d="M20,50 Q50,20 80,50 T20,50" fill="url(%23e)"/></svg>');
    opacity: 0.3;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    padding-left: 3rem;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
}

.newsletter-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form .input-group {
    box-shadow: var(--shadow-medium);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 50%, #e17055 100%);
    position: relative;
    overflow: hidden;
    background-image: url('./Banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 234, 167, 0.9) 0%, rgba(253, 203, 110, 0.85) 50%, rgba(225, 112, 85, 0.9) 100%);
    opacity: 0.95;
    z-index: 0;
}

.contact-info {
    padding-right: 3rem;
    padding-left: 3rem;
    position: relative;
    z-index: 2;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

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

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.3), 0 0 10px rgba(212, 175, 55, 0.2);
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(74, 44, 90, 0.3), 0 0 10px rgba(212, 175, 55, 0.2);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.contact-form {
    padding-left: 3rem;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.form-control {
    border: 2px solid var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 44, 90, 0.25), 0 0 15px rgba(212, 175, 55, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 50%, #74b9ff 100%);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    background-image: url('./Banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.9) 0%, rgba(99, 110, 114, 0.85) 50%, rgba(116, 185, 255, 0.9) 100%);
    opacity: 0.95;
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-left: 3rem;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    color: #ffeaa7;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-content .footer-section:nth-child(3) h4 {
    margin-left: -4px;
}

.footer-content .footer-section:nth-child(3) h4 {
    margin-left: 0;
}

.footer-section ul {
    list-style: none;
    padding-left: 10px;
}

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

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #ffeaa7;
    text-shadow: 0 0 10px rgba(255, 234, 167, 0.5);
}
.footer-content .footer-section:nth-child(3) ul {
    padding-left: 0;
    margin-left: -2px;
}

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

.social-links-footer a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(74, 44, 90, 0.3), 0 0 8px rgba(212, 175, 55, 0.2);
}

.social-links-footer a:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    padding-left: 3rem;
    padding-right: 3rem;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(74, 20, 140, 0.95);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .main-content {
        margin: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-input {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    /* Hero Section Mobile Responsive */
    .hero-galaxy-image {
        background-attachment: scroll;
        animation: galaxyParallaxMobile 20s ease-in-out infinite;
        transform: scale(1.1);
    }
    
    @keyframes galaxyParallaxMobile {
        0%, 100% { 
            transform: scale(1.1) translateY(0);
            filter: brightness(0.85) contrast(1.15) saturate(1.1);
        }
        50% { 
            transform: scale(1.15) translateY(-10px);
            filter: brightness(0.9) contrast(1.2) saturate(1.15);
        }
    }
    
    .hero-title {
        font-size: 2.8rem;
        text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9),
                     0 0 30px rgba(201, 169, 97, 0.6);
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Wolf Howl Animation */
.wolf-howl {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    z-index: 10000;
    animation: howlEffect 2s ease-out;
    pointer-events: none;
}

@keyframes howlEffect {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); }
}

/* Purchase Buttons */
.purchase-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    margin-left: 5px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.purchase-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #4a2c5a, #6b3d7a);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(74, 44, 90, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.3);
    font-family: 'Nunito', sans-serif;
}

.purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 44, 90, 0.7), 0 0 30px rgba(212, 175, 55, 0.5);
    background: linear-gradient(45deg, #6b3d7a, #4a2c5a);
    border-color: var(--accent-gold);
}

.amazon-btn {
    background: linear-gradient(45deg, #4a2c5a, #6b3d7a);
    box-shadow: 0 8px 25px rgba(74, 44, 90, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
}

.amazon-btn:hover {
    background: linear-gradient(45deg, #6b3d7a, #4a2c5a);
    box-shadow: 0 12px 35px rgba(74, 44, 90, 0.7), 0 0 30px rgba(212, 175, 55, 0.5);
}

.bn-btn {
    background: linear-gradient(45deg, #4a2c5a, #6b3d7a);
    box-shadow: 0 8px 25px rgba(74, 44, 90, 0.5), 0 0 20px rgba(212, 175, 55, 0.3);
}

.bn-btn:hover {
    background: linear-gradient(45deg, #6b3d7a, #4a2c5a);
    box-shadow: 0 12px 35px rgba(74, 44, 90, 0.7), 0 0 30px rgba(212, 175, 55, 0.5);
}

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

.btn-text {
    font-weight: 600;
}

/* Responsive design for purchase buttons */
@media (max-width: 768px) {
    .purchase-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .purchase-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* ============================================
   Galaxy Creation Section - Divine Artwork
   ============================================ */
.galaxy-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0a0e27 0%, #1a1a3e 50%, #0d0d1a 100%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galaxy-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Space Background Layers */
.space-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 26, 62, 0.3) 50%, rgba(10, 14, 39, 0.8) 100%);
    animation: spacePulse 20s ease-in-out infinite;
}

.layer-1 {
    background: radial-gradient(ellipse at 30% 40%, rgba(75, 0, 130, 0.4) 0%, transparent 60%);
    animation-duration: 25s;
}

.layer-2 {
    background: radial-gradient(ellipse at 70% 60%, rgba(25, 25, 112, 0.3) 0%, transparent 70%);
    animation-duration: 30s;
    animation-delay: -5s;
}

.layer-3 {
    background: radial-gradient(ellipse at 50% 50%, rgba(72, 61, 139, 0.2) 0%, transparent 80%);
    animation-duration: 35s;
    animation-delay: -10s;
}

@keyframes spacePulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Swirling Galaxies */
.galaxy {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    animation: galaxyRotate 60s linear infinite;
}

.galaxy-1 {
    width: 600px;
    height: 300px;
    top: 10%;
    left: 5%;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.4) 0%, rgba(75, 0, 130, 0.2) 40%, transparent 70%);
    animation-duration: 80s;
    transform: rotate(0deg);
}

.galaxy-2 {
    width: 500px;
    height: 250px;
    bottom: 15%;
    right: 10%;
    background: radial-gradient(ellipse at center, rgba(72, 61, 139, 0.3) 0%, rgba(25, 25, 112, 0.2) 50%, transparent 70%);
    animation-duration: 100s;
    animation-direction: reverse;
    transform: rotate(45deg);
}

.galaxy-3 {
    width: 400px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    background: radial-gradient(ellipse at center, rgba(147, 112, 219, 0.3) 0%, rgba(138, 43, 226, 0.2) 40%, transparent 70%);
    animation-duration: 120s;
}

@keyframes galaxyRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Radiant Nebulas */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: nebulaFloat 40s ease-in-out infinite;
}

.nebula-1 {
    width: 800px;
    height: 600px;
    top: -100px;
    left: -200px;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.5) 0%, rgba(75, 0, 130, 0.3) 50%, transparent 80%);
    animation-duration: 50s;
}

.nebula-2 {
    width: 700px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(ellipse at center, rgba(72, 61, 139, 0.4) 0%, rgba(25, 25, 112, 0.2) 50%, transparent 80%);
    animation-duration: 60s;
    animation-delay: -15s;
}

.nebula-3 {
    width: 600px;
    height: 400px;
    top: 50%;
    right: 20%;
    background: radial-gradient(ellipse at center, rgba(147, 112, 219, 0.4) 0%, rgba(138, 43, 226, 0.2) 50%, transparent 80%);
    animation-duration: 45s;
    animation-delay: -25s;
}

@keyframes nebulaFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    25% { transform: translate(30px, -30px) scale(1.1); opacity: 0.7; }
    50% { transform: translate(-20px, 20px) scale(0.9); opacity: 0.6; }
    75% { transform: translate(20px, 30px) scale(1.05); opacity: 0.65; }
}

/* Twinkling Stars */
.stars-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: starTwinkle 3s ease-in-out infinite;
}

.star-large {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(201, 169, 97, 0.6);
}

.star-medium {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 15px rgba(201, 169, 97, 0.4);
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* Glowing Stardust Particles */
.stardust-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.stardust {
    position: absolute;
    width: 1px;
    height: 1px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(201, 169, 97, 0.6);
    animation: stardustFloat 15s linear infinite;
}

@keyframes stardustFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* Spiritual and Physical Realm Layers */
.realm-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.spiritual-realm {
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.1) 0%, transparent 60%);
    animation: realmPulse 8s ease-in-out infinite;
    z-index: 1;
}

.physical-realm {
    background: radial-gradient(ellipse at center, rgba(25, 25, 112, 0.08) 0%, transparent 70%);
    animation: realmPulse 10s ease-in-out infinite;
    animation-delay: -2s;
    z-index: 1;
}

@keyframes realmPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* Galaxy Content - Bible Verse */
.galaxy-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.verse-container {
    position: relative;
    background: rgba(10, 14, 39, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(201, 169, 97, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(138, 43, 226, 0.3),
                inset 0 0 30px rgba(201, 169, 97, 0.1);
    animation: verseGlow 4s ease-in-out infinite;
}

@keyframes verseGlow {
    0%, 100% { 
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                    0 0 40px rgba(138, 43, 226, 0.3),
                    inset 0 0 30px rgba(201, 169, 97, 0.1);
    }
    50% { 
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                    0 0 60px rgba(138, 43, 226, 0.5),
                    inset 0 0 40px rgba(201, 169, 97, 0.2);
    }
}

.verse-quote-mark {
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 6rem;
    font-family: 'Playfair Display', serif;
    color: rgba(201, 169, 97, 0.4);
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(201, 169, 97, 0.5);
}

.bible-verse {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #ffffff;
    text-align: center;
    margin: 0 0 2rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(201, 169, 97, 0.3);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.verse-text {
    display: block;
    font-style: italic;
}

.verse-reference {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: rgba(201, 169, 97, 0.9);
    text-align: center;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                 0 0 15px rgba(201, 169, 97, 0.4);
    letter-spacing: 1px;
}

/* Floating Gift Box */
.gift-box-container {
    position: absolute;
    top: 20%;
    right: 10%;
    z-index: 8;
    animation: giftFloat 6s ease-in-out infinite;
}

@keyframes giftFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(0deg); }
    75% { transform: translateY(-25px) rotate(-2deg); }
}

.gift-box {
    position: relative;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
}

.gift-box-body {
    width: 100%;
    height: 70%;
    background: linear-gradient(135deg, #8b4513 0%, #654321 100%);
    border-radius: 5px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(201, 169, 97, 0.6);
    animation: giftGlow 3s ease-in-out infinite;
}

@keyframes giftGlow {
    0%, 100% { 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                    0 0 30px rgba(201, 169, 97, 0.6);
    }
    50% { 
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                    0 0 50px rgba(201, 169, 97, 0.9),
                    0 0 70px rgba(201, 169, 97, 0.5);
    }
}

.gift-box-top {
    width: 100%;
    height: 30%;
    background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: -15%;
    left: 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.gift-bow {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
}

.bow-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
}

.bow-loop {
    position: absolute;
    width: 20px;
    height: 30px;
    border: 3px solid #ff6b6b;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.loop-left {
    left: 0;
    top: 5px;
    transform: rotate(-20deg);
}

.loop-right {
    right: 0;
    top: 5px;
    transform: rotate(20deg);
}

.gift-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: giftGlowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes giftGlowPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Responsive Design for Galaxy Section */
@media (max-width: 768px) {
    .galaxy-content {
        padding: 2rem 1.5rem;
    }
    
    .verse-container {
        padding: 2rem 1.5rem;
    }
    
    .bible-verse {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .verse-reference {
        font-size: 1rem;
    }
    
    .verse-quote-mark {
        font-size: 4rem;
        top: -15px;
        left: 20px;
    }
    
    .gift-box-container {
        top: 10%;
        right: 5%;
    }
    
    .gift-box {
        width: 60px;
        height: 60px;
    }
    
    .galaxy-1, .galaxy-2, .galaxy-3 {
        width: 300px;
        height: 150px;
    }
    
    .nebula-1, .nebula-2, .nebula-3 {
        width: 400px;
        height: 300px;
    }
}