/* ============================================
   INTERACTIVE ENHANCEMENTS - שיפורים אינטראקטיביים
   ============================================ */

/* ===== STRATEGIC CTA BOXES ===== */
.strategic-cta-box {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(93, 62, 191, 0.1), rgba(241, 91, 181, 0.1));
    border-radius: var(--radius-xl);
    border: 2px solid rgba(93, 62, 191, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.strategic-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(93, 62, 191, 0.05) 0%, transparent 70%);
    animation: rotate-gradient 15s linear infinite;
}

.cta-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white-color);
    box-shadow: 0 10px 30px rgba(93, 62, 191, 0.4);
    animation: float-gentle 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.strategic-cta-box h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.strategic-cta-box p {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--gray-dark);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn-glow {
    box-shadow: 0 10px 40px rgba(93, 62, 191, 0.4);
    animation: glow-pulse 2.5s ease-in-out infinite;
}

/* ===== 3D HOVER EFFECTS FOR CARDS ===== */
.reason-card,
.method-card,
.solution-card-new,
.testimonial-card-new,
.unique-feature-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reason-card:hover,
.method-card:hover,
.testimonial-card-new:hover,
.unique-feature-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15),
                0 0 40px rgba(93, 62, 191, 0.1);
}

.solution-card-new:hover {
    transform: translateY(-20px) scale(1.03) rotateX(2deg);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2),
                0 0 50px rgba(93, 62, 191, 0.15);
}

/* ===== GLOWING BUTTONS ===== */
.btn-primary-new,
.btn-submit-new,
.solution-cta-new {
    position: relative;
    overflow: hidden;
}

.btn-primary-new::before,
.btn-submit-new::before,
.solution-cta-new::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary-new:hover::before,
.btn-submit-new:hover::before,
.solution-cta-new:hover::before {
    width: 300px;
    height: 300px;
}

/* Glowing pulse effect for primary CTAs */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(93, 62, 191, 0.4),
                    0 0 40px rgba(93, 62, 191, 0.2),
                    0 10px 30px rgba(93, 62, 191, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(93, 62, 191, 0.6),
                    0 0 60px rgba(93, 62, 191, 0.3),
                    0 15px 40px rgba(93, 62, 191, 0.6);
    }
}

.btn-primary-new:hover,
.btn-submit-new:hover {
    animation: glow-pulse 2s ease-in-out infinite;
}

/* ===== ANIMATED GRADIENTS ===== */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-new {
    background: linear-gradient(-45deg, #0f0c29, #302b63, #24243e, #1a1a2e);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.comparison-section {
    background: linear-gradient(-45deg, var(--dark-color), #1a1a2e, #1e293b, #0f172a);
    background-size: 400% 400%;
    animation: gradient-shift 18s ease infinite;
}

/* ===== ICON ROTATIONS ON HOVER ===== */
.reason-icon,
.method-icon,
.solution-icon-new,
.feature-icon-unique {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.reason-card:hover .reason-icon,
.method-card:hover .method-icon,
.unique-feature-card:hover .feature-icon-unique {
    transform: scale(1.15) rotate(360deg);
}

.solution-card-new:hover .solution-icon-new {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 15px 40px rgba(93, 62, 191, 0.5);
}

/* ===== BORDER GLOW ANIMATION ===== */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(93, 62, 191, 0.3);
        box-shadow: 0 0 15px rgba(93, 62, 191, 0.2);
    }
    50% {
        border-color: rgba(93, 62, 191, 0.7);
        box-shadow: 0 0 30px rgba(93, 62, 191, 0.4);
    }
}

.solution-card-new:hover {
    animation: border-glow 2s ease-in-out infinite;
}

/* ===== TEXT SHIMMER EFFECT ===== */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.section-title-new {
    position: relative;
    display: inline-block;
}

.section-title-new::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-header-new:hover .section-title-new::after {
    opacity: 1;
}

/* ===== FLOATING ANIMATION FOR STATS ===== */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.stat-new,
.testimonial-result-new {
    animation: float-gentle 3s ease-in-out infinite;
}

.stat-new:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-new:nth-child(3) {
    animation-delay: 1s;
}

/* ===== PARTICLE EFFECT ON HOVER ===== */
@keyframes particle-float {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* ===== PRICE TAG BOUNCE ===== */
@keyframes price-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.price-amount {
    animation: price-bounce 2s ease-in-out infinite;
}

.price-discount {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ===== SMOOTH SCROLL REVEAL ===== */
@keyframes fade-in-up-smooth {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reason-card,
.method-card,
.solution-card-new,
.testimonial-card-new,
.unique-feature-card {
    animation: fade-in-up-smooth 0.8s ease-out backwards;
}

.reason-card:nth-child(1) { animation-delay: 0.1s; }
.reason-card:nth-child(2) { animation-delay: 0.2s; }
.reason-card:nth-child(3) { animation-delay: 0.3s; }
.reason-card:nth-child(4) { animation-delay: 0.4s; }

.method-card:nth-child(1) { animation-delay: 0.1s; }
.method-card:nth-child(2) { animation-delay: 0.3s; }
.method-card:nth-child(3) { animation-delay: 0.5s; }

.solution-card-new:nth-child(1) { animation-delay: 0.2s; }
.solution-card-new:nth-child(2) { animation-delay: 0.4s; }
.solution-card-new:nth-child(3) { animation-delay: 0.6s; }

/* ===== BENEFIT ITEMS SLIDE IN ===== */
@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.solution-card-new:hover .benefit-item-new {
    animation: slide-in-right 0.4s ease-out backwards;
}

.solution-card-new:hover .benefit-item-new:nth-child(1) { animation-delay: 0.05s; }
.solution-card-new:hover .benefit-item-new:nth-child(2) { animation-delay: 0.1s; }
.solution-card-new:hover .benefit-item-new:nth-child(3) { animation-delay: 0.15s; }
.solution-card-new:hover .benefit-item-new:nth-child(4) { animation-delay: 0.2s; }
.solution-card-new:hover .benefit-item-new:nth-child(5) { animation-delay: 0.25s; }
.solution-card-new:hover .benefit-item-new:nth-child(6) { animation-delay: 0.3s; }

/* ===== CTA BOXES WITH SPECIAL EFFECTS ===== */
.cta-box-unique,
.comparison-cta .cta-content {
    position: relative;
    overflow: hidden;
}

.cta-box-unique::before,
.comparison-cta .cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
    pointer-events: none;
}

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

/* ===== NAVBAR LINK UNDERLINE EFFECT ===== */
.navbar-links a {
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--warning-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
    left: 0;
}

/* ===== DROPDOWN MENU STYLES ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.95) !important;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    z-index: 1000;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
    visibility: hidden;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Add delay before closing dropdown */
.dropdown-menu:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--white-color);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--warning-color);
}

.dropdown-menu a::after {
    display: none; /* Remove underline effect from dropdown items */
}

@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 0;
        margin-top: 0;
        min-width: unset;
        opacity: 1;
        transform: none;
        visibility: visible;
        display: none; /* Hidden by default on mobile */
    }
    
    .dropdown.active .dropdown-menu {
        display: block; /* Shown when active */
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-menu a {
        padding: 1rem 1.5rem;
        padding-right: 2.5rem; /* Indent dropdown items */
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .dropdown-menu a:hover {
        color: var(--warning-color) !important;
    }
}

/* ===== FORM INPUTS GLOW ON FOCUS ===== */
.form-group-new input:focus,
.form-group-new select:focus,
.form-group-new textarea:focus {
    box-shadow: 0 0 20px rgba(93, 62, 191, 0.4),
                0 0 40px rgba(93, 62, 191, 0.2);
    border-color: var(--primary-light) !important;
}

/* ===== TESTIMONIAL STARS ANIMATION ===== */
.testimonial-rating-new i {
    display: inline-block;
    animation: star-twinkle 2s ease-in-out infinite;
}

.testimonial-rating-new i:nth-child(1) { animation-delay: 0s; }
.testimonial-rating-new i:nth-child(2) { animation-delay: 0.2s; }
.testimonial-rating-new i:nth-child(3) { animation-delay: 0.4s; }
.testimonial-rating-new i:nth-child(4) { animation-delay: 0.6s; }
.testimonial-rating-new i:nth-child(5) { animation-delay: 0.8s; }

@keyframes star-twinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* ===== SCROLL INDICATOR BOUNCE ===== */
.scroll-indicator-new {
    animation: bounce-gentle 2s ease-in-out infinite;
}

@keyframes bounce-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    /* Reduce animation intensity on mobile */
    .reason-card:hover,
    .method-card:hover,
    .testimonial-card-new:hover,
    .unique-feature-card:hover {
        transform: translateY(-8px);
    }

    .solution-card-new:hover {
        transform: translateY(-10px) scale(1.02);
    }

    /* Disable some heavy animations on mobile for performance */
    .hero-new,
    .comparison-section {
        animation: none;
        background-size: 100% 100%;
    }
}

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