/* ─── SCROLL REVEAL SYSTEM ─── */
.cpb-js-ready .cpb-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cpb-reveal.cpb-revealed {
    opacity: 1;
    transform: translateY(0);
}

.cpb-js-ready .cpb-anim-fade-in.cpb-reveal {
    transform: none;
}

.cpb-js-ready .cpb-anim-fade-left.cpb-reveal {
    transform: translateX(-50px);
}

.cpb-anim-fade-left.cpb-revealed {
    transform: translateX(0);
}

.cpb-js-ready .cpb-anim-fade-right.cpb-reveal {
    transform: translateX(50px);
}

.cpb-anim-fade-right.cpb-revealed {
    transform: translateX(0);
}

.cpb-js-ready .cpb-anim-zoom-in.cpb-reveal {
    transform: scale(0.85);
}

.cpb-anim-zoom-in.cpb-revealed {
    transform: scale(1);
}

/* ─── KEYFRAME ANIMATIONS ─── */
@keyframes cpbFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-25px) rotate(1deg); }
}

@keyframes cpbFloatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes cpbFloatReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(15px) rotate(-3deg); }
}

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

@keyframes cpbPulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 57, 147, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(37, 57, 147, 0); }
}

@keyframes cpbShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

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

@keyframes cpbBounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

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

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

@keyframes cpbParticleFloat {
    0% { transform: translateY(0) translateX(0) rotate(0deg); }
    25% { transform: translateY(-30px) translateX(15px) rotate(90deg); }
    50% { transform: translateY(-15px) translateX(-10px) rotate(180deg); }
    75% { transform: translateY(-40px) translateX(20px) rotate(270deg); }
    100% { transform: translateY(0) translateX(0) rotate(360deg); }
}

@keyframes cpbGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes cpbTypewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes cpbBlink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--cpb-white); }
}

@keyframes cpbWave {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    75% { transform: translateY(8px); }
}

@keyframes cpbMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes cpbDriftUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

@keyframes cpbMorphBlob {
    0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    25% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; }
    75% { border-radius: 30% 70% 60% 40% / 50% 50% 50% 50%; }
}

/* ─── FLOATING ELEMENTS ─── */
.cpb-float {
    animation: cpbFloat 6s ease-in-out infinite;
}

.cpb-float-slow {
    animation: cpbFloatSlow 8s ease-in-out infinite;
}

.cpb-float-reverse {
    animation: cpbFloatReverse 7s ease-in-out infinite;
}

.cpb-float-delay-1 { animation-delay: 0.5s; }
.cpb-float-delay-2 { animation-delay: 1s; }
.cpb-float-delay-3 { animation-delay: 1.5s; }
.cpb-float-delay-4 { animation-delay: 2s; }

/* ─── PARTICLE SYSTEM ─── */
.cpb-particles {
    position: relative;
    overflow: hidden;
}

.cpb-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--cpb-white);
    animation: cpbParticleFloat 12s ease-in-out infinite;
    pointer-events: none;
}

/* ─── HERO FLOATING BOXES ─── */
.cpb-hero-floating-boxes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cpb-floating-box {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(2px);
}

.cpb-floating-box--1 {
    width: 80px; height: 80px;
    top: 10%; right: 8%;
    animation: cpbFloat 8s ease-in-out infinite;
}

.cpb-floating-box--2 {
    width: 120px; height: 90px;
    top: 60%; right: 20%;
    animation: cpbFloatSlow 10s ease-in-out infinite;
    animation-delay: 1s;
}

.cpb-floating-box--3 {
    width: 60px; height: 60px;
    top: 30%; left: 5%;
    animation: cpbFloatReverse 9s ease-in-out infinite;
    animation-delay: 2s;
}

.cpb-floating-box--4 {
    width: 100px; height: 70px;
    bottom: 15%; left: 12%;
    animation: cpbFloat 11s ease-in-out infinite;
    animation-delay: 0.5s;
}

.cpb-floating-box--5 {
    width: 50px; height: 50px;
    top: 15%; right: 35%;
    animation: cpbFloatSlow 7s ease-in-out infinite;
    animation-delay: 3s;
    transform: rotate(15deg);
}

.cpb-floating-box--6 {
    width: 70px; height: 70px;
    bottom: 25%; right: 10%;
    animation: cpbFloatReverse 8s ease-in-out infinite;
    animation-delay: 1.5s;
    transform: rotate(-10deg);
}

/* ─── MORPHING BLOB BACKGROUNDS ─── */
.cpb-blob {
    position: absolute;
    background: rgba(255, 255, 255, 0.04);
    animation: cpbMorphBlob 15s ease-in-out infinite;
    pointer-events: none;
}

.cpb-blob--1 {
    width: 400px; height: 400px;
    top: -100px; right: -100px;
    animation-delay: 0s;
}

.cpb-blob--2 {
    width: 300px; height: 300px;
    bottom: -80px; left: -80px;
    animation-delay: 5s;
}

/* ─── GRADIENT ANIMATION ─── */
.cpb-gradient-animated {
    background-size: 200% 200%;
    animation: cpbGradientShift 8s ease infinite;
}

/* ─── SHIMMER EFFECT ─── */
.cpb-shimmer {
    position: relative;
    overflow: hidden;
}

.cpb-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: cpbShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

/* ─── PULSE GLOW ON BUTTONS ─── */
.cpb-btn-pulse {
    animation: cpbPulseGlow 2s ease-in-out infinite;
}

/* ─── TILT CARD SUPPORT ─── */
.cpb-tilt {
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* ─── MAGNETIC BUTTON ─── */
.cpb-btn-magnetic {
    transition: transform 0.2s ease-out;
    will-change: transform;
}

/* ─── PROGRESS BAR ANIMATION ─── */
.cpb-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--cpb-border);
    border-radius: 4px;
    overflow: hidden;
}

.cpb-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--cpb-primary), var(--cpb-accent));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── TEXT REVEAL ─── */
.cpb-text-reveal {
    overflow: hidden;
}

.cpb-text-reveal > * {
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cpb-text-revealed > * {
    transform: translateY(0);
}

/* ─── MARQUEE ─── */
.cpb-marquee {
    overflow: hidden;
    white-space: nowrap;
}

.cpb-marquee-track {
    display: inline-flex;
    animation: cpbMarquee 30s linear infinite;
}

.cpb-marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cpb-text-light);
    white-space: nowrap;
}

.cpb-marquee-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--cpb-primary);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

/* ─── HOVER LIFT ─── */
.cpb-hover-lift {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cpb-hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ─── GLOW RING ─── */
.cpb-glow-ring {
    position: relative;
}

.cpb-glow-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--cpb-primary), var(--cpb-accent), var(--cpb-primary));
    background-size: 200% 200%;
    animation: cpbGradientShift 3s ease infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cpb-glow-ring:hover::before {
    opacity: 1;
}

/* ─── ANIMATED UNDERLINE ─── */
.cpb-link-animated {
    position: relative;
}

.cpb-link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cpb-primary);
    transition: width 0.3s ease;
}

.cpb-link-animated:hover::after {
    width: 100%;
}

/* ─── ENHANCED HERO WITH MOVING OBJECTS ─── */
.cpb-hero {
    position: relative;
    overflow: hidden;
}

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

.cpb-hero-content h1 {
    animation: cpbSlideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cpb-hero-content p {
    animation: cpbSlideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.cpb-hero-buttons {
    animation: cpbSlideInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.cpb-hero-image {
    animation: cpbSlideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* ─── ROTATING DECORATION ─── */
.cpb-rotating-accent {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: cpbRotateSlow 30s linear infinite;
    pointer-events: none;
}

.cpb-rotating-accent--2 {
    width: 200px;
    height: 200px;
    animation-direction: reverse;
    animation-duration: 20s;
}

/* ─── STEP NUMBER PULSE ─── */
.cpb-step-number {
    animation: cpbPulseGlow 3s ease-in-out infinite;
}

/* ─── USP ICON FLOAT ─── */
.cpb-usp-icon {
    animation: cpbFloatSlow 4s ease-in-out infinite;
}

.cpb-usp-item:nth-child(2) .cpb-usp-icon { animation-delay: 0.5s; }
.cpb-usp-item:nth-child(3) .cpb-usp-icon { animation-delay: 1s; }
.cpb-usp-item:nth-child(4) .cpb-usp-icon { animation-delay: 1.5s; }

/* ─── TESTIMONIAL CARD HOVER GLOW ─── */
.cpb-testimonial-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cpb-testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 57, 147, 0.15);
}

/* ─── CATEGORY CARD IMAGE ZOOM ─── */
.cpb-category-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cpb-category-card:hover img {
    transform: scale(1.08);
}

.cpb-category-card {
    overflow: hidden;
}

/* ─── CTA SECTION ANIMATED BACKGROUND ─── */
.cpb-cta {
    position: relative;
    overflow: hidden;
}

.cpb-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: cpbRotateSlow 25s linear infinite;
    pointer-events: none;
}

/* ─── FOOTER SOCIAL ICONS BOUNCE ─── */
.cpb-footer-social a:hover {
    animation: cpbBounceIn 0.5s ease;
}

/* ─── PAGE HEADER GRADIENT ANIMATED ─── */
.cpb-page-header,
.cpb-about-hero,
.cpb-shop-header {
    background-size: 200% 200%;
    animation: cpbGradientShift 10s ease infinite;
}

/* ─── SECTION DIVIDER WAVE ─── */
.cpb-wave-divider {
    position: relative;
    margin-top: -1px;
}

.cpb-wave-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ─── TRUST COUNTER SECTION ─── */
.cpb-trust-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.cpb-trust-counter-item {
    padding: 30px 20px;
}

.cpb-trust-counter-item .cpb-counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--cpb-primary);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.cpb-trust-counter-item span:last-child {
    font-size: 0.9rem;
    color: var(--cpb-text-light);
}

/* ─── SCROLL INDICATOR ─── */
.cpb-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.cpb-scroll-indicator-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 13px;
    position: relative;
}

.cpb-scroll-indicator-mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: cpbWave 1.5s ease-in-out infinite;
}

/* ─── REDUCE MOTION ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .cpb-reveal {
        opacity: 1;
        transform: none;
    }

    .cpb-floating-box,
    .cpb-particle,
    .cpb-blob {
        display: none;
    }
}

@media (max-width: 768px) {
    .cpb-floating-box { display: none; }
    .cpb-blob { display: none; }
    .cpb-trust-counter-grid { grid-template-columns: repeat(2, 1fr); }
}
