/* --- Global Styles & Variables --- */
:root {
    --primary-color: #1a2451; /* UPDATED Navy Blue */
    --accent-color: #e7b75f;  /* Gold/Yellow */
    --text-color-light: #ffffff; /* White */
    --text-color-dark: #333333; /* Dark Gray for light backgrounds if needed */
    --background-light: #f8f8f8; /* Light gray for contrast sections */

    /* Typography - Use Alef */
    --font-heading: 'Alef', sans-serif;
    --font-body: 'Alef', sans-serif;
}

html {
    scroll-behavior: smooth; /* Enable smooth scrolling */
    overflow-x: hidden; /* Ensure this is present */
}

/* Basic Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-color-light);
    background-color: var(--primary-color); /* Use primary color */
    min-height: 100vh;
    line-height: 1.6;
    /* Base font size for mobile */
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scrolling */

    /* --- Add the animation --- */
    animation: subtleBackgroundPan 120s linear infinite alternate; /* Adjust duration (120s) and timing as needed */
    /* 'alternate' makes it pan back and forth smoothly */
}

html[lang="he"] {
    direction: rtl; /* Ensure RTL for Hebrew */
}

html[lang="en"] {
    direction: ltr; /* Ensure LTR for English */
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 0.75em;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem; /* Larger for hero */
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below images */
}

/* Container */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto; /* Center content */
}

/* --- Header --- */
header {
    padding: 1rem 0; /* REDUCED padding slightly */
    /* Make default background transparent */
    background-color: transparent;
    position: sticky; /* Keep header visible */
    top: 0;
    z-index: 100;
    transition: background-color 0.4s ease; /* Add transition */
}

/* Style for header when scrolled */
header.header-scrolled {
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle separation */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem; /* Add some gap */
}

.logo {
    /* height: 110px; */ /* REVERTED: Back to original fixed height */
    height: 110px;
    width: auto;
    flex-shrink: 0; /* Prevent logo from shrinking */
    /* transition: all 0.3s ease; */ /* REMOVED transition */
}

/* Style for the logo when it's "chasing" the scroll - REMOVED
.logo.logo-chasing {
    position: fixed;
    top: 10px; 
    left: 10px; 
    max-height: 55px; 
    height: auto; 
    z-index: 101; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
    background-color: var(--primary-color); 
    padding: 5px; 
    border-radius: 4px; 
}
*/

/* --- RTL Styles --- REMOVED
html[lang="he"] .logo.logo-chasing {
    left: auto; 
    right: 10px; 
}
*/

nav {
    display: flex; /* Use flex for nav items */
    align-items: center;
    gap: 0.6rem; /* FURTHER Reduce gap within nav (between links and social) */
    flex-grow: 1; /* Allow nav to take up space */
    justify-content: flex-end; /* Keep to the right */
}

/* Navigation Links Styling */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.6rem; /* FURTHER Reduced gap between nav links */
}

.nav-links li {
    padding: 0;
}

.nav-links a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: bold;
    padding: 0.2em 0; /* Adjust padding */
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease; /* ADDED transform transition */
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent-color);
    text-decoration: none; /* Remove underline on hover if desired */
    transform: translateY(-2px); /* ADDED subtle lift */
}

/* Optional underline effect on hover */
/* .nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
} */

/* Header Social Icons Styling */
.header-social {
    display: flex;
    align-items: center;
    gap: 1rem; /* Space between social icons */
}

.header-social a {
    color: var(--text-color-light);
    opacity: 0.7; /* Make slightly less prominent */
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Ensured transform */
    /* font-size: 1.2rem; */ /* REMOVED: Use size for icon instead */
    line-height: 1; /* Ensure proper vertical alignment */
    display: inline-block; /* Ensure transform works correctly */
}

/* Increase icon size */
.header-social a i {
    font-size: 1.6rem; /* INCREASED icon size */
    display: block; /* Helps with alignment/transforms sometimes */
    transition: transform 0.3s ease; /* Add transition if needed for hover */
}

.header-social a:hover,
.header-social a:focus {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-2px); /* ADDED subtle lift */
}

/* --- Sections General Styling --- */
main section {
    padding: 4rem 0;
    text-align: center; /* Center text in sections */
}

/* Alternate background for contrast */
section#about /* Removed , section#testimonials */ {
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

section#about h2 /* Removed , section#testimonials h2 */ {
    color: var(--primary-color); /* Dark heading on light background */
}

/* --- Hero Section --- */
#hero {
    min-height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Add your background image here */
    background-image: linear-gradient(rgba(26, 35, 85, 0.5), rgba(26, 35, 85, 0.5)), url('assets/pizza_polenta.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* background: url('assets/hero-image.jpg') no-repeat center center/cover; */
    /* Use the CSS variable for consistent color - now used by overlay */
    background-color: var(--primary-color);
    text-align: center;
    color: var(--text-color-light);
    position: relative; /* Needed for overlay */
}

/* Remove or comment out old hero text styles */
/* #hero h1 {
    font-size: 3rem; 
    margin-bottom: 0.5em;
    color: var(--accent-color);
} */

/* Style for the tagline below the hero logo */
#hero .tagline {
    font-size: 1.2rem;
    font-weight: normal;
    margin-top: 1rem; /* Add some space below the logo */
    color: var(--text-color-light); /* Ensure it's visible */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* Add shadow for readability */
}

/* Style for the new logo in the hero section */
.hero-logo {
    /* Revert back to max-width */
    max-width: 95%; /* Keep this for mobile */
    width: auto; /* Let browser determine width up to max-width */
    height: auto; /* Maintain aspect ratio */
    margin: 0 auto; /* Center the logo horizontally */
}

/* --- About Section --- */
/* Remove flex styles */
/* #about .container {
    display: flex;
    align-items: center;
    gap: 3rem;
} */

/* Remove image/text container rules */
/* 
.about-image-container {
    flex-basis: 40%;
    flex-shrink: 0;
}
.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.about-text-container {
    flex-basis: 60%;
    text-align: start;
}
*/

/* Restore Parallax Background & Style Section */
section#about {
    /* background-color: var(--text-color-light); REMOVED */
    color: var(--text-color-light); /* RESTORED: Light text */
    padding: 6rem 0; 
    text-align: center; 

    /* RESTORED Parallax Background */
    background-image: linear-gradient(rgba(26, 35, 81, 0.6), rgba(26, 35, 81, 0.6)), url('assets/about-us-image.jpeg'); /* Correct filename + overlay */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative; 
}

section#about h2 {
    color: var(--accent-color); /* RESTORED: Accent color heading */
}

#about p {
    /* Reinstate text centering/constraints */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light); /* Ensure paragraph text is light */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6); /* RESTORED stronger shadow for light text */
}

/* --- Menu Section --- */

/* Remove styles for old flex column container */
/* .menu-items {
    display: flex;
    flex-direction: column;
    gap: 4rem; 
    margin-top: 3rem;
    max-width: 900px; 
    margin-left: auto;
    margin-right: auto;
} */

/* Styles for the Swiper container */
.menu-swiper {
    width: 100%;
    padding-top: 1rem; /* Space for pagination */
    padding-bottom: 3rem; /* Space for navigation buttons */
    margin-top: 2rem;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    /* align-items: stretch; */ /* Default value, make slides same height */
    height: auto; /* Allow slides to determine height */
}

/* Adjust menu item card styles for slider context */
.menu-item {
    /* Keep card styles */
    background-color: rgba(0, 0, 0, 0.15);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    width: 100%; /* Make card fill the slide width */
    display: flex; /* Use flex for vertical stacking inside card */
    flex-direction: column;
    height: 100%; /* ADDED BACK: Make cards fill slide height by default */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ADDED transition */
}

/* Add hover effect to menu cards */
.menu-item:hover {
    transform: scale(1.02); /* ADDED Slightly enlarge card */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); /* ADDED Increase shadow */
}

/* Text content takes remaining space */
.menu-item h3 {
    margin-bottom: 0.5em;
    color: var(--accent-color);
}
.menu-item p {
    color: var(--text-color-light-secondary); /* Slightly dimmer text for description */
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0; /* Remove default bottom margin */
}

/* Swiper Pagination and Navigation Styling */
.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--accent-color);
    background-color: rgba(26, 35, 85, 0.3); /* Semi-transparent background */
    border-radius: 50%;
    width: 44px; /* Default Swiper size */
    height: 44px;
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(26, 35, 85, 0.6);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 1.5rem; /* Adjust arrow size */
}

/* --- Testimonials Section --- */
/* Ensure section background is light and text is dark */
section#testimonials {
    background-color: var(--background-light); /* Light background */
    color: var(--text-color-dark); /* Dark text */
}
section#testimonials h2 {
    color: var(--primary-color); /* Dark heading */
}

.testimonial-items {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-item {
    background-color: var(--text-color-light); /* White background for cards */
    padding: 1.5rem;
    border-radius: 8px;
    /* Optional: Keep or adjust the accent border */
    border-left: 5px solid var(--accent-color); /* Accent border */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: start; /* Align text left/start within blockquote */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ADDED transition */
    border-top: none; /* Ensure no conflicting borders */
    border-right: none;
    border-bottom: none;
}

/* Add hover effect to testimonial cards */
.testimonial-item:hover {
    transform: translateY(-5px); /* ADDED Lift card slightly */
    box-shadow: 0 8px 15px rgba(0,0,0,0.15); /* ADDED Increase shadow slightly */
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color-dark);
    /* font-weight: bold; */ /* Maybe remove bold from quote? */
    font-size: 1.1rem;
    /* transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; */ /* REMOVED redundant transition */
}

.testimonial-item cite {
    font-style: normal;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-top: 0.5rem;
    text-align: end; /* Align citation to the right/end */
}

/* RTL Styles for Testimonials */
html[lang="he"] .testimonial-item {
    border-left: none; /* Remove left border */
    border-right: 5px solid var(--accent-color); /* Add right border */
    text-align: start; /* Keep text aligned to start (right) */
}

html[lang="he"] .testimonial-item cite {
    text-align: end; /* Keep citation aligned to end (left) */
}

/* Optional Blinking Cursor for Testimonial Typing Effect */
.testimonial-item p.is-typing::after {
    content: '_'; /* Simple underscore cursor */
    animation: blink 1s step-end infinite;
    display: inline-block; /* Needed for animation */
    margin-left: 2px;
    color: inherit; /* Match paragraph color */
}
@keyframes blink {
    50% { opacity: 0; }
}

/* --- Contact Options --- */
.contact-options {
    display: flex;
    flex-direction: column; /* Stack on mobile first */
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem; /* Space after heading */
}

.contact-option-button {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    padding: 0.8em 1.5em;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; /* ADDED transform transition */
    min-width: 250px; /* Give buttons a consistent width */
    text-align: center;
}

.contact-option-button i {
    font-size: 1.3em; /* Make icon slightly larger */
}

/* Specific button styles */
.whatsapp-button {
    background-color: #25D366; /* WhatsApp Green */
    border-color: #25D366;
    color: white;
}
.whatsapp-button:hover {
    background-color: #1DAE53;
    border-color: #1DAE53;
    color: white;
}

.email-button {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.email-button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
/* --- END Contact Options --- */

/* --- Contact Section --- */
#contact {
    background-color: var(--primary-color);
}

/* RE-ADD Contact Form Styles */
/* REMOVED transition styles for inline form */
/* #contact-form {
    max-width: 600px;
    margin: 2rem auto 0 auto;
    text-align: start;
    opacity: 1;
    max-height: 1000px; 
    overflow: hidden;
    transition: opacity 0.5s ease-out, max-height 0.5s ease-out, margin-top 0.5s ease-out;
}
*/

/* Style for hidden form - REMOVED (handled by modal now) */
/* #contact-form.hidden {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
}
*/

/* Base styles for form itself */
#contact-form {
    max-width: 600px; /* Keep max-width */
    margin: 1rem auto 0 auto; /* Adjust margin within modal */
    text-align: start;
}

/* Form field group (optional wrapper if needed) */
/* .form-group {
    margin-bottom: 1rem;
} */

#contact-form label {
    display: block;
    /* margin-bottom: 0.5rem; */
    margin-bottom: 0.3rem; /* Reduce space below label */
    margin-top: 1rem; /* Add space above label (except first) */
    font-weight: bold;
    color: var(--primary-color); /* Darker label color */
}
#contact-form label:first-of-type {
     margin-top: 0; /* Remove top margin from first label */
}

#contact-form input[type="text"],
#contact-form input[type="tel"],
#contact-form input[type="number"],
#contact-form input[type="email"], /* Keep email in case needed */
#contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem; /* Consistent padding */
    /* margin-bottom: 1rem; */ /* Margin is now above label */
    border: 1px solid #ccc; /* Lighter border */
    background-color: #fff; /* Ensure white background */
    color: var(--text-color-dark);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5; /* Ensure consistent line height */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box; /* Include padding/border in size */
}

#contact-form input[type="text"]:focus,
#contact-form input[type="tel"]:focus,
#contact-form input[type="number"]:focus,
#contact-form input[type="email"]:focus, 
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color); /* Highlight border on focus */
    box-shadow: 0 0 0 2px rgba(26, 36, 81, 0.2); /* Subtle focus ring */
}


#contact-form textarea {
    resize: none; /* Disable manual resizing */
    /* height: 40px; */ /* Start with a small height (approx 1 line) */
    /* Set initial height based on line-height + padding + border */
    /* Approx: 1.5rem (line) + 1.6rem (padding) + 2px (border) */
    height: calc(1.5rem + 1.6rem + 2px); /* Initial height like input */
    overflow-y: hidden; /* Hide scrollbar, JS will manage height */
    min-height: calc(1.5rem + 1.6rem + 2px); /* Ensure it doesn't shrink smaller */
}

/* Submit Button Styling */
#contact-form button[type="submit"].cta-button {
    display: block; /* Make it block level */
    width: fit-content; /* Size to content */
    min-width: 180px; /* Give it a minimum width */
    margin: 2rem auto 0 auto; /* Center button with space above */
    /* Inherits general .cta-button styles (background, color, padding etc) */
}

/* --- Form Modal Styles --- */
#form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100; /* Same level as video modal */

    /* Initial hidden state */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

#form-modal.modal-visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.form-modal-content {
    position: relative;
    background-color: var(--background-light); /* Use light background */
    color: var(--text-color-dark); /* Dark text */
    padding: 2rem 2.5rem; /* Default padding */
    border-radius: 8px;
    max-width: 90%;
    width: 650px; /* Adjust max width */
    max-height: 90vh; /* Limit height and allow scrolling */
    overflow-y: auto; /* Add scroll if content overflows */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    /* Animation */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#form-modal.modal-visible .form-modal-content {
     transform: scale(1);
     opacity: 1;
}

.form-modal-content h3 {
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 2rem; /* Increased space below title */
    font-size: 1.8rem; /* Adjust title size */
}

#close-form-modal {
    position: absolute;
    top: 10px; 
    right: 15px; 
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

#close-form-modal:hover {
    color: #333;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    /* ... existing mobile styles ... */

    /* Form Modal Mobile Styles */
    .form-modal-content {
         padding: 1.5rem 1rem; /* Adjusted horizontal padding */
         max-width: 95%;
         max-height: 85vh;
    }
    .form-modal-content h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    #contact-form label {
         margin-top: 0.8rem;
    }
    #contact-form button[type="submit"].cta-button {
        width: 100%; /* Ensure full width on mobile */
        margin-top: 1.5rem;
    }
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color); /* Match main background */
    color: var(--text-color-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer .container {
    /* REMOVE Flexbox for layout */
    /* display: flex; */
    /* flex-wrap: wrap; */
    /* justify-content: space-between; */
    /* align-items: center; */
    /* gap: 1rem; */
}

/* Group the main footer content */
.footer-main-content {
    /* REMOVE Flex properties */
    /* display: flex; */
    /* flex-direction: column; */
    /* gap: 1rem; */
    /* flex-grow: 1; */
}

.cta-footer {
    font-size: 1.2rem; /* INCREASED size */
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

footer p:last-child {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0;
}

/* Footer Contact & Social */
.footer-contact-social {
    margin: 1.5rem 0; /* Adjusted margin */
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    align-items: center; /* Vertically align items */
    justify-content: center; /* Center the group */
    gap: 2rem; /* INCREASED gap */
}

.footer-contact {
    font-size: 1.1rem; /* INCREASED size */
}

.footer-contact span {
    opacity: 0.8;
    margin-right: 0.5em; /* Space before phone number */
}

.footer-phone {
    color: var(--text-color-light);
    font-weight: bold;
    text-decoration: none;
}
.footer-phone:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-contact-name {
    font-weight: bold; /* Make name stand out */
    /* Optionally add a slightly different color or effect */
}

.footer-social {
    display: flex;
    gap: 1.5rem; /* Space between social links */
}

.footer-social a {
    color: var(--text-color-light);
    text-decoration: none;
    /* font-weight: bold; REMOVED as it's icon now */
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Added transform transition */
    font-size: 1.8rem; /* INCREASED icon size */
}

.footer-social a:hover {
    opacity: 1;
    color: var(--accent-color);
    text-decoration: none;
    transform: scale(1.1) translateY(-2px); /* UPDATED combined transform */
}

/* Styling for the logo in the footer */
.footer-logo {
    height: 100px; /* INCREASED size */
    width: auto;
    /* margin-left: auto; REMOVED - No longer needed */
    /* align-self: flex-end; REMOVED - Let container align */
}

/* --- Responsive Design (Mobile First) --- */

/* Mobile Header Adjustments */
@media (max-width: 767px) {
    header {
        padding: 0.5rem 0; /* Reduce header padding */
    }

    .header-content {
        gap: 0.5rem; /* Reduce gap between logo and nav */
    }

    /* Re-add smaller logo for mobile */
    .logo {
        max-height: 45px; /* Smaller logo on mobile */
    }

    nav {
        gap: 0.6rem; /* FURTHER Reduce gap within nav (between links and social) */
        /* flex-wrap: wrap; */ /* Allow wrapping if absolutely needed, but prefer shrinking */
        justify-content: flex-end; /* Keep to the right */
    }

    .nav-links {
        gap: 0.6rem; /* FURTHER Reduced gap between nav links */
        padding: 0; /* Ensure no extra padding */
        /* display: none; */ /* Option: Hide text links if space is impossible */
    }
    
    .nav-links a {
        font-size: 0.75rem; /* FURTHER Reduced nav text size */
        padding: 0.2em 0; /* Adjust padding */
    }

    .header-social {
        gap: 0.7rem; /* Adjust gap for mobile */
        display: flex; /* Ensure it's flex */
        align-items: center; 
    }

    .header-social a i {
        font-size: 1.4rem; /* Ensure icons are visible and sized */
        color: var(--text-color-light); /* Ensure color has contrast */
    }

    /* Disable parallax on mobile for performance/consistency */
    section#about {
        background-attachment: scroll; /* Override fixed */
    }

    /* Adjust Hero section height for mobile */
    #hero {
        min-height: 55vh; /* Reduced height */
        padding-top: 2rem; /* Add some top padding if needed */
        padding-bottom: 2rem; /* Add some bottom padding if needed */
        /* Optionally change vertical alignment */
        /* align-items: flex-start; */ 
    }

    /* Adjust Menu section padding and item spacing for mobile */
    #menu {
        padding: 2.5rem 0; /* Reduced vertical padding */
    }
    #menu .swiper-slide .menu-item {
        padding: 1rem; /* Reduced internal card padding */
        height: fit-content; /* Explicitly size based on content */
    }
    #menu .swiper-slide img {
        margin-bottom: 1rem; /* Reduced space below image */
    }

    /* ... other mobile styles ... */
}

/* Tablet Styles */
@media (min-width: 768px) {
    body {
        font-size: 17px; /* Slightly larger base font */
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    #hero h1 {
        font-size: 4rem;
    }

    #hero .tagline {
        font-size: 1.4rem;
    }

    /* REMOVED .menu-items responsive rules */
    /* .menu-items {
        max-width: 700px; 
        gap: 5rem; 
    } */

    .testimonial-items {
        /* Display 2 items per row */
        grid-template-columns: repeat(2, 1fr);
    }

    /* Adjust hero logo size for tablets if needed */
    .hero-logo {
        /* Revert back to max-width */
        max-width: 90%; /* INCREASED tablet size */
        width: auto;
    }

    /* Adjust hero tagline size */
    #hero .tagline {
        font-size: 1.6rem;
    }

    /* Responsive adjustments for contact options */
    .contact-options {
        flex-direction: row; /* Side-by-side on larger screens */
        gap: 2rem;
    }

    /* Adjust footer layout for larger screens */
    /* REMOVED - Let it stay centered 
    .footer-contact-social {
        flex-direction: row; 
        justify-content: space-between; 
        flex-wrap: nowrap; 
    }
    */
}

/* Desktop Styles */
@media (min-width: 1024px) {
    body {
        font-size: 18px; /* Larger base font for desktop */
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.8rem;
    }

     #hero h1 {
        font-size: 5rem;
    }

    #hero .tagline {
        font-size: 1.6rem;
    }

    main section {
        padding: 6rem 0;
    }

    /* REMOVED .menu-items responsive rules */
    /* .menu-items {
        max-width: 900px; 
        gap: 6rem; 
    } */

    .testimonial-items {
         /* Display 3 items per row if you have 3, or keep 2 */
        grid-template-columns: repeat(3, 1fr);
        /* If only 2 testimonials, you might want: */
        /* grid-template-columns: repeat(2, 1fr); */
        /* max-width: 900px; /* Center the 2 items */
        /* margin-left: auto;
        margin-right: auto; */
    }

    /* Adjust hero logo size for desktop if needed */
    .hero-logo {
        /* Revert back to max-width */
        max-width: 1000px; /* INCREASED desktop size */
        width: auto;
    }

    /* Adjust hero tagline size */
    #hero .tagline {
        font-size: 1.6rem;
    }
}

/* --- Animation Styles --- */

/* Initial state for elements that will fade/slide in */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px); /* Optional: Start slightly lower */
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform; /* Hint browser for optimization */
}

/* Final state triggered by JS when element is visible */
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Simulation (Temporary) --- REMOVED */
/* 
body.mobile-simulation {
    max-width: 400px; 
    margin: 2rem auto !important; 
    border: 2px dashed #ccc; 
    overflow-x: hidden; 
}

body.mobile-simulation header {
    position: absolute; 
    width: 100%; 
    max-width: 400px;
}
*/

/* --- Contact Section --- */
#contact {
    @media (min-width: 768px) {
        gap: 2rem;
    }
}

/* Adjust footer layout for larger screens */
/* ... existing code ... */

/* ... rest of the existing code ... */

/* Game Canvas Styling - REMOVED */
/*
#gameCanvas {
    visibility: hidden;
    opacity: 0;
    border: 1px solid #ccc;
    margin: 0; 
    width: 90%; 
    max-width: 800px; 
    aspect-ratio: 800 / 300; 
    height: auto; 
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 1000; 
    background-color: white; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#gameCanvas.game-visible {
    visibility: visible;
    opacity: 1;
}
*/

/* Simple Close Button Style - REMOVED */
/*
#closeGameButton {
    position: absolute; 
    top: 5px;
    right: 10px;
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    cursor: pointer;
    z-index: 1001; 
    display: none; 
}

#gameCanvas.game-visible + #closeGameButton,
#gameCanvas.game-over + #closeGameButton {
    display: block; 
}
*/

/* --- Animations --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-animation {
    animation: pulse 0.3s ease-out;
}

/* ADDED: Animation for WhatsApp Buttons */
@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Match FAB shadow */
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5); /* Pulse with WhatsApp green shadow */
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

.whatsapp-pulse-animation {
    /* Apply to both the FAB and the contact section button */
    animation: whatsappPulse 1.5s ease-in-out;
}

/* --- Menu Section Styles --- */
#menu {
    /* Slightly different semi-transparent darker blue for separation */
    background-color: rgba(15, 25, 60, 0.5);
    /* Or try a subtle gradient */
    /* background-image: linear-gradient(rgba(15, 25, 60, 0.5), rgba(26, 36, 81, 0.7)); */
    padding: 4rem 0; /* Add vertical padding */
    overflow: hidden; /* Prevent potential overflow issues with transforms */
}

#menu h2 { /* Style the "Menu Highlights" title */
    margin-bottom: 2.5rem; /* Add more space below the title */
    color: var(--accent-color-light); /* Ensure title is bright */
    text-align: center; /* Center the section title */
}

/* Style individual menu item cards within the slides */
#menu .swiper-slide .menu-item {
    padding: 1.5rem; /* Padding inside the card */
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05); /* Subtle background for the card itself */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
    display: flex; /* Use flexbox for content alignment */
    flex-direction: column; /* Stack image and text vertically */
    height: 100%; /* Make card fill the slide height */
    text-align: var(--default-text-align); /* Use variable for text align */
}

#menu .swiper-slide img {
    width: 100%;
    height: auto; /* Let height scale with width */
    object-fit: cover; /* Still useful if container forces aspect ratio, but less critical now */
    border-radius: 4px; /* Slightly rounded corners for the image */
    margin-bottom: 1.5rem; /* Space between image and text */
    display: block; /* Ensure image behaves like a block */
}

#menu .menu-item h3 {
    color: var(--accent-color-light); /* Ensure titles are bright */
    margin-top: 0; /* Remove default top margin */
    margin-bottom: 0.75rem;
    font-size: 1.25rem; /* Slightly larger title */
}

#menu .menu-item p {
    color: var(--text-color-light-secondary); /* Slightly dimmer text for description */
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0; /* Remove default bottom margin */
    /* flex-grow: 1; */ /* REMOVED: Allow description to fill remaining space if needed */
}


/* Hover/Active state for the menu item card */
#menu .swiper-slide .menu-item:hover,
#menu .swiper-slide .menu-item:active /* Basic tap feedback */ {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter on hover */
}

/* Adjust Swiper navigation button colors for contrast */
#menu .swiper-button-next,
#menu .swiper-button-prev {
    color: var(--accent-color-light); /* Make arrows brighter */
    transition: transform 0.2s ease;
}
#menu .swiper-button-next:hover,
#menu .swiper-button-prev:hover {
     transform: scale(1.1); /* Slightly enlarge arrows on hover */
}


/* Adjust Swiper pagination colors for contrast */
#menu .swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.4); /* Dimmer inactive bullets */
    opacity: 1;
}

#menu .swiper-pagination-bullet-active {
    background: var(--accent-color); /* FIXED: Use defined accent color */
}

/* Ensure swiper container itself doesn't get unwanted padding/margin */
/* Swiper adds padding-bottom automatically based on pagination element height usually */
/* #menu .swiper-container { */
/*      padding-bottom: 2.5rem; */ /* Add space for pagination */
/* } */ 

/* Add this somewhere in your style.css, e.g., near the top or in an animations section */
@keyframes subtleBackgroundPan {
  0% {
    background-position: 0% 0%;
  }
  100% {
    /* Move the background image diagonally over a long period */
    /* Adjust values to change speed/direction */
    background-position: 150% 150%;
  }
} 

/* --- Video Showcase Section --- */
#video-showcase {
    /* TEMPORARILY HIDE */
    display: none; 

    padding: 4rem 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1); /* Subtle background difference */
}

#video-showcase h2 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 2.5rem; /* Adjust as needed */
    margin-bottom: 0.5em;
    line-height: 1.2;
    text-align: center;
}

#video-showcase .subtitle {
    font-size: 1.1rem;
    color: var(--text-color-light);
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-thumbnail-wrapper {
    position: relative;
    display: inline-block; /* Allows centering */
    cursor: pointer;
    max-width: 700px; /* Limit thumbnail size */
    width: 100%;
    border-radius: 8px;
    overflow: hidden; /* Keep play button contained */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-thumbnail-wrapper img.thumbnail-image {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.video-thumbnail-wrapper:hover img.thumbnail-image {
    transform: scale(1.03);
}

#play-video-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 80px; /* Adjust size */
    height: 80px;
    background-color: rgba(0, 0, 0, 0.5);
     /* If using an SVG file */
     background-image: url('assets/play-button.svg'); /* Make sure this path is correct */
     background-size: 50%; /* Adjust SVG icon size within button */
     background-position: center;
     background-repeat: no-repeat;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
    border: none; /* Ensure no default button border */
    padding: 0;  /* Ensure no default button padding */
}
 /* If using Font Awesome Icon instead of SVG file */
 /* #play-video-button i {
     font-size: 3rem;
     color: white;
     line-height: 80px; /* Center icon vertically */
 /* } */

#play-video-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(0, 0, 0, 0.7);
}

/* --- Video Modal (Lightbox) --- */
#video-modal {
    /* TEMPORARILY HIDE */
    display: none;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100; /* High z-index */

    /* Initial hidden state for animation */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s; /* Delay hiding visibility */
}

#video-modal.modal-visible {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s; /* Remove delay when showing */
}

.video-modal-content {
    position: relative;
    background-color: #000; /* Black background for video area */
    padding: 10px; /* Small padding around video */
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    width: 1000px; /* Max video width */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Animation */
    transform: scale(0.95);
    opacity: 0; /* Start transparent for fade-in */
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#video-modal.modal-visible .video-modal-content {
     transform: scale(1);
     opacity: 1;
}

#modal-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(90vh - 20px); /* Consider modal padding */
    border-radius: 4px; /* Slight rounding if desired */
}

#close-video-modal {
    position: absolute;
    top: -15px; /* Position slightly outside */
    right: -15px; /* Position slightly outside */
    background: white;
    color: black;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 24px;
    font-weight: bold;
    line-height: 35px; /* Center the 'X' */
    text-align: center;
    cursor: pointer;
    z-index: 1101;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0; /* Ensure no default padding */
}

 #close-video-modal:hover {
     transform: scale(1.1);
     background-color: #eee;
 }

/* Responsive adjustments specifically for video section */
@media (max-width: 767px) {
    #video-showcase h2 {
        font-size: 2rem;
    }
    #video-showcase .subtitle {
        font-size: 1rem;
    }
    #play-video-button {
        width: 60px;
        height: 60px;
    }
    /* If using Font Awesome Icon */
    /* #play-video-button i {
        font-size: 2rem;
        line-height: 60px;
    } */
     .video-modal-content {
         padding: 5px;
         max-width: 95%;
         max-height: 85%;
     }
     #close-video-modal {
         width: 30px;
         height: 30px;
         font-size: 20px;
         line-height: 30px;
         top: -10px;
         right: -10px;
     }
} 

/* --- WhatsApp Floating Action Button (FAB) --- */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999; /* Below modals but above most content */
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none; /* Remove underline from link */
}

.whatsapp-fab i {
    font-size: 2rem; /* Adjust icon size */
    line-height: 1; /* Ensure icon is centered */
}

.whatsapp-fab:hover {
    transform: scale(1.1); /* Enlarge on hover */
    background-color: #1DAE53; /* Darker green on hover */
    color: white;
}

/* Optional: Adjust position slightly on mobile if needed */
/* @media (max-width: 767px) {
    .whatsapp-fab {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    .whatsapp-fab i {
        font-size: 1.8rem;
    }
} */ 

/* --- WhatsApp Modal Styles --- */
/* Generic Modal styles - can be reused */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top (adjust if needed relative to header/other elements) */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if content is long */
    background-color: rgba(0,0,0,0.7); /* Darker overlay */
    direction: rtl; /* Default to RTL for Hebrew */
}

/* Style for when the modal is active */
.modal.modal-open {
    display: block; /* Show the modal */
    /* Optional: Add fade-in animation */
    /* animation: fadeIn 0.3s ease; */
}

/* Content box within the modal */
.modal-content {
    background-color: #fefefe; /* White background */
    color: var(--text-color-dark); /* Dark text for readability */
    margin: 15% auto; /* 15% from the top and centered horizontally */
    padding: 25px;
    border: 1px solid #888;
    width: 80%; /* Responsive width */
    max-width: 500px; /* Maximum width */
    border-radius: 8px;
    position: relative; /* Needed for absolute positioning of close button */
    text-align: right; /* Align text to the right for Hebrew */
     /* Optional: Add slide-in animation */
    /* animation: slideIn 0.4s ease-out; */
}

/* Close Button Styling */
.modal-content .close-button {
    color: #aaa; /* Default color */
    position: absolute;
    right: 15px; /* Position top-right */
    top: 10px;
    font-size: 36px; /* Larger X */
    font-weight: bold;
    cursor: pointer;
    line-height: 1; /* Ensure consistent positioning */
    transition: color 0.3s ease, transform 0.3s ease; /* Added transitions */
}

.modal-content .close-button:hover,
.modal-content .close-button:focus {
    color: red; /* Red color on hover/focus */
    text-decoration: none;
    transform: scale(1.1); /* Slightly larger on hover */
}

/* Form Styles specific to WhatsApp modal */
#whatsappFormModal h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color); /* Match theme if desired */
}

#whatsappDetailsForm .form-group {
    margin-bottom: 15px;
}

#whatsappDetailsForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555; /* Slightly muted label color */
}

#whatsappDetailsForm input[type="text"],
#whatsappDetailsForm input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Prevent padding from adding to width */
    text-align: right; /* Align input text right */
    font-family: var(--font-body); /* Ensure consistent font */
    font-size: 1rem;
}

#whatsappDetailsForm input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 36, 81, 0.2); /* Focus indicator */
}

#whatsappDetailsForm button[type="submit"] {
    /* Use existing cta-button styles if available and appropriate */
    /* Otherwise, add base styling */
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    cursor: pointer;
    background-color: var(--accent-color); /* Theme color */
    color: var(--primary-color); /* Contrasting text */
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#whatsappDetailsForm button[type="submit"]:hover {
    background-color: darken(var(--accent-color), 10%); /* Darken on hover */
    transform: translateY(-1px);
}

/* Optional Fade-in/Slide-in Animations */
/* @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
} */ 