/* ==========================================================================
   MotionSites Hero Section Visual & Motion Enhancement
   Agency-grade visual depth, rotating conic borders, cursor spotlights,
   tactile spring micro-interactions, and accessibility fallbacks.
   ========================================================================== */

/* 1. Register Houdini Custom Property for Rotating Conic Gradients */
@property --card-border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* 2. Hero Atmosphere & Canvas Container */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

/* Ensure hero content sits firmly above the canvas and ambient orbs */
.hero-container {
    position: relative;
    z-index: 2;
}

/* 3. Luminous Glassmorphic Hero Form Card */
.hero-form-card {
    position: relative;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 
        0 20px 50px -10px rgba(37, 99, 235, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.03),
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1) !important;
    overflow: visible !important;
}

/* Rotating Conic Gradient Border Highlight */
.hero-form-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: conic-gradient(
        from var(--card-border-angle),
        #2563EB,
        #60A5FA 25%,
        #A855F7 50%,
        #38BDF8 75%,
        #2563EB 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 2px;
    animation: rotateCardBorder 7s linear infinite;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.hero-form-card:hover::before {
    opacity: 1;
}

@keyframes rotateCardBorder {
    to {
        --card-border-angle: 360deg;
    }
}

/* Dynamic Cursor-Tracking Spotlight Reflection */
.hero-form-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(
        350px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(37, 99, 235, 0.09),
        transparent 65%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.hero-form-card:hover::after {
    opacity: 1;
}

.hero-form-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 
        0 25px 60px -10px rgba(37, 99, 235, 0.18),
        0 6px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
}

/* 4. Live Specialist Availability Indicator */
.live-specialist-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #065f46;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: specialistPulse 2.2s infinite ease-in-out;
}

@keyframes specialistPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* 5. Tactile Interactive Inputs */
.hero-form-card .form-group input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, transform 0.2s ease !important;
}

.hero-form-card .form-group input:hover {
    border-color: rgba(37, 99, 235, 0.35) !important;
}

.hero-form-card .form-group input:focus {
    outline: none !important;
    border-color: #2563EB !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(37, 99, 235, 0.08) !important;
}

/* 6. Tactile Spring CTA Buttons & Light Sheen */
.hero-cta-actions .btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease !important;
}

.hero-cta-actions .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-22deg);
    pointer-events: none;
    transition: none;
}

.hero-cta-actions .btn-primary:hover {
    transform: translateY(-2px) scale(1.025) !important;
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.42) !important;
}

.hero-cta-actions .btn-primary:hover::after {
    left: 160%;
    transition: left 0.8s ease-in-out;
}

.hero-cta-actions .btn-primary:active {
    transform: translateY(0px) scale(0.98) !important;
}

.hero-cta-actions .btn-secondary {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.hero-cta-actions .btn-secondary:hover {
    transform: translateY(-2px) scale(1.02) !important;
    border-color: rgba(37, 99, 235, 0.55) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.15) !important;
}

.hero-cta-actions .btn-secondary:active {
    transform: translateY(0px) scale(0.98) !important;
}

/* 7. Interactive Hero Bullets */
.hero-bullets li {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease !important;
    cursor: default;
}

.hero-bullets li:hover {
    transform: translateX(4px) !important;
    color: #0f172a !important;
}

.hero-bullets li .hero-icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease !important;
}

.hero-bullets li:hover .hero-icon {
    transform: scale(1.15) rotate(4deg) !important;
    background-color: #2563EB !important;
    color: #ffffff !important;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35) !important;
}

.hero-bullets li:hover .hero-icon svg {
    stroke: #ffffff !important;
}

/* 8. Reassurance & Trust Badges Tactile Hover */
.hero-badge {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease !important;
}

.hero-badge:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.14) !important;
}

.trust-badge-item {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.trust-badge-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07) !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
}

/* 9. Accessibility & Reduced Motion Overrides */
@media (prefers-reduced-motion: reduce) {
    .hero-form-card::before {
        animation: none !important;
        opacity: 0.4 !important;
    }
    .hero-canvas {
        display: none !important;
    }
    .live-pulse-dot {
        animation: none !important;
    }
    .hero-cta-actions .btn-primary,
    .hero-cta-actions .btn-secondary,
    .hero-bullets li,
    .hero-form-card,
    .hero-badge,
    .trust-badge-item {
        transition: none !important;
        transform: none !important;
    }
    .hero-cta-actions .btn-primary::after {
        display: none !important;
    }
}
