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

html {
    overflow-x: hidden;
    max-width: 100%;
}

img,
video {
    max-width: 100%;
    height: auto;
}

:root {
    --primary-color: #FFA500;
    --secondary-color: #87CEEB;
    --accent-color: #FF69B4;
    --success-color: #7FBC8C;
    --heart-color: #FF6B6B;
    --yellow-heart: #FFD700;
    --brown-color: #8B4513;
    --cream-color: #FFF8DC;
    --text-dark: #2C3E50;
    --text-light: #ECF0F1;
    --gradient-primary: linear-gradient(135deg, #FFA500, #87CEEB);
    --gradient-secondary: linear-gradient(135deg, #FF69B4, #FFA500);
    --gradient-magic: linear-gradient(45deg, #FFA500, #87CEEB, #FF69B4, #7FBC8C);
    --gradient-rainbow: linear-gradient(90deg, #FF6B6B, #FFA500, #FFD700, #7FBC8C, #87CEEB, #9370DB);
    --shadow-soft: 0 10px 30px rgba(255, 165, 0, 0.3);
    --shadow-medium: 0 15px 35px rgba(135, 206, 235, 0.35);
    --shadow-strong: 0 20px 40px rgba(255, 165, 0, 0.4);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Story / book titles — bold + curly quotes in HTML (client brief) */
.book-title {
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-title .title-line.book-title {
    font-style: normal;
    font-weight: 800;
}

.book-details h3.book-title {
    font-style: normal;
    font-weight: 400;
}

.intro-text cite.book-title,
.book-description cite.book-title {
    font-style: normal;
    font-weight: 800;
    color: #1a2d3d;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #E0F6FF 0%, #FFF8DC 50%, #FFE5F1 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(135, 206, 235, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: backgroundPulse 20s ease-in-out infinite;
}

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

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.magic-book {
    width: 80px;
    height: 60px;
    background: #fff;
    border-radius: 5px;
    margin: 0 auto 20px;
    position: relative;
    animation: bookFlip 2s infinite;
}

.book-pages {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: linear-gradient(90deg, #f0f0f0 50%, #e0e0e0 50%);
    border-radius: 3px;
}

.sparkles-loading {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, var(--accent-color) 2px, transparent 2px);
    background-size: 15px 15px;
    animation: sparkleRotate 3s linear infinite;
    opacity: 0.7;
}
.magixa{
    padding-left: 15px;
    padding-right: 15px;
}
.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 2px;
    animation: loadingProgress 3s ease-in-out infinite;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Floating Magic Elements */
.magic-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-star,
.floating-heart,
.floating-book {
    position: absolute;
    font-size: 2rem;
    animation: floatMagic 8s ease-in-out infinite;
    opacity: 0.7;
}

.star-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.star-3 {
    top: 70%;
    left: 20%;
    animation-delay: 4s;
}

.heart-1 {
    top: 60%;
    right: 10%;
    animation-delay: 1s;
}

.heart-2 {
    top: 80%;
    left: 80%;
    animation-delay: 3s;
}

.book-1 {
    top: 30%;
    left: 85%;
    animation-delay: 5s;
}

.book-2 {
    top: 90%;
    right: 70%;
    animation-delay: 6s;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    /* margin-bottom: 20px; */
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.logo-text h2 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
}

.logo-text span {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.ga{
    padding: 2px 2px 2px 2px !important;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    background: linear-gradient(135deg, #E0F6FF 0%, #FFF5E6 100%);
    background-image: url('./2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: heroBackgroundFade 1.5s ease-in;
}

@keyframes heroBackgroundFade {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 105, 180, 0.12) 0%, transparent 60%),
        linear-gradient(
            135deg,
            rgba(255, 165, 0, 0.08) 0%,
            rgba(135, 206, 235, 0.1) 50%,
            rgba(255, 105, 180, 0.08) 100%
        );
    z-index: 1;
    pointer-events: none;
    animation: heroOverlay 15s ease-in-out infinite;
}

@keyframes heroOverlay {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

.rainbow-clouds {
    display: none;
}

.floating-bubbles {
    display: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 2;
    position: relative;
    box-sizing: border-box;
}

.hero-text,
.hero-book-showcase {
    min-width: 0;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    line-height: 1.12;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    color: white;
    text-shadow: 
        3px 3px 10px rgba(0, 0, 0, 0.6), 
        0 0 25px rgba(255, 165, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.3),
        2px 2px 6px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.4));
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            3px 3px 10px rgba(0, 0, 0, 0.6), 
            0 0 25px rgba(255, 165, 0, 0.4),
            0 0 15px rgba(255, 215, 0, 0.3),
            2px 2px 6px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow: 
            3px 3px 12px rgba(0, 0, 0, 0.7), 
            0 0 35px rgba(255, 165, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.5),
            2px 2px 8px rgba(0, 0, 0, 0.6);
    }
}

.magical-text {
    background: linear-gradient(135deg, #FFA500, #FF69B4, #87CEEB, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 3s ease-in-out infinite, textPulse 4s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
    font-weight: 800;
}

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

.hero-subtitle {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 3rem;
    line-height: 1.8;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6),
                 0 0 20px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.25) 0%, 
        rgba(135, 206, 235, 0.2) 50%, 
        rgba(255, 105, 180, 0.25) 100%);
    padding: 2rem;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* .hero-subtitle::before {
    content: '💛';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatHeart 6s ease-in-out infinite;
}

.hero-subtitle::after {
    content: '💙';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatHeart 8s ease-in-out infinite reverse;
} */

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


.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.2) 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 10px 35px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
    animation: statGlow 4s ease-in-out infinite;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.3),
        inset 0 0 30px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
}

@keyframes statGlow {
    0%, 100% {
        transform: rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: rotate(180deg);
        opacity: 0.6;
    }
}

.stat-number {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.stat-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.hero-buttons a {
    text-decoration: none;
    display: inline-flex;
}

.hero-buttons .btn {
    min-height: 48px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
   
   
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Nunito', sans-serif;
}
.gai{
    /* gap: 5px !important; */
    gap: 5px !important;
}
.ga{
    margin-top: 10px !important;
}
.btn-primary {
    background: linear-gradient(135deg, #FFA500, #FF69B4);
    text-decoration: none !important;
    text-decoration-line: none !important;
    color: white;
    box-shadow: 
        0 8px 25px rgba(255, 165, 0, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    box-shadow: 
        0 12px 35px rgba(255, 165, 0, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5);
    transform: translateY(-3px);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.2) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.25),
        inset 0 0 15px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.btn-secondary:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.3) 100%);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.35),
        inset 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-3px) scale(1.02);
}

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

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.magic-btn {
    position: relative;
    overflow: hidden;
}
.under{
    text-decoration: none !important;
    color: black !important;
    text-decoration-line: none !important;
}

.magic-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-strong);
}

.btn-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-color) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0;
    animation: sparkleBtn 2s ease-in-out infinite;
}

.magic-btn:hover .btn-sparkles {
    opacity: 0.7;
}

/* Hero Book Showcase */
.hero-book-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.book-3d-container {
    position: relative;
    perspective: 1000px;
}

.book-3d {
    position: relative;
    transform-style: preserve-3d;
    animation: bookFloat 6s ease-in-out infinite;
    transition: var(--transition);
}

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

.book-cover {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 2;
}

.book-glow {
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    background: var(--gradient-rainbow);
    border-radius: 30px;
    opacity: 0.4;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
    filter: blur(15px);
}

@keyframes glowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* .book-particles {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle, var(--accent-color) 2px, transparent 2px);
    background-size: 20px 20px;
    animation: particleOrbit 8s linear infinite;
    opacity: 0.6;
} */

.floating-reviews {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.review-bubble {
    position: absolute;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 248, 220, 0.95) 100%);
    padding: 18px;
    border-radius: 25px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
    animation: reviewFloat 8s ease-in-out infinite, reviewGlow 3s ease-in-out infinite;
    max-width: 160px;
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 215, 0, 0.4);
    z-index: 10;
    position: relative;
}

.review-bubble::before {
    content: '✨';
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 1.5rem;
    animation: sparkleRotate 2s linear infinite;
}

@keyframes reviewGlow {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 12px 45px rgba(0, 0, 0, 0.35),
            0 0 30px rgba(255, 215, 0, 0.4);
    }
}

.review-1 {
    top: 20%;
    left: -50px;
    animation-delay: 0s;
}

.review-2 {
    bottom: 30%;
    right: -50px;
    animation-delay: 4s;
}


.review-bubble .stars {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.review-bubble p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.review-bubble span {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-style: italic;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient-rainbow);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
    animation: titleUnderline 3s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% {
        width: 120px;
        opacity: 1;
    }
    50% {
        width: 150px;
        opacity: 0.8;
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

/* About Section */
.about {
    background: white;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23FFA500" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2387CEEB" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23FF69B4" opacity="0.1"/><circle cx="30" cy="60" r="1" fill="%237FBC8C" opacity="0.1"/><circle cx="70" cy="40" r="1" fill="%23FFD700" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.about-image,
.about-text {
    min-width: 0;
}

.author-card {
    background: linear-gradient(135deg, #FFA500, #87CEEB, #FF69B4);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(255, 165, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.author-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: cardSparkle 10s linear infinite;
}

.photo-frame {

    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    /* background: white; */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
}
/* 
.Author {
    background-image: url(./Author\ Pic.jpg) !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    object-fit: cover !important;

} */

.photo-frame i {
    font-size: 6rem;
    color: var(--secondary-color);
}
.photo-frame img{
    /* top: -50% !important;
    left: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background-size: 20px 20px; */
    /* width: 700px !important;
    height: 370px !important; */
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px 10px 10px 10px;
}
.Review-chan{
    margin-top: 50px !important;
    /* margin-bottom: -100px; */
    /* margin-left: 400px !important; */
    text-align:right !important;
}
.photo-sparkles {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    /* border: 3px solid var(--accent-color); */
    border-radius: 50%;
    animation: sparkleRing 3s ease-in-out infinite;
}
.icoa{
    color: #C39F43 !important;
    font-size: 30px !important;
}
.aboutth{
    margin-top: 10px;
    text-decoration: none;
    text-decoration-line: none;
    color: black;
    border: none;
    border-radius: 10px 10px 10px;
    /* padding: 20px 20px 20px 20px; */
    padding-left: 50px;
    padding-bottom: 10px;
    padding-right: 50px;
    padding-top: 10px;
}

.author-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.badge {
    background: rgba(255, 255, 255, 0.9);
    text-decoration-line: none !important;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

.about-text h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.story-journey {
    margin-bottom: 3rem;
}

.journey-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.12) 0%, 
        rgba(135, 206, 235, 0.12) 50%,
        rgba(255, 105, 180, 0.12) 100%);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

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

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

.journey-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.journey-icon {
    font-size: 2.5rem;
    min-width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
}

.journey-content h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.fun-facts {
    background: linear-gradient(135deg, #FF69B4, #FFA500, #87CEEB);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    color: white;
    box-shadow: 
        0 15px 40px rgba(255, 105, 180, 0.3),
        0 0 25px rgba(255, 215, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.fun-facts::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    opacity: 0.3;
    animation: sparkleRotate 3s linear infinite;
    z-index: 1;
}

.fun-facts h4 {
    font-family: 'Fredoka One', cursive;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

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

.fact-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.2rem;
    border-radius: 18px;
    font-weight: 600;
    text-align: center;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 15px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
    position: relative;
}

.fact-item::after {
    content: '💝';
    position: absolute;
    top: 5px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1rem;
}

.fact-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 0 20px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
}

.fact-item:hover::after {
    opacity: 0.7;
}

/* Books Section */
.books {
    background: linear-gradient(135deg, #E0F6FF 0%, #FFF8DC 50%, #FFE5F1 100%);
    position: relative;
    overflow: hidden;
}

.books::before {
    content: '💛';
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 5rem;
    opacity: 0.08;
    animation: floatHeart 10s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.books::after {
    content: '💙';
    position: absolute;
    bottom: 10%;
    left: 5%;
    font-size: 4rem;
    opacity: 0.08;
    animation: floatHeart 12s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

.featured-book-section {
    margin-bottom: 5rem;
}

.featured-book-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 248, 220, 0.95) 100%);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.book-details,
.book-showcase {
    min-width: 0;
}

.featured-book-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-rainbow);
    opacity: 0.08;
    animation: contentGlow 10s ease-in-out infinite;
}

@keyframes contentGlow {
    0%, 100% {
        opacity: 0.08;
    }
    50% {
        opacity: 0.12;
    }
}

.book-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FFA500, #FF69B4);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 
        0 6px 20px rgba(255, 165, 0, 0.4),
        0 0 15px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.book-badge::before {
    content: '✨';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    animation: badgeSparkle 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 6px 20px rgba(255, 165, 0, 0.4),
            0 0 15px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 8px 25px rgba(255, 165, 0, 0.6),
            0 0 20px rgba(255, 215, 0, 0.5);
    }
}

@keyframes badgeSparkle {
    0% {
        left: -20px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 120%;
        opacity: 0;
    }
}

.book-details h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8rem;
    background: linear-gradient(135deg, #FFA500, #FF69B4, #87CEEB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.book-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-dark);
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem;
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.15) 0%, 
        rgba(135, 206, 235, 0.15) 50%,
        rgba(255, 105, 180, 0.15) 100%);
    border-radius: 18px;
    font-weight: 600;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.feature::after {
    content: '✨';
    position: absolute;
    top: 5px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.8rem;
}

.feature:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
}

.feature:hover::after {
    opacity: 0.6;
}

.feature i {
    color: var(--primary-color);
    font-size: 1.4rem;
    filter: drop-shadow(2px 2px 4px rgba(255, 165, 0, 0.3));
    transition: all 0.3s ease;
}

.feature:hover i {
    transform: rotate(15deg) scale(1.2);
    color: #FF69B4;
}

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

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: 'Fredoka One', cursive;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #FFA500, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
}

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

.book-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
}

.book-3d-display {
    position: relative;
    perspective: 1000px;
}

.book-3d-display img {
    max-width: 300px;
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    animation: bookHover 4s ease-in-out infinite;
}

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

.book-reflection {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    transform: scaleY(-1);
    opacity: 0.3;
}

/* Books Carousel */
.books-carousel-section {
    margin-top: 4rem;
}

.carousel-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.books-swiper {
    padding: 2rem 0;
}

.book-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    height: 100%;
}

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

.book-cover-container {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.coming-soon-book {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFA500, #87CEEB, #FF69B4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.coming-soon-book i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.book-hover-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-color) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0;
    animation: hoverSparkle 2s ease-in-out infinite;
}

.book-card:hover .book-hover-effects {
    opacity: 0.3;
}

.book-info {
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem;
}

.book-info h4 {
    align-items: center !important;
    justify-content: center !important;
    font-family: 'Fredoka One', cursive;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #FFA500, #FF69B4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.book-info p {
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-dark);
    /* margin-bottom: 2rem; */
    /* line-height: 1.6; */
}

.book-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Interactive Stories Section */
.stories {
    background: white;
    position: relative;
}

.story-interactive {
    margin-bottom: 4rem;
}

.story-scene {
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.scene-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.forest-trees {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #7FBC8C 0%, #6FAF7A 50%, transparent 100%);
    clip-path: polygon(0 100%, 15% 60%, 25% 80%, 35% 50%, 50% 70%, 65% 40%, 80% 65%, 100% 45%, 100% 100%);
}

.magical-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-color) 3px, transparent 3px);
    background-size: 40px 40px;
    animation: magicalTwinkle 4s ease-in-out infinite;
    opacity: 0.6;
}

.story-characters {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding-top: 2rem;
}

.character {
    width: 80px;
    height: 120px;
    background: var(--gradient-secondary);
    border-radius: 50% 50% 20px 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    animation: characterBob 3s ease-in-out infinite;
}

.character:nth-child(1) {
    animation-delay: 0s;
}

.character:nth-child(2) {
    animation-delay: 1s;
}

.character:nth-child(3) {
    animation-delay: 2s;
}

.character:hover {
    transform: scale(1.1) translateY(-10px);
}

.character-bubble {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transition: var(--transition);
}

.character:hover .character-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.story-text-area {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
}

.story-content h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.story-games {
    margin-top: 4rem;
}

.story-games h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

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

.game-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.game-card h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Gallery Section */
.gallery {
    background: linear-gradient(135deg, #E0F6FF 0%, #FFF8DC 50%, #FFE5F1 100%);
    position: relative;
    overflow: hidden;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    background: white;
    color: var(--text-dark);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

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

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

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

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    animation: gallerySparkle 8s linear infinite;
}

.gallery-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.gallery-placeholder span {
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 2;
    position: relative;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.view-btn {
    padding: 12px 25px;
    background: var(--gradient-secondary);
    color: var(--text-dark);
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn:hover {
    transform: scale(1.1);
}

/* Events Section */
.events {
    background: white;
}

.events-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.events-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    min-width: 80px;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
}

.timeline-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Fredoka One', cursive;
}

.timeline-content {
    flex: 1;
    margin: 0 2rem;
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.event-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.event-card h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.event-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.event-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.event-details span {
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.15) 0%, 
        rgba(135, 206, 235, 0.15) 50%,
        rgba(255, 105, 180, 0.15) 100%);
    padding: 8px 15px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid rgba(255, 215, 0, 0.2);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #E0F6FF 0%, #FFF8DC 50%, #FFE5F1 100%);
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    min-width: 0;
}

.contact-info,
.contact-form-section {
    min-width: 0;
}

.contact-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
    height: fit-content;
}

.contact-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.contact-card p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-methods {
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 165, 0, 0.15) 0%, 
        rgba(135, 206, 235, 0.15) 50%,
        rgba(255, 105, 180, 0.15) 100%);
    border-radius: 18px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.contact-method:hover::before {
    left: 100%;
}

.contact-method:hover {
    transform: translateX(15px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.4);
}

.method-icon {
    font-size: 1.5rem;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #FFA500, #FF69B4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(255, 165, 0, 0.3),
        0 0 15px rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.contact-method:hover .method-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 
        0 8px 25px rgba(255, 165, 0, 0.5),
        0 0 20px rgba(255, 215, 0, 0.4);
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
}

.method-value {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.social-section h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    color: white;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.youtube {
    background: #ff0000;
}

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

/* Contact Form */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-strong);
}

.form-container h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.3);
    transform: translateY(-2px);
}

.input-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: 1;
}

.form-group input:focus+.input-animation,
.form-group select:focus+.input-animation,
.form-group textarea:focus+.input-animation {
    width: 100%;
}

.submit-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-btn.loading .btn-loading {
    opacity: 1;
}

.submit-btn.loading span {
    opacity: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.footer-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: starsMove 20s linear infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.footer-section.main-section {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo .logo-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.footer-logo p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.newsletter p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
}

.newsletter-form .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-section h4 {
    font-family: 'Fredoka One', cursive;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-icon.facebook {
    background: #3b5998;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.twitter {
    background: #1da1f2;
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon.goodreads {
    background: #663300;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.footer-awards h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.award {
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: inline-block;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 2rem 0;
}

.footer-bottom {
    text-align: center;
    padding-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 165, 0, 0.6);
}

/* Animations */
@keyframes bookFlip {

    0%,
    100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(-15deg);
    }
}

@keyframes sparkleRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

@keyframes floatMagic {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(120deg);
    }

    66% {
        transform: translateY(-10px) rotate(240deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes cloudMove {

    0%,
    100% {
        transform: translateX(0px);
    }

    50% {
        transform: translateX(20px);
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-20px);
    }
}

@keyframes textShimmer {

    0%,
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)) brightness(1);
    }

    50% {
        background-position: 100% 50%;
        filter: drop-shadow(3px 3px 6px rgba(255, 165, 0, 0.5)) brightness(1.1);
    }
}

@keyframes bookFloat {

    0%,
    100% {
        transform: translateY(0px) rotateY(0deg);
    }

    50% {
        transform: translateY(-15px) rotateY(5deg);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

@keyframes particleOrbit {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes reviewFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes sparkleBtn {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes bookHover {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes hoverSparkle {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes magicalTwinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes characterBob {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes gallerySparkle {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(30px);
    }
}

@keyframes starsMove {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-50px);
    }
}

@keyframes cardSparkle {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }

    100% {
        transform: translateX(100%) translateY(100%);
    }
}

@keyframes sparkleRing {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .hero {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 0 clamp(16px, 4vw, 20px);
    }

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

    .hero-subtitle {
        padding: 1.5rem;
    }

    .featured-book-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem clamp(14px, 3vw, 2rem);
        text-align: center;
    }

    .book-details h3 {
        font-size: 2.25rem;
    }

    .author-card {
        padding: 2rem;
    }

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

    .contact-card,
    .form-container {
        padding: 2rem;
    }

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

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

    .footer-section.main-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 clamp(14px, 4vw, 20px);
    }

    .nav-container {
        padding: 0 clamp(12px, 3vw, 20px);
    }

    section {
        padding: 52px 0;
    }

    .section-header {
        margin-bottom: 2.25rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
        line-height: 1.65;
        padding: 0 0.125rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 1.5rem 0 2rem;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

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

    .nav-menu li {
        margin: 1rem 0;
    }

    .logo-text h2 {
        font-size: 1.2rem;
    }

    .logo-text span {
        font-size: 0.8rem;
        display: block;
        line-height: 1.2;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .hero {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        min-height: auto;
        margin-top: 72px;
        padding-top: 3.25rem;
        padding-bottom: 2.5rem;
    }

    .hero-content {
        padding: 0 clamp(14px, 3vw, 20px);
    }

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

    .hero-subtitle {
        padding: 1.1rem clamp(12px, 3vw, 1.25rem);
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        gap: 1rem;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons .btn {
        width: 100%;
        box-sizing: border-box;
    }

    .about-text h3 {
        font-size: 1.85rem;
    }

    .intro-text {
        font-size: 1.08rem;
        margin-bottom: 2rem;
    }

    .author-card {
        padding: 1.5rem clamp(14px, 3vw, 1.25rem);
    }

    .aboutth {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .featured-book-content {
        padding: 1.5rem clamp(12px, 3vw, 1.25rem);
        gap: 2rem;
    }

    .book-details {
        text-align: center;
    }

    .book-details h3 {
        font-size: 1.75rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .book-description {
        font-size: 1.02rem;
    }

    .book-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

    .book-actions a {
        display: block;
        width: 100%;
        text-decoration: none;
    }

    .book-actions .btn {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-card,
    .form-container {
        padding: 1.5rem clamp(12px, 3vw, 1.25rem);
    }

    .contact-method {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }

    .method-info {
        flex: 1 1 220px;
        min-width: 0;
        align-items: center;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

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

    .book-features {
        grid-template-columns: 1fr;
    }

    .book-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column !important;
        text-align: center;
    }

    .timeline-content {
        margin: 1rem 0 0 0;
    }

    .events-timeline::before {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section.main-section {
        grid-column: span 1;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

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

    section {
        padding: 44px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .hero {
        background-attachment: scroll;
        padding-top: 4.5rem;
        padding-bottom: 2rem;
        margin-top: 68px;
        background-size: cover;
        background-position: center center;
        min-height: auto;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero-title {
        font-size: clamp(1.55rem, 7.5vw, 1.75rem);
        line-height: 1.15;
    }

    .hero-subtitle {
        padding: 1rem 0.75rem;
        font-size: 0.98rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-text h3 {
        font-size: 1.55rem;
    }

    .intro-text {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .author-card {
        padding: 1.25rem 1rem;
    }

    .featured-book-content {
        padding: 1.25rem 0.75rem;
        gap: 1.5rem;
    }

    .book-details h3 {
        font-size: 1.45rem;
        line-height: 1.25;
    }

    .book-description {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    .book-cover {
        max-width: min(260px, 88vw);
    }

    .book-3d-display img {
        max-width: min(260px, 85vw);
    }

    .contact-card,
    .form-container {
        padding: 1.25rem 0.875rem;
    }

    .contact-card h3,
    .form-container h3 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 18px;
        font-size: 1rem;
    }

    .photo-frame {
        width: 150px;
        height: 150px;
    }

    .photo-frame i {
        font-size: 4rem;
    }

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

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

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

    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Print Styles */
@media print {

    .header,
    .back-to-top,
    .magic-elements,
    #particles-js {
        display: none !important;
    }

    body {
        background: white !important;
    }

    section {
        page-break-inside: avoid;
        padding: 2rem 0;
    }
}