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

:root {
    --color-pink: #ff69b4;
    --color-purple: #9b59b6;
    --color-gold: #ffd700;
    --color-orange: #ff8c42;
    --color-lavender: #e6b3ff;
    --color-mint: #b4f8c8;
    --color-sky: #a0d8f1;
    --color-coral: #ff6b9d;
    --color-white: #ffffff;
    --color-light: #fff5fb;
    --color-dark: #2d1b3d;
    --gradient-rainbow: linear-gradient(135deg, #ff69b4, #ff8c42, #ffd700, #b4f8c8, #a0d8f1, #9b59b6);
    --gradient-pink-purple: linear-gradient(135deg, #ff69b4, #9b59b6);
    --gradient-gold-pink: linear-gradient(135deg, #ffd700, #ff69b4);
    --shadow-sm: 0 2px 10px rgba(255, 105, 180, 0.2);
    --shadow-md: 0 4px 20px rgba(155, 89, 182, 0.3);
    --shadow-lg: 0 8px 30px rgba(255, 105, 180, 0.4);
}

body {
    font-family: 'Fredoka', sans-serif;
    color: var(--color-dark);
    background: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-rainbow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 0;
}

.sparkles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-white), 0 0 20px var(--color-gold);
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.sparkle:nth-child(2) { top: 40%; left: 80%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { top: 60%; left: 20%; animation-delay: 1s; }
.sparkle:nth-child(4) { top: 80%; left: 70%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { top: 30%; left: 50%; animation-delay: 2s; }
.sparkle:nth-child(6) { top: 70%; left: 90%; animation-delay: 2.5s; }
.sparkle:nth-child(7) { top: 50%; left: 30%; animation-delay: 0.8s; }
.sparkle:nth-child(8) { top: 90%; left: 40%; animation-delay: 1.8s; }

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.5);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.badge {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-purple);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: 'Pacifico', cursive;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(255, 215, 0, 0.6),
                 0 0 40px rgba(255, 105, 180, 0.4);
    line-height: 1.2;
}

.title-line {
    display: block;
}

.subtitle {
    display: block;
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-top: 10px;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--color-white);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--color-white);
    color: var(--color-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--color-gold);
    color: var(--color-white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-purple);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.3rem;
}

.hero-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--color-white);
    font-size: 0.95rem;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.wave-fill {
    fill: var(--color-light);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 50px;
    font-family: 'Pacifico', cursive;
    color: var(--color-purple);
}

.title-glow {
    display: inline-block;
    background: var(--gradient-pink-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 105, 180, 0.3);
}

/* About Section */
.about {
    background: var(--color-white);
}

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

.about-card {
    background: var(--color-light);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-pink);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-pink-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--color-purple);
    margin-bottom: 15px;
}

.about-card p {
    color: var(--color-dark);
    line-height: 1.7;
}

/* Why Section */
.why-section {
    background: var(--gradient-gold-pink);
    color: var(--color-white);
}

.why-section .section-title {
    color: var(--color-white);
}

.why-section .title-glow {
    background: var(--color-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-content {
    max-width: 900px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.25);
}

.why-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    color: var(--color-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.why-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.why-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Perfect For Section */
.perfect-for {
    background: var(--color-white);
}

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

.perfect-card {
    background: var(--gradient-rainbow);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.perfect-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.perfect-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-purple);
}

.perfect-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.perfect-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Book Details Section */
.book-details {
    background: var(--color-light);
}

.details-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

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

.detail-item {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: var(--color-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: var(--gradient-pink-purple);
    color: var(--color-white);
    transform: translateX(5px);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--color-pink);
    flex-shrink: 0;
}

.detail-item:hover i {
    color: var(--color-white);
}

.detail-item div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    font-size: 1.05rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    background: var(--gradient-pink-purple);
    color: var(--color-white);
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: 'Pacifico', cursive;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-family: 'Pacifico', cursive;
    font-size: 1.8rem;
    color: var(--color-pink);
    margin-bottom: 5px;
}

.footer-brand p {
    color: var(--color-lavender);
    font-size: 0.95rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    text-decoration: none;
    padding: 10px 20px;
    background: var(--gradient-pink-purple);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-lavender);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }

    section {
        padding: 50px 0;
    }

    .about-grid,
    .perfect-grid {
        grid-template-columns: 1fr;
    }

    .details-card {
        padding: 30px 20px;
    }

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

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

    .why-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

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

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

    .btn-large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

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

/* Accessibility */
.btn:focus,
a:focus {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}
