/* ===========================================
   LUCIDE ANIMATED ICONS - pqoqubbw/icons style
   Stroke-draw animations on hover/visibility
   =========================================== */

/* ── Kill ugly zoom & pulse effects ── */
.pulse-animation {
    animation: none !important;
}

.reveal-item[data-reveal="zoom-in"] {
    transform: none !important;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.reveal-item[data-reveal="zoom-in"].revealed {
    transform: none !important;
    opacity: 1;
}

/* Kill icon-ring pulse zoom */
.icon-ring {
    animation: none !important;
    border: 2px solid var(--gbe-ice);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.service-card-animated:hover .icon-ring {
    border-color: var(--gbe-blue);
    transform: scale(1.05);
}

/* Kill service icon zoom on hover */
.service-card-animated:hover .service-icon svg {
    transform: none !important;
}

/* ── Animated Stroke Draw - All SVG Icons ── */
.stat-icon svg path,
.stat-icon svg polyline,
.stat-icon svg line,
.stat-icon svg circle,
.stat-icon svg rect,
.feature-icon svg path,
.feature-icon svg polyline,
.feature-icon svg line,
.feature-icon svg circle,
.feature-icon svg rect,
.service-icon svg path,
.service-icon svg polyline,
.service-icon svg line,
.service-icon svg circle,
.service-icon svg rect {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When element becomes visible (revealed) */
.revealed .stat-icon svg path,
.revealed .stat-icon svg polyline,
.revealed .stat-icon svg line,
.revealed .stat-icon svg circle,
.revealed .stat-icon svg rect,
.revealed .feature-icon svg path,
.revealed .feature-icon svg polyline,
.revealed .feature-icon svg line,
.revealed .feature-icon svg circle,
.revealed .feature-icon svg rect,
.revealed .service-icon svg path,
.revealed .service-icon svg polyline,
.revealed .service-icon svg line,
.revealed .service-icon svg circle,
.revealed .service-icon svg rect,
.stat-icon svg path,
.stat-icon svg polyline,
.stat-icon svg line,
.stat-icon svg circle,
.stat-icon svg rect {
    stroke-dashoffset: 0;
}

/* Staggered draw for multi-path icons */
.feature-icon svg path:nth-child(2),
.service-icon svg path:nth-child(2) {
    transition-delay: 0.15s;
}
.feature-icon svg path:nth-child(3),
.service-icon svg path:nth-child(3) {
    transition-delay: 0.25s;
}
.feature-icon svg circle,
.service-icon svg circle {
    transition-delay: 0.3s;
}
.feature-icon svg polyline,
.service-icon svg polyline {
    transition-delay: 0.2s;
}

/* ── Hover: Redraw animation ── */
@keyframes stroke-draw {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

.feature-item:hover .feature-icon svg path,
.feature-item:hover .feature-icon svg polyline,
.feature-item:hover .feature-icon svg line,
.feature-item:hover .feature-icon svg circle,
.feature-item:hover .feature-icon svg rect,
.service-card-animated:hover .service-icon svg path,
.service-card-animated:hover .service-icon svg polyline,
.service-card-animated:hover .service-icon svg line,
.service-card-animated:hover .service-icon svg circle,
.service-card-animated:hover .service-icon svg rect,
.stat-item:hover .stat-icon svg path,
.stat-item:hover .stat-icon svg polyline,
.stat-item:hover .stat-icon svg line,
.stat-item:hover .stat-icon svg circle,
.stat-item:hover .stat-icon svg rect {
    animation: stroke-draw 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered hover redraw */
.feature-item:hover .feature-icon svg path:nth-child(2),
.service-card-animated:hover .service-icon svg path:nth-child(2) {
    animation-delay: 0.1s;
}
.feature-item:hover .feature-icon svg path:nth-child(3),
.service-card-animated:hover .service-icon svg path:nth-child(3) {
    animation-delay: 0.18s;
}
.feature-item:hover .feature-icon svg circle,
.service-card-animated:hover .service-icon svg circle {
    animation-delay: 0.22s;
}

/* ── Subtle continuous animation for stat icons ── */
@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.stat-icon {
    animation: icon-float 3s ease-in-out infinite !important;
}

.stat-item:nth-child(2) .stat-icon { animation-delay: 0.3s !important; }
.stat-item:nth-child(3) .stat-icon { animation-delay: 0.6s !important; }
.stat-item:nth-child(4) .stat-icon { animation-delay: 0.9s !important; }

/* ── Feature icon hover: smooth color + no zoom ── */
.feature-item:hover {
    transform: translateX(8px) !important;
}

[dir="rtl"] .feature-item:hover {
    transform: translateX(-8px) !important;
}

/* ── Service card: smooth hover, no zoom ── */
.service-card-animated:hover {
    transform: translateY(-4px) !important;
}

/* ── CTA card icon: continuous draw loop ── */
@keyframes cta-icon-draw {
    0% { stroke-dashoffset: 100; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -100; }
}

.cta-icon svg path {
    stroke-dasharray: 100;
    animation: cta-icon-draw 4s ease-in-out infinite;
}

/* ── Fix text gradient clipping in Arabic ── */
.text-gradient {
    display: inline !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Section headers - prevent text clipping */
.section-header h2 {
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-break: normal !important;
    line-height: 1.4 !important;
}

[dir="rtl"] .section-header h2 {
    line-height: 1.5 !important;
    letter-spacing: 0 !important;
}

/* Fix Arabic title display */
[dir="rtl"] h2 {
    line-height: 1.5 !important;
    overflow: visible !important;
}

/* ── Navbar: center vertically, slight padding ── */
.mega-header-inner {
    height: 72px !important;
    padding: 0 32px !important;
}

.mega-header {
    padding: 4px 0 !important;
}

.mega-nav-trigger {
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
}

.mega-logo img {
    height: 40px !important;
}

/* ── Phone number in RTL: force LTR ── */
.phone-link,
.cta-contact a[href^="tel:"] {
    direction: ltr !important;
    unicode-bidi: embed;
    display: inline-block;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .stat-icon,
    .cta-icon svg path,
    .feature-icon svg *,
    .service-icon svg * {
        animation: none !important;
        transition: none !important;
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
    }
}

