/* =========================================================================
   effects.css — Premium Animations (GradientText · StarBorder · Gradual Blur · Dock)
   ========================================================================= */

/* ──────────────────────────────────────────────────────────────────────────
   1. GRADIENT TEXT
   ────────────────────────────────────────────────────────────────────────── */
.gradient-text {
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientSlide 8s ease-in-out infinite alternate;
    display: inline-block;
}

/* Hero headline — teal → sky → white → teal */
.gradient-text-hero {
    background-image: linear-gradient(to right, #4ECDC4, #a5f3fc, #ffffff, #4ECDC4);
}

/* Pricing heading — gold → amber → cream → gold */
.gradient-text-gold {
    background-image: linear-gradient(to right, #ffd700, #f59e0b, #fffbeb, #ffd700);
}

/* Section headings — teal → indigo → sky → teal */
.gradient-text-section {
    background-image: linear-gradient(to right, #4ECDC4, #818cf8, #7dd3fc, #4ECDC4);
}

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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   2. STAR BORDER BUTTON
   ────────────────────────────────────────────────────────────────────────── */
.star-border-wrap {
    position: relative;
    display: block;
    width: 100%;
    padding: 2px 0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.star-border-wrap::before,
.star-border-wrap::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 300%;
    height: 50%;
    background-repeat: no-repeat;
    background-size: 50% 100%;
}

.star-border-wrap::before {
    top: 0;
    background-image: radial-gradient(circle, #ffd700 0%, transparent 10%),
        radial-gradient(circle, #f59e0b 0%, transparent 8%),
        radial-gradient(circle, #fff 0%, transparent 5%);
    background-position: 10% 50%, 50% 50%, 80% 50%;
    animation: starOrbitTop 5s linear infinite;
}

.star-border-wrap::after {
    bottom: 0;
    background-image: radial-gradient(circle, #ffd700 0%, transparent 10%),
        radial-gradient(circle, #f59e0b 0%, transparent 8%),
        radial-gradient(circle, #fff 0%, transparent 5%);
    background-position: 90% 50%, 40% 50%, 20% 50%;
    animation: starOrbitBottom 5s linear infinite;
}

.star-border-inner {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, #ffd700, #f59e0b);
    color: #07090f;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    display: block;
    width: 100%;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity 0.2s, transform 0.2s;
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.star-border-wrap:hover .star-border-inner {
    opacity: 0.92;
    transform: translateY(-2px);
}

.star-border-inner.cta-large {
    font-size: 1.2rem;
    padding: 1.5rem 2.5rem;
    letter-spacing: 0.05em;
}

@keyframes starOrbitTop {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes starOrbitBottom {
    0% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}

/* ──────────────────────────────────────────────────────────────────────────
   3. GRADUAL BLUR (section fade-edge effect)
   ────────────────────────────────────────────────────────────────────────── */
.gradual-blur-wrap {
    position: relative;
    overflow: hidden;
}

.gradual-blur-wrap .gb-layer {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 10;
}

/* Applied per-layer via JS inline styles */

/* ──────────────────────────────────────────────────────────────────────────
   4. DOCK NAVIGATION
   ────────────────────────────────────────────────────────────────────────── */

/* Remove old nav-links styles for the dock target */
.dock-nav-host .nav-links {
    display: none;
}

/* Outer spring container */
.dock-outer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* The pill panel */
.dock-panel {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    padding: 8px 14px;
    transition: background 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Individual item */
.dock-item {
    width: auto;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    text-decoration: none;
    color: rgba(10, 15, 36, 0.7);
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0 18px;
}

.dock-item:hover {
    background: rgba(78, 205, 196, 0.25);
    color: #0f172a;
}

/* Tooltip label */
.dock-label {
    display: none;
}

.dock-item:hover .dock-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* RTL dock label fix */
[dir="rtl"] .dock-label {
    transform: translateX(50%);
}

[dir="rtl"] .dock-item:hover .dock-label {
    transform: translateX(50%) translateY(0);
}