:root {
    --primary-color: #FF6B9D;
    --secondary-color: #4ECDC4;
    --accent-yellow: #FFD93D;
    --accent-purple: #A78BFA;
    --accent-orange: #FF8C42;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --bg-cream: #FFF9F0;
    --bg-light-blue: #E8F4F8;
    --bg-light-pink: #FFE5F0;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Quicksand', 'Comic Neue', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', 'Baloo 2', cursive;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple)) !important;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Fredoka', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
    border-radius: 10px;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, var(--bg-light-blue) 0%, var(--bg-light-pink) 100%);
    padding: 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--primary-color);
    text-shadow: 3px 3px 0 var(--accent-yellow);
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    animation: slideInRight 1s ease-out 0.3s backwards;
}

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

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    border: none;
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::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-custom:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.5);
}

.btn-secondary-custom {
    background-color: var(--secondary-color);
    border: none;
    color: var(--white);
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background-color: #3DBDB4;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(78, 205, 196, 0.5);
}

/* Section Styling */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-yellow));
    border-radius: 10px;
}

.wavy-bg {
    background: 
        linear-gradient(135deg, var(--bg-light-blue) 0%, var(--white) 100%);
    position: relative;
}

.wavy-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FFF9F0'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

/* Book Cards */
.book-card {
    background: var(--white);
    border-radius: 25px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.book-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 217, 61, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.book-card:hover::before {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.book-card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.book-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.book-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.book-author {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.book-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light-pink) 100%);
    border-radius: 30px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    margin-bottom: 2rem;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Interactive Story Section */
.story-section {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '📚';
    position: absolute;
    top: 10%;
    left: 5%;
    font-size: 8rem;
    opacity: 0.1;
    animation: float 5s ease-in-out infinite;
}

.story-section::after {
    content: '✨';
    position: absolute;
    bottom: 10%;
    right: 5%;
    font-size: 6rem;
    opacity: 0.1;
    animation: float 7s ease-in-out infinite reverse;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

footer .container{
    z-index: 4;
}

footer .logo img{
    margin-bottom: 20px;
    display: block;
}

footer::before {
    content: none;
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23FFF9F0'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    transform: rotate(0);
    z-index: 1;

}

.footer-title {
    color: var(--accent-yellow);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.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: all 0.3s ease;
    display: inline-block;
}

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

.footer-social a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    margin-right: 10px;
    color: var(--white);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-yellow);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid var(--bg-light-blue);
    border-radius: 15px;
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
}

.contact-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
    color: var(--white);
    padding: 2rem;
    border-radius: 25px;
    margin-bottom: 2rem;
}

.contact-info-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--text-dark), #1a252f);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Map Container */
.map-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Team Cards */
.team-card {
    background: var(--white);
    border-radius: 25px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 5px solid var(--primary-color);
}

/* Article Styling */
.article-header {
    background: linear-gradient(135deg, var(--bg-light-blue) 0%, var(--bg-light-pink) 100%);
    padding: 100px 0 50px;
}

.article-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.article-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Book of the Month */
.book-of-month {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.book-of-month::before {
    content: '⭐';
    position: absolute;
    top: 10%;
    right: 5%;
    font-size: 10rem;
    opacity: 0.2;
    animation: spin 20s linear infinite;
}

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

.badge-month {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        min-height: 400px;
        padding: 60px 0;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Policy Pages Styling */
.policy-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.policy-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-content h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.policy-content p, .policy-content li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}




.navbar-brand img{
    max-width: 250px;
    width: 250px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}


footer .navbar-brand img{
    filter: brightness(0) invert(1);
}