/* Responsive CSS - מותאם ל-OptiRoutes */
/* הגדרות רספונסיביות לאתר */

/* Mobile First Approach */
@media (max-width: 575.98px) {
    .container { 
        max-width: 100%; 
        padding-left: 15px; 
        padding-right: 15px; 
    }
    
    .header-area { 
        padding: 20px 15px !important; 
    }
    
    .navbar-brand img {
        max-width: 150px !important;
    }
    
    .hero-content h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
    }
    
    .section-title h2 {
        font-size: 1.8rem !important;
    }
    
    .floating-cta {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-cta .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .section-title h2 {
        font-size: 2.2rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 3rem !important;
    }
    
    .section-title h2 {
        font-size: 2.5rem !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3.5rem !important;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-content h1 {
        font-size: 4rem !important;
    }
}

/* Navigation Responsive */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 20px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Cards Responsive */
@media (max-width: 767.98px) {
    .problem-solution-card,
    .feature-card,
    .benefit-card,
    .implementation-card,
    .testimonial-card {
        margin-bottom: 30px;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 5px;
    }
}

/* Forms Responsive */
@media (max-width: 575.98px) {
    .subscribe-form input {
        margin-bottom: 15px;
    }
    
    .subscribe-form button {
        width: 100%;
        margin-top: 10px;
    }
}

/* Carousel Responsive */
@media (max-width: 767.98px) {
    .owl-carousel .owl-item {
        padding: 0 10px;
    }
    
    .testimonial-carousel .owl-nav {
        display: none;
    }
}

/* Gallery Responsive */
@media (max-width: 575.98px) {
    .screenshots-gallery .col-lg-4 {
        margin-bottom: 20px;
    }
}

/* Hero Slider Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-slider-area {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 35px;
    }
    
    .hero-stats {
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .problem-solution-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-cta, .hero-cta-large {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .floating-element {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .slider-nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .prev-btn {
        right: 20px;
    }
    
    .next-btn {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .hero-slider-area {
        min-height: auto;
        padding-top: 70px;
    }
    
    .hero-slide-content {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-header-section {
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero-title-main,
    .hero-title-highlight {
        display: block;
    }
    
    .hero-title-sub {
        font-size: 1rem;
        margin-top: 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 10px 20px;
        margin-bottom: 20px;
    }
    
    .hero-main-row {
        margin-top: 20px;
    }
    
    .hero-content-col {
        order: 2;
        padding: 15px;
    }
    
    .hero-visual-col {
        order: 1;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin: 30px 0;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        gap: 12px;
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta, .hero-cta-large {
        padding: 16px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-cta-large {
        padding: 18px 35px;
        font-size: 1.1rem;
    }
    
    .hero-visual {
        min-height: 300px;
    }
    
    .hero-3d-container {
        min-height: 300px;
    }
    
    .problem-card, .solution-card {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .problem-solution-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .testimonial-item {
        padding: 25px 20px;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-slider-indicators {
        bottom: 30px;
    }
    
    .scroll-down-indicator {
        bottom: 20px;
    }
    
    .slider-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .prev-btn {
        right: 15px;
    }
    
    .next-btn {
        left: 15px;
    }
}

@media (max-width: 576px) {
    .hero-slider-area {
        padding-top: 60px;
    }
    
    .hero-slide-content {
        padding: 30px 0;
    }
    
    .hero-header-section {
        margin-bottom: 25px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-title-sub {
        font-size: 0.9rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 8px 16px;
        padding: 8px 16px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-cta, .hero-cta-large {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .hero-learn {
        padding: 14px 25px;
        font-size: 0.95rem;
    }
    
    .problem-card, .solution-card {
        padding: 25px 15px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .problem-card h3, .solution-card h3 {
        font-size: 1.3rem;
    }
    
    .testimonial-item {
        padding: 25px 15px;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
    
    .floating-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Modal Responsive */
@media (max-width: 575.98px) {
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .floating-cta,
    .scroll-to-top,
    .loading-screen {
        display: none !important;
    }
    
    .header-area {
        background: white !important;
        color: black !important;
    }
    
    .hero-area {
        background: white !important;
        color: black !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #ffffff;
        --text-dark: #000000;
        --text-light: #333333;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wow {
        visibility: visible !important;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-area {
        min-height: 100vh;
        padding: 50px 0;
    }
    
    .floating-cta {
        bottom: 10px;
        right: 10px;
    }
}