/* =========================================
   CSS Variables & Theme Setup
   ========================================= */
   /* משתנים גלובליים - צבעים וגופנים לשימוש בכל האתר */
:root {
    /* Color Palette */
    --clr-bg: #0a0a0a;
    --clr-bg-alt: #111111;
    --clr-primary: #45D6FF; /* Cyan / Electric Blue */
    --clr-secondary: #6A38FF; /* Deep Purple */
    --clr-text: #ffffff;
    --clr-text-muted: #a0a0a0;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    --grad-glow: linear-gradient(135deg, rgba(69, 214, 255, 0.4), rgba(106, 56, 255, 0.4));
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Heebo', sans-serif;
    --font-body: 'Assistant', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-pad: 5rem 0;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* אנימציית מעבר חלקה */
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition); /* אנימציית מעבר חלקה */
}

.inline-link {
    color: var(--clr-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 600;
    transition: var(--transition); /* אנימציית מעבר חלקה */
}
.inline-link:hover {
    color: var(--clr-secondary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute; /* מיקום מוחלט ביחס להורה */
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}
.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================
   Utilities & Reusable Components
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition); /* אנימציית מעבר חלקה */
}

.glass-card:hover {
    border-color: rgba(69, 214, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(69, 214, 255, 0.15);
    transform: translateY(-5px);
}

/* ======= כפתורים (Buttons) ======= */
/* עיצוב בסיסי לכל הכפתורים באתר */
.btn {
    display: inline-flex;
    align-items: center; /* יישור אנכי לאמצע */
    justify-content: center; /* יישור לאמצע */
    padding: 1rem 2rem; /* 16px 32px */
    border-radius: 32px; /* 2rem */
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
    text-align: center;
    border: 2px solid transparent;
    outline: none;
    text-decoration: none;
    line-height: 1.2;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(69, 214, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(106, 56, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline {
    background: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* =========================================
   Header & Nav
   ========================================= */
/* ======= תפריט עליון (Header) ======= */
/* התפריט הראשי הנדבק לחלק העליון */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* שכבת תצוגה (מי מסתיר את מי) */
    padding: 1rem 0;
    transition: var(--transition); /* אנימציית מעבר חלקה */
}

.main-header.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
}

.header-container {
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    justify-content: space-between;
    align-items: center; /* יישור אנכי לאמצע */
    flex-direction: row-reverse;
}

.logo img {
    height: 50px;
    object-fit: contain;
}

.nav-links {
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 600;
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute; /* מיקום מוחלט ביחס להורה */
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--clr-primary);
    transition: width 0.3s ease; /* אנימציית מעבר חלקה */
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--clr-text);
    font-size: 1.5rem;
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
}

/* =========================================
   Hero Section
   ========================================= */
/* ======= אזור הראשי (Hero) ======= */
/* הגדרות של המסך הראשון שהמשתמש רואה */
.hero {
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
    min-height: 100vh;
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    padding-top: 80px;
    padding-bottom: 80px; /* added 80px padding */
    overflow: hidden; /* הסתרת תוכן שחורג מהגבולות */
}

.hero-bg-elements {
    position: absolute; /* מיקום מוחלט ביחס להורה */
    inset: 0;
    z-index: 0; /* שכבת תצוגה (מי מסתיר את מי) */
    pointer-events: none;
}

.glow {
    position: absolute; /* מיקום מוחלט ביחס להורה */
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: pulse 6s infinite alternate;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--clr-primary);
    top: 10%;
    right: -10%;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--clr-secondary);
    bottom: -200px;
    left: -100px;
    animation-delay: 2s;
}

.grid-overlay {
    position: absolute; /* מיקום מוחלט ביחס להורה */
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.15; }
    100% { transform: scale(1.1); opacity: 0.3; }
}

.hero-content {
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
    z-index: 1; /* שכבת תצוגה (מי מסתיר את מי) */
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    /* Tighter drop-shadow to separate from glowing circles without a box */
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.95));
}

.hero-logo {
    max-width: 350px;
    width: 80%;
    margin: 0 auto 2rem;
    display: block;
    /* Darken the logo and replace cyan glow with a dark shadow */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.8)) brightness(0.75);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    justify-content: center; /* יישור לאמצע */
    gap: 1.5rem;
}

/* =========================================
   About Section
   ========================================= */
.about {
    padding: var(--section-pad);
    background: var(--clr-bg-alt);
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center; /* יישור אנכי לאמצע */
}

.about-text p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--clr-primary);
}

.image-wrapper {
    padding: 0.5rem; /* 8px */
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
}

.image-wrapper::before {
    content: '';
    position: absolute; /* מיקום מוחלט ביחס להורה */
    inset: -2px;
    background: var(--grad-primary);
    z-index: -1;
    border-radius: calc(var(--border-radius) + 2px);
    opacity: 0.5;
    filter: blur(10px);
}

.image-wrapper img {
    border-radius: calc(var(--border-radius) - 5px);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

/* =========================================
   Services Section
   ========================================= */
.services {
    padding: var(--section-pad);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 3rem 2rem;
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
    overflow: hidden; /* הסתרת תוכן שחורג מהגבולות */
}

.service-card::before {
    content: '';
    position: absolute; /* מיקום מוחלט ביחס להורה */
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease; /* אנימציית מעבר חלקה */
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(69, 214, 255, 0.1);
    border-radius: 50%;
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    justify-content: center; /* יישור לאמצע */
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--clr-primary);
    transition: var(--transition); /* אנימציית מעבר חלקה */
}

.service-card:hover .icon-wrapper {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(69, 214, 255, 0.5);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-muted);
}

/* =========================================
   Why Choose Us
   ========================================= */
.why-us {
    padding: var(--section-pad);
    background: var(--clr-bg-alt);
    background-image: radial-gradient(circle at right center, rgba(106, 56, 255, 0.1) 0%, transparent 50%);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.why-list ul li {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    gap: 1rem;
}

.why-list ul li i {
    color: var(--clr-primary);
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--clr-primary);
    font-family: var(--font-heading);
}

.stat-card span:nth-child(2) {
    font-size: 3rem;
    font-weight: 900;
    color: var(--clr-primary);
}

.stat-label {
    display: block;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-top: 0.5rem;
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery {
    padding: var(--section-pad);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
    border-radius: var(--border-radius);
    overflow: hidden; /* הסתרת תוכן שחורג מהגבולות */
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
    display: block;
    padding: 0;
    border: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease; /* אנימציית מעבר חלקה */
}

.gallery-overlay {
    position: absolute; /* מיקום מוחלט ביחס להורה */
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition); /* אנימציית מעבר חלקה */
}

.gallery-overlay span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.3s ease; /* אנימציית מעבר חלקה */
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Masonry adjustments for placeholder layout */
.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

/* =========================================
   Process Timeline
   ========================================= */
.process {
    padding: var(--section-pad);
    background: var(--clr-bg-alt);
}

.timeline {
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute; /* מיקום מוחלט ביחס להורה */
    top: 0;
    right: 35px;
    height: 100%;
    width: 2px;
    background: rgba(69, 214, 255, 0.3);
}

.timeline-item {
    position: relative; /* מיקום יחסי (הורה עבור אלמנטים מוחלטים) */
    margin-bottom: 3rem;
    padding-right: 80px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute; /* מיקום מוחלט ביחס להורה */
    top: 0;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--clr-bg);
    border: 2px solid var(--clr-primary);
    border-radius: 50%;
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    justify-content: center; /* יישור לאמצע */
    font-weight: bold;
    color: var(--clr-primary);
    z-index: 1; /* שכבת תצוגה (מי מסתיר את מי) */
    box-shadow: 0 0 15px rgba(69, 214, 255, 0.3);
}

.timeline-content {
    padding: 1.5rem;
}

.timeline-content h3 {
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

/* =========================================
   Contact Section
   ========================================= */
.contact {
    padding: var(--section-pad);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-item i {
    color: var(--clr-primary);
    font-size: 1.5rem;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--clr-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition); /* אנימציית מעבר חלקה */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 10px rgba(69, 214, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Footer
   ========================================= */
.main-footer {
    background: #050505;
    padding: 4rem 0 1rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo p {
    color: var(--clr-text-muted);
    margin-top: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--clr-text-muted);
}

.footer-links ul li a:hover {
    color: var(--clr-primary);
}

.footer-social {
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    justify-content: center; /* יישור לאמצע */
    font-size: 1.2rem;
    transition: var(--transition); /* אנימציית מעבר חלקה */
    border: 1px solid var(--glass-border);
}

.footer-social a.social-fb:hover {
    background: #1877F2;
    border-color: #1877F2;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.footer-social a.social-ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.footer-social a.social-wa:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Header Social (Desktop Only) */
.social-icon.social-fb:hover {
    background: #1877F2 !important;
    border-color: #1877F2 !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.4) !important;
}

.social-icon.social-ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(220, 39, 67, 0.4) !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* =========================================
   Floating WhatsApp
   ========================================= */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
    z-index: 100; /* שכבת תצוגה (מי מסתיר את מי) */
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    justify-content: center; /* יישור לאמצע */
    transition: var(--transition); /* אנימציית מעבר חלקה */
}

.floating-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* =========================================
   Lightbox
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000; /* שכבת תצוגה (מי מסתיר את מי) */
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoomIn 0.3s;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 0.5rem 0; /* 8px 0 */
    height: 150px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.lightbox-close {
    position: absolute; /* מיקום מוחלט ביחס להורה */
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s; /* אנימציית מעבר חלקה */
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--clr-primary);
    text-decoration: none;
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
}

@keyframes zoomIn {
    from {transform:scale(0.9); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

/* =========================================
   Animations
   ========================================= */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-in; /* אנימציית מעבר חלקה */
}

.fade-in.appear {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* אנימציית מעבר חלקה */
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Media Queries (Mobile)
   ========================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    .about-grid, .why-grid, .contact-card {
        grid-template-columns: 1fr;
    }
    .contact-card {
        padding: 2rem;
    }
    .gallery-item-large, .gallery-item-wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    /* משתנים גלובליים - צבעים וגופנים לשימוש בכל האתר */
:root {
        --section-pad: 3.5rem 0;
    }
    
    .header-container {
        flex-direction: row;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        height: calc(100vh - 70px);
        align-items: center; /* יישור אנכי לאמצע */
        justify-content: center; /* יישור לאמצע */
        transition: 0.4s ease-in-out; /* אנימציית מעבר חלקה */
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
        margin-right: auto;
    }
    
    /* ======= אזור הראשי (Hero) ======= */
/* הגדרות של המסך הראשון שהמשתמש רואה */
.hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

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

    .section-title {
        font-size: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .services-grid, .stats-grid, .gallery-grid, .footer-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        right: 15px;
    }
    
    .timeline-item {
        padding-right: 50px;
    }
    
    .timeline-icon {
        width: 30px;
        height: 30px;
        right: 0;
        font-size: 0.9rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .header-social {
        display: flex; /* תצוגה גמישה לסידור אלמנטים */
        justify-content: center; /* יישור לאמצע */
        margin-right: 0;
        border-right: none;
        padding-right: 0;
        margin-top: 1rem;
        border-top: 1px solid var(--glass-border);
        padding-top: 1rem;
        width: 100%;
    }
}

/* =========================================
   Accessibility Widget
   ========================================= */
.a11y-widget {
    position: fixed;
    top: 35%;
    right: 0;
    transform: translateY(-50%);
    z-index: 9999; /* שכבת תצוגה (מי מסתיר את מי) */
}

.a11y-toggle {
    width: 45px;
    height: 45px;
    background-color: #333;
    color: #fff;
    border-radius: 8px 0 0 8px;
    border: 2px solid var(--clr-primary);
    border-right: none;
    font-size: 20px;
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition); /* אנימציית מעבר חלקה */
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    justify-content: center; /* יישור לאמצע */
}

.a11y-toggle:hover {
    width: 55px;
    background-color: var(--clr-primary);
    color: #000;
}

.a11y-menu {
    position: absolute; /* מיקום מוחלט ביחס להורה */
    top: 0;
    right: 55px;
    width: 280px;
    background: #fff;
    color: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    direction: rtl;
    border: 2px solid var(--clr-primary);
}

.a11y-menu.active {
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    animation: fadeIn 0.3s ease;
}

.a11y-header {
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    justify-content: space-between;
    align-items: center; /* יישור אנכי לאמצע */
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.a11y-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.a11y-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
    color: #666;
}

.a11y-options {
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    flex-direction: column;
    gap: 0.8rem;
}

.a11y-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.8rem;
    border-radius: 6px;
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
    font-family: inherit;
    font-weight: 600;
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    justify-content: space-between;
    align-items: center; /* יישור אנכי לאמצע */
    transition: 0.2s; /* אנימציית מעבר חלקה */
    color: #333;
}

.a11y-btn:hover, .a11y-btn.active-setting {
    background: #e3f2fd;
    border-color: var(--clr-primary);
    color: #000;
}

.a11y-reset {
    background: #ffebee;
    color: #c62828;
    margin-top: 1rem;
}

/* Accessibility Modes */
body.a11y-high-contrast {
    --clr-bg: #000000;
    --clr-bg-alt: #000000;
    --clr-primary: #ffff00;
    --clr-secondary: #00ff00;
    --clr-text: #ffffff;
    --clr-text-muted: #ffffff;
    --glass-bg: #000000;
    --glass-border: #ffffff;
}
body.a11y-high-contrast .glass-card, 
body.a11y-high-contrast .service-card, 
body.a11y-high-contrast .contact-card {
    background: #000 !important;
    border: 2px solid #fff !important;
}

body.a11y-light-mode {
    --clr-bg: #ffffff;
    --clr-bg-alt: #f0f0f0;
    --clr-primary: #0000cc;
    --clr-secondary: #660066;
    --clr-text: #000000;
    --clr-text-muted: #333333;
    --glass-bg: #ffffff;
    --glass-border: #000000;
}
body.a11y-light-mode .glass-card, 
body.a11y-light-mode .main-header.scrolled,
body.a11y-light-mode .timeline-content,
body.a11y-light-mode .contact-card {
    background: #ffffff !important;
    border: 2px solid #000 !important;
    box-shadow: none;
    color: #000;
}
body.a11y-light-mode .gallery-overlay {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
}
body.a11y-light-mode .gallery-overlay span {
    color: #000;
}
body.a11y-light-mode .btn-secondary {
    border-color: #000;
    color: #000;
}
body.a11y-light-mode .btn-secondary:hover {
    background: #000;
    color: #fff;
}
body.a11y-light-mode .nav-links a:not(.btn) {
    color: #000;
}

body.a11y-highlight-links a {
    background-color: #ffff00 !important;
    color: #000000 !important;
    text-decoration: underline !important;
    padding: 2px 4px !important;
    border-radius: 4px;
}

body.a11y-readable-font {
    --font-heading: Arial, Helvetica, sans-serif !important;
    --font-body: Arial, Helvetica, sans-serif !important;
}

html.a11y-text-1 { font-size: 110%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 140%; }

/* =========================================
   Preloader
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--clr-bg);
    z-index: 99999; /* שכבת תצוגה (מי מסתיר את מי) */
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    justify-content: center; /* יישור לאמצע */
    align-items: center; /* יישור אנכי לאמצע */
    transition: opacity 0.5s ease, visibility 0.5s ease; /* אנימציית מעבר חלקה */
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-logo img {
    max-width: 150px;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; filter: drop-shadow(0 0 10px rgba(69, 214, 255, 0.5)); }
    100% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 20px rgba(106, 56, 255, 0.8)); }
}

/* =========================================
   Scroll to Top
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 45px;
    height: 45px;
    background: var(--clr-primary);
    color: #000;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer; /* סמן של עכבר (כף יד בלחיצה) */
    box-shadow: 0 4px 15px rgba(69, 214, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease; /* אנימציית מעבר חלקה */
    z-index: 99; /* שכבת תצוגה (מי מסתיר את מי) */
    display: flex; /* תצוגה גמישה לסידור אלמנטים */
    align-items: center; /* יישור אנכי לאמצע */
    justify-content: center; /* יישור לאמצע */
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--clr-secondary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(106, 56, 255, 0.6);
    transform: translateY(-5px);
}
