@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Heebo:wght@300;400;700&display=swap');

:root {
    --bg-deep: #050505;       /* שחור מוחלט */
    --bg-panel: #0b1015;      /* רקע לכרטיסים */
    --neon-green: #00ff41;    /* ירוק האקרים */
    --neon-blue: #00f3ff;     /* כחול סייבר */
    --neon-purple: #bc13fe;   /* סגול עתידני */
    --text-main: #e0e0e0;
    --text-muted: #8892b0;
    --border-tech: 1px solid rgba(0, 243, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Heebo', sans-serif; 
    background-color: var(--bg-deep); 
    color: var(--text-main); 
    direction: rtl; 
    overflow-x: hidden; /* מונע גלילה לצדדים במובייל */
    /* רקע רשת עדינה */
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, .tech-font { font-family: 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: 2px; }
h1 { font-weight: 700; line-height: 1; }

.text-green { color: var(--neon-green); text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
.text-blue { color: var(--neon-blue); text-shadow: 0 0 10px rgba(0, 243, 255, 0.5); }
.text-purple { color: var(--neon-purple); text-shadow: 0 0 10px rgba(188, 19, 254, 0.5); }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px;
    background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; z-index: 1000;
}
.logo { font-size: 2rem; font-weight: 700; color: var(--text-main); letter-spacing: 3px; font-family: 'Rajdhani'; white-space: nowrap; }
.logo span { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }

.nav-links { display: flex; gap: 40px; }
.nav-links a { 
    text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 1.1rem;
    transition: 0.3s; position: relative; font-family: 'Rajdhani', sans-serif; letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active { color: var(--neon-green); text-shadow: 0 0 8px var(--neon-green); }

/* BUTTONS */
.btn-cyber {
    background: transparent; border: 1px solid var(--neon-blue); color: var(--neon-blue);
    padding: 10px 25px; font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 2px;
    text-decoration: none; cursor: pointer; transition: 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    white-space: nowrap;
}
.btn-cyber:hover { background: rgba(0, 243, 255, 0.1); box-shadow: 0 0 20px rgba(0, 243, 255, 0.4); text-shadow: 0 0 5px #fff; }

.btn-cyber-fill {
    background: var(--neon-blue); color: #000; border: none;
    padding: 12px 30px; font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 2px;
    cursor: pointer; clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    transition: 0.3s; box-shadow: 0 0 15px rgba(0, 243, 255, 0.5); display: inline-block; width: 100%; text-align: center; text-decoration: none;
}
.btn-cyber-fill:hover { background: #fff; box-shadow: 0 0 30px rgba(0, 243, 255, 0.8); }

/* --- HERO SECTION --- */
.hero {
    height: 100vh; display: flex; align-items: center; padding: 0 5%; position: relative; overflow: hidden;
}
.video-container { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: hue-rotate(190deg) contrast(1.2); } 
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, #050505 20%, rgba(5,5,5,0.2) 100%); }

.hero-content { position: relative; z-index: 2; max-width: 900px; padding-top: 60px; }
.status-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 5px 15px; border: 1px solid var(--neon-green); color: var(--neon-green);
    background: rgba(0, 255, 65, 0.1); font-family: 'Rajdhani'; font-weight: bold; margin-bottom: 20px; font-size: 0.9rem;
}
.status-dot { width: 8px; height: 8px; background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 10px var(--neon-green); animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 { font-size: 5rem; margin-bottom: 20px; text-shadow: 0 0 20px rgba(0, 0, 0, 0.8); }
.hero p { font-size: 1.4rem; color: #ccc; max-width: 650px; margin-bottom: 40px; border-right: 3px solid var(--neon-blue); padding-right: 20px; }

/* --- PAGE HEADER --- */
.page-header {
    height: 40vh; margin-top: 80px; position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    background: radial-gradient(circle at center, #0e1525 0%, #050505 100%);
    border-bottom: 1px solid var(--neon-blue);
}
.page-header h1 { font-size: 3.5rem; color: var(--text-main); margin-bottom: 10px; text-shadow: 0 0 15px var(--neon-blue); }
.page-header p { font-size: 1.2rem; color: var(--text-muted); font-family: 'Rajdhani'; letter-spacing: 2px; padding: 0 20px; }

/* --- SECTIONS --- */
.section { padding: 80px 5%; position: relative; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 10px; color: var(--text-main); }
.line { width: 80px; height: 2px; background: var(--neon-purple); margin: 0 auto; box-shadow: 0 0 10px var(--neon-purple); }

/* --- GRID CARDS --- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.tech-card {
    background: rgba(16, 24, 35, 0.6); border: 1px solid rgba(255,255,255,0.05);
    padding: 30px; transition: 0.3s; position: relative; overflow: hidden;
}
.tech-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    transform: translateX(-100%); transition: 0.5s;
}
.tech-card:hover { background: rgba(16, 24, 35, 0.9); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-color: var(--neon-blue); }
.tech-card:hover::before { transform: translateX(100%); }

.tech-icon { font-size: 3rem; color: var(--neon-blue); margin-bottom: 20px; text-shadow: 0 0 15px var(--neon-blue); }
.tech-card h3 { font-size: 1.5rem; color: #fff; margin-bottom: 15px; }
.tech-card p { color: var(--text-muted); line-height: 1.6; }

/* --- CLIENTS (OPERATIONS) --- */
.client-case {
    position: relative; height: 300px; overflow: hidden; border: 1px solid #333; background: #000;
}
.client-case img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; opacity: 0.5; filter: grayscale(100%); }
.client-case:hover img { opacity: 0.2; transform: scale(1.1); }
.case-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; opacity: 0; transition: 0.3s; transform: translateY(20px);
}
.client-case:hover .case-overlay { opacity: 1; transform: translateY(0); }
.case-overlay h3 { font-size: 1.8rem; color: var(--neon-green); text-shadow: 0 0 10px var(--neon-green); margin-bottom: 10px; }
.case-overlay p { color: #fff; font-family: 'Rajdhani'; letter-spacing: 2px; }

/* --- MOBILE MENU --- */
.mobile-toggle { display: none; font-size: 2rem; color: var(--neon-blue); cursor: pointer; }
.mobile-menu {
    position: fixed; inset: 0; background: #000; z-index: 2000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateX(100%); transition: 0.4s; border-left: 2px solid var(--neon-green);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a { font-size: 2rem; margin: 20px 0; color: #fff; text-decoration: none; font-family: 'Rajdhani', sans-serif; }
.mobile-close { position: absolute; top: 30px; right: 30px; font-size: 3rem; color: var(--neon-green); cursor: pointer; }

/* --- MODAL --- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 3000; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-box { background: #0a0f14; padding: 40px; width: 90%; max-width: 500px; border: 1px solid var(--neon-blue); box-shadow: 0 0 50px rgba(0, 243, 255, 0.15); position: relative; }
.close-modal { position: absolute; top: 15px; right: 15px; color: #fff; font-size: 1.5rem; cursor: pointer; }
.cyber-input { width: 100%; background: transparent; border: none; border-bottom: 1px solid #333; padding: 15px 0; color: var(--neon-green); font-family: 'Rajdhani'; font-size: 1.2rem; margin-bottom: 20px; }
.cyber-input:focus { outline: none; border-bottom-color: var(--neon-green); }

/* --- FOOTER --- */
footer { border-top: 1px solid #222; padding: 60px 5%; text-align: center; margin-top: 50px; background: #020202; }
.social-links a { color: #555; font-size: 1.5rem; margin: 0 15px; transition: 0.3s; }
.social-links a:hover { color: var(--neon-blue); text-shadow: 0 0 10px var(--neon-blue); }

/* ========================================= */
/* MOBILE RESPONSIVE FIXES (MEDIA QUERIES)   */
/* ========================================= */
@media (max-width: 900px) {
    /* Navbar */
    .navbar { padding: 0 20px; }
    .nav-links, .desktop-only { display: none; }
    .mobile-toggle { display: block; }
    .logo { font-size: 1.5rem; }

    /* Hero */
    .hero { text-align: center; justify-content: center; }
    .hero h1 { font-size: 3rem; line-height: 1.1; }
    .hero p { font-size: 1.1rem; border-right: none; padding-right: 0; }
    .hero-content { padding-top: 0; }
    .hero-btns { flex-direction: column; gap: 15px; }
    .btn-cyber, .btn-cyber-fill { width: 100%; text-align: center; display: block; }

    /* Sections & Grid */
    .section { padding: 60px 20px; }
    .grid-cards { grid-template-columns: 1fr; gap: 30px; } /* כרטיסים אחד מתחת לשני */
    
    /* Headers */
    .section-title h2 { font-size: 2.5rem; }
    .page-header h1 { font-size: 2.5rem; }
    .page-header { height: 35vh; margin-top: 80px; }

    /* Modal */
    .modal-box { padding: 30px; width: 95%; }
}