/* Custom Properties */
:root {
    --primary-color: #f7a32d; /* Orange/Gold */
    --secondary-color: #3b82f6; /* Blue */
    --text-dark: #333333;
    --text-light: #f5f5f5;
    --bg-dark: #1a202c; /* Dark charcoal */
    --bg-medium: #2d3748; /* Slightly lighter charcoal */
    --bg-light: #4a5568; /* Light gray-blue */
    --border-color: #4f5b6f;
    --box-shadow-dark: 0 5px 15px rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s ease-in-out;
}

/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark); /* Default dark background */
    direction: rtl; /* Right-to-left for Hebrew */
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

h1, h2, h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
    position: relative;
    overflow: hidden; /* For AOS animations */
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0.8;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
    opacity: 1;
}

.loader-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    border: 8px solid var(--bg-medium);
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

.loader-wrapper p {
    color: var(--text-light);
    margin-top: 15px;
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Header & Navbar */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero.jpg') center/cover no-repeat;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background-color: transparent;
    transition: background-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
}

.navbar.scrolled {
    background-color: var(--bg-dark);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.logo {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* Hero Content */
.hero-content {
    position: relative; /* כדי שהרקע המשני יהיה יחסי אליו */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 2rem;
}

.hero-text {
    color: var(--text-light);
    max-width: 800px;
    z-index: 10; /* כדי שהטקסט יהיה מעל הרקע */
}

.hero-text h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-sub-background {
    position: absolute;
    top: 120px; /* מיקום הרקע מתחת לכותרת */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px; /* הגבלת רוחב לרקע */
    height: 150px; /* גובה הרקע */
    background-image: url('images/hero-sub-background.jpg'); /* תמונה לדוגמה, ודא שהקובץ קיים */
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* שקיפות עדינה */
    border-radius: 10px;
    z-index: 5; /* מתחת לטקסט אבל מעל רקע ההירו הראשי */
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: #e69424; /* Slightly darker orange */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* About Section */
.about-section {
    background-color: var(--bg-medium);
    color: var(--text-light);
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow-dark);
    transition: transform var(--transition-speed);
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.9;
}

/* CEO Message Section */
.ceo-message-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.ceo-message-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.ceo-content {
    display: flex;
    flex-direction: row-reverse; /* For RTL layout */
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-medium);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--box-shadow-dark);
}

.ceo-image {
    flex: 0 0 250px; /* Fixed width for image */
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.ceo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ceo-text {
    flex: 1;
    text-align: right;
}

.ceo-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.ceo-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.ceo-signature {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Our Expertise Section */
.expertise-section {
    background-color: var(--bg-medium);
    color: var(--text-light);
    text-align: center;
}

.expertise-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.expertise-item {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow-dark);
    text-align: center;
    transition: transform var(--transition-speed), background-color 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: #5b687c; /* Slightly lighter on hover */
}

.expertise-item i {
    font-size: 3.5rem;
    color: var(--secondary-color); /* Blue for expertise icons */
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.expertise-item:hover i {
    color: var(--primary-color); /* Orange on hover */
}

.expertise-item h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.expertise-item p {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.9;
}


/* Our Team Section */
.team-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-member {
    background-color: var(--bg-medium);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow-dark);
    text-align: center;
    transition: transform var(--transition-speed);
}

.team-member:hover {
    transform: translateY(-8px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.team-member h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 0.95rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.member-social a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.member-social a:hover {
    color: var(--primary-color);
}


/* Legal Team Section */
.legal-team-section {
    background-color: var(--bg-medium);
    color: var(--text-light);
    text-align: center;
}

.legal-team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.legal-grid {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.legal-member {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow-dark);
    text-align: center;
    width: 350px; /* Fixed width for consistency */
    transition: transform var(--transition-speed);
}

.legal-member:hover {
    transform: translateY(-8px);
}

.legal-member img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.legal-member h3 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.legal-member p {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.legal-note {
    max-width: 800px;
    margin: 3rem auto 0 auto;
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Project Carousel Section (Swiper) */
.carousel-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding-bottom: 7rem; /* More space for pagination/navigation */
}

.carousel-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.swiper {
    width: 90%;
    max-width: 900px;
    height: 500px; /* Fixed height for the carousel */
    margin-top: 3rem;
    border-radius: 15px;
    overflow: hidden; /* Ensures rounded corners are visible */
    box-shadow: var(--box-shadow-dark);
    border: 1px solid var(--border-color);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--bg-light); /* Fallback background */
}

.swiper-slide img,
.swiper-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire slide area */
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    color: var(--text-light);
    padding: 1.5rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start; /* Align text to right in RTL */
}

.slide-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.slide-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem; /* Space before button */
}

.btn-project-details {
    display: inline-block;
    background-color: var(--secondary-color); /* Blue button for project details */
    color: var(--text-light);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-project-details:hover {
    background-color: #306cd4; /* Slightly darker blue */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Swiper Navigation & Pagination */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color) !important;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1.2rem; /* Make clickable area larger */
    width: 3.5rem;
    height: 3.5rem;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.5rem !important; /* Adjust icon size */
    font-weight: bold;
}

.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}


/* Why Ashkelon Section */
.why-ashkelon-section {
    background-color: var(--bg-medium);
    color: var(--text-light);
    text-align: center;
}

.why-ashkelon-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.ashkelon-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow-dark);
    text-align: center;
    transition: transform var(--transition-speed), background-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.02);
    background-color: #5b687c;
}

.feature-item i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.feature-item:hover i {
    color: var(--secondary-color);
}

.feature-item h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.9;
}


/* Timeline Section */
#timeline {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

#timeline h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%; /* Center the line */
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.timeline-step:nth-child(even) { /* Steps on the right side (for RTL, left side visually) */
    flex-direction: row-reverse;
}

.timeline-step:nth-child(odd) { /* Steps on the left side (for RTL, right side visually) */
    flex-direction: row;
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    flex-shrink: 0; /* Prevents icon from shrinking */
    z-index: 3;
    border: 3px solid var(--text-light);
}

.step-content {
    background-color: var(--bg-medium);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow-dark);
    flex-grow: 1;
    max-width: calc(50% - 60px); /* Content takes half width minus icon space */
    text-align: right;
    position: relative;
}

.timeline-step:nth-child(odd) .step-content {
    margin-right: 30px; /* Space between content and icon on right side */
}

.timeline-step:nth-child(even) .step-content {
    margin-left: 30px; /* Space between content and icon on left side */
}

.step-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.step-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.9;
}


/* Testimonials Section */
#testimonials {
    background-color: var(--bg-medium);
    color: var(--text-light);
    text-align: center;
    padding-bottom: 7rem;
}

#testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.testimonials-swiper {
    width: 90%;
    max-width: 900px;
    margin-top: 3rem;
    padding-bottom: 3rem; /* Space for pagination */
}

.testimonial-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow-dark);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px; /* Ensure consistent height */
    justify-content: center;
}

.client-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.testimonial-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.testimonial-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-style: italic;
}

.testimonial-card .rating {
    color: gold;
    font-size: 1.2rem;
}

.testimonials-swiper .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}


/* FAQ Section */
#faq {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

#faq h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 3rem auto;
    text-align: right;
}

.accordion-item {
    background-color: var(--bg-medium);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden; /* Hide overflow from content */
}

.accordion-header {
    background-color: var(--bg-light);
    color: var(--text-light);
    padding: 1.2rem 1.5rem;
    width: 100%;
    text-align: right;
    border: none;
    outline: none;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #5b687c;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    background-color: var(--bg-medium);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content.active {
    max-height: 500px; /* Adjust as needed, should be large enough for content */
    padding: 1.5rem;
}

.accordion-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    opacity: 0.9;
}


/* Partners Section - Scrolling Logos */
#partners {
    background-color: var(--bg-medium);
    padding-bottom: 4rem;
}

.scrolling-logos {
    display: flex;
    overflow-x: auto; /* מאפשר גלילה אופקית */
    /* scroll-snap-type: x mandatory; */ /* ניתן להפעיל אם רוצים שהלוגואים "ינעלו" בנקודות מסוימות */
    -webkit-overflow-scrolling: touch; /* גלילה חלקה במכשירי iOS */
    padding-bottom: 20px; /* מקום לצל אם יש */
    margin-top: 3rem;
    justify-content: flex-start; /* ודא שהלוגואים מתחילים מימין ב-RTL */
    /* הסתרת פסי גלילה */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrolling-logos::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.partners-grid { /* השם נשאר, אך התנהגותו השתנתה ל-flex */
    gap: 2rem; /* רווח בין הלוגואים */
    align-items: center;
    justify-content: flex-start;
    width: auto; /* רוחב אוטומטי כדי לאפשר גלילה */
}

.partner-logo {
    flex: 0 0 auto; /* אלמנטים לא יתכווצו, לא יגדלו, רוחב אוטומטי */
    width: 180px; /* רוחב קבוע לכל לוגו */
    height: 120px;
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px; /* רווח בין הלוגואים */
    /* scroll-snap-align: start; */
}

.partner-logo:last-child {
    margin-right: 0;
}

.partner-logo:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(80%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}


/* Contact Section */
.contact-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/background-contact.jpg') center/cover no-repeat fixed;
    color: var(--text-light);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    background-color: var(--bg-medium);
    padding: 3rem;
    border-radius: 15px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--box-shadow-dark);
    text-align: right;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 163, 45, 0.3);
}

.btn-submit {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-submit:hover {
    background-color: #e69424;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.success-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #4CAF50;
    color: white;
    border-radius: 8px;
    text-align: center;
    transition: opacity 0.5s ease;
}

.success-message.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 0.8rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar .nav-links {
        gap: 1.5rem;
    }

    .hero-text h2 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .ceo-content {
        flex-direction: column;
        text-align: center;
    }

    .ceo-text {
        text-align: center;
    }

    .ceo-image {
        margin-bottom: 2rem;
    }

    .timeline-step {
        flex-direction: column;
        text-align: center;
    }
    .timeline-line {
        left: 50%;
    }
    .timeline-step:nth-child(odd) .step-content,
    .timeline-step:nth-child(even) .step-content {
        max-width: 100%;
        margin: 1.5rem 0 0 0;
    }
    .timeline-step:nth-child(odd) .step-icon {
        margin-left: 0; /* Center icon */
    }
    .timeline-step:nth-child(even) .step-icon {
        margin-right: 0; /* Center icon */
    }

    .timeline-step .step-icon {
        position: static; /* Remove absolute positioning */
        transform: none;
        margin-bottom: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .partner-logo {
        width: 150px;
        height: 100px;
        margin-right: 15px;
    }

    .expertise-grid, .ashkelon-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    .expertise-item, .feature-item {
        padding: 2rem;
    }
    .expertise-item i, .feature-item i {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    .logo {
        font-size: 1.8rem;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        padding: 1.5rem 0;
        text-align: center;
        border-top: 1px solid var(--border-color);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 0.7rem 0;
    }
    .hamburger {
        display: flex;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-text h2 {
        font-size: 2.8rem;
    }
    .hero-sub-background {
        height: 120px;
        top: 100px;
        width: 95%; /* Adjust width for smaller screens */
        max-width: none; /* Remove max-width on mobile */
    }
    .hero-text p {
        font-size: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .about-content h2,
    .ceo-message-section h2,
    .expertise-section h2,
    .team-section h2,
    .legal-team-section h2,
    .carousel-section h2,
    .why-ashkelon-section h2,
    #timeline h2,
    #testimonials h2,
    #faq h2,
    #partners h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .value-item, .team-member, .legal-member,
    .expertise-item, .feature-item, .testimonial-card {
        padding: 1.5rem;
    }
    .expertise-item i, .feature-item i {
        font-size: 2.8rem;
    }

    .swiper {
        height: 350px; /* Smaller carousel height on mobile */
    }
    .slide-overlay h3 {
        font-size: 1.5rem;
    }
    .slide-overlay p {
        font-size: 0.9rem;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .partner-logo {
        width: 120px;
        height: 80px;
        margin-right: 10px;
        padding: 1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .testimonial-card {
        min-height: 250px;
    }
    .testimonial-card p {
        font-size: 0.95rem;
    }

    .accordion-header {
        font-size: 1.1rem;
        padding: 1rem 1.2rem;
    }
    .accordion-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }
    .logo {
        font-size: 1.5rem;
    }
    .hero-text h2 {
        font-size: 2.2rem;
    }
    .hero-sub-background {
        height: 100px;
        top: 90px;
    }
    .hero-text p {
        font-size: 0.9rem;
    }

    .values-grid, .team-grid, .legal-grid,
    .expertise-grid, .ashkelon-features-grid {
        gap: 1.5rem;
    }

    .ceo-image {
        width: 180px;
        height: 180px;
    }

    .swiper {
        height: 250px;
    }
    .swiper-button-next, .swiper-button-prev {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.8rem;
    }
    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 1.2rem !important;
    }

    .partners-grid {
        grid-template-columns: 1fr; /* Single column for logos on very small screens */
    }
    .partner-logo {
        width: 150px;
        height: 90px;
        margin-right: 15px;
    }

    .testimonial-card {
        min-height: 200px;
    }
    .client-photo {
        width: 80px;
        height: 80px;
    }
    .testimonial-card h3 {
        font-size: 1.4rem;
    }
    .testimonial-card p {
        font-size: 0.85rem;
    }

    .accordion-header {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
    .accordion-content {
        padding: 1rem;
    }
}