/* ====== Custom Home Page Styles ====== */

:root {
    --primary-color: #f5f8fa;
    --secondary-color: #f0ad4e;
    --accent-color: #2c3e50;
    --text-color: #333333;
    --background-color: #ffffff;
    --card-bg: #ffffff;
    --hover-color: #fff8e6;
    --border-color: #eaeaea;
    --input-border: #d1d5db;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    /*    background: linear-gradient(135deg, var(--secondary-color-light), var(--primary-color-light));*/
    color: var(--accent-color);
    text-align: center;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-top: 20px;
    margin-bottom: 30px;
}

    /*.hero-section::before {
        content: "";
        position: absolute;
        inset: 0;*/
        /*background: linear-gradient( rgba(212, 175, 55, 0.5),*/ /* --secondary-color-light */
/*        rgba(212, 175, 55, 0.5) );*/
        /*z-index: 0;
    }*/

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8; /* אפשר לשנות את האטימות לפי הצורך */
    background-image: url("/assets/images/hero-background.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
}

    .hero-content h1,
    .hero-content h2,
    .hero-content p {
        color: white;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.75);
    }


.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 1.5s ease-out;
    margin-bottom: 2rem;
}

.hero-btn {
    padding: 12px 24px;
    font-weight: 600;
    justify-content: center;
    text-align: center;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .hero-btn.secondary-btn {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

.primary-btn {
    background-color: white;
    color: var(--secondary-color);
}

    .primary-btn:hover {
        background-color: var(--accent-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

    .secondary-btn:hover {
        background-color: white;
        color: var(--secondary-color);
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        text-shadow: none;
    }

.hero-img {
    max-width: 80%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    border: 5px solid white;
    animation: fadeIn 1.5s ease-out;
}

/* Stats Counter */
.stats-section {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    margin-bottom: 60px;
}

.stats-counter {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    text-align: center;
}

.counter-item {
    padding: 10px;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.counter-label {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--secondary-color);
        border-radius: 2px;
    }

.feature-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-bottom-color: var(--secondary-color);
    }

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
    color: var(--accent-color);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: 600;
}

.feature-desc {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

/* Screenshot Section */
.screenshots-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    position: relative;
}

.screenshot-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f0ad4e' fill-opacity='1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.screenshot-container {
    position: relative;
    z-index: 1;
}

.screenshot-display {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.screenshot-display:hover .screenshot-img {
    transform: scale(1.03);
}

.screenshot-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(240, 173, 78, 0.9);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.screenshot-display:hover .screenshot-caption {
    transform: translateY(0);
}

.screenshot-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.screenshot-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background-color: var(--background-color);
}

.steps-container {
    position: relative;
    margin-top: 50px;
}

.step-line {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--secondary-color);
    opacity: 0.3;
    z-index: 0;
}

.step-item {
    position: relative;
    text-align: center;
    z-index: 1;
    padding: 0 15px;
    margin-bottom: 40px;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: white;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(240, 173, 78, 0.3);
}

.step-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step-desc {
    color: var(--text-color);
    max-width: 300px;
    margin: 0 auto;
}

/* Testimonials Section - עדכון לספריית Swiper */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--primary-color) 100%);
    position: relative;
}

/* Testimonial Slider - מעודכן ל-Swiper */
.testimonial-slider {
    position: relative;
    padding: 0 40px;
    margin: 0 auto;
    max-width: 1200px;
}

/* טיפול בכרטיסי ההמלצות */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 10px;
    position: relative;
    border-top: 5px solid var(--secondary-color);
    height: 100%;
}

.testimonial-content {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

    .testimonial-content::before {
        content: '\201C';
        position: absolute;
        top: -30px;
        left: -10px;
        font-size: 5rem;
        color: var(--secondary-color);
        opacity: 0.2;
        font-family: Georgia, serif;
    }

.testimonial-text {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--hover-color);
    overflow: hidden;
    margin-left: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

    .author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

/* חיצי ניווט - מעודכן עבור Swiper */
.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

    .testimonial-arrow:hover {
        background-color: var(--secondary-color);
        color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.testimonial-prev {
    right: 10px;
}

.testimonial-next {
    left: 10px;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.pricing-box {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

    .pricing-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 40px;
    transform: rotate(45deg);
}

.pricing-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.pricing-title {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: right;
}

.pricing-feature {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    align-items: center;
}

    .pricing-feature:last-child {
        border-bottom: none;
    }

    .pricing-feature i {
        color: var(--secondary-color);
        margin-left: 10px;
    }

.pricing-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(240, 173, 78, 0.3);
    text-decoration: none;
}

    .pricing-btn:hover {
        background-color: var(--accent-color);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(240, 173, 78, 0.4);
        color: white;
    }

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.faq-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    background-color: white;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    width: 100%;
    text-align: right;
    transition: all 0.3s ease;
}

    .faq-question:hover, .faq-question:focus {
        background-color: var(--hover-color);
    }

    .faq-question.active {
        background-color: var(--secondary-color);
        color: white;
    }

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .faq-answer.active {
        padding: 20px 25px;
        max-height: 500px;
    }

/* Call to Action */
.cta-section {
    position: relative;
    padding: 100px 0;
    /*    background: linear-gradient(135deg, #f0ad4e, #d9534f);*/
    color: var(--primary-color);
    text-align: center;
    overflow: hidden;
    border-radius: 30px 30px 30px 30px;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    background-image: url("/assets/images/cta-background.jpeg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-desc {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
    color: var(--primary-color);
}

.cta-btn {
    background-color: white;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

    .cta-btn:hover {
        background-color: var(--accent-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    }

/* Demo Modal */
.demo-modal .modal-content {
    background-color: var(--background-color);
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.demo-modal .modal-header {
    background-color: var(--secondary-color);
    color: white;
    border: none;
}

.demo-modal .modal-title {
    font-weight: 600;
}

.demo-modal .modal-body {
    padding: 30px;
}

.demo-feature {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

    .demo-feature:last-child {
        border-bottom: none;
    }

.demo-feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.demo-feature-icon {
    background-color: var(--hover-color);
    color: var(--secondary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.demo-feature-title {
    font-weight: 600;
    color: var(--accent-color);
}

.demo-feature-content {
    padding-right: 55px;
}

.demo-preview {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.demo-img {
    width: 100%;
}

.demo-footer {
    text-align: center;
    margin-top: 20px;
}

.demo-cta {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

    .demo-cta:hover {
        background-color: var(--accent-color);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        color: white;
    }

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-down {
    animation: fadeInDown 1s ease-out;
}

.animate-delay-1 {
    animation-delay: 0.3s;
}

.animate-delay-2 {
    animation-delay: 0.6s;
}

.animate-delay-3 {
    animation-delay: 0.9s;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .counter-number {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-section {
        margin-top: -30px;
    }

    .counter-item {
        margin-bottom: 20px;
    }

    .step-line {
        display: none;
    }

    /* עדכון למסכים קטנים בסליידר */
    .testimonial-prev, .testimonial-next {
        display: flex !important;
        top: auto;
        bottom: -40px;
        transform: none;
    }

    .testimonial-prev {
        right: 50%;
        margin-right: 5px;
    }

    .testimonial-next {
        left: 50%;
        margin-left: 5px;
    }

    .testimonials-section {
        padding-bottom: 60px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-desc {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .counter-number {
        font-size: 1.8rem;
    }

    .cta-btn {
        padding: 12px 30px;
    }
}

/* סגנונות לתמונות שניתנות להגדלה */
.screenshot-img.zoomable {
    cursor: pointer;
    position: relative;
}

    .screenshot-img.zoomable::after {
        content: '\f00e'; /* קוד הסמל של זכוכית מגדלת מ-FontAwesome */
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: rgba(240, 173, 78, 0.8);
        color: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .screenshot-img.zoomable:hover::after {
        opacity: 1;
    }

/* סגנונות עבור הלייטבוקס */
.lightbox-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

    .lightbox-wrapper.active {
        display: block;
    }

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 70%; /* הקטנה מ-90% ל-70% */
    max-height: 80%; /* הקטנה מ-90% ל-80% */
    animation: zoomIn 0.3s ease;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh; /* הקטנה מ-90vh ל-80vh */
    border: 5px solid white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .lightbox-close:hover {
        color: var(--secondary-color);
        transform: rotate(90deg);
    }

/* אנימציות ללייטבוקס */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* התאמה למובייל */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
    }
}

/*.demo-preview {
    width: 700px;
    height: 400px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    margin: 0 auto;
}

.demo-video {
    width: 700px;
    height: 400px;
    max-width: 100%;*/ /* התאמה למסכים קטנים יותר */
/*}*/


.demo-preview {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
}


@media (max-width: 768px) {
    .demo-preview {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


.demo-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

    .demo-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.demo-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 10px black;
    pointer-events: none; /* חשוב: שהלחיצה תעבור רק ל-thumbnail */
    line-height: 1; /* תיקון יישור אנכי */
}

.demo-video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
