/* ==========================================================================
   Elementor Design HCA — Premium Styles
   ========================================================================== */

/* --- Animated Text --- */
.hca-ed-animated-text {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.hca-ed-animated-text span.char {
    display: inline-block;
    transform-origin: center bottom;
    will-change: transform, opacity;
}

.hca-ed-animated-text span.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.25em;
}

.hca-ed-animated-text span.word-inner {
    display: inline-block;
    will-change: transform;
}

.hca-ed-animated-text.hca-ed-gradient-text {
    background: linear-gradient(135deg, #ff0080, #7928ca, #0070f3, #00dfd8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hcaEdGradientText 8s ease infinite;
}

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

/* --- Image Scroll Effects --- */
.hca-ed-image-scroll-effect {
    overflow: hidden;
    position: relative;
    will-change: transform, clip-path;
}

.hca-ed-image-scroll-effect img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

/* --- Interactive Cards --- */
.hca-ed-interactive-cards-grid {
    display: grid;
    gap: 24px;
    perspective: 1200px;
}

.hca-ed-interactive-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transform-style: preserve-3d;
    will-change: transform;
    transition: box-shadow 0.3s ease;
}

.hca-ed-interactive-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.hca-ed-interactive-card:hover::before {
    opacity: 1;
}

.hca-ed-interactive-card-image {
    overflow: hidden;
    position: relative;
}

.hca-ed-interactive-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hca-ed-interactive-card:hover .hca-ed-interactive-card-image img {
    transform: scale(1.08);
}

.hca-ed-interactive-card-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.hca-ed-interactive-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.hca-ed-interactive-card-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.75;
}

/* --- Mouse Follow --- */
.hca-ed-mouse-follow-wrap {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.hca-ed-mouse-follow-element {
    position: absolute;
    pointer-events: none;
    will-change: transform;
    z-index: 1;
}

.hca-ed-mouse-follow-element img {
    max-width: 200px;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

/* --- Animated Gradient BG --- */
.hca-ed-animated-gradient {
    width: 100%;
    min-height: 400px;
    border-radius: inherit;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        -45deg,
        var(--hca-ed-gradient-c1, #ff0080),
        var(--hca-ed-gradient-c2, #7928ca),
        var(--hca-ed-gradient-c3, #0070f3),
        var(--hca-ed-gradient-c4, #00dfd8)
    );
    background-size: 400% 400%;
    animation: hcaEdGradientBG var(--hca-ed-gradient-speed, 12s) ease infinite;
}

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

.hca-ed-animated-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 60%);
    pointer-events: none;
}

/* --- Magnetic Button --- */
.hca-ed-magnetic-btn-wrap {
    display: inline-block;
}

.hca-ed-magnetic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transition: box-shadow 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.hca-ed-magnetic-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hca-ed-magnetic-btn:hover::before {
    opacity: 1;
}

.hca-ed-magnetic-btn:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.55);
}

.hca-ed-magnetic-btn .hca-ed-btn-icon {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.hca-ed-magnetic-btn:hover .hca-ed-btn-icon {
    transform: translateX(4px);
}

/* --- Reveal Mask --- */
.hca-ed-reveal-mask {
    position: relative;
    overflow: hidden;
    will-change: clip-path;
}

.hca-ed-reveal-mask img,
.hca-ed-reveal-mask .hca-ed-reveal-content {
    width: 100%;
    display: block;
}

/* --- Floating Orbs --- */
.hca-ed-floating-orbs {
    position: relative;
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    pointer-events: none;
}

.hca-ed-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    will-change: transform;
}

/* --- Global Motion FX --- */
.ed-hca-motion-element {
    will-change: transform, opacity;
}

.ed-hca-underline-reveal {
    position: relative;
    display: inline-block;
}

.ed-hca-underline-line {
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 3px;
    background: currentColor;
    transform-origin: left center;
    transform: scaleX(0);
    display: block;
}

.ed-hca-color-overlay-wrap {
    position: relative;
    overflow: hidden;
}

.ed-hca-color-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
}

.ed-hca-mouse-layer {
    will-change: transform;
}

.ed-hca-service-card {
    transition: box-shadow 0.35s ease;
    will-change: transform;
}

.ed-hca-service-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

/* --- Container FX --- */
.ed-hca-container-gradient {
    background: linear-gradient(
        -45deg,
        var(--ed-hca-bg-c1, #ff0080),
        var(--ed-hca-bg-c2, #7928ca),
        var(--ed-hca-bg-c3, #0070f3),
        var(--ed-hca-bg-c4, #00dfd8)
    ) !important;
    background-size: 400% 400% !important;
    animation: hcaEdContainerBG var(--ed-hca-bg-speed, 14s) ease infinite;
}

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

/* --- Marquee Bar --- */
.hca-ed-marquee-bar {
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    position: relative;
}

.hca-ed-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    will-change: transform;
}

.hca-ed-marquee-group {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.hca-ed-marquee-content {
    display: inline-block;
    padding-right: 3rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.hca-ed-marquee-left .hca-ed-marquee-track {
    animation: hcaEdMarqueeLeft var(--hca-marquee-speed, 20s) linear infinite;
}

.hca-ed-marquee-right .hca-ed-marquee-track {
    animation: hcaEdMarqueeRight var(--hca-marquee-speed, 20s) linear infinite;
}

.hca-ed-marquee-pause-hover:hover .hca-ed-marquee-track {
    animation-play-state: paused;
}

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

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

/* --- Contextual Cursor --- */
.ed-hca-cursor-view.active,
.hca-ed-cursor-follower.ed-hca-cursor-view.active {
    width: 64px;
    height: 64px;
}

.hca-ed-cursor-follower.ed-hca-cursor-view.active::after {
    content: 'VIEW';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.ed-hca-cursor-link.active,
.hca-ed-cursor-follower.ed-hca-cursor-link.active {
    width: 48px;
    height: 48px;
    mix-blend-mode: normal;
    background: rgba(255, 255, 255, 0.15);
}

.ed-hca-cursor-hidden,
.hca-ed-cursor-follower.ed-hca-cursor-hidden {
    opacity: 0 !important;
}

/* --- Custom Cursor --- */
.hca-ed-cursor,
.hca-ed-cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.hca-ed-cursor {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.hca-ed-cursor-follower {
    width: 36px;
    height: 36px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                height 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                background 0.35s ease;
}

.hca-ed-cursor.active {
    transform: translate(-50%, -50%) scale(0.4);
}

.hca-ed-cursor-follower.active {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.08);
}

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .hca-ed-cursor,
    .hca-ed-cursor-follower {
        display: none !important;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .hca-ed-animated-text.hca-ed-gradient-text,
    .hca-ed-animated-gradient {
        animation: none;
    }

    .hca-ed-interactive-card-image img {
        transition: none;
    }
}
