/* ==========================================
   1. משתני צבעים וליבה - עדכון נגישות
   ========================================== */
:root {
    --primary-color: #00e5ff;
    --secondary-color: #2979ff;
    --bg-color: #050a14;
    --surface-color: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #cbd5e1; 
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Heebo', sans-serif; }

html, body { max-width: 100%; overflow-x: hidden; }

body { 
    font-size: 1.05rem; background-color: var(--bg-color); color: var(--text-main); line-height: 1.7; scroll-behavior: smooth; 
}

@media (pointer: fine) {
    body { cursor: none; }
    a, button, select, input { cursor: none !important; }
}

*:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 4px; }

/* ==========================================
   2. רקעים ואפקטים כלליים
   ========================================== */
.bg-glow { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 50% 50%, rgba(41, 121, 255, 0.05), transparent 60%); z-index: 1; animation: pulseGlow 15s ease-in-out infinite alternate; pointer-events: none; }
@keyframes pulseGlow { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.1); opacity: 1; } }

#particles-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

main { position: relative; z-index: 10; }
footer { position: relative; z-index: 10; text-align: center; padding: 40px 20px; background: #02040a; border-top: 1px solid var(--border-color); font-weight: 400; font-size: 1.1rem; }

/* עכבר מותאם */
.cursor-dot, .cursor-outline { position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 999999; pointer-events: none; }
.cursor-dot { width: 8px; height: 8px; background-color: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); }
.cursor-outline { width: 40px; height: 40px; border: 2px solid rgba(0, 229, 255, 0.5); transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s; }
.cursor-outline.hover-effect { width: 60px; height: 60px; background-color: rgba(0, 229, 255, 0.1); border-color: var(--secondary-color); }
@media (max-width: 768px) { .cursor-dot, .cursor-outline { display: none; } }

/* ==========================================
   3. האדר ותפריט מובייל
   ========================================== */
header { position: fixed; top: 0; width: 100%; padding: 15px 5%; display: flex; justify-content: space-between; align-items: center; flex-direction: row-reverse; background: rgba(5, 10, 20, 0.85); backdrop-filter: blur(12px); z-index: 1000; border-bottom: 1px solid var(--border-color); }
.logo-link { display: flex; align-items: center; text-decoration: none; z-index: 1001; }
.logo-img { max-height: 45px; width: auto; transition: var(--transition); }
.logo-img:hover { transform: scale(1.05); }
.logo-text-fallback { display: none !important; } /* פותר את בעיית הטקסט שליד הלוגו */

.nav-controls { display: flex; align-items: center; gap: 20px; flex-direction: row-reverse; z-index: 1001; }
nav ul { list-style: none; display: flex; gap: 25px; }
nav a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 1.15rem; transition: var(--transition); padding: 5px; }
nav a:hover { color: var(--primary-color); }
.lang-btn { background: rgba(0, 229, 255, 0.1); border: 1px solid var(--primary-color); color: var(--primary-color); padding: 8px 18px; border-radius: 20px; cursor: none; font-weight: 700; font-size: 1.1rem; transition: var(--transition); }
.lang-btn:hover { background: var(--primary-color); color: var(--bg-color); }

.hamburger { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; z-index: 1001; }
.hamburger span { width: 100%; height: 3px; background: white; border-radius: 10px; transition: all 0.3s linear; position: relative; transform-origin: 1px; }

.menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 999; opacity: 0; transition: opacity 0.3s ease; }

/* ==========================================
   4. סקשנים כללי
   ========================================== */
section { padding: 100px 5%; position: relative; width: 100%; overflow: hidden; }
.section-title { text-align: center; font-size: 2.8rem; margin-bottom: 20px; font-weight: 800; }
.section-subtitle { text-align: center; color: var(--text-muted); font-size: 1.4rem; max-width: 800px; margin: 0 auto 60px auto; font-weight: 400; }
.section-title span { color: var(--primary-color); }

.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.show { opacity: 1; transform: translateY(0); }

/* ==========================================
   5. אזור Hero והאנימציות
   ========================================== */
.hero { height: 100vh; display: flex; justify-content: center; align-items: center; padding: 80px 5% 0 5%; }
.hero-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; width: 100%; max-width: 1400px; }
.hero-text { text-align: right; }
.hero h1 { font-size: 4.8rem; margin-bottom: 20px; line-height: 1.1; font-weight: 900; min-height: 130px; word-break: break-word; }

.typewriter { display: inline; border-left: 3px solid var(--primary-color); white-space: pre-wrap; animation: blinkCursor 0.8s infinite; }
@keyframes blinkCursor { to { border-color: transparent; } }

.transformation { background: linear-gradient(to right, var(--primary-color), var(--secondary-color), #00e5ff, var(--primary-color)); background-size: 300% auto; color: transparent; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: textShine 4s linear infinite; display: inline-block; }
@keyframes textShine { to { background-position: 300% center; } }

.hero p { font-size: 1.5rem; color: var(--text-muted); max-width: 800px; margin-bottom: 40px; font-weight: 400; }
.btn { padding: 15px 45px; font-size: 1.25rem; border: none; border-radius: 50px; text-decoration: none; font-weight: 700; background: linear-gradient(45deg, var(--secondary-color), var(--primary-color)); color: white; box-shadow: 0 10px 20px rgba(0, 229, 255, 0.15); transition: var(--transition); display: inline-block; position: relative; overflow: hidden; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0, 229, 255, 0.3); }

.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; height: 100%; width: 100%; }
.dev-visualizer { width: 80%; height: auto; max-width: 500px; position: relative; filter: drop-shadow(0px 0px 20px rgba(0, 229, 255, 0.3)); z-index: 2; }
.dev-ring { transform-origin: center; animation: rotateRing 10s linear infinite; }
.ring-1 { animation-duration: 15s; }
.ring-2 { animation-duration: 20s; animation-direction: reverse; }
.ring-3 { animation-duration: 25s; }
@keyframes rotateRing { to { transform: rotate(360deg); } }

#code-floaters { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 1; pointer-events: none; }
.floating-code { position: absolute; font-family: 'Courier New', Courier, monospace; color: var(--primary-color); font-size: 1rem; opacity: 0; animation: floatCode 8s linear forwards; }
@keyframes floatCode { 0% { transform: translateY(50px); opacity: 0; } 10% { opacity: 0.7; } 80% { opacity: 0.7; } 100% { transform: translateY(-150px); opacity: 0; } }

/* ==========================================
   6. צוות על חלל (About)
   ========================================== */
.about-content { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.about-text p { margin-bottom: 25px; font-size: 1.2rem; color: var(--text-muted); font-weight: 400; max-width: 650px; }

.about-visual { background: rgba(255, 255, 255, 0.01); border: 1px solid rgba(0, 229, 255, 0.08); border-radius: 30px; padding: 50px 30px; text-align: center; backdrop-filter: blur(10px); transform-style: preserve-3d; perspective: 1000px; transition: border-color 0.3s, box-shadow 0.3s; cursor: none; }
.about-visual:hover { border-color: rgba(0, 229, 255, 0.3); box-shadow: 0 0 30px rgba(0, 229, 255, 0.1); }
.about-visual::before { content: ''; position: absolute; top: 15px; left: 15px; right: 15px; bottom: 15px; border: 1px solid rgba(0, 229, 255, 0.03); border-radius: 20px; pointer-events: none; transform: translateZ(20px); }
.about-visual h3 { font-size: 2.2rem; margin-bottom: 10px; color: var(--primary-color); font-weight: 800; transform: translateZ(50px); }
.about-visual p { font-weight: 500; font-size: 1.3rem; color: #fff; transform: translateZ(30px); }

/* ==========================================
   7. שירותים וטכנולוגיות
   ========================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card { background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 20px; padding: 40px 30px; text-align: center; transition: var(--transition); backdrop-filter: blur(5px); }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary-color); background: rgba(255, 255, 255, 0.05); box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1); }
.icon-wrapper { animation: floatIcon 3s ease-in-out infinite; display: inline-block; margin-bottom: 20px; }
.service-icon { font-size: 3.5rem; background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: var(--transition); display: inline-block; }
.service-card:hover .service-icon { transform: scale(1.2) rotate(10deg); filter: drop-shadow(0px 0px 10px rgba(0, 229, 255, 0.5)); }
@keyframes floatIcon { 0% { transform: translateY(0px); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0px); } }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; font-weight: 700; }
.service-card p { font-size: 1.1rem; color: var(--text-muted); }

.tech-banner { background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02), transparent); padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); backdrop-filter: blur(3px); margin: 0 -5%; width: 110vw; }
.tech-icons { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; font-size: 2.5rem; color: var(--text-muted); font-weight: 800; padding: 0 5%; }
.tech-icons i { transition: var(--transition); font-style: normal; }
.tech-icons i:hover { color: var(--primary-color); transform: scale(1.2) translateY(-5px); text-shadow: 0 0 15px var(--primary-color); }

/* ==========================================
   8. צור קשר
   ========================================== */
.contact-container { max-width: 800px; margin: 0 auto; background: var(--surface-color); padding: 50px; border-radius: 20px; border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.form-group { margin-bottom: 25px; }
.form-control { width: 100%; padding: 18px; background: rgba(0,0,0,0.5); border: 1px solid var(--border-color); color: white; border-radius: 10px; font-size: 1.15rem; transition: var(--transition); font-family: 'Heebo', sans-serif; }
.form-control:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); background: rgba(0,0,0,0.8); }
select.form-control { appearance: none; }

/* ==========================================
   9. רספונסיביות
   ========================================== */
@media (max-width: 1024px) {
    .hero-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .hero { height: auto; padding-top: 120px; padding-bottom: 60px; text-align: center;}
    .hero-text { text-align: center; order: 2; }
    .hero h1 { font-size: 3.5rem; min-height: 90px; }
    .hero-visual { order: 1; margin-bottom: 30px;}
    .dev-visualizer { width: 60%; }
    
    .about-content { grid-template-columns: 1fr; max-width: 700px; text-align: center; }
    .about-text p { max-width: 100%; margin-left: auto; margin-right: auto; }
    .about-visual { max-width: 400px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
    header { justify-content: space-between; flex-direction: row; padding: 10px 15px; height: 70px; }
    .logo-img { max-height: 32px; }
    .nav-controls { flex-direction: row; gap: 12px; }
    .hamburger { display: flex; width: 25px; height: 20px; }
    .hamburger span { height: 2px; }
    
    .lang-btn {
        padding: 5px 12px;
        font-size: 0.9rem;
        min-width: 45px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    section { padding: 60px 20px; } 
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.2rem; padding: 0 10px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; } 
    .contact-container { padding: 30px 20px; width: 100%; }
    .tech-icons { gap: 20px; font-size: 1.8rem; }
    
    nav ul { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: rgba(10, 15, 26, 0.95); backdrop-filter: blur(15px); flex-direction: column; justify-content: flex-start; align-items: center; padding-top: 100px; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); border-left: 1px solid var(--border-color); margin: 0; z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    nav ul.active { transform: translateX(-300px); }
    [dir="ltr"] nav ul { right: auto; left: -300px; border-left: none; border-right: 1px solid var(--border-color); box-shadow: 10px 0 30px rgba(0,0,0,0.5); }
    [dir="ltr"] nav ul.active { transform: translateX(300px); }

    nav li { width: 100%; text-align: center; margin-bottom: 20px; }
    nav a { font-size: 1.5rem; display: block; padding: 15px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }

    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -8px); }

    .menu-overlay.active { display: block; opacity: 1; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; min-height: 70px; }
    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1.1rem; }
    .about-visual h3 { font-size: 1.8rem; }
    .dev-visualizer { width: 80%; }
}

/* ==========================================
   10. Cookie Banner & Accessibility
   ========================================== */

/* --- באנר קוקיז --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    width: 350px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    z-index: 99999;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.show { transform: translateY(0); }

[dir="rtl"] .cookie-banner { right: 20px; left: auto; }
[dir="ltr"] .cookie-banner { left: 20px; right: auto; }

.cookie-content p { font-size: 0.95rem; color: #cbd5e1; line-height: 1.5; margin: 0; }
.cookie-actions { display: flex; gap: 10px; }
.btn-sm { padding: 10px 15px; font-size: 0.9rem; border-radius: 8px; cursor: pointer; flex: 1; font-weight: bold; background: #00e5ff; color: #000; border: none; font-family: 'Heebo', sans-serif; transition: 0.3s; }
.btn-sm:hover { background: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

/* --- כפתור ותפריט נגישות --- */
.acc-floating-btn {
    position: fixed;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #00e5ff;
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.3);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}
.acc-floating-btn:hover { transform: scale(1.1); background: #fff; }

.acc-menu {
    position: fixed;
    bottom: 85px;
    width: 250px;
    background: #050a14;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    z-index: 99998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.acc-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

[dir="rtl"] .acc-floating-btn, [dir="rtl"] .acc-menu { left: 20px; right: auto; }
[dir="ltr"] .acc-floating-btn, [dir="ltr"] .acc-menu { right: 20px; left: auto; }

.acc-menu h3 { margin-bottom: 15px; font-size: 1.2rem; color: #fff; text-align: center; }

.acc-option {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.95rem;
    font-family: 'Heebo', sans-serif;
}
.acc-option:hover, .acc-option.active { background: rgba(0, 229, 255, 0.1); border-color: #00e5ff; }
.acc-reset { background: rgba(255, 50, 50, 0.1); color: #ff5252; margin-top: 15px; border-color: transparent; }
.acc-reset:hover { background: rgba(255, 50, 50, 0.2); border-color: #ff5252; }

/* פילטרים של הנגישות ברמת המסך */
body.acc-high-contrast { filter: invert(1) hue-rotate(180deg); background-color: #fff; }
body.acc-highlight-links a { background: #ffeb3b !important; color: #000 !important; text-decoration: underline !important; padding: 2px; }
body.acc-readable-font, body.acc-readable-font * { font-family: Arial, sans-serif !important; letter-spacing: 1px !important; }

/* התאמה למסכים קטנים (מובייל) */
@media (max-width: 400px) {
    .cookie-banner { width: calc(100% - 40px); bottom: 10px; right: 10px !important; left: 10px !important; }
}