/*
Theme Name: Nadlan Index 2
Theme URI: http://webz.co.il
Author: WebzDigital
Version: 1.0
*/

/* Global Styles */
:root {
    --primary-color: #0057b8;
    --primary-light: #e6f0ff;
    --secondary-color: #ffffff;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --gradient-primary: linear-gradient(135deg, #0057b8 0%, #0077ea 100%);
}

body {
    font-family: "Heebo", sans-serif;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.title-line {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 15px;
    border-radius: 2px;
}

/* Header */
.navbar {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 40px;
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    padding: 8px 15px !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    right: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.btn {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(0, 87, 184, 0.3);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 50;
}

.min-vh-80 {
    min-height: 80vh;
}

.hero-section h1 {
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.search-bar {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
}

/* Section Headers */
.section-header {
    margin-bottom: 50px;
}

.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bg-primary-light {
    background-color: var(--primary-light);
}

/* Featured Projects */
.featured-section {
    position: relative;
    padding-top: 50px;
}

.project-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.project-card img {
    height: 240px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 87, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay .btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay .btn {
    transform: translateY(0);
}

.project-features {
    font-size: 0.85rem;
}

/* Stats Section */
.bg-gradient {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.bg-gradient:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.stat-item {
    position: relative;
    z-index: 2;
    padding: 30px 15px;
    transition: all 0.3s ease;
}

.stat-icon {
    color: white;
    opacity: 0.8;
}

.stat-number {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.stat-text {
    font-size: 1rem;
    opacity: 0.8;
}

/* All Projects Section */
.all-projects-section {
    padding: 80px 0;
}

.filter-tabs .nav-pills .nav-link {
    color: var(--dark-color);
    background: transparent;
    padding: 8px 20px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.filter-tabs .nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 87, 184, 0.3);
}

/* Info Section */
.info-section {
    padding: 80px 0;
}

.feature-card {
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
}

.feature-card:hover .feature-icon i {
    color: white !important;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.testimonial-avatar img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* Call to Action */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/pattern.png");
    opacity: 0.05;
}

.cta-icon-box {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Footer */
.footer-section {
    background-color: #0a2540;
    color: white;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    padding-right: 5px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-icon-box {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 87, 184, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
}

/* Form Elements */
.form-control,
.form-select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 87, 184, 0.25);
}

/* RTL Specific Adjustments */
.owl-carousel {
    direction: ltr;
}

.owl-carousel .owl-item {
    direction: rtl;
}

.form-select {
    background-position: left 0.75rem center;
    padding-right: 0.75rem;
    padding-left: 2.25rem;
}

.dropdown-box {
    position: absolute;
    top: 80%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    min-width: 100%;
    max-height: 350px;
    padding: 8px 10px;
    overflow-y: auto;
    overflow-x: clip;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 99999;
    min-height: 100px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        min-height: 70vh;
    }

    .project-card img {
        height: 200px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-video {
        display: none;
    }

    .hero-section {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://via.placeholder.com/1920x1080/0057b8/ffffff?text=תמונת+רקע+נדל"ן') no-repeat center center;
        background-size: cover;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .project-features {
        flex-direction: column;
        gap: 5px;
    }

    .filter-tabs .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-tabs .nav-pills .nav-link {
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .search-bar {
        padding: 15px !important;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}

.hero-serach {
    margin-top: 10rem;
}