/* ============================================
   CHILDREN'S BOOKNEST - OUR STORY PAGE
   Redesigned to match Index design system
   ============================================ */

/* ============================================
   GPU LAYER OPTIMIZATIONS
   ============================================ */
.page-hero,
.origin,
.mission,
.values,
.team,
.cta,
.timeline-section {
    contain: layout paint;
}

.cbn-particle,
.cbn-bird,
.cbn-cloud,
.blob,
.float-particle,
.origin-blob,
.mission-blob,
.values-blob,
.team-blob,
.cta-mesh-blob,
.cta-float,
.cta-sparkle,
.mission-icon-glow,
.value-icon-glow,
.timeline-dot,
.origin-image,
.mission-card,
.value-card,
.team-card,
.timeline-content {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   PAGE HERO - Magical Storybook Hero
   ============================================ */
.page-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: var(--space-8) 0 var(--space-6);
    background: linear-gradient(135deg,
            rgba(174, 226, 255, 0.4) 0%,
            rgba(159, 161, 255, 0.3) 50%,
            rgba(217, 249, 223, 0.4) 100%);
}

/* Background image layer */
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 248, 240, 0.6) 0%,
            rgba(255, 235, 205, 0.5) 50%,
            rgba(255, 228, 196, 0.4) 100%);
    z-index: 1;
}

/* Floating Particles - CSS-only via box-shadow technique */
.page-hero::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFD700;
    top: 20%;
    left: 10%;
    opacity: 0.6;
    box-shadow:
        80px 120px 0 0 #FF6B9D,
        180px 60px 0 0 #4ECDC4,
        300px 150px 0 0 #FFE66D,
        450px 80px 0 0 #FF8C42,
        550px 200px 0 0 #C7F464,
        50px 250px 0 0 #FF6B6B,
        400px 280px 0 0 #4ECDC4,
        250px 30px 0 0 #FFD93D,
        500px 120px 0 0 #FF8C94;
    animation: heroParticleFloat 10s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes heroParticleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 0.8;
    }
}

/* Floating Clouds */
.page-hero .cbn-cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    pointer-events: none;
    z-index: 1;
    animation: cloudDrift 30s linear infinite;
}

.page-hero .cbn-cloud::before,
.page-hero .cbn-cloud::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.page-hero .cbn-cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -150px;
    animation-duration: 30s;
}

.page-hero .cbn-cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
}

.page-hero .cbn-cloud-1::after {
    width: 60px;
    height: 40px;
    top: -15px;
    left: 40px;
}

.page-hero .cbn-cloud-2 {
    width: 80px;
    height: 35px;
    top: 45%;
    left: -150px;
    animation-duration: 35s;
    animation-delay: 5s;
}

.page-hero .cbn-cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.page-hero .cbn-cloud-2::after {
    width: 50px;
    height: 35px;
    top: -10px;
    left: 35px;
}

.page-hero .cbn-cloud-3 {
    width: 120px;
    height: 45px;
    top: 10%;
    left: -150px;
    animation-duration: 28s;
    animation-delay: 10s;
}

.page-hero .cbn-cloud-3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 20px;
}

.page-hero .cbn-cloud-3::after {
    width: 70px;
    height: 45px;
    top: -20px;
    left: 50px;
}

@keyframes cloudDrift {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(100vw + 300px));
    }
}

/* Flying Birds */
.page-hero .cbn-birds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.page-hero .cbn-bird {
    position: absolute;
    opacity: 0.8;
    animation: birdFly 20s linear infinite;
}

.page-hero .cbn-bird svg {
    width: 40px;
    height: 40px;
    fill: #5D4E37;
}

.page-hero .cbn-bird:nth-child(1) {
    top: 15%;
    left: -50px;
    animation-duration: 18s;
}

.page-hero .cbn-bird:nth-child(1) svg {
    width: 35px;
    height: 35px;
    fill: #8B7355;
}

.page-hero .cbn-bird:nth-child(2) {
    top: 25%;
    left: -50px;
    animation-duration: 22s;
    animation-delay: 3s;
}

.page-hero .cbn-bird:nth-child(2) svg {
    width: 30px;
    height: 30px;
    fill: #A0522D;
}

.page-hero .cbn-bird:nth-child(3) {
    top: 10%;
    left: -50px;
    animation-duration: 25s;
    animation-delay: 7s;
}

.page-hero .cbn-bird:nth-child(3) svg {
    width: 45px;
    height: 45px;
    fill: #6B4423;
}

.page-hero .cbn-bird:nth-child(4) {
    top: 35%;
    left: -50px;
    animation-duration: 20s;
    animation-delay: 12s;
}

.page-hero .cbn-bird:nth-child(4) svg {
    width: 32px;
    height: 32px;
    fill: #8B6914;
}

.page-hero .cbn-bird:nth-child(5) {
    top: 20%;
    right: -50px;
    animation-name: birdFlyReverse;
    animation-duration: 23s;
    animation-delay: 5s;
}

.page-hero .cbn-bird:nth-child(5) svg {
    width: 38px;
    height: 38px;
    fill: #5D4E37;
    transform: scaleX(-1);
}

@keyframes birdFly {
    0% {
        transform: translateX(0) translateY(0);
    }

    25% {
        transform: translateX(30vw) translateY(-10px);
    }

    50% {
        transform: translateX(60vw) translateY(5px);
    }

    75% {
        transform: translateX(90vw) translateY(-5px);
    }

    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0);
    }
}

@keyframes birdFlyReverse {
    0% {
        transform: translateX(0) translateY(0) scaleX(-1);
    }

    25% {
        transform: translateX(-30vw) translateY(-10px) scaleX(-1);
    }

    50% {
        transform: translateX(-60vw) translateY(5px) scaleX(-1);
    }

    75% {
        transform: translateX(-90vw) translateY(-5px) scaleX(-1);
    }

    100% {
        transform: translateX(calc(-100vw - 100px)) translateY(0) scaleX(-1);
    }
}

/* Background Blobs */
.page-hero .hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.page-hero .hero-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(159, 161, 255, 0.3), transparent 70%);
    top: -200px;
    right: -100px;
    animation: blobPulse 10s ease-in-out infinite;
}

.page-hero .hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(174, 226, 255, 0.25), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: blobPulse 12s ease-in-out infinite 3s;
}

.page-hero .hero-blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(217, 249, 223, 0.2), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobPulse 8s ease-in-out infinite 6s;
}

@keyframes blobPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* Hero Content */
.page-hero .container {
    position: relative;
    z-index: 5;
}

.page-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(159, 161, 255, 0.15), rgba(174, 226, 255, 0.1));
    border: 1px solid rgba(159, 161, 255, 0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-3);
    animation: fadeInUp 0.6s ease-out;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 64px;
    line-height: 1.1;
    color: #1a3c5a;
    margin-bottom: var(--space-3);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.page-subtitle {
    font-size: 20px;
    line-height: 1.7;
    color: #1e4d5c;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   ORIGIN STORY
   ============================================ */
.origin {
    background: var(--color-white);
    position: relative;
}

/* Background blobs */
.origin::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(159, 161, 255, 0.15), transparent 70%);
    top: -100px;
    right: -100px;
    opacity: 0.5;
    pointer-events: none;
    animation: blobPulse 10s ease-in-out infinite;
    z-index: 0;
}

.origin::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(174, 226, 255, 0.12), transparent 70%);
    bottom: -100px;
    left: -100px;
    opacity: 0.5;
    pointer-events: none;
    animation: blobPulse 12s ease-in-out infinite 5s;
    z-index: 0;
}

/* Floating particles */
.origin .origin-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.origin .origin-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: originFloat 12s ease-in-out infinite;
}

.origin .origin-particle:nth-child(1) {
    left: 5%;
    top: 20%;
    background: rgba(159, 161, 255, 0.3);
    animation-delay: 0s;
}

.origin .origin-particle:nth-child(2) {
    left: 15%;
    top: 70%;
    background: rgba(183, 142, 255, 0.25);
    animation-delay: 2s;
}

.origin .origin-particle:nth-child(3) {
    left: 85%;
    top: 30%;
    background: rgba(78, 205, 196, 0.25);
    animation-delay: 4s;
}

.origin .origin-particle:nth-child(4) {
    left: 75%;
    top: 80%;
    background: rgba(217, 249, 223, 0.35);
    animation-delay: 6s;
}

.origin .origin-particle:nth-child(5) {
    left: 50%;
    top: 50%;
    background: rgba(159, 161, 255, 0.2);
    animation-delay: 8s;
}

@keyframes originFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-25px) scale(1.3);
        opacity: 0.6;
    }
}

/* Origin Image */
.origin-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
}

.origin-image img {
    width: 100%;
    height: 800px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.origin-image:hover img {
    transform: scale(1.05);
}

/* Shine sweep effect */
.origin-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 3;
}

.origin-image:hover::after {
    left: 150%;
}

/* Origin Badge */
.origin-badge {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-3);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 4;
    border: 1px solid var(--color-border-light);
    animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

@keyframes badgePop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.badge-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* Origin Content */
.origin-content {
    padding-left: var(--space-4);
    position: relative;
    z-index: 2;
}

.origin-content .section-badge {
    background: var(--color-secondary);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
}

.lead-text {
    font-size: 20px;
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.body-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
}

/* Animated divider */
.origin-content .divider {
    width: 96px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
    margin: var(--space-3) 0 var(--space-4);
    position: relative;
    animation: dividerGrow 0.8s ease-out 0.3s both;
}

.origin-content .divider::after {
    content: '✦';
    position: absolute;
    right: -28px;
    top: -12px;
    font-size: 20px;
    color: var(--color-primary);
    animation: sparkleWiggle 2.5s ease-in-out infinite;
}

@keyframes dividerGrow {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }

    to {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@keyframes sparkleWiggle {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(12deg) scale(1.15);
    }

    75% {
        transform: rotate(-12deg) scale(1.15);
    }
}

.signature {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.signature-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    font-style: italic;
}

.signature-role {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   MISSION & VISION CARDS
   ============================================ */
.mission {
    background: var(--color-bg-warm);
    position: relative;
}

/* Background blobs */
.mission::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(159, 161, 255, 0.15), transparent 70%);
    top: -200px;
    left: -150px;
    opacity: 0.5;
    pointer-events: none;
    animation: blobPulse 10s ease-in-out infinite;
    z-index: 0;
}

.mission::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(217, 249, 223, 0.15), transparent 70%);
    bottom: -150px;
    right: -100px;
    opacity: 0.5;
    pointer-events: none;
    animation: blobPulse 12s ease-in-out infinite 5s;
    z-index: 0;
}

.mission-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    height: 100%;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    z-index: 2;
}

/* Gradient top border using hue variable */
.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            hsl(var(--accent-hue, 25), 80%, 60%),
            hsl(calc(var(--accent-hue, 25) + 40), 75%, 55%));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mission-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(159, 161, 255, 0.1);
}

.mission-card:hover::before {
    transform: scaleX(1);
}

/* Shine sweep */
.mission-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.mission-card:hover::after {
    left: 150%;
}

.mission-card-primary {
    --accent-hue: 250;
}

.mission-card-secondary {
    --accent-hue: 160;
}

.mission-icon {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.mission-card-primary .mission-icon {
    background: linear-gradient(135deg, rgba(159, 161, 255, 0.15), rgba(174, 226, 255, 0.2));
    box-shadow: 0 8px 24px rgba(159, 161, 255, 0.2);
}

.mission-card-secondary .mission-icon {
    background: linear-gradient(135deg, rgba(217, 249, 223, 0.3), rgba(159, 161, 255, 0.1));
    box-shadow: 0 8px 24px rgba(217, 249, 223, 0.3);
}

.mission-card:hover .mission-icon {
    transform: scale(1.15) rotate(-8deg);
}

/* Icon glow */
.mission-icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--accent-hue, 25), 80%, 60%, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: iconPulse 3s ease-in-out infinite;
    z-index: -1;
}

.mission-card:hover .mission-icon-glow {
    opacity: 1;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.mission-title {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: var(--space-3);
    color: var(--color-dark);
    position: relative;
    display: inline-block;
}

.mission-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
            hsl(var(--accent-hue, 25), 80%, 60%),
            hsl(calc(var(--accent-hue, 25) + 30), 75%, 55%));
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mission-card:hover .mission-title::after {
    width: 100%;
}

.mission-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
}

.mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mission-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: var(--space-2);
    font-weight: 500;
}

.mission-list li::before {
    content: '✓';
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(159, 161, 255, 0.3);
}

/* Floating sparkles on cards */
.mission-sparkle {
    position: absolute;
    font-size: 14px;
    color: hsl(var(--accent-hue, 25), 70%, 55%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.mission-sparkle-1 {
    top: 20px;
    right: 20px;
    transform: translateY(10px);
}

.mission-sparkle-2 {
    bottom: 30px;
    left: 20px;
    font-size: 10px;
    transform: translateY(-10px);
}

.mission-card:hover .mission-sparkle {
    opacity: 0.6;
    transform: translateY(0);
}

/* ============================================
   CORE VALUES
   ============================================ */
.values {
    background: var(--color-border);
    position: relative;
}

/* Background blobs via pseudo-elements */
.values::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(159, 161, 255, 0.15), transparent 70%);
    top: -200px;
    right: -150px;
    opacity: 0.5;
    pointer-events: none;
    animation: blobPulse 10s ease-in-out infinite;
    z-index: 0;
}

.values::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(174, 226, 255, 0.12), transparent 70%);
    bottom: -150px;
    left: -100px;
    opacity: 0.5;
    pointer-events: none;
    animation: blobPulse 12s ease-in-out infinite 5s;
    z-index: 0;
}

/* Floating emojis */
.values .values-float {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    pointer-events: none;
    animation: floatDrift 20s ease-in-out infinite;
    z-index: 1;
}

.values .values-float-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.values .values-float-2 {
    top: 20%;
    right: 8%;
    font-size: 1.5rem;
    animation-delay: 5s;
}

.values .values-float-3 {
    bottom: 25%;
    left: 10%;
    font-size: 1.8rem;
    animation-delay: 10s;
}

.values .values-float-4 {
    bottom: 15%;
    right: 12%;
    font-size: 2.2rem;
    animation-delay: 15s;
}

@keyframes floatDrift {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    75% {
        transform: translateY(-25px) rotate(8deg);
    }
}

.value-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: center;
    height: 100%;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    z-index: 2;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            hsl(var(--value-hue, 25), 80%, 60%),
            hsl(calc(var(--value-hue, 25) + 40), 75%, 55%));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.value-card:hover {
    transform: translateY(-16px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(159, 161, 255, 0.1);
}

.value-card:hover::before {
    transform: scaleX(1);
}

/* Shine sweep */
.value-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.value-card:hover::after {
    left: 150%;
}

/* Hue assignments for each value card */
.values .row>.col-md-6:nth-child(1) .value-card {
    --value-hue: 25;
}

.values .row>.col-md-6:nth-child(2) .value-card {
    --value-hue: 140;
}

.values .row>.col-md-6:nth-child(3) .value-card {
    --value-hue: 280;
}

.values .row>.col-md-6:nth-child(4) .value-card {
    --value-hue: 340;
}

.value-icon {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    background: var(--bg, linear-gradient(135deg, #FFF3E0, #FFE0B2));
    overflow: hidden;
}

/* Gradient overlay on icon for consistency */
.value-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.4) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px hsla(var(--value-hue, 25), 70%, 50%, 0.3);
}

/* Icon glow */
.value-icon-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(var(--value-hue, 25), 80%, 60%, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: iconPulse 3s ease-in-out infinite;
    z-index: -1;
}

.value-card:hover .value-icon-glow {
    opacity: 1;
}

.value-title {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: var(--space-2);
    color: var(--color-dark);
    position: relative;
    display: inline-block;
}

.value-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg,
            hsl(var(--value-hue, 25), 80%, 60%),
            hsl(calc(var(--value-hue, 25) + 30), 75%, 55%));
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-card:hover .value-title::after {
    transform: translateX(-50%) scaleX(1);
}

.value-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Sparkles */
.value-sparkle {
    position: absolute;
    font-size: 14px;
    color: hsl(var(--value-hue, 25), 70%, 55%);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.value-sparkle-1 {
    top: 20px;
    right: 20px;
    transform: translateY(10px);
}

.value-sparkle-2 {
    bottom: 30px;
    left: 20px;
    font-size: 10px;
    transform: translateY(-10px);
}

.value-card:hover .value-sparkle {
    opacity: 0.6;
    transform: translateY(0);
}

/* ============================================
   TEAM
   ============================================ */
.team {
    background: url('../children_book_nest_images/The\ Team\ Behind\ the\ Magic.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Background blobs */
.team::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(159, 161, 255, 0.15), transparent 70%);
    top: -150px;
    left: -100px;
    opacity: 0.5;
    pointer-events: none;
    animation: blobPulse 10s ease-in-out infinite;
    z-index: 0;
}

.team::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    background: radial-gradient(circle, rgba(217, 249, 223, 0.15), transparent 70%);
    bottom: -150px;
    right: -100px;
    opacity: 0.5;
    pointer-events: none;
    animation: blobPulse 12s ease-in-out infinite 5s;
    z-index: 0;
}

.team-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    height: 100%;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    z-index: 2;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(159, 161, 255, 0.1);
}

.team-card:hover::before {
    opacity: 1;
}

/* Shine sweep */
.team-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.team-card:hover::after {
    left: 150%;
}

.team-avatar1 {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    background: url('../children_book_nest_images/Sarah\ Mitchell.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}
.team-avatar2 {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    background: url('../children_book_nest_images/James\ Chen.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}
.team-avatar3 {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    background: url('../children_book_nest_images/Emily\ Rodriguez.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}


.team-card:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.team-name {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 4px;
    color: var(--color-dark);
}

.team-role {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-2);
}

.team-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ============================================
   CTA SECTION - Ultra Magical
   ============================================ */
.cta {
    background: url('../children_book_nest_images/Main_CTA_Section.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--space-8) 0;
    animation: ctaGradientShift 12s ease infinite;
}

@keyframes ctaGradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* CTA Card */
.cta-card {
    position: relative;
    background: transparent;
    border-radius: var(--radius-xl);
    padding: var(--space-6) var(--space-5);
    color: var(--color-white);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 2;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: blobPulse 8s ease-in-out infinite;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-white);
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.cta-card .btn-primary {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-card .btn-primary:hover {
    background: var(--color-white);
    color: var(--color-primary-dark);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991.98px) {
    .desktop-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        height: 70px;
    }

    .logo img {
        height: 70px;
    }

    .section {
        padding: var(--space-6) 0;
    }

    .section-title {
        font-size: 36px;
    }

    .page-title {
        font-size: 48px;
    }

    .page-hero {
        min-height: 400px;
        padding: var(--space-6) 0 var(--space-5);
    }

    .origin-content {
        padding-left: 0;
        margin-top: var(--space-4);
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: var(--space-6);
        padding-right: 0;
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
        transform: translate(-50%, -50%);
    }

    .mission-card {
        margin-bottom: var(--space-3);
    }

    .cta-card {
        text-align: center;
    }

    .cta-card .text-lg-end {
        text-align: center !important;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
        margin-bottom: var(--space-4);
    }

    .footer-brand .social-links {
        justify-content: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-column {
        text-align: center;
        margin-bottom: var(--space-4);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
        padding-top: 70px;
    }

    .nav-container {
        padding: 0 var(--space-2);
    }

    .mobile-menu {
        width: 280px;
    }

    .section-title {
        font-size: 28px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-subtitle {
        font-size: 18px;
    }

    .lead-text {
        font-size: 18px;
    }

    .body-text {
        font-size: 16px;
    }

    .mission-title {
        font-size: 24px;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-card {
        padding: var(--space-4) var(--space-3);
    }

    .value-card {
        margin-bottom: var(--space-3);
    }

    .team-card {
        margin-bottom: var(--space-3);
    }

    .modal-container {
        width: 95%;
        padding: var(--space-4);
        border-radius: var(--radius-lg);
        max-height: 85vh;
    }

    .modal-form .grid-2 {
        display: flex !important;
        flex-direction: column;
        gap: var(--space-3) !important;
    }
}

@media (max-width: 576px) {
    .nav-container {
        height: 60px;
    }

    .logo img {
        height: 55px;
    }

    .navbar-toggler {
        padding: 8px;
    }

    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
    }

    .page-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .origin-badge {
        bottom: var(--space-2);
        left: var(--space-2);
        padding: var(--space-1) var(--space-2);
    }

    .badge-number {
        font-size: 22px;
    }

    .timeline-line {
        left: 16px;
    }

    .timeline-dot {
        left: 16px;
        width: 20px;
        height: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding-left: var(--space-5);
    }

    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: var(--space-3);
    }

    .footer-logo .logo-icon {
        width: 150px;
        height: 150px;
        font-size: 20px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-column h4 {
        font-size: 15px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .footer-badges span {
        font-size: 12px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

@media (pointer: coarse) {

    .mobile-toggle,
    .back-to-top,
    .social-links a {
        min-width: 48px;
        min-height: 48px;
    }
}