
/* Background image */
body {
  background-image: url('images/sparkle_bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.75);
  z-index: -1;
}
/*
--------------------------------------------------------------------------------
SPARKLE TREE PRESS — MAIN STYLESHEET
Children's Book Publisher | Portfolio-First Design
Enhanced with real book covers & artistic imagery
--------------------------------------------------------------------------------
*/

/* ── Design System Tokens ── */
:root {
    /* Color Palette — refined for warmer, more cohesive feel */
    --color-deep-nebula: #3a2d5e;
    --color-cosmic-purple: #c084fc;
    --color-stardust-gold: #fcd34d;
    --color-magical-teal: #5eead4;
    --color-cloud-white: #fafafc;
    --color-parent-bg: #ffffff;
    --color-parent-text: #2d3748;
    --color-dark-panels: #16133d;
    --color-mid-bg: #201449;

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-playful: 'Fredoka', 'Quicksand', "Comic Sans MS", cursive, sans-serif;

    /* Transitions & Shadows */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow-purple: 0 0 20px rgba(192, 132, 252, 0.45);
    --shadow-glow-teal: 0 0 20px rgba(94, 234, 212, 0.45);
    --shadow-glow-gold: 0 0 20px rgba(252, 211, 77, 0.45);
    --shadow-glow-pink: 0 0 20px rgba(192, 132, 252, 0.35);
}

/* ── Core Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-primary);
    background-color: var(--color-deep-nebula);
    color: var(--color-cloud-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-playful);
    color: var(--color-cloud-white);
    line-height: 1.2;
}
a { color: var(--color-magical-teal); text-decoration: none; transition: var(--transition-smooth); }
a:hover { color: var(--color-stardust-gold); text-shadow: var(--shadow-glow-gold); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-deep-nebula); }
::-webkit-scrollbar-thumb { background: var(--color-cosmic-purple); border-radius: 5px; border: 2px solid var(--color-deep-nebula); }
::-webkit-scrollbar-thumb:hover { background: var(--color-magical-teal); }

/* ── Layout Utilities ── */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-glow { text-shadow: var(--shadow-glow-purple); }
.highlight-gold { color: var(--color-stardust-gold); text-shadow: var(--shadow-glow-gold); }
.highlight-pink { color: var(--color-cosmic-purple); text-shadow: var(--shadow-glow-pink); }
.highlight-teal { color: var(--color-magical-teal); text-shadow: var(--shadow-glow-teal); }

/* ── Animations ── */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes loadProgress { to { width: 100%; } }
@keyframes bookFloatFore {
    0%, 100% { transform: rotate(-3deg) translateY(0px); }
    50% { transform: rotate(-1deg) translateY(-10px); }
}
@keyframes bookBobLeft {
    0%, 100% { transform: translate(-90px, 10px) rotate(-12deg); }
    50% { transform: translate(-90px, 4px) rotate(-10deg); }
}
@keyframes bookBobRight {
    0%, 100% { transform: translate(90px, -15px) rotate(10deg); }
    50% { transform: translate(90px, -21px) rotate(12deg); }
}
@keyframes borderGlow {
    0%, 100% { border-color: rgba(192, 132, 252, 0.2); }
    50% { border-color: rgba(192, 132, 252, 0.5); }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 50px;
    font-family: var(--font-playful); font-weight: 700; font-size: 1.1rem;
    cursor: pointer; border: none; transition: var(--transition-smooth);
    gap: 8px; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--color-stardust-gold), #e0b400); color: #4a3300; }
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-glow-gold); color: #312200; text-shadow: none; }
.btn-secondary {
    background: rgba(255, 255, 255, 0.08); color: var(--color-cloud-white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--color-cloud-white); transform: translateY(-2px); }
.btn-teal-border { border: 2px solid var(--color-magical-teal); color: var(--color-magical-teal); background: transparent; }
.btn-teal-border:hover { background: rgba(94, 234, 212, 0.1); box-shadow: var(--shadow-glow-teal); transform: translateY(-2px); }
.btn-pink-border { border: 2px solid var(--color-cosmic-purple); color: var(--color-cosmic-purple); background: transparent; }
.btn-pink-border:hover { background: rgba(192, 132, 252, 0.1); box-shadow: var(--shadow-glow-pink); transform: translateY(-2px); }
.btn-amazon {
    background: linear-gradient(135deg, #ff9900, #e08800); color: #1a1a1a;
    font-weight: 700;
}
.btn-amazon:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 20px rgba(255, 153, 0, 0.5); color: #000; text-shadow: none; }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }

/* ── Preloader ── */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-deep-nebula); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.preloader-content { text-align: center; }
.preloader-icon { font-size: 5rem; animation: float 3s ease-in-out infinite; margin-bottom: 20px; }
.preloader-text { margin-bottom: 20px; font-size: 1.8rem; }
.preloader-bar { width: 250px; height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; margin: 0 auto; overflow: hidden; }
.preloader-fill { width: 0%; height: 100%; background: linear-gradient(90deg, var(--color-cosmic-purple), var(--color-magical-teal)); border-radius: 10px; animation: loadProgress 2s ease-in-out forwards; }

/* ── Glassmorphic Header ── */
.glassmorphic-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(14, 11, 46, 0.82); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192, 132, 252, 0.25);
    transition: var(--transition-smooth);
}
.header-container {
    max-width: 1200px; margin: 0 auto; padding: 15px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.site-branding .logo-link {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-playful); font-size: 1.5rem; font-weight: 700;
    color: var(--color-cloud-white);
}
.site-branding .logo-link:hover { color: var(--color-stardust-gold); text-shadow: var(--shadow-glow-gold); }
.logo-emoji { font-size: 1.8rem; }
.logo-text span { color: var(--color-stardust-gold); }

.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; list-style: none; gap: 30px; }
.main-navigation a {
    font-family: var(--font-playful); font-size: 1.05rem;
    color: var(--color-cloud-white); font-weight: 600;
}
.main-navigation a:hover { color: var(--color-magical-teal); }
.menu-toggle {
    display: none !important; background: transparent; border: none;
    color: var(--color-cloud-white); font-size: 1.5rem; cursor: pointer; margin-right: 15px;
}

@media screen and (max-width: 900px) {
    .menu-toggle { display: block !important; }
    .main-navigation { flex-direction: row-reverse; }
    .main-navigation ul {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(14, 11, 46, 0.95); padding: 20px;
        backdrop-filter: blur(12px);
    }
    .main-navigation.toggled ul { display: flex; }
}

/* ── Wave Divider ── */
.wave-divider { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { position: relative; display: block; width: calc(134% + 1.3px); height: 60px; transform: rotateY(180deg); }
.wave-divider .shape-fill { fill: var(--color-dark-panels); }
.wave-divider-flip .shape-fill { fill: var(--color-deep-nebula); }

/* ── Section Header ── */
.section-header { margin-bottom: 60px; }
.section-badge {
    display: inline-block; padding: 6px 16px;
    background: rgba(192, 132, 252, 0.25); border: 1px solid var(--color-cosmic-purple);
    border-radius: 20px; font-size: 0.85rem; font-weight: 700;
    color: var(--color-magical-teal); margin-bottom: 15px;
}
.section-badge.gold { background: rgba(252, 211, 77, 0.15); border-color: var(--color-stardust-gold); color: var(--color-stardust-gold); }
.section-badge.teal { background: rgba(94, 234, 212, 0.15); border-color: var(--color-magical-teal); }
.section-badge.pink { background: rgba(192, 132, 252, 0.15); border-color: var(--color-cosmic-purple); color: var(--color-cosmic-purple); }
.section-title { font-size: 2.8rem; margin-bottom: 15px; }
.section-subtitle { font-size: 1.15rem; color: rgba(255, 255, 255, 0.7); }

/* ── Hero Section ── */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.4), var(--color-deep-nebula));
    position: relative;
    overflow: hidden;
}
.hero-with-bg {
    background: none;
}
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    z-index: 0;
}
.hero-bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.55), rgba(56, 42, 92, 0.85));
    z-index: 1;
}
.hero-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 50px;
    position: relative; z-index: 2;
}
.hero-content { flex: 1.2; }
.hero-badge {
    display: inline-block; padding: 6px 14px;
    background: rgba(192, 132, 252, 0.25); border: 1px solid var(--color-cosmic-purple);
    border-radius: 20px; font-size: 0.85rem; font-weight: 700;
    color: var(--color-magical-teal); margin-bottom: 20px;
    backdrop-filter: blur(8px);
}
.hero-title { font-size: 3.5rem; margin-bottom: 20px; }
.hero-description { font-size: 1.2rem; margin-bottom: 35px; color: rgba(255, 255, 255, 0.8); }
.hero-actions { display: flex; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 30px; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); flex-wrap: wrap; }
.hero-trust i { color: var(--color-magical-teal); }
.hero-visual { flex: 0.8; display: flex; justify-content: center; }

/* ── Page Header with Background ── */
.page-header-with-bg {
    position: relative; overflow: hidden;
}
.page-header-with-bg .section-container {
    position: relative; z-index: 2;
}

/* ── 3D Book Stack ── */
.book-stack { position: relative; width: 440px; height: 400px; display: flex; align-items: center; justify-content: center; }
.book-3d {
    position: absolute; width: 220px;
    background: linear-gradient(135deg, #1f185c, #090622);
    border-radius: 16px;
    box-shadow: var(--shadow-glow-purple), 10px 10px 30px rgba(0,0,0,0.5);
    overflow: hidden; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.book-3d .book-cover { width: 100%; display: block; line-height: 0; }
.book-3d .book-cover img { width: 100%; height: auto; display: block; border-radius: inherit; }
.book-3d-fore { z-index: 10; width: 240px; transform: rotate(-3deg); box-shadow: var(--shadow-glow-purple), 15px 15px 35px rgba(0,0,0,0.6); animation: bookFloatFore 5s ease-in-out infinite; }
.book-3d-right { z-index: 5; width: 200px; transform: translate(90px, -15px) rotate(10deg); opacity: 0.88; animation: bookBobRight 4s ease-in-out infinite 0.5s; }
.book-3d-left { z-index: 4; width: 200px; transform: translate(-90px, 10px) rotate(-12deg); opacity: 0.78; animation: bookBobLeft 4.5s ease-in-out infinite 1s; }
.book-3d:hover { z-index: 25 !important; opacity: 1 !important; box-shadow: var(--shadow-glow-teal), 20px 20px 45px rgba(0,0,0,0.7); }
.book-3d-fore:hover { transform: rotate(0deg) scale(1.08); }
.book-3d-right:hover { transform: translate(70px, -25px) rotate(5deg) scale(1.05); }
.book-3d-left:hover { transform: translate(-70px, 0px) rotate(-6deg) scale(1.05); }
.book-hover-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(14, 11, 46, 0.92); padding: 10px 20px; border-radius: 30px;
    border: 1px solid var(--color-cosmic-purple);
    font-family: var(--font-playful); font-weight: 700; font-size: 0.95rem;
    color: white; box-shadow: var(--shadow-glow-purple);
    opacity: 0; transition: all 0.3s ease; z-index: 5; pointer-events: none;
}
.book-3d:hover .book-hover-badge { opacity: 1; }
.floating-sparkles { position: absolute; width: 100%; height: 100%; pointer-events: none; }
.sparkle { position: absolute; font-size: 1.5rem; animation: sparkle 2s infinite ease-in-out; }
.sparkle.s1 { top: -20px; left: 10%; animation-delay: 0.2s; }
.sparkle.s2 { bottom: 40px; right: -10px; animation-delay: 0.7s; }
.sparkle.s3 { top: 40%; right: 20%; animation-delay: 1.2s; }

/* ── Featured Books Grid ── */
.featured-section { background: var(--color-dark-panels); padding: 80px 0; position: relative; }
.books-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.book-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 24px; overflow: hidden; transition: var(--transition-smooth);
    display: flex; flex-direction: column;
}
.book-card:hover { transform: translateY(-8px); border-color: var(--color-cosmic-purple); box-shadow: var(--shadow-glow-purple); background: rgba(255, 255, 255, 0.05); }
.book-card-cover {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #1f185c, #090622);
    aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
}
.book-card-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.book-card:hover .book-card-cover img { transform: scale(1.08); }

/* Book Card Badges */
.book-card-badge {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--color-stardust-gold), #e0b400);
    color: #4a3300; padding: 5px 12px; border-radius: 20px;
    font-family: var(--font-playful); font-weight: 700; font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
}
.book-card-badge.badge-ku {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
}

/* Feature Tags */
.book-card-features {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.feature-tag {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    background: rgba(94, 234, 212, 0.1); border: 1px solid rgba(94, 234, 212, 0.3);
    font-size: 0.75rem; color: var(--color-magical-teal); font-weight: 600;
}

.book-card-cover .placeholder-cover {
    font-size: 6rem; display: flex; flex-direction: column;
    align-items: center; justify-content: center; height: 100%; gap: 10px;
}
.book-card-cover .placeholder-cover .cover-title-ph {
    font-family: var(--font-playful); font-size: 1.1rem; font-weight: 700;
    text-align: center; padding: 0 20px; line-height: 1.3;
}
.book-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.book-card-title { font-size: 1.3rem; margin-bottom: 8px; }
.book-card-series { font-size: 0.85rem; color: var(--color-cosmic-purple); margin-bottom: 12px; font-weight: 600; }
.book-card-desc { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; flex: 1; }
.book-card-excerpt { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; flex: 1; }
.book-card-meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; }
.book-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Series Banner ── */
.series-banner {
    display: flex; align-items: center; gap: 20px;
    background: linear-gradient(135deg, rgba(192, 132, 252, 0.15), rgba(94, 234, 212, 0.08));
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 20px; padding: 20px 28px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}
.series-banner:hover { border-color: var(--color-cosmic-purple); box-shadow: var(--shadow-glow-purple); }
.series-banner-icon { font-size: 2.5rem; flex-shrink: 0; }
.series-banner-text { flex: 1; }
.series-banner-text h3 { color: var(--color-stardust-gold); }

/* ── About Author Section ── */
.about-author-section {
    padding: 100px 0;
    background: radial-gradient(circle at 10% 70%, var(--color-mid-bg) 0%, var(--color-deep-nebula) 60%);
    position: relative;
}
.about-author-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center;
}
.author-portrait {
    position: relative; text-align: center;
}
.author-avatar {
    width: 280px; height: 280px; border-radius: 50%; margin: 0 auto;
    background: linear-gradient(135deg, var(--color-cosmic-purple), var(--color-magical-teal));
    display: flex; align-items: center; justify-content: center;
    font-size: 8rem; animation: floatSlow 4s ease-in-out infinite;
    box-shadow: var(--shadow-glow-purple);
    overflow: hidden;
    position: relative;
}
.author-portrait-img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%;
}
.author-portrait .sparkle { position: absolute; }
.author-portrait .sparkle.s1 { top: 10px; left: 20%; }
.author-portrait .sparkle.s2 { bottom: 20px; right: 10%; }
.author-portrait .sparkle.s3 { top: 40%; right: 0; }
.author-bio h3 { font-size: 2rem; margin-bottom: 8px; }
.author-bio .pen-name { color: var(--color-cosmic-purple); font-size: 1.1rem; margin-bottom: 20px; font-family: var(--font-playful); }
.author-bio p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 16px; }
.author-bio .signature { font-family: var(--font-playful); font-size: 1.4rem; color: var(--color-stardust-gold); margin-top: 20px; }
.author-cta { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ── Magical Divider Section ── */
.magical-divider-section {
    position: relative; padding: 100px 0; overflow: hidden;
    text-align: center;
}
.magical-tree-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0.4;
}
.magical-tree-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(56, 42, 92, 0.6), rgba(20, 17, 59, 0.9));
}
.magical-divider-content {
    position: relative; z-index: 2;
}

/* ── Stats / Highlights ── */
.stats-row { display: flex; gap: 40px; margin: 30px 0; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-playful); font-size: 2.5rem; font-weight: 700; color: var(--color-stardust-gold); }
.stat-label { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

/* ── Guide Cards (for Resources page) ── */
.guides-section { background: var(--color-dark-panels); padding: 80px 0; position: relative; }
.guide-tabs { display: flex; gap: 15px; margin-bottom: 40px; justify-content: center; flex-wrap: wrap; }
.guide-tab-btn {
    padding: 12px 24px; border-radius: 30px; border: 2px solid rgba(192, 132, 252, 0.3);
    background: transparent; color: var(--color-cloud-white);
    font-family: var(--font-playful); font-weight: 600; font-size: 1rem;
    cursor: pointer; transition: var(--transition-smooth);
}
.guide-tab-btn.active, .guide-tab-btn:hover {
    background: rgba(192, 132, 252, 0.25); border-color: var(--color-cosmic-purple);
    box-shadow: var(--shadow-glow-purple);
}
.guide-tab-content { display: none; }
.guide-tab-content.active { display: block; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.guide-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 24px; padding: 35px 28px; transition: var(--transition-smooth);
    position: relative; overflow: hidden;
}
.guide-card:hover { transform: translateY(-8px); border-color: var(--color-cosmic-purple); box-shadow: var(--shadow-glow-purple); background: rgba(255, 255, 255, 0.05); }
.guide-card-icon { font-size: 2.5rem; margin-bottom: 18px; }
.guide-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.guide-card p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 15px; }
.guide-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: rgba(94, 234, 212, 0.15); border: 1px solid var(--color-magical-teal);
    color: var(--color-magical-teal); font-size: 0.8rem; font-weight: 600;
}

/* ── Resource Cards ── */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.resource-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 24px; padding: 35px 28px; transition: var(--transition-smooth);
    text-align: center;
}
.resource-card:hover { transform: translateY(-8px); border-color: var(--color-magical-teal); box-shadow: var(--shadow-glow-teal); }
.resource-icon { font-size: 3rem; margin-bottom: 15px; }
.resource-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.resource-card p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; }

/* ── Blog / News Cards ── */
.news-section { padding: 80px 0; background: var(--color-deep-nebula); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.news-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 24px; overflow: hidden; transition: var(--transition-smooth);
}
.news-card:hover { transform: translateY(-8px); border-color: var(--color-cosmic-purple); box-shadow: var(--shadow-glow-purple); }
.news-card-media {
    height: 220px; background: linear-gradient(135deg, #1f185c, #090622);
    display: flex; align-items: center; justify-content: center; font-size: 4rem;
    overflow: hidden;
}
.news-card-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card:hover .news-card-media img { transform: scale(1.06); }
.news-card-body { padding: 24px; }
.news-card-date { font-size: 0.85rem; color: var(--color-magical-teal); margin-bottom: 8px; font-weight: 600; }
.news-card-title { font-size: 1.2rem; margin-bottom: 10px; }
.news-card-title a { color: var(--color-cloud-white); }
.news-card-title a:hover { color: var(--color-stardust-gold); }
.news-card-excerpt { font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 15px; }
.news-card-link { font-family: var(--font-playful); font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }

/* ── Contact Form ── */
.contact-section { padding: 100px 0 80px; position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 24px; padding: 40px;
}
.contact-info-card h3 { font-size: 1.5rem; margin-bottom: 20px; }
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.contact-item-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item-text { color: rgba(255, 255, 255, 0.8); }
.contact-item-text strong { display: block; margin-bottom: 4px; color: var(--color-cloud-white); }

.contact-form-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 24px; padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-family: var(--font-playful); font-weight: 600;
    margin-bottom: 8px; color: var(--color-cloud-white);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border-radius: 12px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(192, 132, 252, 0.3);
    color: var(--color-cloud-white); font-family: var(--font-primary); font-size: 1rem;
    transition: var(--transition-smooth);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--color-magical-teal);
    box-shadow: 0 0 10px rgba(94, 234, 212, 0.2);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

/* ── Newsletter Section ── */
.newsletter-section {
    padding: 80px 0;
    background: radial-gradient(circle at 80% 50%, var(--color-mid-bg) 0%, var(--color-deep-nebula) 60%);
    position: relative;
}
.newsletter-box {
    max-width: 600px; margin: 0 auto; text-align: center;
}
.newsletter-box h2 { font-size: 2.2rem; margin-bottom: 15px; }
.newsletter-box p { color: rgba(255, 255, 255, 0.7); margin-bottom: 25px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.newsletter-form input {
    flex: 1; min-width: 250px; padding: 14px 20px; border-radius: 50px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(192, 132, 252, 0.3);
    color: var(--color-cloud-white); font-size: 1rem; font-family: var(--font-primary);
}
.newsletter-form input:focus { outline: none; border-color: var(--color-magical-teal); box-shadow: 0 0 10px rgba(94, 234, 212, 0.2); }
.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.35); }

/* ── Footer ── */
.site-footer {
    background: var(--color-dark-panels); border-top: 1px solid rgba(192, 132, 252, 0.2);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo-link { font-size: 1.3rem; margin-bottom: 12px; display: inline-flex; }
.footer-brand p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); line-height: 1.6; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 18px; color: var(--color-stardust-gold); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: 0.95rem; color: rgba(255, 255, 255, 0.6); }
.footer-col a:hover { color: var(--color-magical-teal); }
.footer-bottom {
    border-top: 1px solid rgba(192, 132, 252, 0.15); padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: rgba(255, 255, 255, 0.5); flex-wrap: wrap; gap: 10px;
}

/* ── Page Header (internal pages) ── */
.page-header {
    padding: 140px 0 60px; text-align: center;
    background: linear-gradient(to bottom, rgba(17, 24, 39, 0.4), var(--color-deep-nebula));
    position: relative;
    overflow: hidden;
}
.page-header h1 { font-size: 3rem; margin-bottom: 15px; }
.page-header p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.7); max-width: 600px; margin: 0 auto; }

/* ── Privacy Policy / Legal ── */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { font-size: 1.6rem; margin: 30px 0 12px; color: var(--color-stardust-gold); }
.legal-content h3 { font-size: 1.3rem; margin: 20px 0 10px; }
.legal-content p { color: rgba(255, 255, 255, 0.8); margin-bottom: 12px; }
.legal-content ul { padding-left: 24px; margin-bottom: 16px; list-style: disc; }
.legal-content li { margin-bottom: 8px; color: rgba(255, 255, 255, 0.8); }
.legal-content a { color: var(--color-magical-teal); }
.legal-date { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); margin-bottom: 30px; }

/* ── Filter Buttons (Books page) ── */
.filter-bar { display: flex; gap: 12px; margin-bottom: 40px; justify-content: center; flex-wrap: wrap; }
.filter-btn {
    padding: 10px 22px; border-radius: 30px;
    border: 2px solid rgba(192, 132, 252, 0.3); background: transparent;
    color: var(--color-cloud-white); font-family: var(--font-playful); font-weight: 600;
    font-size: 0.95rem; cursor: pointer; transition: var(--transition-smooth);
}
.filter-btn.active, .filter-btn:hover {
    background: rgba(192, 132, 252, 0.25); border-color: var(--color-cosmic-purple);
    box-shadow: var(--shadow-glow-purple);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { order: 1; }
    .hero-visual { order: 2; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .about-author-grid { grid-template-columns: 1fr; text-align: center; }
    .stats-row { justify-content: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .series-banner { flex-direction: column; text-align: center; }
}

@keyframes bookBobLeft768 {
    0%, 100% { transform: translate(-60px, 8px) rotate(-12deg); }
    50% { transform: translate(-60px, 2px) rotate(-10deg); }
}
@keyframes bookBobRight768 {
    0%, 100% { transform: translate(60px, -12px) rotate(10deg); }
    50% { transform: translate(60px, -18px) rotate(12deg); }
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero-title { font-size: 2.2rem; }
    .hero { padding: 130px 0 80px; }
    .page-header h1 { font-size: 2.2rem; }
    .book-stack { width: 300px; height: 300px; }
    .book-3d-fore { width: 180px; }
    .book-3d-right, .book-3d-left { width: 150px; }
    .book-3d-left { animation-name: bookBobLeft768; }
    .book-3d-right { animation-name: bookBobRight768; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .news-card-media { height: 180px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    .btn { padding: 12px 22px; font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .stats-row { flex-direction: column; align-items: center; }
    .author-avatar { width: 200px; height: 200px; }
    .book-card-features { justify-content: center; }
    .author-cta { justify-content: center; }
}
